/* Awaymode — base stylesheet.
 *
 * Brand palette deliberately distinct from linksby.me (which is bright purple/
 * lavender). Awaymode leans into a "twilight" / "moonlight" theme: deep indigo
 * → cool blue → soft amber accent. Communicates "I'm asleep, this is running
 * in the background" at a glance.
 */
:root {
    --bg-night:     #0f172a;   /* deep navy */
    --bg-twilight:  #1e1b4b;   /* indigo */
    --bg-dawn:      #312e81;   /* lighter indigo for accents */
    /* Accent palette — swap the active block to try a different vibe.
     *
     * LAVENDER (saved — calming, on-brand with indigo, but blends with linksby.me)
     *   --accent: #c4b5fd; --accent-soft: #ddd6fe;
     *   btn-accent hover: #a78bfa
     *
     * MINT (active — peaceful "off-duty" feel, most distinct from linksby.me)
     *   --accent: #6ee7b7; --accent-soft: #a7f3d0;
     *   btn-accent hover: #34d399
     *
     * SOFT ROSE (saved — warm, creator-friendly, also distinct)
     *   --accent: #fda4af; --accent-soft: #fecdd3;
     *   btn-accent hover: #fb7185
     */
    --accent:       #c4b5fd;   /* lavender — soft, calming, "asleep" mood */
    --accent-soft:  #ddd6fe;
    --primary:      #6366f1;   /* electric indigo */
    --primary-dark: #4338ca;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --dark:     #0f172a;
    --white:    #ffffff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.2; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-accent  { background: var(--accent); color: var(--bg-twilight); }
.btn-accent:hover  { background: #a78bfa; color: var(--bg-twilight); }
.btn-white   { background: white; color: var(--primary); }
.btn-white:hover   { background: var(--gray-100); color: var(--primary-dark); }
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 2px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: white; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-pill  { border-radius: 50px; padding: 14px 34px; }

/* Top nav (used on marketing pages) */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
}
.top-nav .brand {
    color: white;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.top-nav .brand .moon { color: var(--accent); margin-right: 6px; }
.top-nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.top-nav-links a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}
.top-nav-links a:hover { color: white; text-decoration: underline; }
.top-nav-links a.btn { padding: 8px 18px; border-radius: 50px; font-size: 0.88rem; }

/* Hero / sectioned twilight backdrop */
.twilight-bg {
    background: linear-gradient(160deg, var(--bg-night) 0%, var(--bg-twilight) 50%, var(--bg-dawn) 100%);
    color: white;
}
.hero { padding: 60px 20px 80px; text-align: center; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline { font-size: 1.15rem; opacity: 0.88; max-width: 620px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Feature blocks */
.section { padding: 70px 20px; }
.section h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
}
.section .lede {
    text-align: center;
    color: var(--gray-600);
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 1.02rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: var(--gray-50);
    border-radius: 14px;
    padding: 26px 24px;
}
.feature-card .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--gray-600); font-size: 0.93rem; margin: 0; }

/* Pricing */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 780px;
    margin: 0 auto 40px;
}
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
    background: white;
    color: var(--dark);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.plan-card.popular { border: 3px solid var(--accent); }
.plan-card.popular::before {
    content: "BEST VALUE";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-twilight);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}
.plan-name { font-size: 0.85rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.plan-price { font-size: 2.6rem; font-weight: 800; margin: 0 0 4px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.plan-meta { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 18px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; }
.plan-features li { padding: 7px 0; font-size: 0.92rem; border-bottom: 1px solid var(--gray-100); }
.plan-features li:last-child { border: none; }
.plan-features li::before { content: "✓ "; color: var(--primary); font-weight: 800; margin-right: 6px; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 26px 16px;
    background: #0a0e1a;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
}
.site-footer a {
    color: rgba(255,255,255,0.8);
    margin: 0 8px;
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
