/* ============================================================
   Rant & Private Burn Journal — ember on char.
   This page speaks the app's own visual language instead of the
   studio's. Colors are darkColors / lightColors and type is
   avenirFonts from src/styles/styles.js in ember-journal; radii
   follow its borderRadius scale (md 10, lg 18). The app defaults
   to the system theme, so this page does too.

   Avenir Next ships on every Apple device, which is where the
   app's audience is; elsewhere the stack falls back to the
   platform sans rather than a look-alike.

   dahvio.css still supplies the reset and the studio header and
   footer; this file re-tokens them and sets everything else.
   ============================================================ */

:root {
    --bg: #111111;          /* background */
    --raise: #1A1A1A;       /* surface */
    --raise-2: #222222;     /* surfaceSecondary */
    --rule: #333333;        /* border */
    --text: #F0EBE1;        /* textPrimary */
    --dim: #B0A898;         /* textSecondary */
    --faint: #8A837C;       /* textTertiary, lifted for small web type */
    --accent: #D4724A;      /* emberOrange / primary */
    --accent-hover: #B85E38;/* primaryDark */
    --on-accent: #F0EBE1;   /* primaryText */
    --glow: #E8B050;        /* emberYellow */

    --sans: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono: var(--sans);

    --r-md: 10px;
    --r-lg: 18px;

    color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #F5F0E8;
        --raise: #EDE8DE;
        --raise-2: #E5DFD3;
        --rule: #D4CBBC;
        --text: #111111;
        --dim: #3A3A3A;
        --faint: #6E6A63;
        --accent: #C4633A;
        --accent-hover: #A54F2C;
        --on-accent: #F5F0E8;
        --glow: #C89030;
    }
}

body {
    background: var(--bg);
}

/* ── Chrome ─────────────────────────────────────────────── */
.logo {
    font-weight: 700;
}

.header-nav a,
.footer-inner {
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* ── Type ───────────────────────────────────────────────── */
h1,
h2,
h3,
.hero-visual-title,
.premium-title {
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

.eyebrow,
.section-label,
.step-num,
.premium-label,
.hero-visual-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow,
.section-label {
    margin-bottom: 1rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 6rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: var(--dim);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--accent);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--raise);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.hero-point strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.hero-point span {
    display: block;
    color: var(--dim);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* The icon on a warm surface, lit from underneath. */
.hero-visual {
    background: var(--raise);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    background-image: radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}

.hero-icon {
    width: 112px;
    height: 112px;
    border-radius: 25px;
    margin: 0 auto 1.5rem;
}

.hero-visual-label {
    color: var(--dim);
    margin-bottom: 0.5rem;
}

.hero-visual-title {
    font-size: 1.625rem;
    color: var(--glow);
}

/* ── Sections ───────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section:last-of-type {
    border-bottom: 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    line-height: 1.15;
    margin-bottom: 0.875rem;
}

.section-intro {
    color: var(--dim);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 58ch;
    margin-bottom: 2.75rem;
}

.section a:not([class]) {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── How it works ───────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.step-shot {
    display: block;
    width: 100%;
    border-radius: var(--r-lg);
    border: 1px solid var(--rule);
    margin-bottom: 1.25rem;
}

.step-num {
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.4rem;
}

.step p {
    color: var(--dim);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ── Cards ──────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--raise);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 1.4rem 1.5rem;
}

.card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--dim);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ── Premium ────────────────────────────────────────────── */
.premium-panel {
    background: var(--raise);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
    border-radius: var(--r-lg);
    padding: 2.25rem;
}

.premium-label {
    margin-bottom: 0.75rem;
}

.premium-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1.75rem;
    max-width: 30ch;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
}

.premium-feature {
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

.premium-feature strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.premium-feature span {
    display: block;
    color: var(--dim);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.premium-note {
    color: var(--faint);
    font-size: 0.875rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        max-width: 20rem;
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 22rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-points,
    .premium-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.5rem 0;
    }

    .premium-panel {
        padding: 1.5rem 1.25rem;
    }
}
