/* ==========================================================================
   Cardara marketing — Prism design system
   --------------------------------------------------------------------------
   Hand-written mirror of the app's Prism tokens so www.cardara.co and
   app.cardara.co read as one product. Sources of truth:
     docs/BRAND.md ............ colour scale, ink primaries, typography rules
     web/src/index.css ........ the same custom properties, verbatim
     web/tailwind.config.js ... type scale, radii, shadows, motion
   Light first; dark mode follows the visitor's OS via prefers-color-scheme
   (the app is theme-aware, so the marketing site must be too).
   No raw hex in page markup — tokens only.
   ========================================================================== */

:root {
    /* Core periwinkle scale (docs/BRAND.md) */
    --core-100: #E1E4FE;
    --core-200: #C4CAFD;
    --core-300: #A2AAFB;
    --core-400: #818BF8;
    --core-500: #636FF6;
    --core-600: #3C44E2;
    --core-700: #2B30C5;
    --core-900: #222577;

    /* The one gradient: app icon, ambient light, one display word per view */
    --prism: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --prism-text: linear-gradient(90deg, #3C44E2 0%, #8B5CF6 100%);
    --pulse: #22D3EE;

    /* Frost (light) surfaces */
    --bg: #FAFAFD;
    --surface: #FFFFFF;
    --surface-2: #F1F1F7;
    --line: #E3E4EE;
    --line-2: #D9DBE6;
    --text: #0A0A12;
    --text-2: #5B5E75;
    --text-3: #8B8EA5;
    --tint: #E1E4FE;
    --tint-ink: #2B30C5;

    --btn-primary-bg: #0A0A12;
    --btn-primary-fg: #FFFFFF;
    --btn-accent-bg: #3C44E2;
    --btn-accent-fg: #FFFFFF;
    --link: #3C44E2;
    --link-hover: #2B30C5;
    --focus: #636FF6;

    --success: #10B981;
    --success-tint: #DCFCE7;
    --success-ink: #166534;
    --danger: #EF4444;
    --danger-tint: #FEF2F2;
    --danger-ink: #B91C1C;

    /* Ambient light strength (dialled down on Frost, raised on Void) */
    --ambient-blue: rgba(59, 130, 246, .20);
    --ambient-violet: rgba(139, 92, 246, .20);

    /* Geometry */
    --r-control: 10px;
    --r-card: 14px;
    --r-panel: 20px;
    --r-spot: 24px;

    /* Elevation — coloured, soft, negative spread. Never grey drop shadows. */
    --shadow-accent: 0 8px 20px -10px rgba(60, 68, 226, .7);
    --shadow-card: 0 18px 40px -32px rgba(34, 37, 119, .55);
    --shadow-spot: inset 0 1px 0 rgba(255, 255, 255, .6), 0 40px 80px -40px rgba(59, 130, 246, .7);

    /* Motion */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t-press: 90ms;
    --t-micro: 160ms;
    --t-reveal: 480ms;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Void (dark) surfaces */
        --bg: #0A0A12;
        --surface: rgba(255, 255, 255, .06);
        --surface-2: rgba(255, 255, 255, .10);
        --line: rgba(255, 255, 255, .12);
        --line-2: rgba(255, 255, 255, .16);
        --text: #F5F5FA;
        --text-2: #A3A6BD;
        --text-3: #6E7190;
        --tint: rgba(129, 139, 248, .20);
        --tint-ink: #C4CAFD;

        --btn-primary-bg: #FFFFFF;
        --btn-primary-fg: #0A0A12;
        --btn-accent-bg: #3C44E2;
        --btn-accent-fg: #FFFFFF;
        --link: #818BF8;
        --link-hover: #A2AAFB;
        --focus: #818BF8;

        --prism-text: linear-gradient(90deg, #60A5FA 0%, #A78BFA 100%);

        --success: #34D399;
        --success-tint: rgba(52, 211, 153, .16);
        --success-ink: #6EE7B7;
        --danger: #F87171;
        --danger-tint: rgba(248, 113, 113, .14);
        --danger-ink: #FCA5A5;

        --ambient-blue: rgba(59, 130, 246, .42);
        --ambient-violet: rgba(139, 92, 246, .42);

        --shadow-accent: 0 8px 20px -10px rgba(99, 111, 246, .9);
        --shadow-card: 0 18px 40px -32px rgba(0, 0, 0, .8);
    }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-padding-top: 88px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Space Grotesk carries every heading and every metric (docs/BRAND.md) */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display,
[data-metric] {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--text);
}

[data-metric] {
    font-variant-numeric: tabular-nums;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: .98;
    letter-spacing: -.045em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}

h4 {
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: -.01em;
}

p {
    color: var(--text-2);
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--t-micro) var(--ease);
}

