/* ═══════════════════════════════════════════════════════════
   FloorRadar — Homepage v2.46 (Bold Editorial)
   Cream + ink + sienna. Left-aligned hero. § marginalia.
   Hairline rules between sections. No gradients. No chip.
   Motion budget: 4 above fold + 2 below (per v2.46-brand-spec §4).
   ═══════════════════════════════════════════════════════════ */

/* display=optional: use fallback if custom font doesn't load in 100ms — eliminates
   the font-swap CLS shift that was driving homepage CLS to 0.10. On fast
   connections fonts still load and apply; on slow they're skipped (this load only). */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600;1,8..60,700&display=optional');

:root {
    /* Mirror canonical tokens (in case home.css is loaded standalone) */
    --ink: #0E1B2C;
    --ink-soft: #2B3A4E;
    --paper: #FFFFFF;
    --paper-soft: #F5F5F5;
    --accent: #D14C2A;
    --accent-deep: #A83817;
    --rule: rgba(14, 27, 44, 0.12);
    --rule-strong: rgba(14, 27, 44, 0.22);
    --positive: #0B6E4F;
    --negative: #B6371F;

    --radius-none: 0;
    --radius-sharp: 2px;
    --radius-pill: 999px;

    --duration-fast: 150ms;
    --duration-base: 200ms;
    --duration-slow: 300ms;
    --duration-deliberate: 500ms;
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, "Times New Roman", serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; transition: color var(--duration-fast) var(--ease-standard); }
a:hover { color: var(--accent-deep); }

/* ─── Shared container ─────────────────────────────────── */
.frame {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

/* ─── Topbar ───────────────────────────────────────────── */
.topbar {
    position: relative;
    padding: 24px 0 20px;
}
/* topbar.css (loaded after) adds horizontal padding for pages without .frame.
   The homepage uses .frame.topbar-inner for horizontal spacing — reset to avoid
   double padding that causes overflow on iPhone 17 (393px viewport). */
.page-home .topbar {
    padding-left: 0;
    padding-right: 0;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex; align-items: baseline; gap: 12px;
    color: var(--ink);
}
.brand-mark {
    width: 28px; height: 28px;
    display: inline-block;
    transform: translateY(4px);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.015em;
    line-height: 1;
}
.topbar-nav {
    display: inline-flex; align-items: center; gap: 28px;
    font-size: 0.92rem;
}
.topbar-nav a {
    color: var(--ink-soft);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}
.topbar-nav a:not(.signin-link)::after {
    content: '';
    position: absolute;
    left: 0; bottom: 4px;
    height: 1px; width: 0;
    background: var(--ink);
    transition: width var(--duration-base) var(--ease-out);
}
.topbar-nav a:not(.signin-link):hover::after { width: 100%; }
.topbar-nav a:hover { color: var(--ink); }
/* Active page — underline always visible, full opacity */
.topbar-nav a.nav-current { color: var(--ink); font-weight: 600; }
.topbar-nav a.nav-current::after { width: 100%; }
.nav-drawer-link--current { font-weight: 700; }
/* Sign in — quiet text link, not a button */
.signin-link {
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    padding: 8px 0;
    transition: color var(--duration-fast) var(--ease-standard);
}
.signin-link:hover { color: var(--ink); }

/* Topbar acquisition CTA — sienna pill */
.topbar-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--paper);
    font-weight: 600; font-size: 0.92rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    min-height: 44px;
    transition: background var(--duration-fast) var(--ease-standard),
                transform var(--duration-base) var(--ease-spring);
}
/* --accent-deep (#A83817) on white (#fff) = 5.97:1 contrast — passes WCAG AA.
   --accent (#D14C2A) on white = 4.12:1 which fails at this font size. */
.topbar-cta { background: var(--accent-deep); }
.topbar-cta:hover { background: var(--accent); color: var(--paper); }
.topbar-cta:active { transform: scale(0.97); }

/* Hairline under topbar */
.topbar::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--rule);
    margin-top: 20px;
}

