/* ============================================================================
   CaptiLingo — Frontpage design system  ("Записник во живо")
   ----------------------------------------------------------------------------
   Aesthetic: studio playback — the page reads like a recorded meeting being
   played back and turned into a записник. Cool porcelain paper, midnight ink,
   product-blue accent, record-red micro-accent. Mono timecodes mark sections
   like chapters on a timeline; screenshots sit in media-player chrome.
   Bespoke stylesheet. NO framework. Component classes only (BEM-ish).
   Fonts: Unbounded (display) · Onest (body) · IBM Plex Mono (chrome/meta).
   Used by: frontpage templates (home/demo/thanks) + registration/login.html.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   TOKENS
--------------------------------------------------------------------------- */
:root {
    /* Porcelain & ink palette */
    --paper: #F5F7FA;
    --paper-raise: #FFFFFF;
    --paper-tint: #EAEFF6;
    --ink: #0B1424;
    --ink-soft: #45536B;
    --ink-faint: #8B96A9;
    --rule: #D5DDE9;
    --rule-strong: #0B1424;

    /* Accent (product blue) + record red (micro) + semantic go */
    --accent: #1F6FEB;
    --accent-deep: #1554C0;
    --accent-wash: #E7EFFD;
    --rec: #E5484D;
    --go: #12805C;
    --go-wash: #E7F5EE;

    /* Font families */
    --font-display: "Unbounded", "Arial Black", sans-serif;
    --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    /* Type scale (fluid; Unbounded runs wide — sizes stay moderate) */
    --fs-display-1: clamp(1.9rem, 4.2vw, 3rem);
    --fs-display-2: clamp(1.45rem, 2.9vw, 2.15rem);
    --fs-display-3: clamp(1.1rem, 1.9vw, 1.35rem);
    --fs-lead: clamp(1.1rem, 1.7vw, 1.3rem);
    --fs-body: 1.0625rem;
    --fs-sm: .9375rem;
    --fs-xs: .8125rem;
    --fs-eyebrow: .75rem;

    --lh-display: 1.18;
    --lh-body: 1.65;
    --ls-eyebrow: .13em;
    --ls-mono: .04em;

    /* Rhythm & layout */
    --section-y: clamp(4.5rem, 10vw, 8rem);
    --container: 72rem;
    --container-pad: clamp(1.25rem, 4vw, 2rem);
    --header-h: 4.25rem;

    /* Radii */
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;

    /* Shadows */
    --shadow-card: 0 1px 2px rgba(11, 20, 36, .05), 0 6px 20px rgba(11, 20, 36, .07);
    --shadow-float: 0 4px 14px rgba(11, 20, 36, .09), 0 20px 52px rgba(11, 20, 36, .14);

    /* Motion */
    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --dur: 170ms;
}

/* ---------------------------------------------------------------------------
   RESET / BASE
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: var(--lh-display);
    color: var(--ink);
    letter-spacing: -.01em;
    text-wrap: balance;
}

h1 { font-size: var(--fs-display-1); }
h2 { font-size: var(--fs-display-2); }
h3 { font-size: var(--fs-display-3); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

::selection { background: var(--accent-wash); color: var(--ink); }

[x-cloak] { display: none !important; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Anchor targets clear the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

/* ---------------------------------------------------------------------------
   LAYOUT PRIMITIVES
--------------------------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.page-offset { padding-top: var(--header-h); }

.section { padding-block: var(--section-y); }

.section--slim { padding-block: calc(var(--section-y) * .45); }

.section--tint {
    background: var(--paper-tint);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section--ink {
    background: var(--ink);
    color: rgba(245, 247, 250, .72);
    position: relative;
    overflow: hidden;
}

.section--ink h2, .section--ink h3 { color: #F5F7FA; }

/* Section head formula: chapter marker (timecode on the timeline) + h2 + lead */
.section__head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.section__head--center { margin-inline: auto; text-align: center; }

.chapter {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.4rem;
    font-family: var(--font-mono);
}