a:hover {
    color: var(--link-hover);
}

img,
svg {
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 0 0 var(--r-control) 0;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: var(--btn-primary-fg);
}

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

/* ── Layout ───────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
}

.container-narrow {
    max-width: 820px;
}

.section {
    padding-block: 64px;
}

.section-tight {
    padding-block: 48px;
}

.section-line {
    border-top: 1px solid var(--line);
}

.section-header {
    max-width: 640px;
    margin-bottom: 40px;
}

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

.section-header p {
    margin-top: 14px;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-2);
}

.lede {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--text-2);
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* ── Ambient light (the only place the Prism gradient appears) ─────────── */

.ambient-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ambient {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(34px);
    border-radius: 50%;
}

.ambient-blue {
    background: radial-gradient(ellipse, var(--ambient-blue), transparent 60%);
    animation: drift 9s ease-in-out infinite;
}

.ambient-violet {
    background: radial-gradient(ellipse, var(--ambient-violet), transparent 60%);
    animation: drift 11s ease-in-out infinite reverse;
}

.prism-word {
    background: var(--prism-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(14px, -10px);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Reveal-on-scroll. Only armed once js/shared-components.js sets `js-reveal`
   on <html>, so a no-JS visitor gets the finished state. */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.js-reveal [data-reveal].is-revealed {
    animation: rise var(--t-reveal) var(--ease) both;
}

.js-reveal [data-reveal][data-i="1"].is-revealed {
    animation-delay: 60ms;
}

.js-reveal [data-reveal][data-i="2"].is-revealed {
    animation-delay: 120ms;
}

.js-reveal [data-reveal][data-i="3"].is-revealed {
    animation-delay: 180ms;
}

/* ── Buttons — ink primary, radius 10, height 40/48 ───────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--r-control);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: transform var(--t-press) ease-out, background var(--t-micro) var(--ease),
        border-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}

.btn:active {
    transform: scale(.98);
}

.btn svg {
    flex: none;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
}

.btn-primary:hover {
    color: var(--btn-primary-fg);
    opacity: .9;
}

.btn-accent {
    background: var(--btn-accent-bg);
    color: var(--btn-accent-fg);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: var(--core-700);
    color: var(--btn-accent-fg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line-2);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-3);
}

.btn-lg {
    min-height: 48px;
    padding: 0 22px;
    font-size: .9375rem;
    border-radius: 12px;
}

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

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-row.center {
    justify-content: center;
}

/* ── Surfaces ─────────────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 24px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 28px;
}

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

.card-hover:hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
    box-shadow: var(--shadow-card);
}

@media (prefers-color-scheme: dark) {

    .card,
    .panel {
        backdrop-filter: blur(16px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}

.chip-core {
    background: var(--tint);
    color: var(--tint-ink);
}

.chip-success {
    background: var(--success-tint);
    color: var(--success-ink);
}

/* Icon tile — tinted square, Lucide glyph inside. Never emoji. */
.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--r-control);
    background: var(--tint);
    color: var(--tint-ink);
}

.icon-tile-lg {
    width: 56px;
    height: 56px;
    border-radius: var(--r-card);
}

