/* ────────────────────────────────────────────────────────────────
   Juniper · Landing page
   Sage & cream · classical serif · centered editorial
   ──────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

:root {
    /* Palette — muted sage page, cream cards, dark olive ink */
    --sage:           #9eb097;
    --sage-light:     #b1c1a8;
    --sage-deep:      #54663d;
    --sage-dark:      #3a4a2d;
    --cream:          #f1e9d4;
    --cream-light:    #f7f0dd;
    --cream-card:     #f9f3e2;
    --ink:            #2d3422;
    --ink-soft:       #4a5538;
    --ink-mute:       #7e8a6e;
    --ink-paper:      #f7f0dd;
    --rule:           rgba(45, 52, 34, 0.14);
    --rule-strong:    rgba(45, 52, 34, 0.28);

    /* Typography */
    --font-display:   'EB Garamond', 'Iowan Old Style', Georgia, serif;
    --font-body:      'EB Garamond', 'Iowan Old Style', Georgia, serif;
    --font-mono:      'JetBrains Mono', 'Courier New', monospace;

    /* Layout */
    --container:        1100px;
    --container-narrow: 880px;
    --gutter:           clamp(1.5rem, 5vw, 4rem);
}

body {
    background: var(--sage);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--sage-deep);
    color: var(--ink-paper);
}

/* ──────── Paper grain overlay ──────── */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.07;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ──────── Shared atoms ──────── */
.mono {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    font-weight: 500;
}

a { color: inherit; }

/* ──────── Nav ──────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.1rem var(--gutter);
    background: rgba(158, 176, 151, 0.86);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    border-bottom: 1px solid var(--rule);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
    justify-self: start;
}

.logo-mark {
    width: 24px;
    height: 24px;
    color: var(--sage-dark);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
}

.nav-links {
    justify-self: center;
    display: flex;
    gap: 2.4rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: -3px;
    height: 1px;
    background: var(--ink);
    transition: right 0.3s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav .btn { justify-self: end; }

/* ──────── Buttons ──────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.7rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--sage-deep);
    color: var(--cream-light);
}
.btn-primary:hover { background: var(--sage-dark); }

.btn-ghost {
    color: var(--ink);
    border-color: var(--sage-deep);
    background: transparent;
}
.btn-ghost:hover {
    background: var(--sage-deep);
    color: var(--cream-light);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 0.88rem;
}

/* ──────── Hero — centered ──────── */
.hero {
    text-align: center;
    padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3rem);
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: clamp(2rem, 4vw, 2.8rem);
    color: var(--sage-dark);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 7.5vw, 5.8rem);
    line-height: 1.04;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--sage-dark);
}

.rotating-word {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    min-width: 7ch;
    height: 1.04em;
}

.rotating-word .word {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0.3em);
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(.2,.7,.2,1), transform 0.55s cubic-bezier(.2,.7,.2,1);
    font-style: italic;
    font-weight: 500;
    color: var(--sage-dark);
    white-space: nowrap;
    will-change: opacity, transform;
}

.rotating-word .word.is-active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.rotating-word .word.is-exiting {
    opacity: 0;
    transform: translate(-50%, -0.3em);
}

.hero-sub {
    max-width: 36rem;
    margin: clamp(1.6rem, 3vw, 2.2rem) auto 0;
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.hero-cta {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Hero illustration card */
.hero-illustration {
    max-width: 420px;
    margin: clamp(3rem, 6vw, 4.5rem) auto 0;
    background: var(--cream);
    border-radius: 4px;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--rule);
    text-align: center;
}

.hero-illustration svg {
    width: clamp(140px, 22vw, 200px);
    height: auto;
    color: var(--sage-dark);
    display: block;
    margin: 0 auto;
}

.hero-illustration-caption {
    margin-top: 1.5rem;
    color: var(--sage-deep);
    font-size: 0.62rem;
}

/* ──────── Marquee ──────── */
.marquee {
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    padding: 0.95rem 0;
    overflow: hidden;
    margin-top: clamp(3rem, 6vw, 5rem);
    background: rgba(241, 233, 212, 0.25);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 80s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
    text-transform: uppercase;
}

.marquee-track span { padding-right: 0.3rem; white-space: nowrap; }

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ──────── Intro — centered ──────── */
.intro {
    padding: clamp(5rem, 10vw, 8rem) var(--gutter);
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.intro-eyebrow { margin-bottom: 1.8rem; color: var(--sage-dark); }

.intro-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.55rem, 3.2vw, 2.4rem);
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.intro-headline em {
    font-style: italic;
    font-weight: 500;
    color: var(--sage-dark);
}

.intro-body {
    margin: 1.8rem auto 0;
    max-width: 38rem;
    font-size: 1.1rem;
    line-height: 1.62;
    color: var(--ink-soft);
}

.intro-body em {
    font-style: italic;
    color: var(--ink);
    font-weight: 500;
}

/* ──────── Features ──────── */
.feature {
    padding: clamp(4rem, 8vw, 7rem) var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}

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

.feature-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin-bottom: clamp(2.2rem, 4vw, 3rem);
    text-align: center;
    flex-wrap: wrap;
}