.chapter::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.section__head--center .chapter::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.chapter__tc {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: var(--ls-mono);
    font-variant-numeric: tabular-nums;
}

.chapter__tc::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.chapter__label {
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--ink-faint);
}

.section--ink .chapter::after,
.section--ink .chapter::before { background: rgba(245, 247, 250, .16); }

.section--ink .chapter__label { color: rgba(245, 247, 250, .45); }

.lead {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-soft);
}

.section--ink .lead { color: rgba(245, 247, 250, .72); }

/* ---------------------------------------------------------------------------
   BUTTONS / CHIPS
--------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .72em 1.35em;
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    box-shadow: 0 6px 18px rgba(31, 111, 235, .3);
}

.btn--ghost {
    border-color: var(--rule);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.section--ink .btn--ghost { border-color: rgba(245, 247, 250, .3); color: #F5F7FA; }

.section--ink .btn--ghost:hover { background: #F5F7FA; color: var(--ink); border-color: #F5F7FA; }

.btn--sm { padding: .5em 1em; font-size: var(--fs-sm); }

.btn--block { width: 100%; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .7rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper-raise);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-mono);
    color: var(--ink-soft);
}

.chip--go { border-color: color-mix(in srgb, var(--go) 35%, transparent); background: var(--go-wash); color: var(--go); }

.chip--inverse { border-color: rgba(245, 247, 250, .22); background: rgba(245, 247, 250, .06); color: rgba(245, 247, 250, .8); }

/* Micro copy under CTAs */
.micro {
    margin-top: .9rem;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-mono);
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------------------
   CARDS / TICK LISTS
--------------------------------------------------------------------------- */
.card {
    background: var(--paper-raise);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
}

.card--hover { transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }

.card--hover:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--rule) 40%, var(--ink-faint));
}

.tick-list li {
    position: relative;
    padding: .65rem 0 .65rem 1.9rem;
    border-top: 1px solid var(--rule);
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}

.tick-list li:first-child { border-top: 0; }

.tick-list li::before {
    content: "✓";
    position: absolute;
    left: .25rem;
    top: .62rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--go);
}

.tick-list--inverse li { border-top-color: rgba(245, 247, 250, .12); color: rgba(245, 247, 250, .78); }

.tick-list--inverse li::before { color: #7DD8B2; }

/* ---------------------------------------------------------------------------
   WAVEFORM (brand motif; pure CSS)
--------------------------------------------------------------------------- */
.wave {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}

.wave i {
    width: 3px;
    height: var(--h, 8px);
    border-radius: 2px;
    background: currentColor;
}

.wave i:nth-child(1) { --h: 6px; }
.wave i:nth-child(2) { --h: 12px; }
.wave i:nth-child(3) { --h: 16px; }
.wave i:nth-child(4) { --h: 9px; }
.wave i:nth-child(5) { --h: 13px; }
.wave i:nth-child(6) { --h: 7px; }

.wave--live i { animation: wave-bounce 1.15s var(--ease-out) infinite alternate; }

.wave--live i:nth-child(2) { animation-delay: .12s; }
.wave--live i:nth-child(3) { animation-delay: .24s; }
.wave--live i:nth-child(4) { animation-delay: .36s; }
.wave--live i:nth-child(5) { animation-delay: .48s; }
.wave--live i:nth-child(6) { animation-delay: .6s; }

@keyframes wave-bounce {
    from { transform: scaleY(.45); }
    to   { transform: scaleY(1); }
}

/* Record dot */
.rec-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rec);
}

.rec-dot--pulse { animation: rec-pulse 1.6s ease-in-out infinite; }

@keyframes rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* ---------------------------------------------------------------------------
   HEADER (_header.html)
--------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand__mark { color: var(--accent); }

.brand__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.site-nav { display: flex; gap: 1.6rem; }

.site-nav__link {
    position: relative;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-mono);
    color: var(--ink-soft);
    padding-block: .35rem;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
}

.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: .7rem; }