.lucide {
    stroke-width: 1.75;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── App bar ──────────────────────────────────────────────────────────── */

.appbar {
    position: sticky;
    /* positioning context for the <768px disclosure panel */
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .appbar {
        background: var(--bg);
    }
}

.appbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.logo:hover {
    color: var(--text);
    opacity: .85;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 8px;
}

/* Below 768px the links and the sign-up CTA collapse behind an
   `aria-expanded` disclosure button; `Log in` stays in the bar at every width
   (this is the product's front door — a customer on a phone has to be able to
   sign in). Above 768px `.nav-panel` is `display: contents`, so the same
   markup lays out inline with no duplicated links. */

.nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 90;
    flex-direction: column;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.appbar.nav-open .nav-panel {
    display: flex;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.nav-links a:hover {
    color: var(--link);
}

.nav-register-compact {
    margin-top: 16px;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r-control);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle:hover {
    background: var(--surface-2);
}

.nav-toggle-close,
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: inline-flex;
}

/* `Log in` is a quiet control next to the mark; it must not out-shout the
   sign-up CTA, but it is always reachable. */
.nav-signin {
    min-height: 40px;
    padding: 0 12px;
    margin-inline-start: auto;
    background: transparent;
    color: var(--text-2);
    border-color: transparent;
}

.nav-signin:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-register {
    display: none;
}

@media (min-width: 768px) {
    /* Tablet range: the four links, `Log in` and the CTA only fit on one line
       with a tighter gutter and no wrapping. Measured at 768-1023px. */
    .appbar .container {
        padding-inline: 24px;
    }

    .nav-panel {
        display: contents;
    }

    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        margin-inline-start: auto;
    }

    .nav-links a {
        min-height: 0;
        border-bottom: 0;
        color: var(--text-2);
        font-size: .8125rem;
        white-space: nowrap;
    }

    .nav-links a:hover {
        color: var(--text);
    }

    .nav-register-compact,
    .nav-toggle {
        display: none;
    }

    .nav-register {
        display: inline-flex;
        min-height: 40px;
        padding: 0 14px;
    }

    .nav-signin {
        margin-inline-start: 0;
    }
}

@media (min-width: 1024px) {
    .appbar .container {
        padding-inline: 40px;
    }

    .nav-links {
        gap: 28px;
    }

    .nav-links a {
        font-size: .875rem;
    }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
    padding-block: 56px 64px;
}

.hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero .lede {
    max-width: 52ch;
}

.hero-buttons {
    margin-top: 28px;
}

.hero-note {
    margin-top: 18px;
    font-size: .8125rem;
    color: var(--text-2);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* Demo card stack — the app's Hero, hand-built */
.demo-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}

.demo-card {
    position: relative;
    border-radius: var(--r-card);
    background: #FAFAFD;
    color: #0A0A12;
    padding: 22px;
    box-shadow: var(--shadow-spot);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.demo-card::before,
.demo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--r-card);
    background: var(--prism);
}

.demo-card::before {
    opacity: .32;
    transform: rotate(-9deg) translate(-14px, 14px);
}

.demo-card::after {
    opacity: .55;
    transform: rotate(-4.5deg) translate(-6px, 7px);
}

.demo-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.demo-card-head h2,
.demo-card-head h3 {
    font-size: 1.125rem;
    color: #0A0A12;
    letter-spacing: -.02em;
}

.demo-card-meta {
    font-size: .75rem;
    line-height: 1.7;
    color: #5B5E75;
    word-break: break-word;
}

.demo-extract {
    position: relative;
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 20px;
}

@media (prefers-color-scheme: dark) {
    .demo-extract {
        backdrop-filter: blur(16px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    }
}

.demo-extract-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .75rem;
}

.demo-extract-head .live {
    color: var(--core-600);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
    .demo-extract-head .live {
        color: var(--pulse);
    }
}

.demo-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.demo-field {
    min-width: 0;
    padding: 12px;
    border-radius: var(--r-control);
    background: var(--surface-2);
}

.demo-field dt {
    font-size: .75rem;
    color: var(--text-2);
}