/* ─── Section marginalia: § 01, § 02 ────────────────── */
.section-mark {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 28px;
}
.section-mark::before {
    content: '';
    display: inline-block;
    width: 28px; height: 1px;
    background: var(--ink-soft);
    opacity: 0.6;
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
    padding: 72px 0 96px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: end;
}
.hero-copy {
    max-width: 640px;
}
.hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.5rem, 6.2vw, 5rem);
    letter-spacing: -0.025em;
    line-height: 1.02;
    color: var(--ink);
    margin-bottom: 28px;
}
.hero-title .accent-word {
    color: var(--accent);
    font-style: italic;
    /* Single accent word — see brand-spec §2 accent budget rule */
}
.hero-sub {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-ctas {
    display: inline-flex; align-items: center; gap: 24px;
    flex-wrap: wrap;
}
.hero-foot {
    margin-top: 36px;
    color: var(--ink-soft);
    font-size: 0.85rem;
    max-width: 480px;
    line-height: 1.5;
}

/* ─── CTAs ─────────────────────────────────────────────── */
/* Marketing primary: filled sienna pill with magnetic spring on hover */
.cta-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--paper);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.005em;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    min-height: 48px;
    transition: background var(--duration-fast) var(--ease-standard),
                transform var(--duration-base) var(--ease-spring);
    will-change: transform, background;
}
.cta-primary:hover {
    background: var(--accent-deep);
    color: var(--paper);
}
.cta-primary:active { transform: scale(0.97); }

/* Marketing secondary: underlined text-link with chevron, no fill */
.cta-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}
.cta-secondary::after {
    content: '';
    position: absolute;
    left: 0; right: 16px; bottom: 8px;
    height: 1px;
    background: var(--ink);
    transition: right var(--duration-base) var(--ease-out);
}
.cta-secondary:hover { color: var(--ink); }
.cta-secondary:hover::after { right: 0; }
.cta-secondary .chevron {
    display: inline-block;
    transition: transform var(--duration-base) var(--ease-out);
}
.cta-secondary:hover .chevron { transform: translateX(4px); }

/* ─── Hero chart (animated, real-data-shaped) ─────────── */
.hero-chart {
    aspect-ratio: 5 / 4;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 32px 64px rgba(0, 0, 0, 0.30);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}
/* Sonar ring — expands and fades to show "live" data */
.hero-chart::before {
    content: '';
    position: absolute;
    right: 24px;
    top: calc(57px + 19%);
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(209, 76, 42, 0.85);
    animation: hero-sonar 2.6s ease-out 2.2s infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes hero-sonar {
    0%   { transform: scale(1);   opacity: 0.9; }
    70%  { transform: scale(3.2); opacity: 0;   }
    100% { transform: scale(3.2); opacity: 0;   }
}
/* Solid dot — glows in sync with the ring */
.hero-chart::after {
    content: '';
    position: absolute;
    right: 24px;
    top: calc(57px + 19%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(209, 76, 42, 0.20), 0 0 12px rgba(209, 76, 42, 0.5);
    animation: hero-dot-blink 2.6s ease-in-out 2.2s infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes hero-dot-blink {
    0%, 100% { opacity: 1;    box-shadow: 0 0 0 2px rgba(209,76,42,0.20), 0 0 12px rgba(209,76,42,0.50); }
    35%      { opacity: 0.55; box-shadow: 0 0 0 1px rgba(209,76,42,0.10), 0 0  5px rgba(209,76,42,0.25); }
    50%      { opacity: 1;    box-shadow: 0 0 0 3px rgba(209,76,42,0.28), 0 0 18px rgba(209,76,42,0.70); }
}
.hero-chart-label {
    position: absolute; top: 18px; left: 28px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
}
.hero-chart-badge {
    position: absolute; top: 20px; right: 28px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}
.hero-chart-value {
    position: absolute; top: 38px; left: 28px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-feature-settings: "tnum";
}
.hero-chart-value .delta {
    color: #4ADE80;
    font-size: 0.85rem;
    margin-left: 10px;
    font-weight: 500;
}
.hero-chart svg {
    position: absolute;
    inset: 80px 28px 24px 28px;
    width: calc(100% - 56px);
    height: calc(100% - 104px);
}
.hero-chart-grid {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}
.hero-area {
    opacity: 0;
    animation: hero-area-fade 700ms ease-out 1850ms forwards;
}
@keyframes hero-area-fade { to { opacity: 1; } }
.hero-chart-ref {
    stroke: rgba(209, 76, 42, 0.35);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}
.hero-chart-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-chart-line.primary  { stroke: var(--accent); }
.hero-chart-line.secondary { stroke: rgba(255, 255, 255, 0.30); stroke-width: 1.5; stroke-dasharray: 4 4; }
/* Path-draw animation — runs once on load (above-fold motion #4) */
.hero-chart-line.animate {
    stroke-dasharray: 750;
    stroke-dashoffset: 750;
    animation: drawPath 1600ms var(--ease-out) 200ms forwards;
}
.hero-chart-line.secondary.animate {
    stroke-dasharray: 750;
    stroke-dashoffset: 750;
    animation: drawPath 1600ms var(--ease-out) 400ms forwards, dash-after 0s 2100ms forwards;
}
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes dash-after { to { stroke-dasharray: 4 4; } }

.hero-chart-caption {
    position: absolute; bottom: 16px; left: 28px; right: 28px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.28);
    display: flex; justify-content: space-between;
}

/* ─── Stats trio (flush-left, no card) ────────────────── */
.stats {
    padding: 64px 0;
    position: relative;
}
.stats::before {
    content: '';
    position: absolute; top: 0; left: 32px; right: 32px;
    height: 1px;
    background: var(--rule);
    transform-origin: left;
    /* Hairline draw-in (above-fold motion #3) */
    transform: scaleX(0);
    animation: drawRule 900ms var(--ease-out) 600ms forwards;
}
@keyframes drawRule { to { transform: scaleX(1); } }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1100px;
}
.stat {
    display: flex; flex-direction: column; gap: 8px;
}
.stat-num {
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
    /* Animated counter handled by JS (above-fold motion #2) */
}
/* Coverage stat shows "X yrs Y mo" — prevent wrapping; grid auto-widens this column */
#statDataCoverage { white-space: nowrap; }

/* Vertical hairlines between stats. Left half of the gap (-24px = half of 48px).
   On mobile the grid is single-column, so hairlines flip to horizontal top-borders. */
.stats-grid .stat { position: relative; }
.stats-grid .stat + .stat::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--rule);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.4;
    max-width: 220px;
}

