/* ============================================================================
   High on DET — marketing site
   ----------------------------------------------------------------------------
   One stylesheet for the whole site, served static and gzipped. Everything is
   driven by the tokens in :root so the dark theme is a token swap rather than a
   second set of rules.

   No webfonts: the system stack renders on the first paint with no network
   request and no layout shift, which matters more on a landing page than a
   custom face would.

   The brand gradient (blue -> green) is lifted from the app's logo so the two
   properties read as one product.
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
    --ink:        #0b1220;
    --ink-soft:   #1c2739;
    --body:       #55606f;
    --muted:      #8a94a3;
    --line:       #e6e9ef;
    --line-soft:  #f0f2f6;
    --surface:    #ffffff;
    --surface-2:  #f6f8fb;
    --surface-3:  #eef2f8;

    --green:      #58cc02;
    --green-deep: #46a302;
    --green-wash: #f0fae6;
    --blue:       #1cb0f6;
    --blue-deep:  #0a8fcc;
    --blue-wash:  #e6f6fe;
    --amber:      #ff9600;
    --amber-wash: #fff4e3;
    --violet:     #a560f0;
    --violet-wash:#f5edfe;

    /* The closing call-to-action band paints itself dark on purpose. It cannot
       use --ink, because --ink flips to near-white in the dark theme and would
       take the band's background with it, leaving white text on white. */
    --cta-bg:     #0b1220;
    --cta-line:   #0b1220;
    --cta-ink:    #ffffff;
    --cta-body:   #b9c2d0;

    --radius:     16px;
    --radius-lg:  24px;
    --shadow:     0 1px 2px rgba(11,18,32,.04), 0 8px 24px -12px rgba(11,18,32,.12);
    --shadow-lg:  0 2px 4px rgba(11,18,32,.04), 0 24px 48px -20px rgba(11,18,32,.18);

    --wrap:       1140px;
    --gutter:     clamp(16px, 4vw, 32px);

    --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
            Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink:       #f2f5f9;
        --ink-soft:  #cdd5e0;
        --body:      #a3adbc;
        --muted:     #7d8798;
        --line:      #232e40;
        --line-soft: #1a2334;
        --surface:   #0d1421;
        --surface-2: #121b2b;
        --surface-3: #182233;
        --green-wash:#14290a;
        --blue-wash: #0a2233;
        --amber-wash:#2b1c05;
        --violet-wash:#221033;

        /* Against a dark page a near-black band would disappear, so it lifts
           slightly and gains a border instead of inverting. */
        --cta-bg:    #161f31;
        --cta-line:  #2b3852;
        --cta-ink:   #f2f5f9;
        --cta-body:  #a3adbc;

        --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
        --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.6);
    }
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ── Type scale ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
    font-weight: 800;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.033em; font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.32rem); letter-spacing: -.017em; }
h4 { font-size: 1rem; letter-spacing: -.01em; }
p  { text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); line-height: 1.6; color: var(--body); }
.eyebrow {
    font-size: .74rem; font-weight: 800; letter-spacing: .13em;
    text-transform: uppercase; color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; }

section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-alt { background: var(--surface-2); }

.stack   { display: flex; flex-direction: column; }
.gap-8   { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24  { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.center  { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 700px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 14px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px;
    border: 0; border-radius: 999px;
    font-size: .95rem; font-weight: 800; letter-spacing: -.01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--green); color: #fff;
    box-shadow: 0 4px 0 var(--green-deep), var(--shadow);
}
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 3px 0 #3a8802, var(--shadow-lg); }

.btn-ghost {
    background: var(--surface); color: var(--ink);
    border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }

.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; gap: 28px;
    height: 68px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 900; font-size: 1.06rem; letter-spacing: -.03em;
    color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.brand svg { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    padding: 9px 14px; border-radius: 10px;
    font-size: .92rem; font-weight: 700; color: var(--body); text-decoration: none;
    transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--line);
    align-items: center; justify-content: center; cursor: pointer;
}