.demo-field dd {
    margin-top: 4px;
    font-size: .8125rem;
    font-weight: 600;
    word-break: break-word;
}

.demo-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin-top: 16px;
    border-radius: var(--r-control);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    font-size: .875rem;
    font-weight: 600;
}

/* Scanner sweep — cyan, the app's live/realtime accent */
.scanner-sweep {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: var(--r-card);
}

.scanner-sweep::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 28%;
    background: linear-gradient(transparent, rgba(34, 211, 238, .35));
    border-bottom: 1px solid var(--pulse);
    animation: sweep 2.4s linear infinite;
}

@keyframes sweep {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(300%);
    }
}

@media (min-width: 900px) {
    .hero {
        padding-block: 80px 96px;
    }

    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
        gap: 48px;
    }
}

/* ── Feature / step / benefit cards ───────────────────────────────────── */

.feature-card h3 {
    margin: 16px 0 8px;
}

.feature-card p {
    font-size: .9375rem;
}

.feature-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-number {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--core-600);
}

@media (prefers-color-scheme: dark) {
    .step-number {
        color: var(--core-400);
    }
}

.step h3,
.step h4 {
    margin-bottom: 6px;
}

.step p {
    font-size: .9375rem;
}

.benefit-stat {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    margin-bottom: 10px;
}

.benefit-item h4 {
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: .9375rem;
}

/* ── Spotlight band (max one per page) ────────────────────────────────── */

.spot {
    border-radius: var(--r-panel);
    background: #0A0A12;
    color: #F5F5FA;
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow-accent);
}

.spot h2 {
    color: #F5F5FA;
}

.spot p {
    color: #A3A6BD;
    max-width: 56ch;
    margin: 16px auto 0;
}

.spot .btn-row {
    margin-top: 28px;
}

.spot .btn-primary {
    background: #FFFFFF;
    color: #0A0A12;
}

.spot .btn-primary:hover {
    color: #0A0A12;
}

.spot .btn-secondary {
    background: transparent;
    color: #F5F5FA;
    border-color: rgba(255, 255, 255, .28);
}

.spot .btn-secondary:hover {
    color: #F5F5FA;
    border-color: rgba(255, 255, 255, .5);
}

.spot .spot-note {
    font-size: .9375rem;
    margin-top: 20px;
}

.spot .spot-note a {
    color: #F5F5FA;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spot .store-badge-soon {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    color: #F5F5FA;
}

.spot .store-badge-soon .store-badge-sub {
    color: #A3A6BD;
}

.spot .store-badge-soon-label {
    background: rgba(255, 255, 255, .16);
    color: #F5F5FA;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 264px), 1fr));
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 28px 24px;
}