/* ─── TO-gap section (§ 02, structurally distinct from cross-TO) ─── */
.to-gap {
    padding: 96px 0;
    border-top: 1px solid var(--rule);
}
.to-gap-lead {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--ink);
    max-width: 940px;
    margin-bottom: 44px;
}
.to-gap-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}
.to-gap-body > p {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 640px;
}
/* §02 split: Problem (left) vs FloorRadar answer (right) */
.to-gap-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.to-gap-problem,
.to-gap-answer { }
.to-gap-problem-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.to-gap-answer .to-gap-problem-label { color: var(--accent-deep); }
.to-gap-split ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.to-gap-split li {
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--ink-soft);
    padding-left: 18px;
    position: relative;
}
.to-gap-split li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rule-strong);
}
.to-gap-answer li::before { background: var(--accent); }
@media (max-width: 600px) {
    .to-gap-split { grid-template-columns: 1fr; gap: 28px; }
}
.to-gap-kicker {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.35;
    color: var(--ink);
    border-left: 2px solid var(--accent);
    padding-left: 28px;
    max-width: 380px;
}
/* Pull-quote (Pass 2 addition): full-width, attributed to a generic
   IL VGT operator. Accent reserved for the keyword (.accent-word)
   per the 5%-coverage rule in v2.46-brand-spec §2. */
.to-gap-pullquote {
    margin-top: 64px;
    padding: 28px 0 0;
    border-top: 1px solid var(--rule);
    max-width: 880px;
}
.to-gap-pullquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.to-gap-pullquote .accent-word { color: var(--accent); }
.to-gap-pullquote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ─── Cross-TO band — split panel layout ───────────────────── */
.cross-to {
    border-top: none;
    padding: 0;
    background: var(--ink);
    overflow: hidden;
}

/* Full-bleed split: text left, venue photo right */
.cross-to-split {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: 580px;
}
.cross-to-content-panel {
    display: flex;
    align-items: center;
    padding: 96px 56px;
}
.cross-to-content-inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-left: 0;
}
/* Inside the dark split, collapse the 2-column copy/quote grid to single column */
.cross-to-split .cross-to-grid {
    grid-template-columns: 1fr;
    gap: 32px;
}
.cross-to-split .cross-to-quote {
    max-width: 480px;
}
.cross-to-photo-panel {
    overflow: hidden;
    position: relative;
}
.cross-to-photo-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.88);
    transition: filter 0.4s ease;
}
.cross-to-photo-panel:hover img {
    filter: brightness(0.95);
}

