/* ---------------------------------------------------------------
     Dents.co — TestFlight beta waitlist

     Brand layer below uses the dentskit-web token names verbatim, so this
     site and the design system share one vocabulary.

     Type: Instrument Sans for the wordmark, headings, body and UI;
     IBM Plex Mono for every number, price, timestamp and eyebrow label.
     That last one is a hard rule, not a preference.
     --------------------------------------------------------------- */

  :root {
    /* ----------------------------------------------------------------
       Brand layer. Names and values verbatim from the dentskit-web token
       set, so this site and the design system share one vocabulary.
       Anything under "local" below is this site's own and has no
       dentskit-web equivalent.
       ---------------------------------------------------------------- */

    /* surfaces */
    --dk-bg-page:            #05070C;
    --dk-bg-screen:          #090C12;
    --dk-card-fill:          rgba(255,255,255,.04);
    --dk-card-fill-strong:   rgba(255,255,255,.06);
    --dk-card-border:        rgba(255,255,255,.06);
    --dk-card-border-strong: rgba(255,255,255,.09);
    --dk-divider:            rgba(255,255,255,.06);

    /* accent, laser green */
    --dk-accent:             #3EE07F;
    --dk-accent-ink:         #05230F;  /* text/icons ON accent fills, never white */
    --dk-accent-on-light:    #1F9E57;  /* the .co and dot on white/paper grounds */
    --dk-accent-glow:        rgba(62,224,127,.35);
    --dk-accent-glow-inner:  rgba(62,224,127,.12);

    /* text */
    --dk-text:               #FFFFFF;
    --dk-text-soft:          #C3C9D2;
    --dk-text-secondary:     #A3AAB5;
    --dk-text-muted:         #8F97A3;
    --dk-text-faint:         #6F7783;
    --dk-text-dim:           #4B5361;

    /* status */
    --dk-warning:            #FFB020;
    --dk-danger:             #FE585F;

    /* depth ramp, low to deep */
    --dk-ramp-low:           rgb(40,200,120);
    --dk-ramp-mid:           rgb(30,110,230);
    --dk-ramp-deep:          rgb(120,40,190);
    --dk-ramp:               linear-gradient(90deg, var(--dk-ramp-low), var(--dk-ramp-mid), var(--dk-ramp-deep));

    /* type */
    --dk-font-ui:            'Instrument Sans', system-ui, sans-serif;
    --dk-font-mono:          'IBM Plex Mono', ui-monospace, monospace;

    /* geometry */
    --dk-radius-card:        12px;
    --dk-radius-card-lg:     14px;
    --dk-radius-pill:        999px;

    /* ---- local: no dentskit-web equivalent ---- */
    --field:       #0d1117;            /* form control ground */
    --accent-lift: #7bf0ab;            /* link hover */
    --gutter:      clamp(20px, 5vw, 48px);
    --shell:       1240px;
    --band:        clamp(64px, 8vw, 116px);
    --ease:        cubic-bezier(.16, 1, .3, 1);
  }

  /* No global border-box reset: the design's max-widths, gutters, phone bezel,
     reticle and shutter are all sized against the default content-box. */

  html {
    scroll-behavior: smooth;
    color-scheme: dark;
  }

  body {
    margin: 0;
    background: var(--dk-bg-page);
    color: var(--dk-text);
    font-family: var(--dk-font-ui);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  /* `clip` doesn't create a scroll container, so the sticky nav keeps working. */
  @supports (overflow: clip) {
    body { overflow-x: clip; }
  }

  h1, h2, h3 { font-family: var(--dk-font-ui); text-wrap: pretty; }

  a { color: var(--dk-accent); }
  a:hover { color: var(--accent-lift); }

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

  input, select, button { font-family: inherit; }

  input:focus-visible,
  select:focus-visible,
  button:focus-visible,
  a:focus-visible {
    outline: 2px solid var(--dk-accent);
    outline-offset: 2px;
  }

  input::placeholder { color: var(--dk-text-muted); }

  [hidden] { display: none !important; }

  /* --- Motion ---------------------------------------------------- */

  @keyframes dentsReticle {
    0%, 100% { box-shadow: 0 0 0 0 rgba(62,224,127,0), inset 0 0 24px rgba(62,224,127,.15); }
    50%      { box-shadow: 0 0 22px 2px rgba(62,224,127,.35), inset 0 0 30px rgba(62,224,127,.28); }
  }
  @keyframes dentsSweep {
    0%   { transform: translateY(0); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(188px); opacity: 0; }
  }
  @keyframes dentsPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.14); }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }

  /* --- Shared layout --------------------------------------------- */

  .shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: var(--band) var(--gutter);
  }

  .band {
    position: relative;
    z-index: 1;
    background: var(--dk-bg-screen);
    border-top: 1px solid var(--dk-divider);
    border-bottom: 1px solid var(--dk-divider);
  }

  .section-title {
    margin: 0 0 clamp(28px, 4vw, 44px);
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dk-text);
  }

  .eyebrow {
    font-family: var(--dk-font-mono);
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--dk-text-faint);
  }

  /* Fixed measurement grid behind the page. */
  .grid-veil {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .5;
    background-image:
      linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
            mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
  }

  /* --- Logo lockup -------------------------------------------------
     Geometry from the identity handoff. Mark height is 1.53x the wordmark
     font-size and the gap is 30% of the mark height, so both derive from
     --logo-size and cannot drift apart.
     ------------------------------------------------------------------ */

  .logo {
    --logo-size: 24px;
    display: flex;
    align-items: center;
    gap: calc(var(--logo-size) * 1.53 * 0.3);
    text-decoration: none;
    flex: none;
  }

  .logo__mark {
    flex: none;
    width: calc(var(--logo-size) * 1.53);
    height: calc(var(--logo-size) * 1.53);
    color: var(--dk-accent);
  }

  .dents-wordmark {
    font-family: var(--dk-font-ui);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    font-size: var(--logo-size);
    color: var(--dk-text);
    white-space: nowrap;
  }
  .dents-tld { color: var(--dk-accent); }

  /* The brand period is a drawn circle, not the typed full stop, which
     Instrument Sans sets square-ish. The margins are asymmetric on purpose:
     the c carries its own left sidebearing, so equal margins read too wide
     on the right. Do not equalise them. */
  .dents-dot {
    display: inline-block;
    width: 0.18em;
    height: 0.18em;
    border-radius: 50%;
    background: currentColor;
    margin: 0 0.045em 0.01em 0.085em;
  }

  /* Colourways. Never green-on-white, and never white type on an accent
     fill: the ink on accent is --accent-ink. */
  .logo--light .logo__mark,
  .logo--light .dents-wordmark { color: var(--dk-bg-screen); }
  .logo--light .dents-tld { color: var(--dk-accent-on-light); }

  .logo--accent .logo__mark,
  .logo--accent .dents-wordmark,
  .logo--accent .dents-tld { color: var(--dk-accent-ink); }

  /* --- Nav -------------------------------------------------------- */

  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 80px;
    padding: 0 var(--gutter);
    background: rgba(5,7,12,.72);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dk-divider);
  }

  .nav__brand { --logo-size: 24px; }

  .nav__links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 26px);
    white-space: nowrap;
  }

  .nav__link {
    color: var(--dk-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color .18s ease;
  }
  .nav__link:hover { color: var(--dk-text); }

  .nav__cta {
    display: inline-flex;
    align-items: center;
    background: var(--dk-accent);
    color: var(--dk-accent-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 12px;
    transition: transform .18s var(--ease);
  }
  .nav__cta:hover { color: var(--dk-accent-ink); transform: translateY(-1px); }
  .nav__cta:active { transform: translateY(1px); }

  /* Below this the nav items no longer fit on one line. The CTA and the
     footer's link columns carry the same destinations. */
  @media (max-width: 820px) {
    .nav__links .nav__link { display: none; }
  }

  /* --- Hero ------------------------------------------------------- */

  .hero {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: 0 auto;
    padding: clamp(44px, 6vw, 88px) var(--gutter) clamp(48px, 7vw, 80px);
    display: flex;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    flex-wrap: wrap;
  }

  .hero__copy {
    flex: 1 1 460px;
    min-width: min(300px, 100%);
  }

  .hero__eyebrow { margin-bottom: 22px; }

  .hero__title {
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dk-text);
    max-width: 18ch;
  }

  .hero__sub {
    margin: 24px 0 0;
    max-width: 52ch;
    font-size: clamp(17px, 1.3vw, 19px);
    line-height: 1.62;
    color: var(--dk-text-secondary);
  }

  /* --- Form ------------------------------------------------------- */

  .form {
    margin-top: 32px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .field__label .optional { font-weight: 400; color: var(--dk-text-muted); }

  .field__hint {
    font-size: 13px;
    line-height: 1.5;
    color: var(--dk-text-muted);
  }

  .field__error {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--dk-danger);
  }

  .control {
    width: 100%;
    box-sizing: border-box;
    background: var(--field);
    color: var(--dk-text);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 16px;
    transition: border-color .18s ease;
  }
  .control:hover { border-color: rgba(255,255,255,.26); }
  .control[aria-invalid="true"] { border-color: var(--dk-danger); }

  /* appearance:none strips the native affordance, so the chevron is drawn back on. */
  select.control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%238b93a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 7 7.5l6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
  }
  select.control option { background: var(--field); color: var(--dk-text); }

  .submit {
    cursor: pointer;
    border: none;
    background: var(--dk-accent);
    color: var(--dk-accent-ink);
    font-weight: 600;
    font-size: 16px;
    padding: 15px;
    border-radius: 12px;
    transition: transform .18s var(--ease), opacity .18s ease;
  }
  .submit:hover:not(:disabled) { transform: translateY(-1px); }
  .submit:active:not(:disabled) { transform: translateY(1px); }
  .submit[aria-busy="true"] {
    cursor: progress;
    opacity: .7;
    transform: none;
  }

  .form__fineprint {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--dk-text-muted);
  }

  /* --- Post-submit + closed panels -------------------------------- */

  .panel {
    margin-top: 32px;
    max-width: 520px;
    border-radius: 16px;
  }
  .panel:focus { outline: none; }

  .panel--success {
    border: 1px solid rgba(62,224,127,.45);
    background: linear-gradient(180deg, rgba(62,224,127,.10), rgba(62,224,127,.02));
    padding: 26px 28px;
  }

  .panel--closed {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.02);
    padding: 24px 26px;
  }

  .panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .panel__head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .panel--closed h2 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 600;
    color: var(--dk-text);
  }

  .panel__body {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dk-text-soft);
  }
  .panel__note {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dk-text-muted);
  }
  .panel--closed p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dk-text-secondary);
  }
  .panel a { text-decoration: none; font-weight: 600; }

  /* --- Phone mock -------------------------------------------------- */

  .hero__device {
    flex: 0 1 340px;
    min-width: min(280px, 100%);
    display: flex;
    justify-content: center;
  }

  .phone {
    /* content-box, so the 11px bezel sits outside --phone-w. */
    --phone-w: min(320px, 80vw);

    position: relative;
    width: var(--phone-w);
    aspect-ratio: 9 / 19.5;
    border-radius: 52px;
    padding: 11px;
    background: linear-gradient(160deg, #1a1e26, #0a0c11);
    box-shadow:
      0 40px 90px -30px rgba(0,0,0,.9),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 0 0 2px rgba(255,255,255,.03);
  }

  .phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 42px;
    overflow: hidden;
    background: #14171b;
  }

  /* Mirrored so the car faces right; pushed in so the fender fills the reticle. */
  .phone__feed {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: scaleX(-1);
  }
  .phone__feed picture { display: block; }
  .phone__feed img {
    /* 560% / -140% / -39.375% are the design's 1792px / -448px / -126px at a
       320px screen. Percentage margin-top resolves against the containing
       block's *width*, so the framing holds at any phone width. */
    position: absolute;
    width: 560%;
    height: auto;
    left: -140%;
    top: 0;
    margin-top: -39.375%;
    filter: brightness(.98) contrast(1.09) saturate(.92);
  }

  .phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    border-radius: 999px;
    background: #000;
    z-index: 6;
  }

  .phone__bar {
    position: absolute;
    top: 44px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
  }
  .phone__back {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
  }
  .phone__panel-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
  }
  .phone__lidar {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--dk-font-mono);
    font-size: 10px;
    color: var(--dk-accent);
  }
  .phone__lidar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dk-accent);
    box-shadow: 0 0 8px var(--dk-accent);
    animation: dentsPulse 1.6s ease-in-out infinite;
  }

  .phone__reticle {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    width: 190px;
    height: 190px;
    border-radius: 32px;
    border: 1.5px solid var(--dk-accent);
    overflow: hidden;
    animation: dentsReticle 2.6s ease-in-out infinite;
  }
  .phone__sweep {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(62,224,127,.95), transparent);
    box-shadow: 0 0 12px rgba(62,224,127,.75);
    animation: dentsSweep 2.8s ease-in-out infinite;
  }
  .phone__target {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dk-accent);
    box-shadow: 0 0 14px var(--dk-accent);
  }

  .phone__readout {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 118px;
    text-align: center;
    z-index: 4;
  }
  .phone__range {
    font-family: var(--dk-font-mono);
    font-size: 34px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
  }
  .phone__range .unit { font-size: 15px; color: var(--dk-accent); }
  .phone__guidance {
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0,0,0,.85);
    margin-top: 5px;
  }

  .phone__shutter {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
  }
  .phone__shutter div {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dk-accent);
    box-shadow: 0 0 24px rgba(62,224,127,.5);
    animation: dentsPulse 2.6s ease-in-out infinite;
  }

  /* --- In the beta ------------------------------------------------- */

  .perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1px;
    background: var(--dk-card-border);
    border: 1px solid var(--dk-card-border);
    border-radius: 16px;
    overflow: hidden;
  }
  .perk {
    background: var(--dk-bg-screen);
    padding: 26px;
  }
  .perk h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .perk p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--dk-text-secondary);
  }

  /* --- Who it's for -------------------------------------------------- */

  .fit {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: 0 auto;
    padding: var(--band) var(--gutter);
  }
  .fit__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(24px, 4vw, 48px);
  }
  .fit__heading {
    font-family: var(--dk-font-mono);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .fit__heading--yes { color: var(--dk-accent); }
  .fit__heading--no  { color: var(--dk-text-muted); }
  .fit__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .fit__list p {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
  }
  .fit__col--yes .fit__list p { color: var(--dk-text-soft); }
  .fit__col--no {
    border-left: 1px solid var(--dk-card-border-strong);
    padding-left: clamp(0px, 3vw, 40px);
  }
  .fit__col--no .fit__list p { color: var(--dk-text-muted); }

  /* --- How the beta runs ---------------------------------------------- */

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(22px, 3vw, 34px);
    align-items: start;
  }
  .step__rule {
    height: 2px;
    width: 100%;
    margin-bottom: 22px;
  }
  .step:nth-child(1) .step__rule { background: var(--dk-accent); }
  .step:nth-child(2) .step__rule { background: rgba(62,224,127,.45); }
  .step:nth-child(3) .step__rule { background: rgba(255,255,255,.14); }
  .step:nth-child(2) { margin-top: clamp(0px, 2.5vw, 32px); }
  .step:nth-child(3) { margin-top: clamp(0px, 5vw, 64px); }
  .step h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .step p {
    margin: 0;
    font-size: 16px;
    line-height: 1.58;
    color: var(--dk-text-secondary);
  }

  /* --- Questions -------------------------------------------------------- */

  .faq {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: 0 auto;
    padding: var(--band) var(--gutter);
  }
  .faq__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(28px, 4vw, 56px);
  }
  .faq__title {
    margin: 0 0 clamp(24px, 3vw, 36px);
    max-width: 16ch;
  }
  .faq__aside {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dk-text-muted);
    max-width: 40ch;
  }
  .faq__aside a { text-decoration: none; font-weight: 600; }
  .faq__list {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .faq__list h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .faq__list p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dk-text-secondary);
  }

  /* --- Closing CTA -------------------------------------------------------- */

  .closing {
    position: relative;
    z-index: 1;
    background: var(--dk-accent);
  }
  .closing__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--gutter);
    text-align: center;
  }
  .closing h2 {
    margin: 0 auto 18px;
    font-size: clamp(30px, 5vw, 62px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dk-accent-ink);
    max-width: 22ch;
  }
  .closing p {
    margin: 0 auto 30px;
    max-width: 46ch;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(5,35,15,.78);
  }
  .closing__cta {
    display: inline-flex;
    align-items: center;
    background: var(--dk-bg-page);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 28px;
    border-radius: 12px;
    transition: transform .18s var(--ease);
  }
  .closing__cta:hover { color: #ffffff; transform: translateY(-1px); }
  .closing__cta:active { transform: translateY(1px); }
  .closing__cta:focus-visible { outline-color: var(--dk-accent-ink); }

  /* --- Footer -------------------------------------------------------------- */

  .footer {
    position: relative;
    z-index: 1;
    background: var(--dk-bg-page);
  }
  .footer__top {
    max-width: var(--shell);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 64px) var(--gutter) 32px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .footer__brand { flex: 1 1 240px; }
  .footer__brand-row {
    --logo-size: 17px;
    margin-bottom: 14px;
  }
  .footer__tagline {
    margin: 0;
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dk-text-faint);
  }
  .footer__cols {
    display: flex;
    gap: clamp(32px, 6vw, 72px);
    flex-wrap: wrap;
  }
  .footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .footer__col-title {
    font-family: var(--dk-font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dk-text-dim);
  }
  .footer__col a {
    color: var(--dk-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color .18s ease;
  }
  .footer__col a:hover { color: var(--dk-text); }
  .footer__legal {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 20px var(--gutter);
    border-top: 1px solid var(--dk-divider);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer__legal span {
    font-family: var(--dk-font-mono);
    font-size: 12px;
    color: var(--dk-text-dim);
  }

  /* --- Document pages (legal, support) -------------------------------------- */

  .doc {
    position: relative;
    z-index: 1;
    /* Narrower than the marketing shell: a contents rail plus a 68ch measure
       fills this width, where the full 1240px leaves a dead right margin. */
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 7vw, 96px);
  }

  .doc__head {
    padding-bottom: clamp(28px, 4vw, 44px);
    border-bottom: 1px solid var(--dk-card-border-strong);
    margin-bottom: clamp(32px, 4vw, 52px);
  }
  .doc__head h1 {
    margin: 18px 0 0;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dk-text);
    max-width: 20ch;
  }
  .doc__standfirst {
    margin: 20px 0 0;
    max-width: 62ch;
    font-size: clamp(16.5px, 1.2vw, 18px);
    line-height: 1.62;
    color: var(--dk-text-secondary);
  }
  .doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--dk-font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--dk-text-faint);
  }
  .doc__meta b { color: var(--dk-text-secondary); font-weight: 500; }

  /* Sticky contents rail beside the prose on wide screens. */
  .doc__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
  }
  @media (min-width: 940px) {
    .doc__body { grid-template-columns: 220px minmax(0, 1fr); }
  }

  .doc__toc { align-self: start; }
  @media (min-width: 940px) {
    .doc__toc { position: sticky; top: 104px; }
  }
  .doc__toc-title {
    display: block;
    font-family: var(--dk-font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dk-text-dim);
    margin-bottom: 14px;
  }
  .doc__toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    counter-reset: toc;
  }
  .doc__toc a {
    display: flex;
    gap: 10px;
    color: var(--dk-text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color .18s ease;
  }
  .doc__toc a::before {
    counter-increment: toc;
    content: counter(toc, decimal-leading-zero);
    font-family: var(--dk-font-mono);
    font-size: 11.5px;
    color: var(--dk-text-dim);
    padding-top: 2px;
  }
  .doc__toc a:hover { color: var(--dk-text); }
  .doc__toc a:hover::before { color: var(--dk-accent); }

  .prose { max-width: 68ch; counter-reset: sec; }
  .prose > section + section { margin-top: clamp(38px, 4vw, 56px); }
  .prose h2 {
    margin: 0 0 16px;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--dk-text);
    scroll-margin-top: 100px;
  }
  .prose h2::before {
    counter-increment: sec;
    content: counter(sec, decimal-leading-zero);
    display: block;
    font-family: var(--dk-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    color: var(--dk-accent);
    margin-bottom: 10px;
  }
  .prose h3 {
    margin: 28px 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .prose p,
  .prose li {
    font-size: 16px;
    line-height: 1.68;
    color: var(--dk-text-secondary);
  }
  .prose p { margin: 0 0 14px; }
  .prose > section > :last-child { margin-bottom: 0; }
  .prose ul { margin: 0 0 14px; padding-left: 20px; }
  .prose li { margin-bottom: 8px; }
  .prose li::marker { color: var(--dk-text-dim); }
  .prose strong { color: var(--dk-text); font-weight: 600; }
  .prose a { text-decoration: underline; text-underline-offset: 3px; }

  /* Definition rows: term on the left, plain-English meaning on the right. */
  .deflist {
    margin: 0 0 14px;
    display: grid;
    gap: 1px;
    background: var(--dk-card-border);
    border: 1px solid var(--dk-card-border);
    border-radius: 12px;
    overflow: hidden;
  }
  @media (min-width: 620px) {
    .deflist { grid-template-columns: minmax(140px, 32%) 1fr; }
  }
  .deflist dt,
  .deflist dd {
    background: var(--dk-bg-screen);
    margin: 0;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
  }
  .deflist dt { color: var(--dk-text); font-weight: 600; }
  .deflist dd { color: var(--dk-text-secondary); }

  .callout {
    border: 1px solid var(--dk-card-border-strong);
    border-left: 2px solid var(--dk-accent);
    background: rgba(255,255,255,.02);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 0 0 18px;
  }
  .callout p:last-child { margin-bottom: 0; }
  .callout--warn { border-left-color: var(--dk-warning); }

  /* Unmistakable in-page marker for anything counsel still has to decide. */
  .todo {
    font-family: var(--dk-font-mono);
    font-size: 13px;
    color: #05230F;
    background: var(--dk-warning);
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
  }

  .draft-banner {
    position: relative;
    z-index: 1;
    background: var(--dk-warning);
    color: #2b1a00;
  }
  .draft-banner div {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 12px var(--gutter);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
  }
  .draft-banner strong { font-weight: 700; }

  /* --- Support page --------------------------------------------------------- */

  /* Discrete tiles rather than a hairline grid: seven topics never fill a row
     evenly, and an empty cell in a shared-background grid reads as a hole. */
  .topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
    gap: 12px;
    margin-bottom: clamp(40px, 5vw, 64px);
  }
  .topics a {
    background: var(--dk-bg-screen);
    border: 1px solid var(--dk-card-border);
    border-radius: 12px;
    padding: 20px 22px;
    text-decoration: none;
    display: block;
    transition: background .18s ease, border-color .18s ease;
  }
  .topics a:hover { background: #0d1119; border-color: rgba(62,224,127,.35); }
  .topics b {
    display: block;
    font-family: var(--dk-font-ui);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--dk-text);
    margin-bottom: 6px;
  }
  .topics span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dk-text-muted);
  }

  .qa { border-top: 1px solid var(--dk-card-border-strong); }
  .qa > div {
    padding: 22px 0;
    border-bottom: 1px solid var(--dk-card-border-strong);
  }
  .qa h3 {
    margin: 0 0 8px;
    font-family: var(--dk-font-ui);
    font-size: 17px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .qa p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--dk-text-secondary);
  }
  .qa p:last-child { margin-bottom: 0; }

  .prose code,
  .qa code {
    font-family: var(--dk-font-mono);
    font-size: .88em;
    background: var(--field);
    border: 1px solid var(--dk-card-border-strong);
    border-radius: 5px;
    padding: 1px 6px;
    color: var(--dk-text);
  }

  /* --- How it works --------------------------------------------------------- */

  .trust {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--dk-divider);
    border-bottom: 1px solid var(--dk-divider);
    background: rgba(255,255,255,.015);
  }
  .trust div {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    align-items: center;
    justify-content: center;
    font-family: var(--dk-font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--dk-text-faint);
  }

  /* Three steps, each above a small illustration of that moment in the app. */
  .taps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(22px, 3vw, 34px);
    align-items: start;
  }
  .tap { display: flex; flex-direction: column; }
  .tap:nth-child(2) { margin-top: clamp(0px, 3vw, 40px); }
  .tap:nth-child(3) { margin-top: clamp(0px, 6vw, 80px); }
  .tap h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .tap p {
    margin: 0;
    color: var(--dk-text-secondary);
    font-size: 16px;
    line-height: 1.55;
  }
  .tap__visual {
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(120% 100% at 40% 20%, #12161d, #06080c);
    margin-bottom: 22px;
    border: 1px solid var(--dk-divider);
  }
  .tap__reticle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 96px; height: 96px;
    border: 2px solid var(--dk-accent);
    border-radius: 18px;
    box-shadow: 0 0 18px rgba(62,224,127,.4), inset 0 0 18px rgba(62,224,127,.18);
  }
  .tap__range {
    position: absolute;
    bottom: 14px; right: 14px;
    font-family: var(--dk-font-mono);
    font-size: 11px;
    color: var(--dk-accent);
    background: rgba(62,224,127,.1);
    border: 1px solid rgba(62,224,127,.3);
    padding: 3px 8px;
    border-radius: 999px;
  }
  .tap__heat {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 96px;
    border-radius: 50%;
    filter: blur(4px);
    background: radial-gradient(circle at 50% 50%, rgba(120,40,190,.9), rgba(30,110,230,.8) 42%, rgba(40,200,120,.6) 72%, transparent);
  }
  .tap__outline {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    overflow: visible;
  }
  .tap__visual--result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
  }
  .tap__row { display: flex; align-items: baseline; gap: 8px; }
  .tap__row + .tap__row { margin-top: 6px; }
  .tap__big {
    font-family: var(--dk-font-mono);
    font-size: 42px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .tap__price {
    font-family: var(--dk-font-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--dk-accent);
  }
  .tap__unit {
    font-family: var(--dk-font-mono);
    font-size: 15px;
    color: var(--dk-text-faint);
  }
  .tap__unit--sm { font-size: 12px; }

  /* Agreement strip under the three steps. */
  .pledge {
    margin-top: clamp(40px, 5vw, 64px);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 26px;
    border: 1px solid var(--dk-card-border-strong);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
  }
  .pledge p {
    margin: 0;
    flex: 1 1 320px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dk-text-soft);
  }
  .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
    background: var(--dk-accent);
    color: var(--dk-accent-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 12px;
    transition: transform .18s var(--ease);
  }
  .btn-accent:hover { color: var(--dk-accent-ink); transform: translateY(-1px); }
  .btn-accent:active { transform: translateY(1px); }

  /* --- Point cloud ---------------------------------------------------------- */

  .cloud {
    border: 1px solid var(--dk-divider);
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, #0c1017, #05070c);
    margin-bottom: 22px;
  }
  .cloud canvas {
    display: block;
    width: 100%;
    height: min(620px, 84vw);
  }
  .cloud__legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--dk-divider);
    font-family: var(--dk-font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--dk-text-faint);
  }
  .cloud__ramp {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .cloud__ramp i {
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: var(--dk-ramp);
  }

  .facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1px;
    background: var(--dk-card-border);
    border: 1px solid var(--dk-card-border);
    border-radius: 16px;
    overflow: hidden;
  }
  .fact { background: var(--dk-bg-screen); padding: 24px; }
  .fact__figure {
    font-family: var(--dk-font-mono);
    font-size: 26px;
    font-weight: 600;
    color: var(--dk-accent);
    margin-bottom: 10px;
  }
  .fact__figure small { font-size: 14px; color: var(--dk-text-faint); }
  .fact__figure--scores {
    font-size: 20px;
    display: flex;
    gap: 8px;
    color: var(--dk-accent);
  }
  .fact__figure--scores .fair { color: var(--dk-warning); }
  .fact__figure--scores .low  { color: #ff5c5c; }
  .fact h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--dk-text);
  }
  .fact p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--dk-text-secondary);
  }

  /* --- Estimate showcase ----------------------------------------------------- */

  .split {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: 0 auto;
    padding: var(--band) var(--gutter);
    display: flex;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    flex-wrap: wrap;
  }
  .split__copy { flex: 1 1 380px; min-width: min(300px, 100%); }
  .split__copy h2 { max-width: 20ch; }
  .split__copy p {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.62;
    color: var(--dk-text-secondary);
    max-width: 52ch;
  }
  .split__copy p:last-child {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dk-text-muted);
  }
  .split__figure {
    flex: 1 1 360px;
    min-width: min(300px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* A paper document, deliberately light against the dark page. */
  .estimate {
    width: min(360px, 90vw);
    background: #f7f7f4;
    color: #14171b;
    border-radius: 12px;
    box-shadow: 0 30px 70px -25px rgba(0,0,0,.8);
    overflow: hidden;
    position: relative;
  }
  .estimate__watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
  }
  .estimate__watermark span {
    font-family: var(--dk-font-mono);
    font-size: 15px;
    letter-spacing: .1em;
    color: rgba(20,23,27,.14);
    transform: rotate(-24deg);
    white-space: nowrap;
  }
  .estimate__head {
    padding: 20px 22px;
    border-bottom: 1px solid #e4e4de;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .estimate__shop { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
  .estimate__phone,
  .estimate__label {
    font-family: var(--dk-font-mono);
    font-size: 11px;
    color: #6b6f76;
    margin-top: 3px;
  }
  .estimate__ro {
    font-family: var(--dk-font-mono);
    font-size: 13px;
    font-weight: 600;
  }
  .estimate__vehicle {
    padding: 16px 22px;
    border-bottom: 1px solid #e4e4de;
    font-family: var(--dk-font-mono);
    font-size: 12px;
    color: #3a3e44;
    display: flex;
    justify-content: space-between;
  }
  .estimate__lines { padding: 8px 22px; }
  .estimate__line {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #eeeee8;
    font-size: 13px;
  }
  .estimate__line:last-child { border-bottom: none; }
  .estimate__line span:last-child { font-family: var(--dk-font-mono); }
  .estimate__total {
    padding: 14px 22px;
    background: #efefe9;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .estimate__total b { font-size: 14px; }
  .estimate__total span {
    font-family: var(--dk-font-mono);
    font-weight: 600;
    font-size: 18px;
  }

  .wm-toggle {
    cursor: pointer;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--dk-text);
    font-family: var(--dk-font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background .18s ease, border-color .18s ease;
  }
  .wm-toggle:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(62,224,127,.5);
  }

  /* Honeypot: off screen rather than display:none, which bots detect, and
     hidden from assistive tech and the tab order so nobody meets it. */
  .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
