/* Page styles for design-obseed.html.
   Extracted from the inline <style> blocks on 2026-09-11, byte for byte and in
   the same order, and linked from the same position in the head. The cascade is
   unchanged; what changed is that the CSS is now a file the browser can cache
   and a person can read. */

/* ============================================================
       obseed, athlete analytics case.
       Layout scaffold matches the other design cases (obseed/Heineken):
       dc-shell > dc-grid > dc-main + sticky dc-toc. Component classes
       (dc-cards/dc-rows/dc-wins) are shared with those cases. Bespoke here:
       the H-bar design-system ramp + component specimens (hb- and hbc-
       classes, drawn from the obseed semantic tokens) and the
       prototype iframe.
    ============================================================ */
    :root{
      /* Page chrome: ONE restrained, desaturated accent for the case page and its
         diagrams, matched to the siblings' quietness (obseed #c8533f, scout #3f8d5a).
         The bright product palette lives ONLY in the design-system swatches, the
         component specimens, and the embedded prototype, never on the page chrome. */
      --page-accent:#7a6a22; --page-accent-strong:#2f312c; --page-accent-wash:#f4f1e8;
      --page-text-muted:#6c788d; --page-border:#e6eaf1;
      /* Product design-system tokens, mirrored from the obseed semantic set so the
         documented swatches and specimens match the rebuilt prototype below. */
      --color-primary:#1F50B5; --color-primary-hover:#2E6BE6; --color-primary-active:#18409A;
      --color-primary-strong:#16204A; --color-primary-surface:#EAF1FC;
      --color-success:#12805A; --color-success-surface:#E6F4EE; --color-success-strong:#155E46; --color-success-border:rgba(18,128,90,.14);
      --color-warning:#B7791F; --color-warning-surface:#FBF3E2; --color-warning-strong:#7C5410; --color-warning-border:rgba(183,121,31,.16);
      --color-danger:#C2342B; --color-danger-surface:#FDECEC;
      --color-text:#0A0F1A; --color-text-secondary:#39425A; --color-text-muted:#5A6575; --color-text-subtle:#8A93A2;
      --color-surface:#FFFFFF; --color-background:#F4F6FA; --color-border:#E9ECF1; --color-border-subtle:#EEF1F6;
      --shadow:0 1px 1px rgba(16,30,60,.03),0 2px 8px -3px rgba(16,30,60,.06),0 20px 42px -22px rgba(16,30,60,.18);
    }
    /* ---- shared case scaffold (ported from design-obseed) ---- */
    :root{ --page-measure:1100px; --page-pad:clamp(26px,6vw,40px); }
    :root{ --page-measure:1100px; --page-pad:clamp(26px,6vw,40px); }
  .dc-shell{ max-width:1100px; margin:0 auto; padding:0 clamp(26px,6vw,40px); }
    .dc-grid{ display:grid; grid-template-columns:minmax(0,1fr) 132px; gap:clamp(2rem,5vw,4.5rem); align-items:start; }
    .dc-main{ min-width:0; }
    @media(max-width:900px){ .dc-grid{ grid-template-columns:1fr; } .dc-toc{ display:none; } }
    .dc-toc{ position:sticky; top:96px; }
    .dc-toc__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
    .dc-toc__list a{ display:block; padding:2px 0 2px 12px; margin-left:-1px; border-left:2px solid transparent; font-size:11px; line-height:1.4; color:var(--ink3,#645e55); text-decoration:none; white-space:nowrap; transition:font-size .16s ease, color .15s ease, border-color .15s ease; }
    .dc-toc__list a:hover{ color:var(--ink); font-size:13.5px; }
    .dc-toc__list a.is-current{ color:var(--ink); border-left-color:var(--ink); font-weight:600; }

    .case-hero__crumb{ font-size:13px; margin:0 0 clamp(20px,3vw,30px); }
    .case-hero__crumb a{ color:var(--ink3,#645e55); text-decoration:none; }
    .case-hero__crumb a:hover{ color:var(--ink); }

    .dc-sec{ padding:clamp(26px,3.4vw,44px) 0; }
    .dc-sec:first-child{ border-top:0; }
    .dc-sec__num{ font-family:"JetBrains Mono",ui-monospace,monospace; font-size:12px; color:var(--ink3,#645e55); letter-spacing:.04em; }
    .dc-sec__h{ font-family:var(--font); font-size:clamp(1.3rem,2.2vw,1.65rem); font-weight:600; letter-spacing:-.015em; line-height:1.18; color:var(--ink); margin:.45rem 0 1rem; }
    .dc-sec__p{ font-size:clamp(1rem,1.2vw,1.0625rem); line-height:1.66; color:var(--ink2,#4a4a44); max-width:64ch; margin:0 0 1rem; }
    .dc-sec__p strong{ color:var(--ink); font-weight:600; }

    .dc-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:1.6rem; }
    .dc-cards--2{ grid-template-columns:repeat(2,1fr); }
    @media(max-width:720px){ .dc-cards{ grid-template-columns:1fr; } }
    .dc-card{ border:1px solid var(--rule); border-radius:16px; padding:clamp(16px,2vw,20px); background:#fff; }
    .dc-card__k{ font-family:"JetBrains Mono",ui-monospace,monospace; font-size:11px; letter-spacing: 0.02em; color:var(--page-accent); margin:0 0 9px; }
    .dc-card__t{ font-size:1.0625rem; font-weight:600; color:var(--ink); margin:0 0 7px; line-height:1.25; }
    .dc-card__d{ font-size:.92rem; color:var(--ink2,#4a4a44); line-height:1.55; margin:0; }
    .dc-card--accent{ border-color:color-mix(in srgb,var(--page-accent) 28%,var(--rule)); background:linear-gradient(180deg,var(--page-accent-wash),#fffefd); }
    .dc-card--accent .dc-card__k{ color:var(--page-accent); }

    .dc-rows{ border-top:1px solid var(--rule); margin-top:1.4rem; }
    .dc-row{ display:grid; grid-template-columns:minmax(150px,1fr) 2.2fr; gap:clamp(1rem,4vw,3rem); padding:clamp(1.05rem,2.2vw,1.45rem) 0; border-bottom:1px solid var(--rule); align-items:baseline; }
    @media(max-width: 720px){ .dc-row{ grid-template-columns:1fr; gap:.35rem; } }
    .dc-row__name{ font-size:1.0625rem; font-weight:600; color:var(--ink); margin:0; display:flex; align-items:center; gap:10px; }
    .dc-row__name svg{ width:18px; height:18px; color:var(--page-accent); flex:none; }
    .dc-row__desc{ font-size:.98rem; color:var(--ink2,#4a4a44); line-height:1.6; margin:0; max-width:60ch; }

    .dc-wins{ list-style:none; margin:1.4rem 0 0; padding:0; display:grid; gap:12px; }
    .dc-wins li{ display:grid; grid-template-columns:auto 1fr; gap:13px; align-items:start; font-size:1.0625rem; color:var(--ink2,#4a4a44); line-height:1.5; }
    .dc-wins li strong{ color:var(--ink); font-weight:600; }
    .dc-wins .tick{ width:22px;height:22px;border-radius:50%; background:var(--ink); display:flex;align-items:center;justify-content:center; flex:0 0 auto; margin-top:1px; }
    .dc-wins .tick svg{ width:12px;height:12px;stroke:#F5EFE2;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round; }

    .dc-note{ font-size:.9rem; color:var(--ink3,#645e55); border-left:2px solid var(--page-accent); padding:3px 0 3px 15px; margin:1.5rem 0 0; max-width:62ch; line-height:1.6; }

    /* ---- hero: solid title + 2-col meta, matching obseed/Heineken ---- */
    .case-hero__title em{ font-style:normal; color:inherit; font-weight:700; }

    /* ---- editorial results columns (no boxes) ---- */
    .dc-results{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(22px,3vw,44px); margin-top:1.6rem; }
    .dc-results--2{ grid-template-columns:repeat(2,1fr); max-width:none; }
    @media(max-width: 720px){ .dc-results{ grid-template-columns:1fr; gap:26px; } }
    .dc-results__k{ font-family:"JetBrains Mono",ui-monospace,monospace; font-size: 11px; letter-spacing: 0.02em; color:var(--ink3,#645e55); margin:0 0 12px; }
    .dc-results__k--pos{ color:var(--page-accent); } .dc-results__k--warn{ color:var(--page-accent); }
    .dc-results__h{ font-size:clamp(1.05rem,1.5vw,1.22rem); font-weight:600; color:var(--ink); line-height:1.22; margin:0 0 8px; letter-spacing:-.01em; }
    .dc-results__d{ font-size:.92rem; color:var(--ink2,#4a4a44); line-height:1.55; margin:0; max-width:36ch; }

    /* ---- shared design-system spread (same .dsx pattern as the sibling cases) ---- */
    .dsx__label{ font-family:"JetBrains Mono",ui-monospace,monospace; font-size:11px; letter-spacing: 0.02em; color:var(--ink3,#645e55); padding-bottom:10px; border-bottom:1px solid var(--rule); margin:2rem 0 1.4rem; }
    .dsx-found{ display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(18px,3vw,32px); }
    @media(max-width: 720px){ .dsx-found{ grid-template-columns:1fr; gap:26px; } }
    .dsx-sub{ font-size:13px; font-weight:600; color:var(--ink); margin:0 0 14px; }
    .dsx-block + .dsx-block{ margin-top:26px; }

    .dsx-colors{ display:grid; grid-template-columns:1fr 1fr; gap:11px 14px; }
    .dsx-sw{ display:flex; align-items:center; gap:10px; }
    .dsx-sw__c{ width:30px; height:30px; border-radius:7px; border:1px solid rgba(10,10,10,.08); flex:0 0 auto; }
    .dsx-sw__n{ font-size:12px; color:var(--ink); font-weight:500; line-height:1.2; }
    .dsx-sw__h{ font-size:10px; color:var(--ink3,#645e55); font-family:"JetBrains Mono",monospace; }

    .dsx-type__r{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px dashed var(--rule); }
    .dsx-type__r:last-child{ border-bottom:0; }
    .dsx-type__spec{ font-family:"JetBrains Mono",monospace; font-size:10.5px; color:var(--ink3,#645e55); white-space:nowrap; flex:0 0 auto; }

    .dsx-space{ display:flex; align-items:flex-end; gap:8px; height:42px; margin-bottom:8px; }
    .dsx-space i{ background:var(--color-primary-surface); border:1px solid color-mix(in srgb,var(--color-primary) 22%,transparent); width:14px; border-radius:3px 3px 0 0; }
    .dsx-spaceL{ display:flex; gap:8px; }
    .dsx-spaceL span{ font-family:"JetBrains Mono",monospace; font-size:9.5px; color:var(--ink3,#645e55); width:14px; text-align:center; }
    .dsx-rad{ display:flex; gap:12px; margin-top:14px; flex-wrap:wrap; }
    .dsx-rad span{ display:flex; flex-direction:column; align-items:center; gap:6px; font-family:"JetBrains Mono",monospace; font-size:9.5px; color:var(--ink3,#645e55); }
    .dsx-rad b{ width:40px; height:30px; background:var(--color-primary-surface); border:1px solid color-mix(in srgb,var(--color-primary) 22%,transparent); }

    .dsx-grid{ display:flex; flex-direction:column; gap:8px; margin-top:6px; }
    .dsx-grid__shell{ display:grid; grid-template-columns:1fr; gap:6px; }
    .dsx-grid__bar{ background:var(--color-text); border-radius:8px; height:34px; display:flex; align-items:center; justify-content:center; text-align:center; color:#fff; font-size:10.5px; font-family:"JetBrains Mono",monospace; padding:0 8px; }
    .dsx-grid__cols{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
    .dsx-grid__cols span{ height:26px; background:var(--color-primary-surface); border:1px solid color-mix(in srgb,var(--color-primary) 20%,transparent); border-radius:3px; }
    .dsx-grid__note{ font-size:12px; color:var(--ink3,#645e55); margin:2px 0 0; line-height:1.5; }
    @media(max-width: 520px){ .dsx-grid__cols{ grid-template-columns:repeat(2,1fr); } }

    .dsx-specs{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:6px; }
    @media(max-width:720px){ .dsx-specs{ grid-template-columns:1fr; } }
    .dsx-spec{ border:1px solid var(--rule); border-radius:22px; background:#fff; padding:15px 16px; display:flex; flex-direction:column; gap:13px;
      box-shadow:0 1px 2px rgba(21,41,74,.03);
      transition:box-shadow 160ms cubic-bezier(0.23,1,0.32,1), border-color 160ms cubic-bezier(0.23,1,0.32,1); }
    .dsx-spec--wide{ grid-column:1 / -1; }
    .dsx-spec__l{ font-family:"JetBrains Mono",monospace; font-size: 11px; letter-spacing: 0.02em; color:var(--ink3,#645e55); }
    .dsx-spec__b{ display:flex; align-items:stretch; background:var(--color-background); border-radius:12px; padding:14px; }
    .dsx-spec__b > .hb-stage{ width:100%; }

    /* ---- user-journey flow (connected nodes, no boxes) ---- */
    .uj{ margin-top:1.8rem; }
    .uj__track{ position:relative; display:grid; grid-template-columns:repeat(7,1fr); }
    .uj__track::before{ content:""; position:absolute; top:51px; left:7%; right:7%; height:2px; background:var(--page-border); z-index:0; }
    .uj__node{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 5px; }
    .uj__cap{ font:500 9px/1.25 "JetBrains Mono",monospace; letter-spacing:.03em; color:var(--page-accent); height:30px; display:flex; align-items:flex-end; margin-bottom:10px; }
    .uj__dot{ width:54px; height:54px; border-radius:50%; background:#fff; border:1.5px solid var(--page-border); display:flex; align-items:center; justify-content:center; color:var(--page-text-muted); flex:none; transition:transform .2s ease; }
    .uj__dot svg{ width:23px; height:23px; }
    .uj__node--key .uj__dot{ background:var(--page-accent-strong); border-color:var(--page-accent-strong); color:#fff; }
    .uj__node--out .uj__dot{ background:var(--page-accent-wash); border-color:var(--page-accent); color:var(--page-accent); }
    .uj__lab{ font-size:12px; color:var(--ink2,#4a4a44); line-height:1.35; margin-top:12px; max-width:15ch; }
    .uj__phase{ display:grid; grid-template-columns:2fr 5fr; gap:6px; margin-top:18px; }
    .uj__phase span{ font:500 9.5px/1 "JetBrains Mono",monospace; letter-spacing: 0.02em; color:var(--ink3,#645e55); padding-top:9px; border-top:1px solid var(--rule); }
    @media(max-width:720px){
      .uj__track{ grid-template-columns:1fr; }
      .uj__track::before{ top:8px; bottom:8px; left:27px; right:auto; width:2px; height:auto; }
      .uj__node{ flex-direction:row; align-items:center; gap:16px; text-align:left; padding:9px 0; }
      .uj__cap{ height:auto; margin:0; order:3; }
      .uj__lab{ margin-top:0; max-width:none; font-size:13px; }
      .uj__phase{ display:none; }
    }

    /* ---- app map / sitemap (connected nodes, indented tree) ---- */
    .sm{ margin-top:1.8rem; }
    .sm__root{ display:inline-flex; align-items:center; gap:11px; margin-bottom:2px; }
    .sm__rows{ position:relative; }
    .sm__row{ position:relative; display:flex; align-items:center; padding:9px 0 9px 34px; }
    .sm__row::before{ content:""; position:absolute; left:15px; top:0; bottom:0; width:2px; background:var(--page-border); }
    .sm__row:last-child::before{ bottom:50%; }
    .sm__row::after{ content:""; position:absolute; left:15px; top:50%; width:18px; height:2px; background:var(--page-border); }
    .sm__node{ display:inline-flex; align-items:center; gap:9px; flex:none; }
    .sm__dot{ width:32px; height:32px; border-radius:50%; background:#fff; border:1.5px solid var(--page-border); display:flex; align-items:center; justify-content:center; color:var(--page-accent); flex:none; }
    .sm__dot svg{ width:16px; height:16px; }
    .sm__root .sm__dot, .sm__node--prim .sm__dot{ background:var(--page-accent-strong); border-color:var(--page-accent-strong); color:#fff; }
    .sm__node--out .sm__dot{ background:var(--page-accent-wash); border-color:var(--page-accent); color:var(--page-accent); }
    .sm__lab{ font-size:13px; color:var(--ink2,#4a4a44); font-weight:500; line-height:1.2; white-space:nowrap; }
    .sm__lab small{ display:block; font-size:10.5px; color:var(--ink3,#645e55); font-weight:400; }
    .sm__edge{ display:inline-flex; flex-direction:column; align-items:center; margin:0 2px; flex:none; }
    .sm__edge i{ display:block; width:30px; height:2px; background:var(--page-border); position:relative; }
    .sm__edge i::after{ content:""; position:absolute; right:0; top:-3px; border-left:6px solid var(--page-border); border-top:4px solid transparent; border-bottom:4px solid transparent; }
    .sm__edge span{ font:500 8px/1 "JetBrains Mono",monospace; letter-spacing:.03em; color:var(--ink3,#645e55); margin-bottom:4px; white-space:nowrap; }
    @media(max-width: 720px){
      .sm{ overflow:visible; }
      .sm__rows{ min-width:0; }
      /* drill-downs stack vertically instead of scrolling off-screen */
      .sm__row{ flex-direction:column; align-items:flex-start; gap:9px; padding:13px 0 13px 34px; }
      .sm__row::after{ top:29px; }
      .sm__row:last-child::before{ bottom:auto; height:29px; }
      .sm__edge{ flex-direction:row; align-items:center; gap:0; margin:0 0 0 18px; }
      .sm__edge i{ display:none; }
      .sm__edge span{ margin:0; }
      .sm__edge span::before{ content:"\21B3"; margin-right:6px; color:var(--ink3,#645e55); font-family:var(--font); font-size:12px; }
      .sm__node:not(.sm__node--prim){ margin-left:18px; }
      .sm__lab{ white-space:normal; }
    }

    .phone-cap{ text-align:center; font-size:.85rem; color:var(--ink3,#645e55); margin:18px auto 0; max-width:46ch; line-height:1.55; }

    /* =========================================================
       H-BAR DESIGN-SYSTEM SPECIMENS
       Real on-bar HTML rendered in the product's own blue
       fintech style (tokens above), shown inside the site page.
    ========================================================= */
    .hb-num{ font-variant-numeric:tabular-nums; }

    /* each component sits on a white app card with soft elevation, floating on the
       #F4F6FA screen (the grey .dsx-spec__b inset), exactly like the rebuilt prototype */
    .hb-stage{ background:var(--color-surface); border:1px solid rgba(16,30,60,.05); border-radius:22px; padding:16px; box-shadow:var(--shadow); font-family:"Inter",var(--font); color:var(--color-text); -webkit-font-smoothing:antialiased; }
    .hb-ey{ font-size: 11px; font-weight:700; letter-spacing: 0.02em; color:var(--color-text-muted); }

    /* specimen: balance header */
    .hbc-bal__top{ display:flex; justify-content:space-between; align-items:flex-start; }
    .hbc-bal__v{ font-size:38px; font-weight:800; letter-spacing:-.04em; color:var(--color-text); line-height:.92; margin-top:6px; }
    .hbc-bal__v small{ font-size:14px; font-weight:600; color:var(--color-text-subtle); }
    /* semantic pills (success / attention), mirrored from the prototype .pill */
    .hbc-pill{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; letter-spacing:-.01em; white-space:nowrap; }
    .hbc-pill .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }
    .hbc-pill--pos{ color:var(--color-success); background:var(--color-success-surface); }
    .hbc-pill--warn{ color:var(--color-warning); background:var(--color-warning-surface); }
    .hbc-bar{ height:6px; background:var(--color-border-subtle); border-radius:3px; margin-top:16px; overflow:hidden; }
    .hbc-bar i{ display:block; height:100%; width:39%; background:linear-gradient(90deg,var(--color-primary),var(--color-primary-hover)); border-radius:3px;
      transition:width 700ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-bar__e{ display:flex; justify-content:space-between; font-size:11px; color:var(--color-text-muted); font-weight:500; margin-top:9px; }

    /* semantic story nudges (success / attention), mirrored from the prototype .story */
    .hbc-nudge{ display:flex; gap:9px; align-items:flex-start; padding:12px 13px; border-radius:14px; }
    .hbc-nudge + .hbc-nudge{ margin-top:10px; }
    .hbc-nudge svg{ flex-shrink:0; margin-top:1px; }
    .hbc-nudge p{ font-size:11.5px; font-weight:500; line-height:1.45; }
    .hbc-nudge--pos{ background:var(--color-success-surface); border:1px solid var(--color-success-border); }
    .hbc-nudge--pos svg{ color:var(--color-success); } .hbc-nudge--pos p{ color:var(--color-success-strong); } .hbc-nudge--pos b{ color:var(--color-success); font-weight:700; }
    .hbc-nudge--warn{ background:var(--color-warning-surface); border:1px solid var(--color-warning-border); }
    .hbc-nudge--warn svg{ color:var(--color-warning); } .hbc-nudge--warn p{ color:var(--color-warning-strong); } .hbc-nudge--warn b{ color:var(--color-warning); font-weight:700; }

    /* specimen: payoff chart */
    .hbc-chart__h{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
    .hbc-chart__h .v{ font-size:12px; font-weight:700; color:var(--color-text); }
    .hbc-chart svg{ width:100%; display:block; }
    .hbc-chart__x{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--color-text-muted); font-weight:500; margin-top:9px; }
    .hbc-chart__x .now{ color:var(--color-primary); font-weight:700; }

    /* specimen: status row */
    .hbc-status{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .hbc-status__l{ display:flex; align-items:center; gap:13px; min-width:0; }
    .hbc-status__tick{ width:34px; height:34px; border-radius:50%; background:var(--color-success-surface); display:grid; place-items:center; color:var(--color-success); flex:none; }
    .hbc-status__t{ display:block; font-size:14px; font-weight:700; color:var(--color-text); letter-spacing:-.01em; }
    .hbc-status__sub{ display:block; font-size:11.5px; color:var(--color-text-muted); font-weight:500; margin-top:2px; }
    .hbc-status__badge{ font-size:10px; font-weight:700; color:var(--color-success); background:var(--color-success-surface); padding:5px 10px; border-radius:999px; }
    .hbc-status__r{ display:flex; align-items:center; gap:8px; flex:none; }
    .hbc-status__chev{ color:var(--color-text-subtle); flex:none; }

    /* specimen: form row (live dropdown selector) */
    .hbc-frow{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:14px 16px;
      font-family:"Inter",var(--font); text-align:left; background:none; border:0; border-top:1px solid var(--color-border); cursor:pointer; }
    .hbc-select:first-child .hbc-frow{ border-top:0; }
    .hbc-frow > span{ display:flex; flex-direction:column; gap:2px; }
    .hbc-frow__v{ font-size:16px; font-weight:700; color:var(--color-text); letter-spacing:-.01em; }
    .hbc-frow__c{ color:var(--color-text-subtle); flex:none; }
    .hbc-frow[aria-expanded="true"] .hbc-frow__c{ transform:rotate(180deg); color:var(--color-primary); }
    .hbc-frow[aria-expanded="true"] .hbc-frow__v{ color:var(--color-primary); }
    /* the popover panel, opens via grid-rows 0fr -> 1fr */
    .hbc-pop{ display:grid; grid-template-rows:0fr; }
    .hbc-select.is-open .hbc-pop{ grid-template-rows:1fr; }
    .hbc-opts{ list-style:none; margin:0; padding:0; overflow:hidden; opacity:0; transition:opacity 200ms ease; }
    .hbc-select.is-open .hbc-opts{ opacity:1; }
    .hbc-opt{ padding:10px 16px; margin:0; border-radius:9px; font-size:14px; font-weight:600; color:var(--color-text-muted);
      letter-spacing:-.01em; cursor:pointer; display:flex; align-items:center; justify-content:space-between; }
    .hbc-opt[aria-selected="true"]{ color:var(--color-primary); }
    .hbc-opt[aria-selected="true"]::after{ content:""; width:7px; height:12px; border:solid var(--color-primary); border-width:0 2px 2px 0;
      transform:rotate(45deg); margin:-3px 4px 0 0; }

    /* specimen: action bar + primary button */
    .hbc-actionbar{ position:relative; padding-top:18px; }
    .hbc-actionbar::before{ content:""; position:absolute; left:-16px; right:-16px; top:0; height:1px; background:var(--color-border); }
    .hbc-btn{ width:100%; background:var(--color-primary); color:#fff; border:0; border-radius:15px; padding:15px; font:700 15px/1 "Inter",var(--font); letter-spacing:-.01em; text-align:center; box-shadow:0 12px 24px -12px rgba(31,80,181,.55); }

    /* specimen: tab bar */
    .hbc-tabs{ display:flex; justify-content:space-around; border-top:1px solid var(--color-border); padding-top:12px; }
    .hbc-tab{ display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px 13px 7px; border-radius:13px; font-size: 11px; font-weight:700; letter-spacing:.03em; color:var(--color-text-subtle); cursor:pointer; }
    .hbc-tab--on{ background:var(--color-primary); color:#fff; box-shadow:0 5px 12px -6px rgba(31,80,181,.33); }
    .hbc-tab svg{ width:20px; height:20px; }

    /* specimen: bottom sheet */
    .hbc-sheet{ background:var(--color-surface); border:1px solid var(--color-border); border-radius:26px 26px 12px 12px; padding:12px 22px 18px; box-shadow:0 -8px 24px -14px rgba(16,30,60,.28); }
    .hbc-sheet__grip{ width:38px; height:4px; border-radius:2px; background:var(--color-border); margin:0 auto 16px; }
    .hbc-sheet__t{ font-size:18px; font-weight:800; letter-spacing:-.02em; color:var(--color-text); }
    .hbc-sheet__d{ font-size:13px; color:var(--color-text-muted); font-weight:500; line-height:1.5; margin-top:10px; }

    /* specimen: FAQ accordion */
    .hbc-faq__row{ border-bottom:1px solid var(--color-border); }
    .hbc-faq__row:last-child{ border-bottom:0; }
    .hbc-faq__q{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:14px 16px;
      font:500 13px/1.3 "Inter",var(--font); color:var(--color-text); text-align:left; background:none; border:0; cursor:pointer; }
    .hbc-faq__row--open .hbc-faq__q{ color:var(--color-primary); }
    .hbc-faq__q svg{ color:var(--color-text-subtle); flex:none; }
    .hbc-faq__row--open .hbc-faq__q svg{ transform:rotate(90deg); color:var(--color-primary); }
    /* answer collapses via grid-rows 0fr -> 1fr */
    .hbc-faq__a{ display:grid; grid-template-rows:0fr; }
    .hbc-faq__row--open .hbc-faq__a{ grid-template-rows:1fr; }
    .hbc-faq__a > p{ overflow:hidden; margin:0; font-size:12.5px; color:var(--color-text-muted); font-weight:500; line-height:1.55; }
    .hbc-faq__row--open .hbc-faq__a > p{ padding:0 2px 14px; }

    /* ---- specimen interactive controls: each demonstrates its real behavior ---- */

    /* primary button: hover darkens, active presses in */
    .hbc-btn{ cursor:pointer; transition:background 160ms cubic-bezier(0.23,1,0.32,1), transform 140ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-btn:active{ transform:scale(0.97); background:var(--color-primary-active); }

    /* tab bar: smooth color + icon scale */
    .hbc-tab{ transition:background 180ms cubic-bezier(0.23,1,0.32,1), color 180ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-tab svg{ transition:transform 200ms cubic-bezier(0.23,1,0.32,1); }

    /* status row: reads as a tappable status, lifts on hover */
    .hbc-status{ margin:-8px; padding:8px; border-radius:11px;
      transition:background 200ms cubic-bezier(0.23,1,0.32,1), transform 200ms cubic-bezier(0.23,1,0.32,1), box-shadow 200ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-status__badge{ transition:transform 200ms cubic-bezier(0.23,1,0.32,1), background 200ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-status__chev{ transition:transform 200ms cubic-bezier(0.23,1,0.32,1), color 200ms cubic-bezier(0.23,1,0.32,1); }

    /* form rows + FAQ rows: hover fill, chevron rotate baked into base rules above */
    .hbc-frow, .hbc-faq__q{ transition:background 160ms cubic-bezier(0.23,1,0.32,1), color 160ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-frow{ border-radius:9px; }
    .hbc-faq__q{ border-radius:9px; }
    .hbc-frow__c, .hbc-frow__v, .hbc-faq__q svg, .hbc-opt{
      transition:transform 200ms cubic-bezier(0.23,1,0.32,1), color 160ms cubic-bezier(0.23,1,0.32,1), background 160ms cubic-bezier(0.23,1,0.32,1); }

    /* payoff chart: solid line draws in, "today" dot fades + scales in.
       Path length of the 0,6 -> 122,48 segment is ~130; round up to be safe. */
    .hbc-chart__solid{ stroke-dasharray:140; stroke-dashoffset:0;
      transition:stroke-dashoffset 640ms cubic-bezier(0.23,1,0.32,1); }
    .hbc-chart__now{ transform-box:fill-box; transform-origin:center; opacity:1;
      transition:opacity 260ms ease 480ms, transform 320ms cubic-bezier(0.23,1,0.32,1) 460ms; }

    /* hover only for real pointers; touch must not stick hover */
    @media (hover:hover) and (pointer:fine){
      .dsx-spec:hover{ box-shadow:0 10px 28px -16px rgba(21,41,74,.30), 0 2px 6px rgba(21,41,74,.05);
        border-color:color-mix(in srgb,var(--color-primary) 26%,var(--rule)); }

      /* 1. balance bar fills from 0 to its real 39% on tile hover */
      .dsx-spec:has(.hbc-bar) .hbc-bar i{ width:0; }
      .dsx-spec:has(.hbc-bar):hover .hbc-bar i{ width:39%; }

      /* 2. chart line draws in on tile hover, dot pops at the end */
      .dsx-spec:has(.hbc-chart__solid) .hbc-chart__solid{ stroke-dashoffset:140; }
      .dsx-spec:has(.hbc-chart__solid):hover .hbc-chart__solid{ stroke-dashoffset:0; }
      .dsx-spec:has(.hbc-chart__solid) .hbc-chart__now{ opacity:0; transform:scale(.2); }
      .dsx-spec:has(.hbc-chart__solid):hover .hbc-chart__now{ opacity:1; transform:scale(1); }

      /* 3. status row lifts as a tappable list row, badge pops, chevron slides right */
      .hbc-status:hover{ background:var(--color-border-subtle); transform:translateY(-2px);
        box-shadow:0 8px 20px -14px rgba(16,30,60,.20); }
      .hbc-status:hover .hbc-status__badge{ transform:scale(1.06); }
      .hbc-status:hover .hbc-status__chev{ transform:translateX(3px); color:var(--color-text-muted); }

      /* 4. form rows + 5. button + 6. tabs + 7. FAQ hover states */
      .dsx-spec:hover .hbc-btn, .hbc-btn:hover{ background:var(--color-primary-active); }
      .hbc-tab:not(.hbc-tab--on):hover{ background:var(--color-primary-surface); color:var(--color-primary); }
      .hbc-frow:hover{ background:var(--color-primary-surface); }
      .hbc-frow:hover .hbc-frow__c{ transform:translateX(3px); color:var(--color-primary); }
      .hbc-frow[aria-expanded="true"]:hover .hbc-frow__c{ transform:rotate(180deg); }
      .hbc-frow:hover .hbc-frow__v{ color:var(--color-primary); }
      .hbc-opt:hover{ background:var(--color-primary-surface); color:var(--color-primary); }
      .hbc-faq__q:hover{ background:var(--color-primary-surface); color:var(--color-primary); }
      .hbc-faq__q:hover svg{ transform:translateX(2px); color:var(--color-primary); }
    }

    /* keyboard focus parity for the interactive specimens */
    .hbc-frow:focus-visible, .hbc-faq__q:focus-visible, .hbc-opt:focus-visible, .hbc-btn:focus-visible{
      outline:2px solid var(--color-primary); outline-offset:2px; }

    @media (prefers-reduced-motion:reduce){
      .dsx-spec, .hbc-btn, .hbc-status, .hbc-frow, .hbc-tab, .hbc-tab svg, .hbc-faq__q,
      .hbc-status__badge, .hbc-status__chev, .hbc-frow__c, .hbc-frow__v, .hbc-faq__q svg,
      .hbc-bar i, .hbc-chart__solid, .hbc-chart__now, .hbc-opts, .hbc-opt{ transition:none!important; }
      .hbc-btn:active{ transform:none!important; }
      /* keep end states visible without motion */
      .dsx-spec:has(.hbc-bar) .hbc-bar i{ width:39%; }
      .hbc-chart__solid{ stroke-dashoffset:0!important; }
      .hbc-chart__now{ opacity:1!important; transform:none!important; }
    }

    /* the embedded prototype iframe.
       The app renders in ?embed=1 mode at its exact phone size: 390 screen +
       11px frame each side = 412 wide, 844 + 22 = 866 tall. The phone's own
       rounded black frame is the visual, so the iframe is transparent and
       carries only a soft drop-shadow, no second border/box. */
    /* keep the phone clear of the fixed site nav when this section is the anchor target */
    #prototype{ scroll-margin-top:96px; }
    .proto-frame{ display:flex; justify-content:center; margin-top:2.4rem; }
    .proto-frame iframe{ width:412px; height:866px; flex:0 0 auto; border:0; border-radius:54px;
      background:transparent; transform-origin:top center;
      filter:drop-shadow(0 30px 60px rgba(21,41,74,.32)) drop-shadow(0 8px 20px rgba(21,41,74,.16)); }
    /* Below 460px the 412px phone is wider than the screen: scale the WHOLE phone down. */
    @media(max-width: 520px){ .proto-frame{ overflow:hidden; height:772px; } .proto-frame iframe{ transform:scale(.88); } }
    @media(max-width: 520px){ .proto-frame{ height:692px; } .proto-frame iframe{ transform:scale(.78); } }
    @media(max-width:360px){ .proto-frame{ height:640px; } .proto-frame iframe{ transform:scale(.72); } }
    /* Short viewports: shrink the phone with zoom (reflows the box, so it fits without a
       gap AND without clipping the drop-shadow the way overflow:hidden did). */
    @media(min-width: 520px) and (max-height:940px){ .proto-frame iframe{ zoom:0.82; } }
    @media(min-width: 520px) and (max-height:820px){ .proto-frame iframe{ zoom:0.72; } }
    @media(min-width: 520px) and (max-height:720px){ .proto-frame iframe{ zoom:0.62; } }

/* ================================================================
     Case showcase grid. One live screen, one interaction, two comps,
     one way in. Cell count equals content, no filler tile.
     ================================================================ */

  .sc{ padding-top:clamp(26px,4vw,42px); padding-bottom:clamp(52px,7vw,88px); }
  .sc__grid{ display:grid; gap:14px; grid-template-columns:1fr; }
  @media(min-width:900px){
    .sc{ padding-top:clamp(26px,4vw,42px); padding-bottom:clamp(52px,7vw,88px); }
  .sc__grid{ grid-template-columns:minmax(300px,400px) minmax(0,1fr) minmax(0,1fr);
      grid-template-areas:"live sheet sheet" "live sheet sheet" "live head pills" "chart chart cta"; }
    .c-live{ grid-area:live } .c-sheet{ grid-area:sheet }
    .c-head{ grid-area:head } .c-pills{ grid-area:pills }
    .c-chart{ grid-area:chart } .c-cta{ grid-area:cta }
  }

  .cell{ position:relative; border:1px solid var(--rule); border-radius:16px;
    background:#fff; overflow:hidden; display:flex; flex-direction:column; }
  .cell__k{ font-family:"JetBrains Mono",ui-monospace,monospace; font-size: 11px;
    letter-spacing: 0.02em; color:var(--ink3,#645e55);
    padding:15px 18px 0; margin:0; }
  .cell__b{ padding:14px 18px 18px; flex:1; display:flex; flex-direction:column;
    justify-content:center; min-width:0; }



  /* way in */
  .c-cta{ background:var(--ink); border-color:var(--ink); }
  .c-cta .cell__b{ padding:20px 22px 22px; gap:9px; justify-content:flex-start; }
  .c-cta .cell__k{ color:rgba(245,239,226,.5) }
  .c-cta__t{ font-size:clamp(1.05rem,1.6vw,1.28rem); font-weight:600; letter-spacing:-.015em;
    color:#F5EFE2; margin:0; line-height:1.25; max-width:30ch; }
  .c-cta__d{ font-size:.9rem; color:rgba(245,239,226,.62); margin:0; line-height:1.5; max-width:44ch; }
  .c-cta__a{ margin-top:6px; align-self:flex-start; display:inline-flex; align-items:center; gap:8px;
    padding:10px 16px; border-radius:99px; background:#F5EFE2; color:var(--ink);
    font-size:13px; font-weight:600; text-decoration:none;
    transition:transform .16s ease, background .16s ease; }
  .c-cta__a:hover{ background:#fff; transform:translateY(-1px); }

  @media(prefers-reduced-motion:reduce){
    .c-cta__a{ transition:none }
  }

.dl{ display:grid; gap:14px; margin-top:1.6rem; }
  .dl__item{ border:1px solid var(--rule); border-radius:16px; background:#fff; overflow:hidden; }
  .dl__q{ font-size:1.05rem; font-weight:600; color:var(--ink); line-height:1.3;
    padding:clamp(16px,2vw,20px) clamp(16px,2vw,22px) 0; margin:0; }
  .dl__rows{ display:grid; margin-top:14px; }
  .dl__row{ display:grid; gap:4px; padding:12px clamp(16px,2vw,22px); border-top:1px solid var(--rule); }
  @media(min-width: 720px){ .dl__row{ grid-template-columns:96px 1fr; gap:20px; align-items:baseline; } }
  .dl__k{ font-family:"JetBrains Mono",ui-monospace,monospace; font-size: 11px; letter-spacing: 0.02em; color:var(--ink3,#645e55); }
  .dl__v{ font-size:.95rem; line-height:1.6; color:var(--ink2,#4a4a44); margin:0; }
  .dl__v strong{ color:var(--ink); font-weight:600; }
  .dl__row--cost .dl__k{ color:var(--page-accent); }

/* Style G v4 bento. The ground is this case's tint in the Figma file. --u is the
   largest px per drawing unit at which every ground still fits its tile. */
.sc { --bento-ground: #EBE8DF; }
@media (min-width: 900px) {
  .sc .sc__grid { --u: min(1px, (100cqw - 450px) / 570, ((100cqw - 428px) / 2 - 36px) / 260, ((100cqw - 428px) / 2 + 378px) / 674); }
}