/* Text inside the dark split panel — 0.70 opacity on dark navy = ~5.9:1 contrast */
.cross-to .section-mark {
    color: rgba(255, 255, 255, 0.70);
}
.cross-to .section-mark::before {
    background: rgba(255, 255, 255, 0.35);
}
.cross-to-title,
.cross-to h2 {
    color: #FFFFFF;
}
.cross-to-copy p {
    color: rgba(255, 255, 255, 0.70);
}
.cross-to-quote {
    border-left-color: var(--accent);
}
.cross-to-quote p {
    color: #FFFFFF;
}
.cross-to-quote cite {
    color: rgba(255, 255, 255, 0.5);
}

/* Map screenshot below the split — dark bg, boosted shadow */
.cross-to > .frame {
    padding-top: 56px;
    padding-bottom: 80px;
}
.cross-to .product-shot {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.25),
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 32px 80px rgba(0, 0, 0, 0.20);
    border-color: rgba(255, 255, 255, 0.12);
}
.cross-to-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}
.cross-to-copy h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 24px;
    max-width: 540px;
}
.cross-to-copy p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 16px;
    max-width: 580px;
}
.cross-to-quote {
    border-left: 2px solid var(--accent);
    padding: 8px 0 8px 28px;
    margin-top: 12px;
}
.cross-to-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.45;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.cross-to-quote cite {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Playbooks teaser (numbered editorial entries, NOT cards) ─── */
.playbooks {
    padding: 96px 0;
    border-top: 1px solid var(--rule);
}
.playbooks-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    margin-bottom: 56px;
    align-items: end;
}
.playbooks h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}
.playbooks-intro {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 460px;
    padding-bottom: 8px;
}
.playbook-list {
    list-style: none;
    counter-reset: playbook;
    display: flex; flex-direction: column;
    border-top: 1px solid var(--rule);
}
.playbook-item {
    counter-increment: playbook;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
}
.playbook-item::before {
    content: counter(playbook, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.playbook-item h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.playbook-item p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 720px;
}
.playbooks-link {
    margin-top: 40px;
}

/* ─── Proof quote (no card) ───────────────────────────── */
.proof {
    padding: 96px 0;
    border-top: 1px solid var(--rule);
}
.proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 80px;
    align-items: start;
}
.proof-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.4;
    color: var(--ink);
    max-width: 640px;
}
.proof-quote::before {
    content: '"';
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1.4em;
    line-height: 0;
    vertical-align: -0.15em;
    margin-right: 0.05em;
}
.proof-cite {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 28px;
    font-style: normal;
    display: block;
}
.proof-disclosure {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 420px;
    padding-top: 8px;
}


/* ─── Closer band (single magnetic CTA, no full hero) ──── */
.closer {
    padding: 112px 0 96px;
    border-top: 1px solid var(--rule);
    background: var(--paper-soft);
}
.closer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto;
    gap: 56px;
    align-items: end;
}
.closer h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 4.2vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--ink);
    max-width: 640px;
}
.closer-sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-top: 18px;
    max-width: 520px;
    line-height: 1.55;
}
.closer-cta {
    /* Magnetic CTA target — JS attaches transform on mousemove */
    will-change: transform;
    transition: transform 400ms var(--ease-spring), background var(--duration-fast) var(--ease-standard);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    padding: 40px 0 56px;
    border-top: 1px solid var(--rule);
    background: var(--paper);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.footer-brand {
    display: inline-flex; align-items: baseline; gap: 10px;
    margin-bottom: 12px;
}
.footer-pitch {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 380px;
}
.footer-nav {
    display: flex; flex-direction: column; gap: 10px;
    font-size: 0.9rem;
}
.footer-nav a {
    color: var(--ink-soft);
    position: relative;
    width: fit-content;
    padding: 4px 0;
}
.footer-nav a::after {
    content: '';
    position: absolute; left: 0; bottom: 2px;
    height: 1px; width: 0;
    background: var(--ink);
    transition: width var(--duration-base) var(--ease-out);
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav a:hover::after { width: 100%; }
.footer-meta {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
    display: flex; justify-content: space-between; align-items: center;
}

/* ─── Scroll reveal (above-fold motion #1) ──────────── */
/* Progressive enhancement: content visible by default for no-JS, reduced-motion,
   and tall-page screenshot capture. JS adds .js-motion to <html> to opt in. */
.js-motion .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-motion .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 920px) {
    .frame { padding: 0 24px; }
    .hero { padding: 56px 0 72px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: stretch;
    }
    .hero-chart { aspect-ratio: 4 / 3; }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    /* Mobile: vertical hairlines gone → horizontal top-borders */
    .stats-grid .stat + .stat::before { display: none; }
    .stats-grid .stat + .stat {
        padding-top: 24px;
        border-top: 1px solid var(--rule);
    }
    .cross-to-split {
        grid-template-columns: 1fr;
    }
    .cross-to-photo-panel {
        height: 300px;
        order: -1; /* photo above text on mobile */
    }
    .cross-to-content-panel {
        padding: 56px 24px;
    }
    .cross-to-content-inner {
        padding-left: 0;
        max-width: none;
    }
    .cross-to-grid,
    .proof-grid,
    .playbooks-header,
    .closer-grid,
    .footer-grid,
    .to-gap-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .to-gap-kicker { max-width: none; }
    .closer { padding: 80px 0; }
    .closer-grid { align-items: start; }
}

@media (max-width: 600px) {
    .frame { padding: 0 20px; }
    .hero { padding: 40px 0 56px; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 2.8rem); }
    .topbar-nav { gap: 18px; font-size: 0.85rem; }
    .topbar-nav a:not(.signin-link):not(.topbar-cta) { display: none; }
    .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
    .hero-ctas .cta-primary { width: 100%; }
    .stats { padding: 48px 0; }
    .cross-to, .playbooks, .proof, .to-gap { padding: 64px 0; }
    .to-gap-lead { margin-bottom: 28px; }
    .playbook-item { grid-template-columns: 48px 1fr; gap: 16px; }
    .playbook-item::before { font-size: 0.85rem; }
    .playbook-item h3 { font-size: 1.25rem; }
    .closer-grid { gap: 24px; }
}