/* Mobile drawer */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 10px;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    background: var(--paper-raise);
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem var(--container-pad) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-float);
}

.nav-drawer__link {
    padding: .7rem .25rem;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
}

.nav-drawer__actions { display: flex; gap: .7rem; margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   HERO (_hero.html) — 00:00
--------------------------------------------------------------------------- */
.hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    background:
        radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent-wash) 65%, transparent), transparent 70%),
        var(--paper);
}

.hero__live {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .38rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper-raise);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-mono);
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
}

.hero__live .wave { color: var(--accent); height: 12px; }
.hero__live .wave i { width: 2.5px; }

.hero h1 { max-width: 17ch; margin-bottom: .55em; }

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero__lead { max-width: 38rem; font-size: var(--fs-lead); line-height: 1.55; }

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.8rem;
}

.hero__player {
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* ---------------------------------------------------------------------------
   PLAYER FRAME (screenshot chrome — shared by hero + feature tour)
--------------------------------------------------------------------------- */
.player {
    background: var(--paper-raise);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.player__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 1rem;
    background: var(--ink);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-mono);
    color: rgba(245, 247, 250, .7);
}

.player__title {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player__meta {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-variant-numeric: tabular-nums;
}

.player__stage {
    position: relative;
    background: var(--paper-tint);
}

.player__stage img { width: 100%; }

.player__progress {
    height: 3px;
    background: color-mix(in srgb, var(--ink) 8%, var(--paper-tint));
}

.player__bar {
    height: 100%;
    width: 0;
    background: var(--accent);
}

/* ---------------------------------------------------------------------------
   STATS BAND (_stats.html)
--------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }

.stats__item { padding: .35rem 1.5rem; border-left: 1px solid var(--rule); }

.stats__item:first-child { border-left: 0; padding-left: 0; }

.stats__value {
    font-family: var(--font-mono);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    letter-spacing: -.01em;
}

.stats__label {
    margin-top: .3rem;
    font-size: var(--fs-xs);
    color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   HOW IT WORKS (_how_it_works.html) — 00:04
--------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    counter-reset: step;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 1.35rem;
    left: 4rem;
    right: 4rem;
    height: 1px;
    background: var(--rule);
}

.step { position: relative; counter-increment: step; }

.step__num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem; height: 2.7rem;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: var(--paper-raise);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    box-shadow: var(--shadow-card);
}

.step__num::before { content: "0" counter(step); }

.step h3 { margin: 1.1rem 0 .4rem; }

.step p { font-size: var(--fs-sm); margin: 0; }

/* ---------------------------------------------------------------------------
   FEATURE TOUR (_features_tour.html) — 12:30
--------------------------------------------------------------------------- */
.ftour__layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: start;
}

/* Index (chapter list) */
.ftour__index { display: flex; flex-direction: column; }

.ftour__row { border-top: 1px solid var(--rule); }

.ftour__row:last-child { border-bottom: 1px solid var(--rule); }

.ftour__rowbtn {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    padding: .85rem .6rem;
    text-align: left;
    border-left: 3px solid transparent;
    transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.ftour__rowbtn:hover { background: var(--paper-tint); }

.ftour__row.is-active .ftour__rowbtn {
    border-left-color: var(--accent);
    background: var(--paper-raise);
    box-shadow: var(--shadow-card);
}

.ftour__rownum {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink-faint);
}

.ftour__row.is-active .ftour__rownum { color: var(--accent); }

.ftour__rowtitle {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-soft);
}

.ftour__row.is-active .ftour__rowtitle { color: var(--ink); }

/* Stage */
.ftour__stage { min-width: 0; }

.ftour__pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem; height: 1.7rem;
    border: 1px solid rgba(245, 247, 250, .25);
    border-radius: var(--r-xs);
    color: rgba(245, 247, 250, .85);
    font-size: .6rem;
    transition: background var(--dur) var(--ease-out);
}

.ftour__pause:hover { background: rgba(245, 247, 250, .12); }