.feature-number {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--sage-dark);
    font-variant-numeric: lining-nums;
}

.feature-tag { color: var(--sage-deep); }

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

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

.feature-text { text-align: left; }

.feature-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.005em;
    max-width: 16ch;
    color: var(--ink);
}

.feature-headline em {
    font-style: italic;
    font-weight: 500;
    color: var(--sage-dark);
}

.feature-body {
    max-width: 36rem;
    margin-top: 1.4rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.feature-body em {
    font-style: italic;
    color: var(--ink);
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.feature-list li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
}

.feature-list .mono {
    color: var(--sage-deep);
    font-size: 0.95rem;
}

.feature-text-wide {
    max-width: 56ch;
    margin: 0 auto;
    text-align: center;
}

/* All feature visuals sit on a cream card */
.feature-visual {
    background: var(--cream);
    border-radius: 4px;
    padding: clamp(1.8rem, 3.5vw, 2.8rem);
    border: 1px solid var(--rule);
}

/* ──────── 01 · POS mockup ──────── */
.pos-mockup {
    background: var(--cream-card);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 1.6rem 1.5rem 1.4rem;
    max-width: 460px;
    margin: 0 auto;
}

.pos-mockup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0.9rem;
}

.pos-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
}

.pos-mockup-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pos-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pos-item-name {
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--ink);
    line-height: 1.3;
    font-weight: 500;
}

.pos-item-meta {
    margin-top: 0.18rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    text-transform: uppercase;
}

.pos-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.pos-mockup-totals {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pos-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.96rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.pos-line-total {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    font-weight: 600;
}

.pos-complete {
    margin-top: 1.2rem;
    width: 100%;
    background: var(--sage-deep);
    color: var(--cream-light);
    padding: 0.85rem;
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.18s ease;
}

.pos-complete:hover { background: var(--sage-dark); }

.pos-mockup-foot {
    margin-top: 0.9rem;
    text-align: center;
    color: var(--ink-mute);
    font-size: 0.6rem;
}

/* ──────── 02 · Phone + lens ──────── */
.phone-frame {
    width: 270px;
    height: 540px;
    background: linear-gradient(180deg, #1f261c 0%, #11160e 100%);
    border-radius: 38px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 1.5px rgba(45, 52, 34, 0.6),
        0 18px 36px -22px rgba(45, 52, 34, 0.45);
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 20px;
    background: #0a0f08;
    border-radius: 12px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0a0f08;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lens-viewfinder {
    flex: 1;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(158, 176, 151, 0.16) 0%, transparent 60%),
        linear-gradient(180deg, #1c2218 0%, #0d1209 100%);
    overflow: hidden;
}

.lens-subject {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: 70%;
    height: 70%;
    color: var(--cream-light);
    opacity: 0.82;
}

.lens-scanline {
    position: absolute;
    left: 14%;
    right: 14%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(241, 233, 212, 0.7), transparent);
    box-shadow: 0 0 14px 2px rgba(241, 233, 212, 0.3);
    animation: scan 3.6s cubic-bezier(.5,0,.5,1) infinite;
}

@keyframes scan {
    0%   { top: 18%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { top: 82%; opacity: 1; }
    60%  { opacity: 0; }
    100% { top: 82%; opacity: 0; }
}

.lens-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--cream-light);
}

.lens-corner-tl { top: 28%; left: 12%; border-right: none; border-bottom: none; }
.lens-corner-tr { top: 28%; right: 12%; border-left: none; border-bottom: none; }
.lens-corner-bl { bottom: 32%; left: 12%; border-right: none; border-top: none; }
.lens-corner-br { bottom: 32%; right: 12%; border-left: none; border-top: none; }

.lens-readout {
    background: rgba(10, 15, 8, 0.94);
    border-top: 1px solid rgba(241, 233, 212, 0.1);
    padding: 1rem 1.1rem 1.2rem;
    color: var(--cream-light);
}

.lens-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lens-confidence {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--cream-light);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.lens-pct {
    font-size: 1.05rem;
    font-weight: 400;
    margin-left: 0.05em;
    color: rgba(241, 233, 212, 0.65);
}

.lens-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    line-height: 1.25;
    color: var(--cream-light);
    font-weight: 500;
}

.lens-meta {
    margin-top: 0.18rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(241, 233, 212, 0.5);
}

.lens-action {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(241, 233, 212, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-light);
    font-weight: 500;
}