/* ─── Dark hero entrance ────────────────────────────────── */
/* Topbar merges seamlessly into the hero — one continuous dark band */
.page-home .topbar {
    background: var(--ink);
}
.page-home .topbar::after {
    display: none;
}
/* Brand mark uses currentColor — give it white on the dark hero */
.page-home .brand { color: rgba(255, 255, 255, 0.85); }
.page-home .brand-name,
.page-home .topbar-nav a {
    color: rgba(255, 255, 255, 0.82);
}
.page-home .topbar-nav .signin-link {
    color: rgba(255, 255, 255, 0.95) !important;
}
.page-home .topbar-nav a:hover,
.page-home .topbar-nav .signin-link:hover {
    color: #FFFFFF;
}
.page-home .topbar-nav a:not(.signin-link):not(.topbar-cta)::after {
    background: rgba(255, 255, 255, 0.7);
}

/* Hero section-mark: --ink-soft is dark on dark navy — fails contrast without override */
.hero .section-mark {
    color: rgba(255, 255, 255, 0.70);
}
.hero .section-mark::before {
    background: rgba(255, 255, 255, 0.50);
    opacity: 1;
}

.hero {
    background: var(--ink);
}
.hero .section-mark {
    color: rgba(255, 255, 255, 0.45);
}
.hero .section-mark::before {
    background: rgba(255, 255, 255, 0.35);
}
.hero-title {
    color: #FFFFFF;
}
.hero-sub {
    color: rgba(255, 255, 255, 0.72);
}
.hero-foot {
    color: rgba(255, 255, 255, 0.45);
}
/* Secondary CTA on dark background */
.hero .cta-secondary {
    color: rgba(255, 255, 255, 0.85);
}
.hero .cta-secondary::after {
    background: rgba(255, 255, 255, 0.7);
}
.hero .cta-secondary:hover {
    color: #FFFFFF;
}
.hero .cta-secondary:hover::after {
    background: #FFFFFF;
}
/* Hero chart is a dark glass card — matches the hero's navy tone */

/* ─── Terracotta closer ──────────────────────────────────── */
.closer {
    background: var(--accent);
    border-top: none;
}
.closer h2 {
    color: #FFFFFF;
}
.closer-sub {
    color: rgba(255, 255, 255, 0.75);
}
.closer-cta {
    background: #FFFFFF;
    color: var(--accent);
}
.closer-cta:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-deep);
}