.ftour__desc { margin-top: 1.4rem; min-height: 6.5rem; }

.ftour__desc-title { margin-bottom: .35rem; }

.ftour__desc-body {
    max-width: 44rem;
    font-size: var(--fs-sm);
    margin: 0;
}

/* ---------------------------------------------------------------------------
   WHY / DARK BAND (_why_dark.html) — 27:45
--------------------------------------------------------------------------- */
.why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    z-index: 1;
}

.why__item {
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(245, 247, 250, .12);
    border-radius: var(--r-md);
    background: rgba(245, 247, 250, .04);
}

.why__item h3 { margin-bottom: .45rem; font-size: 1.05rem; }

.why__item p { margin: 0; font-size: var(--fs-sm); color: rgba(245, 247, 250, .65); }

.why__watermark {
    position: absolute;
    right: -2rem;
    bottom: -4.5rem;
    z-index: 0;
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 600;
    color: rgba(245, 247, 250, .045);
    letter-spacing: .02em;
    transform: rotate(-6deg);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   PRICING (_pricing.html) — 38:20
--------------------------------------------------------------------------- */
.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    max-width: 56rem;
    margin-inline: auto;
    align-items: start;
}

.plan { padding: 1.9rem 1.8rem; }

.plan--featured {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
    box-shadow: var(--shadow-float);
    transform: translateY(-.65rem);
}

.plan__tag {
    display: inline-flex;
    margin-bottom: 1rem;
}

.plan__name { margin-bottom: .3rem; }

.plan__for { font-size: var(--fs-sm); color: var(--ink-faint); min-height: 3em; margin-bottom: 1.1rem; }

.plan__price {
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.plan__per {
    display: block;
    margin-top: .3rem;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--ink-faint);
    letter-spacing: var(--ls-mono);
}

.plan__list { margin: 1.4rem 0 1.6rem; }

.plans__note {
    max-width: 56rem;
    margin: clamp(2rem, 4vw, 2.75rem) auto 0;
    padding: 1.1rem 1.4rem;
    border-left: 3px solid var(--accent);
    background: var(--paper-raise);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    box-shadow: var(--shadow-card);
}

/* ---------------------------------------------------------------------------
   FAQ (_faq.html) — 42:10
--------------------------------------------------------------------------- */
.faq { max-width: 46rem; margin-inline: auto; }

.faq__item { border-top: 1px solid var(--rule); }

.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__q {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.05rem .25rem;
    text-align: left;
}

.faq__num {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink-faint);
}

.faq__item.is-open .faq__num { color: var(--accent); }

.faq__title {
    flex: 1;
    font-weight: 600;
    color: var(--ink);
    font-size: var(--fs-body);
}

.faq__chevron {
    width: .55rem; height: .55rem;
    border-right: 2px solid var(--ink-faint);
    border-bottom: 2px solid var(--ink-faint);
    transform: rotate(45deg);
    transition: transform var(--dur) var(--ease-out);
    flex-shrink: 0;
}

.faq__item.is-open .faq__chevron { transform: rotate(-135deg); border-color: var(--accent); }

.faq__a {
    padding: 0 .25rem 1.2rem 2.5rem;
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    max-width: 40rem;
}

.faq__a p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   FINAL CTA (_cta.html) — 45:00
--------------------------------------------------------------------------- */
.cta { text-align: center; border-top: 3px solid var(--rule-strong); }

.cta h2 { max-width: 24ch; margin-inline: auto; }

.cta h2 em { font-style: normal; color: var(--accent); }

.cta .lead { max-width: 36rem; margin-inline: auto; }

.cta__actions { margin-top: 1.8rem; }

/* ---------------------------------------------------------------------------
   FOOTER (_footer.html)
--------------------------------------------------------------------------- */
.site-footer {
    background: var(--paper-tint);
    border-top: 1px solid var(--rule);
    padding: 2.5rem 0 2rem;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}

