/* ============================================================
   Markor marketing — Millwork-first (2026-07).
   Tokens live in tokens.css (generated from modulus-core). The
   short-name vars used below — --bg, --text, --accent, --sans,
   etc. — are declared there as aliases to the canonical
   --color-* set.

   Type system matches the Millwork app: ONE FACE (Nunito Sans),
   hierarchy carried by weight + size. No serif, no mono.

   Shared chrome (.site-header, .button*, .hero-*, .site-footer,
   .product-*) is also used by /chatdfh — keep class contracts
   stable when editing.
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 880px) {
    html, body { overflow-x: hidden; }
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 78%);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ────────────────────────── Header ────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
    background: var(--bg);
    overflow: hidden;
    transition: box-shadow 220ms ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(45, 40, 35, 0.08);
}

.brand,
.nav-actions,
.primary-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 11px;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-mark {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 4px;
}

.brand-logo {
    display: block;
    height: 34px;
    width: auto;
}

/* "Markor" 800 + "Millwork" 500, one line of Nunito Sans */
.brand-name {
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
}

.brand-product {
    font-weight: 500;
    color: var(--muted);
}

.primary-nav {
    justify-content: center;
    gap: 27px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.primary-nav a,
.sign-in {
    transition: color 160ms ease;
}

.primary-nav a:hover,
.sign-in:hover {
    color: var(--text);
}

.nav-actions {
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* ────────────────────────── Buttons ────────────────────────── */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fffaf3;
    background: var(--accent);
    box-shadow: 0 10px 28px rgba(179, 69, 25, 0.22);
}

.button-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 14px 36px rgba(179, 69, 25, 0.28);
}

.button-secondary {
    background: rgba(255, 252, 246, 0.62);
    border-color: var(--line-strong);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--surface-solid);
    border-color: rgba(37, 33, 29, 0.28);
    box-shadow: 0 12px 32px rgba(45, 40, 35, 0.08);
}