@media (max-width: 940px) {
    .nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }

    .site-header.open .nav {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; inset: 68px 0 auto; margin: 0;
        padding: 12px var(--gutter) 8px;
        background: var(--surface); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }
    .site-header.open .nav a { padding: 12px 14px; font-size: 1rem; }
    .site-header.open .header-cta {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; inset: auto 0 auto; top: calc(68px + var(--menu-h, 260px));
        padding: 4px var(--gutter) 16px;
        background: var(--surface); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 96px);
}
/* Soft brand glow, drawn with gradients so there is no image to download. */
.hero::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 620px; z-index: -1;
    background:
        radial-gradient(46% 52% at 22% 42%, color-mix(in srgb, var(--blue) 17%, transparent), transparent 70%),
        radial-gradient(40% 46% at 78% 30%, color-mix(in srgb, var(--green) 15%, transparent), transparent 70%);
    filter: blur(8px);
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 8px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: .8rem; font-weight: 700; color: var(--ink-soft);
}
.pill b {
    padding: 2px 8px; border-radius: 999px;
    background: var(--green); color: #fff; font-size: .72rem; font-weight: 800;
    letter-spacing: .02em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Score ladder (the site's recurring device) ──────────────────────────── */
.ladder {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 24px; position: relative;
}
.ladder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ladder-score { font-size: 2.9rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.ladder-rows { display: flex; flex-direction: column; gap: 10px; }
.ladder-row { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 12px; }
.ladder-row span:first-child { font-size: .8rem; font-weight: 700; color: var(--body); }
.ladder-row span:last-child  { font-size: .85rem; font-weight: 800; color: var(--ink); text-align: right; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--green)); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card-hover:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
/* Cards are flex columns with a gap, so a card can hold any number of
   paragraphs without hand-tuned margins, and .tip can pin itself to the base. */
.card { gap: 12px; }
.card h3 { margin-bottom: -2px; }
.card p  { font-size: .95rem; }
.card .eyebrow + h3 { margin-top: -4px; }

.icon {
    width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 22px; height: 22px; }
.i-green  { background: var(--green-wash);  color: var(--green-deep); }
.i-blue   { background: var(--blue-wash);   color: var(--blue-deep); }
.i-amber  { background: var(--amber-wash);  color: #c26f00; }
.i-violet { background: var(--violet-wash); color: #7b3fc4; }

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { background: var(--surface); padding: 26px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 900; color: var(--ink);
          letter-spacing: -.035em; line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare { min-width: 920px; }
.compare thead th:not(:first-child),
.compare tbody td:not(:first-child) {
    text-align: center;
    white-space: normal;
    min-width: 8.4rem;
    font-size: .8rem;
    line-height: 1.4;
    font-weight: 650;
}
.compare td:first-child, .compare th:first-child {
    min-width: 11.5rem;
    white-space: normal;
}
.compare .col-us { background: var(--green-wash); }
.compare thead .col-us { color: var(--green-deep); }
.compare .yes { color: var(--green-deep); font-weight: 800; }
.compare .no  { color: var(--muted); font-weight: 600; }
.compare .partial { color: var(--ink-soft); font-weight: 700; }
.compare-note { font-size: .8rem; color: var(--muted); margin-top: 14px; max-width: 78ch; }

/* ── Sign-up perks ───────────────────────────────────────────────────────── */
.perk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .perk-grid { grid-template-columns: 1fr; } }
.perk { height: 100%; }
.perk.featured { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); box-shadow: var(--shadow); }
.perk-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.perk-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--body); }
.perk-list li::before {
    content: "✓"; flex-shrink: 0; color: var(--green); font-weight: 900; line-height: 1.4;
}
.perk .btn { margin-top: auto; align-self: flex-start; }
.save-mark {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
    color: var(--green);
}
.save-mark small {
    display: block;
    margin-top: 8px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Question-type table ─────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
thead th {
    text-align: left; padding: 14px 18px; background: var(--surface-2);
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 700; color: var(--ink); }
td .num, th .num { font-variant-numeric: tabular-nums; }

.tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.t-reading   { background: var(--blue-wash);   color: var(--blue-deep); }
.t-listening { background: var(--violet-wash); color: #7b3fc4; }
.t-writing   { background: var(--green-wash);  color: var(--green-deep); }
.t-speaking  { background: var(--amber-wash);  color: #c26f00; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 16px; border-radius: 12px;
    background: var(--ink); color: var(--surface);
    font-size: .95rem; font-weight: 900; font-variant-numeric: tabular-nums;
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .plans { grid-template-columns: 1fr; } }

.plan { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.plan.featured { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-wash), var(--shadow); }
.plan-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    padding: 4px 14px; border-radius: 999px; background: var(--green); color: #fff;
    font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 2.5rem; font-weight: 900; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.plan-price span { font-size: .88rem; font-weight: 700; color: var(--muted); }
.plan-desc { font-size: .9rem; color: var(--muted); }
.plan-credits { font-size: .95rem; }
.plan-credits strong { font-size: 1.15rem; font-weight: 900; color: var(--green-deep); }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
/* Tick marks come from the stylesheet rather than 40 inline SVGs — a plan list
   is always "included / not included", so the mark carries no unique meaning. */
.plan li:not(:has(svg))::before { content: "✓"; flex-shrink: 0; color: var(--green); font-weight: 900; }
.plan .btn { margin-top: auto; }

/* ── FAQ (native disclosure — no JS) ─────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: border-color .18s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; cursor: pointer; list-style: none;
    font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex-shrink: 0; width: 11px; height: 11px;
    border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .faq-body { padding: 0 22px 20px; font-size: .95rem; }
.faq .faq-body p + p { margin-top: 12px; }

/* ── Callout / CTA band ──────────────────────────────────────────────────── */
.cta-band {
    background: var(--cta-bg); border: 1px solid var(--cta-line); border-radius: var(--radius-lg);
    padding: clamp(34px, 5vw, 60px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset: auto -10% -60% ; height: 340px;
    background: radial-gradient(50% 60% at 50% 50%, color-mix(in srgb, var(--green) 32%, transparent), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--cta-ink); }
.cta-band p  { color: var(--cta-body); margin: 14px auto 26px; max-width: 54ch; }

/* ── Prose (guide pages) ─────────────────────────────────────────────────── */
.prose h2 { margin-top: 48px; margin-bottom: 14px; }
.prose h3 { margin-top: 32px; margin-bottom: 10px; }
.prose p, .prose ul, .prose ol, .prose .table-scroll, .prose .note { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn) { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:not(.btn):hover { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose .legal-kicker {
    margin-top: 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--green);
}
.prose h1 { margin: 8px 0 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose .legal-meta { color: var(--muted); font-size: .9rem; }

.note {
    border-left: 3px solid var(--green); background: var(--surface-2);
    padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem;
}

/* The practical advice line that closes each question-type card. Set apart from
   the description above it so the card scans as "what it is / what to do". */
.tip {
    margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
    font-size: .88rem; color: var(--muted);
}
.tip strong { color: var(--ink); }

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs ol { display: contents; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; color: var(--line); }

/* ── Page header (interior pages) ────────────────────────────────────────── */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-head h1 { margin-block: 14px 14px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
    color: var(--ink); background: var(--surface);
    border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-wash);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
/* Three bands: brand + navigation, then the trademark disclaimer, then the
   baseline. Splitting the disclaimer out gives it full width to breathe and
   stops it crowding the brand column on narrow screens. */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    padding-block: clamp(48px, 6vw, 72px) 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
    gap: 44px 32px;
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p { font-size: .92rem; max-width: 44ch; }
.footer-brand .btn { margin-top: 2px; }

.footer-grid h2 {
    font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 16px; font-weight: 800;
}
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a {
    font-size: .93rem; text-decoration: none; color: var(--body);
    transition: color .15s ease;
}
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Duolingo is someone else's trademark — the disclaimer is a legal necessity,
   not decoration, so it stays legible rather than being shrunk into the noise. */
.footer-legal {
    margin-top: clamp(36px, 5vw, 52px);
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.disclaimer { font-size: .82rem; color: var(--muted); line-height: 1.65; max-width: 78ch; }

.footer-bottom {
    margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
    justify-content: space-between;
    font-size: .82rem; color: var(--muted);
}
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.footer-meta a { color: var(--body); text-decoration: none; }
.footer-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta .sep { color: var(--line); user-select: none; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    padding: 12px 20px; background: var(--ink); color: var(--surface);
    font-weight: 700; border-radius: 0 0 12px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