.site-footer__tagline { margin: .35rem 0 0; font-size: var(--fs-sm); color: var(--ink-faint); }

.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.site-footer__link {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-mono);
    color: var(--ink-soft);
}

.site-footer__link:hover { color: var(--accent); }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    padding-top: 1.25rem;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-mono);
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------------------
   FORMS (demo.html + login.html)
--------------------------------------------------------------------------- */
.form-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    padding-block: clamp(3rem, 7vw, 5rem);
}

.form-pitch h1 { font-size: var(--fs-display-2); max-width: 16ch; }

.form-pitch__steps { margin-top: 2rem; }

.form-pitch__step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--rule);
}

.form-pitch__num {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.form-pitch__step h3 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 600; margin-bottom: .2rem; }

.form-pitch__step p { margin: 0; font-size: var(--fs-sm); }

.form-card { padding: 2rem 1.9rem; }

.field { margin-bottom: 1.15rem; }

.field label {
    display: block;
    margin-bottom: .4rem;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-mono);
    color: var(--ink-soft);
}

.field input,
.field textarea {
    width: 100%;
    padding: .68rem .85rem;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    background: var(--paper-raise);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--ink);
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.field textarea { resize: vertical; min-height: 7rem; }

.field__error {
    margin-top: .35rem;
    font-size: var(--fs-xs);
    color: var(--rec);
}

.form-errors {
    margin-bottom: 1.25rem;
    padding: .85rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--rec) 35%, transparent);
    border-left: 3px solid var(--rec);
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--rec) 6%, var(--paper-raise));
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}

.form-errors p { margin: 0; }

/* Honeypot: off-screen, not display:none (bots skip hidden fields) */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Thanks page */
.thanks {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
    padding-block: clamp(4rem, 10vw, 7rem);
}

.thanks__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem; height: 3.4rem;
    border-radius: 50%;
    background: var(--go-wash);
    color: var(--go);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

/* ---------------------------------------------------------------------------
   AUTH (login.html)
--------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(50rem 24rem at 80% -5%, color-mix(in srgb, var(--accent-wash) 60%, transparent), transparent 70%),
        var(--paper);
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    padding: 2.4rem 2.2rem;
}

.auth-card .brand { margin-bottom: 1.6rem; }

.auth-card h1 { font-size: 1.35rem; margin-bottom: .35rem; }

.auth-card__sub { font-size: var(--fs-sm); color: var(--ink-faint); margin-bottom: 1.6rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 1.4rem 0;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-mono);
    color: var(--ink-faint);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.auth-card__meta {
    margin-top: 1.6rem;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--ink-faint);
}

.ms-logo { display: inline-block; flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .site-nav { display: none; }
    .site-header__actions { display: none; }
    .nav-toggle { display: flex; }

    .ftour__layout { grid-template-columns: minmax(0, 1fr); }

    .ftour__index {
        flex-direction: row;
        overflow-x: auto;
        min-width: 0;
        gap: .5rem;
        padding-bottom: .5rem;
        scrollbar-width: thin;
    }

    .ftour__row,
    .ftour__row:last-child { border: 0; }

    .ftour__rowbtn {
        border: 1px solid var(--rule);
        border-radius: 999px;
        padding: .5rem 1rem;
        white-space: nowrap;
        background: var(--paper-raise);
    }

    .ftour__row.is-active .ftour__rowbtn {
        border-color: var(--accent);
        background: var(--accent-wash);
        box-shadow: none;
    }

    .form-page { grid-template-columns: 1fr; }

    .why__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
    .stats__item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stats__item { padding-inline: 1.25rem; }

    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .steps::before {
        top: 1.5rem;
        bottom: 1.5rem;
        left: 1.35rem;
        right: auto;
        width: 1px;
        height: auto;
    }

    .plans { grid-template-columns: 1fr; }
    .plan--featured { transform: none; }

    .hero__ctas .btn { width: 100%; }

    .site-footer__top,
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .wave--live i { animation: none; }
    .rec-dot--pulse { animation: none; }
}