@media (prefers-color-scheme: dark) {
    .pricing-card {
        backdrop-filter: blur(16px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    }
}

.pricing-card.featured {
    border-color: var(--text);
    box-shadow: var(--shadow-card);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 12px;
    border-radius: 0 var(--r-panel) 0 var(--r-card);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pricing-card .plan-for {
    margin-top: 4px;
    font-size: .875rem;
    color: var(--text-2);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 18px 0 20px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.price span {
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
}

.plan-limits {
    display: grid;
    gap: 8px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.plan-limit {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: .8125rem;
    color: var(--text-2);
}

.plan-limit strong {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.pricing-features {
    display: grid;
    align-content: start;
    gap: 10px;
    margin-bottom: 24px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .875rem;
    color: var(--text-2);
}

.pricing-features .lucide {
    flex: none;
    margin-top: 2px;
    color: var(--success);
}

.pricing-features li.soon .lucide {
    color: var(--text-3);
}

.soon-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: .6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-note {
    margin-top: 24px;
    font-size: .875rem;
    text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.faq-item h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: .9375rem;
}

/* ── Comparison table ─────────────────────────────────────────────────── */

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}

.compare-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: .9375rem;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
}

.compare-table thead th {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--surface-2);
}

.compare-table tbody th {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: none;
}

.yes {
    color: var(--success-ink);
    font-weight: 600;
}

/* This is real prose in the comparison table, not a muted hint — --text-3
   measures 3.23:1 on Frost, below AA. */
.no {
    color: var(--text-2);
}

@media (prefers-color-scheme: dark) {
    .yes {
        color: var(--success);
    }
}

/* ── Store badges ─────────────────────────────────────────────────────────
   The apps are not published yet, so each badge is a non-interactive span
   with a "Coming soon" label — the same state the app renders (see
   web/src/pages/LandingPage/AppStoreBadges.tsx). Turn each span back into an
   <a href> and drop the label when the stores go live. */

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.store-badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: default;
}

.store-badge-soon svg {
    flex: none;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-badge-sub {
    font-size: .6875rem;
    font-weight: 500;
    color: var(--text-2);
}

.store-badge-main {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.store-badge-soon-label {
    margin-top: 3px;
    align-self: flex-start;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--tint-ink);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal-header {
    padding-block: 56px 32px;
    border-bottom: 1px solid var(--line);
}

.legal-header p {
    margin-top: 12px;
    color: var(--text-2);
}

.legal-content {
    padding-block: 40px 72px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.0625rem;
    margin: 24px 0 10px;
}

.legal-content h4 {
    margin-bottom: 6px;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
    margin: 14px 0;
    padding-left: 22px;
    color: var(--text-2);
}

.legal-content ul li {
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--text);
}

.legal-content .card,
.legal-content .panel {
    margin: 20px 0;
}

.highlight-box {
    margin: 24px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--core-600);
    border-radius: var(--r-card);
    background: var(--surface-2);
    color: var(--text-2);
}

@media (prefers-color-scheme: dark) {
    .highlight-box {
        border-left-color: var(--core-400);
    }
}

.rights-grid,
.info-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    margin: 20px 0;
}

.rights-grid p,
.info-grid p {
    font-size: .9375rem;
    margin-bottom: 0;
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: .9375rem;
    color: var(--text-2);
}

/* The "Last updated:" line at the foot of each legal page. */
.last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .875rem;
    color: var(--text-3);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    padding-block: 48px 32px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    margin-bottom: 36px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 34ch;
    font-size: .875rem;
}

.footer-links h4 {
    margin-bottom: 14px;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-2);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text);
    font-size: .875rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--link);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    font-size: .8125rem;
    color: var(--text-2);
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .ambient {
        animation: none;
    }

    .scanner-sweep::after {
        animation: none;
        opacity: .25;
        transform: none;
    }

    .card-hover:hover,
    .btn:active {
        transform: none;
    }
}

/* ── Breakpoints ──────────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container {
        padding-inline: 40px;
    }

    .section {
        padding-block: 88px;
    }

    .section-tight {
        padding-block: 64px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .spot {
        padding: 72px 48px;
    }

    .card {
        padding: 28px;
    }

    .panel {
        padding: 32px;
    }

    .legal-header {
        padding-block: 72px 40px;
    }
}

/* ---------- Blog and article pages ---------- */
.article-header { max-width: 70ch; margin: 0 auto 32px; }
.article-header h1 { margin: 8px 0 12px; overflow-wrap: anywhere; }
.article-header .breadcrumb { font-size: 0.875rem; color: var(--text-2); }
.article-header .breadcrumb a { color: var(--link); }
.article-meta { color: var(--text-2); font-size: 0.9rem; margin: 0; }
.article-body { max-width: 70ch; margin: 0 auto; font-size: 1.0625rem; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.article-body h2 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.5rem; line-height: 1.25; margin: 2.2em 0 0.6em; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.45em; }
.article-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.post-list { list-style: none; margin: 0 auto; padding: 0; max-width: 70ch; display: grid; gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.post-card h2 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.25rem; line-height: 1.3; margin: 0 0 6px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover, .post-card h2 a:focus-visible { color: var(--link); text-decoration: underline; }
.post-card p:last-child { margin: 10px 0 0; color: var(--text-2); }