/* ──────── 03 · Search demo ──────── */
.search-demo {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: clamp(1.8rem, 4vw, 2.6rem);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    background: var(--cream-light);
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    max-width: 100%;
    transition: border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--sage-deep);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--sage-deep);
    flex-shrink: 0;
}

#theme-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 0.55rem 0;
    color: var(--ink);
    font-style: italic;
}

#theme-input::placeholder {
    color: var(--ink-mute);
    font-style: italic;
}

.search-go {
    background: var(--sage-deep);
    color: var(--cream-light);
    border: none;
    border-radius: 2px;
    padding: 0.65rem 1.4rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-go:hover { background: var(--sage-dark); }

.search-suggestions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.search-suggestions .mono {
    margin-right: 0.5rem;
    color: var(--ink-mute);
}

.chip {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    background: transparent;
    border: 1px solid var(--rule-strong);
    color: var(--ink-soft);
    padding: 0.28rem 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
    background: var(--sage-deep);
    color: var(--cream-light);
    border-color: var(--sage-deep);
}

.search-meta {
    margin-top: 1.8rem;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-meta strong {
    color: var(--sage-dark);
    font-weight: 500;
}

.search-meta em {
    color: var(--sage-dark);
    font-style: italic;
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.search-results {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.9rem;
}

.result-card {
    background: var(--cream-card);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 1.1rem 1.2rem;
    opacity: 0;
    transform: translateY(8px);
    animation: card-in 0.5s cubic-bezier(.2,.7,.2,1) forwards;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: var(--sage-deep);
}

@keyframes card-in {
    to { opacity: 1; transform: translateY(0); }
}

.result-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 500;
}

.result-meta {
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    text-transform: uppercase;
}

.result-foot {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
}

.result-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.result-reason {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--sage-deep);
    text-align: right;
    max-width: 60%;
    line-height: 1.3;
}

/* ──────── 04 · No-tag match ──────── */
.match-diagram {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.match-unknown {
    align-self: center;
    text-align: center;
}

.match-q {
    width: 130px;
    height: 130px;
    border: 1.5px dashed var(--sage-deep);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 4.5rem;
    color: var(--sage-deep);
    background: rgba(241, 233, 212, 0.4);
    font-weight: 500;
}

.match-card-label {
    margin-top: 0.7rem;
    color: var(--sage-deep);
}

.match-lines {
    width: 100%;
    height: 280px;
    align-self: center;
}

.match-line-best {
    stroke: var(--sage-dark);
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 1.6s cubic-bezier(.7,0,.3,1) forwards;
    animation-delay: 0.3s;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.match-candidates {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    min-width: 240px;
    padding: 0;
}

.match-card {
    background: var(--cream-card);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0.95rem 1.1rem;
    transition: border-color 0.2s ease;
}

.match-card-best {
    background: var(--cream-light);
    border-color: var(--sage-dark);
    border-width: 1.5px;
    box-shadow: inset 3px 0 0 var(--sage-dark);
}

.match-card-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.3;
    font-weight: 500;
}

.match-card-best .match-card-name { color: var(--sage-dark); }

.match-card-meta {
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    text-transform: uppercase;
}

.match-card-best .match-card-meta {
    color: var(--sage-deep);
    font-weight: 500;
}

/* ──────── CTA — cream card on sage ──────── */
.cta {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
}

.cta-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta-eyebrow { margin-bottom: 1.5rem; color: var(--sage-deep); }

.cta-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.cta-headline em {
    font-style: italic;
    font-weight: 500;
    color: var(--sage-dark);
}

.cta-sub {
    margin: 1.8rem auto 0;
    max-width: 36rem;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.cta-buttons {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ──────── Footer ──────── */
.footer {
    border-top: 1px solid var(--rule-strong);
    padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
    background: var(--sage);
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule);
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-tagline {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 28rem;
    line-height: 1.55;
    font-style: italic;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--sage-dark);
    font-weight: 500;
    font-size: 0.68rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    max-width: var(--container);
    margin: 1.8rem auto 0;
    color: var(--ink-mute);
    font-size: 0.6rem;
    text-align: center;
}

/* ──────── Scroll reveals ──────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ──────── Responsive ──────── */
@media (max-width: 1020px) {
    .nav-links { display: none; }

    .nav { grid-template-columns: auto 1fr auto; }
    .logo { justify-self: start; }

    .feature-grid,
    .feature-grid-flip {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-grid-flip .feature-visual { order: 2; }

    .feature-text { text-align: center; max-width: 36rem; margin: 0 auto; }
    .feature-headline { margin: 0 auto; }
    .feature-list { display: inline-flex; text-align: left; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .match-diagram {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .match-lines { display: none; }
    .match-unknown { justify-self: center; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-illustration { padding: 2rem 1.5rem; }
    .feature-head { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