.button-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.button .arrow {
    width: 16px;
    height: 12px;
    margin-left: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.button:hover .arrow {
    transform: translateX(3px);
}

/* ────────────────────────── Type ────────────────────────── */
h1,
h2,
h3,
p {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    max-width: 13ch;
    margin-bottom: 22px;
    font-family: var(--sans);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.eyebrow-brand {
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 800;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(34px, 3.8vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-heading h2 .accent {
    color: var(--accent);
}

.section-sub {
    margin: 18px 0 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.65;
}

/* ────────────────────────── Reveal ────────────────────────── */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

.js [data-reveal].no-anim {
    transition: none;
}

/* ────────────────────────── Hero (cine) ──────────────────────────
   Full-bleed video hero: the promo loop plays edge-to-edge behind
   the section, copy overlaid on the left over a scrim. Until
   assets/millwork/hero.mp4 exists, the drafting-paper fallback
   shows. app.js adds .has-video when the video can play.
   ────────────────────────────────────────────────────────────── */
.hero-cine {
    padding: 0 0 84px;
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(37, 33, 29, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 33, 29, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    background-size: 48px 48px, 48px 48px, auto;
}

/* faint plan rooms + marker swash, kept to the right half of the frame */
.hf-room {
    position: absolute;
    top: 16%;
    right: 8%;
    width: 30%;
    height: 50%;
    border: 1.5px dashed rgba(43, 40, 37, 0.18);
    border-radius: 2px;
}

.hf-room-2 {
    top: 40%;
    right: 30%;
    width: 18%;
    height: 34%;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(43, 40, 37, 0.14);
}

.hf-marker {
    position: absolute;
    top: 27%;
    right: 13%;
    width: 21%;
    height: 26px;
    border-radius: 13px;
    background: rgba(217, 119, 6, 0.13);
    transform: rotate(-3deg);
}

/* full-frame video: the whole 16:9 composition stays visible,
   left/right edges dissolve into the page bg instead of a card border */
.hero-frame {
    position: absolute;
    inset: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease;
}

.hero-cine.has-video .hero-video {
    opacity: 1;
}

/* the drafting-paper fallback (grid + plan doodles) is only for
   pre-video; once footage plays it'd peek out beside the centered frame */
.hero-cine.has-video .hero-fallback {
    display: none;
}

/* left scrim keeps the copy readable over the footage */
.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(246, 244, 241, 0.95) 0%,
            rgba(246, 244, 241, 0.86) 30%,
            rgba(246, 244, 241, 0.38) 55%,
            rgba(246, 244, 241, 0.02) 76%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 48px;
}

.hero-cine .hero-copy {
    max-width: 520px;
    padding: 0;
}

.hero-shell h1 {
    font-size: clamp(34px, 3.4vw, 54px);
    margin-bottom: 18px;
}

.hero-shell .eyebrow {
    margin-bottom: 16px;
}

.hero-shell .hero-lede {
    font-size: clamp(17px, 1.5vw, 21px);
    margin-bottom: 16px;
}

.hero-shell .hero-body {
    font-size: clamp(14.5px, 1.15vw, 16.5px);
    margin-bottom: 12px;
}

.hero-shell .hero-body:last-of-type {
    margin-bottom: 26px;
}

/* ────────────────────────── Hero (split, static) ──────────────────────────
   Copy left, marked-up elevation sheet right. Replaces the video hero
   (.hero-cine rules below are kept for /chatdfh and as a fallback).
   ────────────────────────────────────────────────────────────────────── */
.hero-split {
    padding: 56px 0 84px;
}

.hero-split-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-split .hero-copy {
    min-width: 0;
    max-width: 560px;
    padding: 0;
}

.hero-split h1 {
    font-size: clamp(38px, 4.4vw, 64px);
    margin-bottom: 18px;
}

.hero-split .eyebrow {
    margin-bottom: 16px;
}

.hero-split .hero-lede {
    font-size: clamp(17px, 1.5vw, 21px);
    margin-bottom: 16px;
}

.hero-split .hero-body {
    font-size: clamp(14.5px, 1.15vw, 16.5px);
    margin-bottom: 12px;
}

.hero-split .hero-body:last-of-type {
    margin-bottom: 26px;
}

.hero-sheet {
    margin: 0;
    min-width: 0;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.hero-sheet-svg,
.hero-sheet-img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 880px) {
    .hero-split {
        padding: 24px 0 64px;
    }

    .hero-split-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-split .hero-copy {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .hero-split-inner {
        width: min(1180px, calc(100% - 32px));
    }
}

/* ── legacy hero grid (still used by /chatdfh) ── */
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(44px, 6vw, 88px);
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-copy {
    min-width: 0;
    max-width: 590px;
    padding: 28px 0;
}

.hero-lede {
    margin-bottom: 22px;
    color: var(--text);
    font-size: clamp(19px, 1.9vw, 25px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-body {
    width: 100%;
    max-width: 470px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.availability {
    margin: 0;
    color: var(--faint);
    font-size: 13px;
    font-weight: 700;
}

.availability span {
    margin: 0 12px;
    color: var(--accent);
}

/* ────────────────────────── Feature rows ────────────────────────── */
.feature-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0;
    border-top: 1px solid var(--line);
}

.feature-section .section-heading {
    margin-bottom: 72px;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-bottom: 84px;
    perspective: 1400px;
    perspective-origin: 50% 50%;
}

.feature-row-rev .feature-copy  { order: 2; }
.feature-row-rev .media-frame   { order: 1; }

.feature-copy .eyebrow {
    margin-bottom: 14px;
    color: var(--accent); /* .feature-copy p would otherwise mute it */
}

.feature-copy h3 {
    margin: 0 0 16px;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.feature-copy p {
    margin: 0;
    max-width: 54ch;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.65;
}

.feature-points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 11px;
}

.feature-points li {
    position: relative;
    padding-left: 24px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

/* dimension-tick dash — taupe, not accent */
.feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 2px;
    background: var(--line-strong);
}

/* Media frame — screenshot / video slot */
.media-frame {
    position: relative;
    margin: 0;
    border: 1px solid rgba(37, 33, 29, 0.12);
    border-radius: 18px;
    background: linear-gradient(160deg, #fffdf9, #f2eee6);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 420ms ease;
}

.media-16x10 { aspect-ratio: 16 / 10; }
.media-16x9  { aspect-ratio: 16 / 9; }

/* sheets of paper on a drafting table — subtle, flattens on hover */
.feature-row .media-frame {
    transform: rotateY(-6deg) rotateX(3deg);
}

.feature-row-rev .media-frame {
    transform: rotateY(6deg) rotateX(3deg);
}

.feature-row .media-frame:hover {
    transform: none;
    box-shadow: var(--shadow-lift);
}

.media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 33, 29, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 33, 29, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    pointer-events: none;
}

.media-frame img,
.media-frame video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 24px;
    text-align: center;
}

.media-ph svg {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.media-ph strong {
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.media-ph span {
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
}

.media-play {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 14px 34px rgba(179, 69, 25, 0.35);
}

.media-play svg {
    width: 26px;
    height: 26px;
    margin: 0;
    fill: #fffaf3;
    stroke: none;
    opacity: 1;
}

/* ── Live 3D cabinet (real engine geometry) ── */
.cabinet3d {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cabinet3d canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* horizontal drag orbits; vertical swipe still scrolls the page */
    touch-action: pan-y;
}

/* Solid / Translucent / Wireframe — mirrors the app's view-mode bar */
.c3d-modes {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(40, 26, 20, 0.06);
    opacity: 0;
    transition: opacity 400ms ease;
}

.media-frame.has-3d .c3d-modes {
    opacity: 1;
}

.c3d-mode {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.c3d-mode:hover {
    color: var(--text);
}

.c3d-mode.is-active {
    background: var(--accent);
    color: var(--color-text-inverse);
    font-weight: 700;
}

/* placeholder stays as fallback until the scene has rendered */
.media-frame.has-3d .media-ph {
    display: none;
}

/* ────────────────────────── Three steps ────────────────────────── */
.steps-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 88px 0 80px;
    border-top: 1px solid var(--line);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.step {
    padding: 26px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.step-num {
    display: block;
    margin-bottom: 14px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.step h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.step p + p {
    margin-top: 10px;
}

/* ────────────────────────── Supporting mini cards ────────────────────────── */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mini-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.mini-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.mini-head svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mini-status {
    margin-left: auto;
    padding: 3px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--color-panel);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ────────────────────────── Demo ────────────────────────── */
.demo-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 88px;
}

.demo-section .section-heading {
    margin-bottom: 40px;
}

.media-demo {
    max-width: 940px;
    margin: 0 auto;
    box-shadow: var(--shadow-lift);
}

/* ────────────────────────── Alpha ────────────────────────── */
.alpha-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 96px;
}

.alpha-inner {
    position: relative;
    padding: clamp(44px, 6vw, 84px);
    border: 1px solid var(--color-hero-border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 84% 8%, rgba(179, 69, 25, 0.28), transparent 26rem),
        var(--color-hero-bg);
    color: var(--color-hero-text);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.alpha-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246, 244, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 244, 241, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(120deg, transparent 30%, black 100%);
    pointer-events: none;
}

.alpha-copy {
    position: relative;
    max-width: 660px;
}

.alpha-section .eyebrow {
    color: #e78e5f;
}

.alpha-copy h2 {
    margin-bottom: 0;
    color: var(--color-hero-text);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.alpha-body {
    margin: 18px 0 28px;
    color: var(--color-hero-text-secondary);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
    max-width: 54ch;
}

.alpha-points {
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.alpha-points li {
    position: relative;
    padding-left: 26px;
    color: var(--color-hero-text-secondary);
    font-size: 15.5px;
    line-height: 1.55;
}

.alpha-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 12px;
    height: 2px;
    background: rgba(246, 244, 241, 0.4);
}

.alpha-points strong {
    color: var(--color-hero-text);
    font-weight: 800;
}

.alpha-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.alpha-foot {
    margin: 0;
    max-width: 36ch;
    color: var(--color-hero-text-secondary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* ────────────────────────── DFH product stack ────────────────────────── */
.product-stack {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 78px 0 104px;
    border-top: 1px solid var(--line);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.product-panel {
    display: flex;
    flex-direction: column;
    min-height: 274px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.7);
    transform: rotateY(-10deg) rotateX(6deg);
    transform-origin: center;
    box-shadow:
        -10px 16px 32px rgba(45, 40, 35, 0.14),
        -2px 4px 8px rgba(45, 40, 35, 0.08);
}

.product-status {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-panel h3 {
    margin-bottom: 8px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.product-panel h3 span {
    color: var(--accent);
    font-weight: 800;
}

.product-panel strong {
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
}

.product-panel p:last-of-type {
    max-width: 55ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.product-cta {
    margin-top: 24px;
    align-self: flex-start;
}

/* ────────────────────────── About ────────────────────────── */
.about-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0 104px;
    border-top: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
    margin-top: 40px;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.about-photo {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    transform: rotateY(18deg) rotateX(6deg);
    transform-origin: center;
    box-shadow:
        20px 24px 42px rgba(45, 40, 35, 0.26),
        6px 8px 14px rgba(45, 40, 35, 0.14);
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.about-body {
    padding: 6px 0;
}

.about-body p {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
}

.about-body p + p {
    margin-top: 14px;
}

.about-body strong {
    color: var(--text);
}

.about-aside {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.7);
    transform: rotateY(-18deg) rotateX(6deg);
    transform-origin: center;
    box-shadow:
        -20px 24px 42px rgba(45, 40, 35, 0.26),
        -6px 8px 14px rgba(45, 40, 35, 0.14);
}

.about-aside-head {
    margin: 0 0 14px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-aside-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.about-aside p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.about-aside p:last-child {
    margin-bottom: 0;
}

.about-aside strong {
    color: var(--text);
}

.about-kicker {
    margin: 56px auto 0;
    max-width: 60ch;
    text-align: center;
    color: var(--text);
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.35;
    letter-spacing: -0.015em;
}

/* ────────────────────────── Footer ────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0 48px;
}

.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer .brand-name {
    font-size: 21px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.footer-nav a {
    transition: color 160ms ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
}

.footer-meta a {
    color: var(--muted);
}

.footer-meta a:hover {
    color: var(--text);
}

/* ────────────────────────── Motion prefs ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* ────────────────────────── Responsive ────────────────────────── */
@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }
}

@media (max-width: 880px) {
    /* stack the hero: copy above, full-frame video below (no overlay) */
    .hero-cine {
        padding: 24px 0 64px;
    }

    .hero-shell {
        display: flex;
        flex-direction: column;
        gap: 26px;
    }

    .hero-inner {
        position: static;
        order: -1;
        padding: 0;
    }

    .hero-cine .hero-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-scrim {
        display: none;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 64px;
    }

    /* copy first, media second — regardless of alternation */
    .feature-row-rev .feature-copy { order: 1; }
    .feature-row-rev .media-frame  { order: 2; }

    .feature-row .media-frame,
    .feature-row-rev .media-frame {
        transform: none;
    }

    .steps-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo img { aspect-ratio: 5 / 4; }
}

@media (max-width: 720px) {
    .site-header {
        width: min(1180px, calc(100% - 32px));
        gap: 16px;
    }

    .sign-in {
        display: none;
    }

    .hero-shell {
        width: min(1180px, calc(100% - 32px));
    }

    .hf-room,
    .hf-room-2,
    .hf-marker {
        display: none;
    }

    .hero-grid,
    .feature-section,
    .steps-section,
    .demo-section,
    .alpha-section,
    .product-stack,
    .about-section {
        width: min(1180px, calc(100% - 32px));
    }

    .hero-copy,
    .hero-body {
        width: 100%;
        max-width: 100%;
    }

    .hero-copy {
        padding: 20px 0 10px;
    }

    h1 {
        font-size: clamp(40px, 11vw, 56px);
    }

    .button {
        width: 100%;
    }

    .nav-actions {
        flex: 0 0 auto;
    }

    .nav-actions .button {
        width: auto;
    }

    .availability span {
        margin: 0 8px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .alpha-actions .button {
        width: auto;
    }
}

@media (max-width: 520px) {
    .site-header {
        width: 100%;
        padding: 14px 16px;
    }

    .nav-actions {
        display: none;
    }

    .hero-grid {
        width: calc(100% - 32px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 420px) {
    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
    }

    .brand-logo {
        height: 28px;
    }

    .brand-name {
        font-size: 20px;
    }

    .button-small {
        padding: 0 12px;
        font-size: 12px;
    }
}

/* ═══════════════════════ LEGAL PAGES ═══════════════════════
   /privacy and /terms — plain long-form pages in the site's type. */
.legal {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 104px;
}
.legal .section-heading h1 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.legal-body {
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.7;
}
.legal-body h2 {
    margin: 44px 0 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.legal-body p, .legal-body li { margin: 0 0 14px; color: var(--muted); }
.legal-body ul { padding-left: 22px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body code {
    padding: 1px 6px;
    font-size: 0.92em;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════
   SHOW LAYOUT (2026-09-29) — hero stage, assembly library, demo cards,
   proposal, payoff.
   A .stage is the slot an interactive demo mounts on (data-demo="…").
   Any stage can open full screen (.is-full, toggled by app.js).
   Until the demos are built, stages tagged "Demo placeholder" hold
   static content.
   ══════════════════════════════════════════════════════════════════════ */
:root {
    --markor-blue: #2f5f8f;
    --markor-blue-soft: rgba(47, 95, 143, 0.12);
    --markor-indigo: #4b4a8f;
}

.hero-show,
.band-inner,
.payoff-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ── bands: full-width backgrounds that change from section to section ── */
.band {
    padding: 104px 0;
}

.band-tint {
    background: #ece7de;
}

.band-dark {
    background:
        radial-gradient(circle at 88% 0%, rgba(179, 69, 25, 0.22), transparent 30rem),
        var(--color-hero-bg);
    color: var(--color-hero-text);
}

.band-dark .eyebrow {
    color: #e78e5f;
}

.band-dark .section-sub {
    color: var(--color-hero-text-secondary);
}

.band .section-heading {
    margin-bottom: 44px;
}

/* ── hero ── */
.hero-show {
    padding: 48px 0 96px;
}

.hero-show-copy {
    margin-bottom: 34px;
}

.hero-show h1 {
    max-width: none;
    font-size: clamp(38px, 4.8vw, 66px);
    margin-bottom: 16px;
}

.hero-show .eyebrow {
    margin-bottom: 16px;
}

.hero-show .hero-lede {
    margin: 0;
    max-width: none;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.5;
}

.hero-show-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    margin-top: 30px;
}

.hero-show-foot .availability {
    margin: 0;
}

/* ── stage ── */
.stage {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stage[hidden] {
    display: none;
}

.stage-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 10px 8px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.stage-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.stage-tag {
    margin-left: auto;
    padding: 3px 9px;
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--faint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stage-full {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.stage-tag + .stage-full {
    margin-left: 0;
}

.stage-full:hover {
    background: var(--color-hover, rgba(37, 33, 29, 0.06));
    color: var(--text);
}

.stage-full svg,
.card-open svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stage-full .ico-close,
.stage.is-full .stage-full .ico-open {
    display: none;
}

.stage.is-full .stage-full .ico-close {
    display: inline;
}

.stage-steps {
    display: flex;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.stage-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    color: var(--faint);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.stage-steps li span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 800;
}

.stage-steps li.is-active {
    background: var(--accent-soft);
    color: var(--text);
}

.stage-steps li.is-active span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fffaf3;
}

.stage-body {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}

.stage-rev .stage-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
}

.stage-sheet {
    position: relative;
    margin: 0;
    min-width: 0;
    min-height: 320px;
    background: var(--bg-soft);
}

.stage-sheet img {
    display: block;
    width: 100%;
    height: auto;
}

.stage-sheet.is-empty {
    background-image:
        linear-gradient(rgba(47, 95, 143, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 95, 143, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
}

.stage-sheet-doc.is-empty {
    background-image: none;
}

.stage-sheet-3d {
    min-height: 460px;
}

.stage-sheet-3d .cabinet3d {
    position: absolute;
    inset: 0;
}

.stage-sheet-3d .c3d-modes {
    opacity: 1;
}

.sheet-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 24px 72px;
    text-align: center;
}

.sheet-ph strong {
    color: var(--markor-blue);
    font-size: 16px;
    font-weight: 800;
}

.sheet-ph span {
    max-width: 34ch;
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

/* the instruction the visitor follows */
.stage-prompt {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(45, 40, 35, 0.28);
}

.stage-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 24px;
    border-left: 1px solid var(--line);
    overflow-y: auto;
}

.stage-rev .stage-result {
    border-left: 0;
    border-right: 1px solid var(--line);
}

.result-head {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.result-quote {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.tree,
.tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tree ul {
    margin-left: 8px;
    padding-left: 14px;
    border-left: 1px solid var(--line-strong);
}

.tree li {
    padding-top: 7px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.tree > li:first-child {
    padding-top: 0;
}

.tree em {
    margin-left: 6px;
    color: var(--faint);
    font-style: normal;
    font-weight: 600;
}

.tree-chip {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--markor-blue);
}

.tree-chip-top {
    background: var(--markor-indigo);
}

.tree li.is-new {
    margin: 5px 0 0 -8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--markor-blue-soft);
}

.result-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.result-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.result-facts dt {
    color: var(--muted);
    font-weight: 600;
}

.result-facts dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.result-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 2px solid var(--text);
}

.result-total span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-total strong {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.checks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ── full screen ── */
.stage-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(28, 25, 22, 0.72);
    backdrop-filter: blur(3px);
}

.stage.is-full {
    position: fixed;
    inset: 20px;
    z-index: 901;
    border-radius: 16px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.stage.is-full .stage-sheet img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stage.is-full .stage-body {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.stage.is-full.stage-rev .stage-body {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

html.stage-open {
    overflow: hidden;
}

/* ── assembly library ── */
.lib-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lib-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lib-item img {
    display: block;
    width: 100%;
    max-width: 112px;
    aspect-ratio: 1;
}

.lib-item:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.lib-item[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--text);
}

.lib-facts {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.lib-facts strong {
    margin-right: auto;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.lib-facts b {
    color: var(--text);
    font-weight: 800;
}

/* ── options pane: the cabinet's inputs, beside the viewer ── */
.stage-library .stage-body,
.stage.is-full.stage-library .stage-body {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 270px);
}

.stage-options {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    padding: 24px 22px;
    border-left: 1px solid var(--line);
    overflow-y: auto;
}

.opt-title {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.opt-size {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.opt-size output {
    font-weight: 800;
    text-align: right;
}

.opt-size input {
    width: 100%;
    accent-color: var(--accent);
}

.opt-row,
.opt-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.opt-choice {
    padding: 7px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface-solid);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.opt-choice:hover {
    color: var(--text);
}

.opt-choice[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--text);
}

.opt-swatch {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
}

.opt-swatch[aria-pressed="true"] {
    box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 4px var(--accent);
}

.opt-reset {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.opt-error {
    display: none;
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.stage-options.has-error .opt-error {
    display: block;
}

/* ── demo cards ── */
.demo-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.demo-card .eyebrow {
    margin: 20px 0 10px;
}

.demo-card h3 {
    margin: 0 0 8px;
    font-size: clamp(21px, 1.9vw, 26px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.demo-card p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.demo-card-media,
.doc-peek {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background-color: var(--surface-solid);
    font-family: var(--sans);
    cursor: pointer;
    overflow: hidden;
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 320ms ease;
}

.demo-card-media {
    aspect-ratio: 4 / 3;
    background-image:
        linear-gradient(rgba(47, 95, 143, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 95, 143, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

.demo-card-media:hover,
.doc-peek:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 10px;
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    font-size: 14px;
    font-weight: 700;
}

.card-open svg {
    width: 17px;
    height: 17px;
}

/* simple drawn previews, one per card */
.card-tree,
.card-box,
.card-tops {
    position: absolute;
    inset: 12% 12% 22%;
    display: block;
}

.card-tree i {
    display: block;
    height: 12px;
    width: 46%;
    margin-bottom: 11px;
    border-radius: 4px;
    background: rgba(37, 33, 29, 0.16);
}

.card-tree .in1 { margin-left: 12%; width: 50%; }
.card-tree .in2 { margin-left: 24%; width: 56%; }
.card-tree .on  { background: var(--markor-blue); }

.card-box {
    inset: 18% 30% 30% 16%;
    border: 2px dashed var(--accent);
    border-radius: 4px;
    background: rgba(179, 69, 25, 0.08);
}

.card-box b {
    position: absolute;
    top: -14px;
    right: -14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fffaf3;
    font-size: 16px;
    font-weight: 900;
}

.card-tops i {
    position: absolute;
    border: 2px solid var(--markor-indigo);
    border-radius: 3px;
    background: rgba(75, 74, 143, 0.16);
}

.card-tops i:nth-child(1) { left: 0; top: 6%; width: 62%; height: 20%; }
.card-tops i:nth-child(2) { left: 0; top: 26%; width: 18%; height: 56%; }
.card-tops i:nth-child(3) { right: 0; top: 54%; width: 40%; height: 22%; }

/* ── proposal split ── */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}

.split-copy h2 {
    margin: 0;
    font-size: clamp(34px, 3.8vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.split-copy .section-sub {
    margin-bottom: 30px;
}

.doc-peek {
    padding: clamp(24px, 4vw, 48px);
    background: #ece7de;
    border-color: var(--line);
}

.doc-page {
    display: block;
    max-width: 380px;
    margin: 0 auto;
    padding: 34px 32px 30px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 50px rgba(45, 40, 35, 0.16);
    text-align: left;
}

.doc-page b {
    display: block;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.doc-page i {
    display: block;
    height: 9px;
    margin-bottom: 11px;
    border-radius: 3px;
    background: rgba(37, 33, 29, 0.12);
}

.doc-page i.short {
    width: 58%;
    margin-bottom: 24px;
}

.doc-page em {
    display: block;
    padding-top: 12px;
    border-top: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

/* ── payoff ── */
.payoff-section {
    padding: 0 0 96px;
}

.payoff-inner {
    position: relative;
    padding: clamp(36px, 5vw, 64px);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: var(--surface-solid);
    text-align: center;
}

.payoff-inner .stage-tag {
    position: absolute;
    top: 14px;
    right: 14px;
}

.payoff-inner h2 {
    margin: 0 auto;
    max-width: 20ch;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.payoff-total {
    margin: 18px 0 28px;
    color: var(--color-success);
    font-size: clamp(54px, 8vw, 104px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.payoff-counts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.payoff-counts li {
    padding: 16px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.payoff-counts strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

@media (max-width: 880px) {
    .band {
        padding: 72px 0;
    }

    .stage-body,
    .stage-rev .stage-body,
    .stage.is-full .stage-body,
    .stage.is-full.stage-rev .stage-body {
        grid-template-columns: 1fr;
    }

    /* drawing first, result second — regardless of alternation */
    .stage-rev .stage-sheet { order: 1; }
    .stage-rev .stage-result { order: 2; }

    .stage-result,
    .stage-rev .stage-result {
        border: 0;
        border-top: 1px solid var(--line);
    }

    .stage-sheet {
        min-height: 260px;
    }

    .stage-sheet-3d {
        min-height: 360px;
    }

    .stage.is-full {
        inset: 0;
        border-radius: 0;
    }

    .stage.is-full .stage-body {
        overflow-y: auto;
    }

    .stage.is-full .stage-sheet img {
        position: static;
        height: auto;
    }

    .lib-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stage-library .stage-body,
    .stage.is-full.stage-library .stage-body {
        grid-template-columns: 1fr;
    }

    .stage-library .stage-sheet { order: 1; }
    .stage-library .stage-options { order: 2; }
    .stage-library .stage-result { order: 3; }

    .stage-options {
        border: 0;
        border-top: 1px solid var(--line);
    }

    .demo-cards,
    .split {
        grid-template-columns: 1fr;
    }

    .demo-cards {
        gap: 40px;
    }

    .payoff-counts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .hero-show,
    .band-inner,
    .payoff-section {
        width: min(1180px, calc(100% - 32px));
    }

    .hero-show {
        padding-top: 24px;
    }

    .stage-tag {
        display: none;
    }

    .hero-show-foot .button,
    .payoff-inner .button,
    .split-copy .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .lib-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .payoff-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Features and About pages ── */
.page-hero {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.page-hero h1 {
    max-width: 20ch;
    font-size: clamp(38px, 4.8vw, 66px);
    margin-bottom: 16px;
}

.page-hero .eyebrow {
    margin-bottom: 16px;
}

.page-hero .hero-lede {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.5;
}

/* the five stages, as a row of jump links */
.stage-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.stage-rail a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-solid);
    font-size: 15px;
    font-weight: 800;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.stage-rail a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.stage-rail span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fffaf3;
    font-size: 12px;
    font-weight: 800;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feat-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat-grid-gap { margin-top: 20px; }

.feat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 26px 24px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface-solid);
    color: var(--text);
}

.feat-card h3 {
    margin: 0;
    padding-right: 96px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.feat-card .stage-tag {
    position: absolute;
    top: 14px;
    right: 14px;
}

.feat-card > p:last-child {
    margin: auto 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.feat-card > p:last-child a {
    color: var(--accent);
    font-weight: 700;
}

.feat-card .result-total {
    margin-top: auto;
}

.feat-thumb {
    display: block;
    border-radius: 12px;
    background: var(--bg-soft);
}

.feat-thumb img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
}

/* a list of places a Markor points to */
.links {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.links li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.links b {
    flex: 0 0 auto;
    min-width: 72px;
    color: var(--markor-blue);
    font-weight: 800;
}

/* change once: the old value struck, the new one beside it */
.ripple {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.ripple li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 20px 30px;
    border-left: 1px solid var(--line);
}

.ripple li:first-child {
    border-left: 0;
}

.ripple li.is-source {
    background: var(--accent-soft);
}

.ripple span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ripple s {
    color: var(--faint);
    font-size: 15px;
    font-weight: 600;
}

.ripple strong {
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* About page: the section opens the page, so no rule above it */
.about-page .about-section {
    padding-top: 56px;
    border-top: 0;
}

.about-page .about-section h1 {
    max-width: 22ch;
    margin-bottom: 0;
    font-size: clamp(34px, 3.8vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.about-page .about-section h1 .accent {
    color: var(--accent);
}

.primary-nav a[aria-current="page"] {
    color: var(--text);
}

@media (max-width: 1040px) {
    .feat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .feat-grid,
    .feat-grid-2,
    .feat-grid-4 {
        grid-template-columns: 1fr;
    }

    .ripple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ripple li {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .ripple li:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .ripple li:nth-child(-n+2) {
        border-top: 0;
    }
}

@media (max-width: 720px) {
    .page-hero {
        width: min(1180px, calc(100% - 32px));
        padding: 28px 0 56px;
    }

    .feat-card h3 {
        padding-right: 0;
    }
}