/* ─── Product screenshots — cinematic treatment ─────────── */
.product-shot-wrap {
    margin-top: 72px;
    /* Break slightly outside the frame for a cinematic feel */
    margin-left: -24px;
    margin-right: -24px;
}
.product-shot {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(14, 27, 44, 0.10),
        0 4px 8px rgba(14, 27, 44, 0.08),
        0 16px 40px rgba(14, 27, 44, 0.14),
        0 48px 100px rgba(14, 27, 44, 0.14);
    transition: transform 0.4s ease;
}
.product-shot:hover {
    box-shadow:
        0 0 0 1px rgba(14, 27, 44, 0.12),
        0 8px 16px rgba(14, 27, 44, 0.10),
        0 24px 56px rgba(14, 27, 44, 0.18),
        0 64px 120px rgba(14, 27, 44, 0.16);
    transform: translateY(-3px);
}
/* Browser chrome bar — signals "real product UI" */
.product-shot::before {
    content: '';
    display: block;
    height: 32px;
    background: #1C2535;
    background-image: radial-gradient(circle at 16px 50%, #FF5F57 5px, transparent 5px),
                      radial-gradient(circle at 28px 50%, #FEBC2E 5px, transparent 5px),
                      radial-gradient(circle at 40px 50%, #28C840 5px, transparent 5px);
}
.product-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* On dark section backgrounds — lighter shadow treatment */
.cross-to .product-shot {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.20),
        0 16px 40px rgba(0, 0, 0, 0.30),
        0 48px 100px rgba(0, 0, 0, 0.28);
}
.cross-to .product-shot:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10),
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 24px 56px rgba(0, 0, 0, 0.36),
        0 64px 120px rgba(0, 0, 0, 0.32);
}
.cross-to .product-shot::before {
    background: #0E1B2C;
    background-image: radial-gradient(circle at 16px 50%, rgba(255,255,255,0.2) 5px, transparent 5px),
                      radial-gradient(circle at 28px 50%, rgba(255,255,255,0.2) 5px, transparent 5px),
                      radial-gradient(circle at 40px 50%, rgba(255,255,255,0.2) 5px, transparent 5px);
}

/* ─── Reduced motion overrides ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .stats::before { transform: scaleX(1); animation: none; }
    .hero-chart-line.animate { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
    .hero-chart-line.secondary.animate { stroke-dasharray: 4 4; }
    .closer-cta { transform: none !important; transition: background var(--duration-fast) var(--ease-standard); }
}

/* ─── Hamburger button (hidden on desktop) ──────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 8px;
    flex-shrink: 0;
    color: inherit;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    width: 22px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.15s ease;
    transform-origin: center;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile navigation drawer ─────────────────────────── */
/* Drawer sits directly after .topbar in DOM. Fixed so it doesn't scroll. */
.nav-drawer {
    display: none;
    position: fixed;
    /* 60px = safe topbar height estimate — pushes content below header */
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--paper, #FAFAF8);
    border-bottom: 1px solid rgba(14, 27, 44, 0.10);
    box-shadow: 0 12px 40px rgba(14, 27, 44, 0.14);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.18s ease;
    pointer-events: none;
}
.nav-drawer.is-open {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.nav-drawer .nav-drawer-link,
.nav-drawer .nav-drawer-signin {
    display: block;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink, #1C1917);
    border-bottom: 1px solid rgba(14, 27, 44, 0.07);
}
.nav-drawer .nav-drawer-link:hover,
.nav-drawer .nav-drawer-signin:hover {
    background: rgba(14, 27, 44, 0.03);
}
.nav-drawer .nav-drawer-signin {
    color: var(--ink-soft, #57534E);
    font-weight: 400;
}
.nav-drawer .nav-drawer-cta {
    display: block;
    margin: 16px 24px 24px;
    padding: 16px 24px;
    background: var(--accent, #D14C2A);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
}
.nav-drawer .nav-drawer-cta:hover { background: #b83c1e; color: #fff; }

/* Dark homepage topbar: invert hamburger spans to white */
.page-home .nav-hamburger span { background: rgba(255, 255, 255, 0.85); }

/* ─── Mobile breakpoint overrides ──────────────────────── */
@media (max-width: 600px) {
    .nav-hamburger { display: flex; }
    /* Hide desktop nav links — drawer handles them on mobile */
    .topbar-nav a:not(.topbar-cta) { display: none; }
    /* Homepage keeps the pill CTA visible on mobile as primary acquisition CTA.
       topbar.css hides it globally; override here for the homepage only. */
    .page-home .topbar-cta { display: inline-flex !important; }
    /* Remove product-shot cinematic bleed to prevent horizontal overflow */
    .product-shot-wrap { margin-left: 0; margin-right: 0; }
}
