@font-face {
    font-family: "Koulen";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/koulen.woff2') format('woff2');
  }
  @font-face {
    font-family: "Montaga";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montaga.woff2') format('woff2');
  }

  /* Riverside runs one visual world — pink on near-black, as the brand does.
     No theme swap: every colour is painted explicitly so the page holds on
     either host ground. */
  :root {
    --ground:   #151414;
    --panel:    #1D1B1B;
    --panel-2:  #242424;
    --raised:   #2B2828;
    --line:     #383333;
    --line-2:   #4A4343;
    --text:     #FFFFFF;
    --text-2:   #B9B0B0;
    --text-3:   #877E7E;
    --pink:     #FF0477;
    --pink-dim: #3D0620;
    --pink-ln:  #7A0E3C;
    --peach:    #FFBC7D;

    --display: "Koulen", "Arial Narrow", Impact, sans-serif;
    --body: "Montaga", Georgia, "Times New Roman", serif;
    --mono: "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", ui-monospace, monospace;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0;
    line-height: 1.05;
  }

  .eyebrow {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--pink);
    margin: 0;
  }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

  /* ---------- masthead ---------- */
  header { border-bottom: 1px solid var(--line); background: #100F0F; }
  .masthead { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; padding: 16px 0; }
  .masthead img { height: 40px; width: auto; display: block; }
  .masthead .tag { color: var(--text-2); font-size: 15px; margin-right: auto; }
  .masthead a.phone {
    font-family: var(--display); font-size: 19px; letter-spacing: .04em;
    color: var(--text); text-decoration: none; border: 1px solid var(--pink);
    padding: 6px 16px; border-radius: 2px; transition: background .15s ease;
  }
  .masthead a.phone:hover { background: var(--pink); }
  .masthead a.phone:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }

  /* ---------- hero ---------- */
  /* No ch units on the hero container: 1ch resolves against the 17px body font,
     not the display face, which strangles the headline into one word per line. */
  .hero { padding: 38px 0 26px; }
  .hero h1 { font-size: clamp(36px, 5vw, 64px); margin: 10px 0 0; max-width: 15em; }
  .hero h1 em { font-style: normal; color: var(--pink); }
  .hero p { color: var(--text-2); font-size: 18px; margin: 14px 0 0; max-width: 60ch; }

  /* ---------- layout ---------- */
  .grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 380px;
    gap: 48px;
    /* No align-items:start — the aside must stretch to the full row height or
       the sticky panel inside it has no track to travel along. */
    padding-bottom: 80px;
  }
  .grid > aside { height: 100%; }
  @media (max-width: 960px) {
    .grid { grid-template-columns: minmax(0,1fr); gap: 32px; padding-bottom: 120px; }
  }

  .steps { display: flex; flex-direction: column; gap: 34px; }

  .step > .shead {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
    border-bottom: 1px solid var(--line); padding-bottom: 10px;
  }
  .step .num {
    font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--pink);
    border: 1px solid var(--pink-ln); background: var(--pink-dim);
    border-radius: 2px; padding: 2px 7px; line-height: 1.5;
  }
  .step h2 { font-size: 24px; letter-spacing: .03em; }
  .step .hint { color: var(--text-3); font-size: 14px; margin-left: auto; text-align: right; }

  /* ---------- option cards ---------- */
  .opts { display: grid; gap: 10px; }
  .opts.two { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
  .opts.pkgs { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
  .opts.vehicles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 1080px) and (min-width: 961px), (max-width: 700px) {
    .opts.vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* Side profiles share one viewBox, so the four drawings are to scale
     against each other — the ladder is visible, not just described. */
  /* Photo tiles are full-bleed at the top of the card; the line drawing that
     stands in for a missing photo sits centred in the same box. */
  .vehmedia {
    aspect-ratio: 3 / 2; width: 100%; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #100F0F;
  }
  .vehmedia img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(.6) brightness(.72);
    transition: filter .18s ease;
  }
  .opt.vehicle:hover .vehmedia img { filter: grayscale(.25) brightness(.88); }
  .opt.vehicle:has(input:checked) .vehmedia img { filter: none; }
  .vehmedia .veh { width: 86%; height: auto; }
  .veh { display: block; }
  .veh .body {
    fill: none; stroke: currentColor; stroke-width: 2.2;
    stroke-linejoin: round; stroke-linecap: round;
  }
  .veh .wheel { fill: none; stroke: currentColor; stroke-width: 2.2; }
  .veh .hub { fill: currentColor; stroke: none; opacity: .55; }
  .veh .ground { stroke: currentColor; stroke-width: 1.5; opacity: .22; stroke-linecap: round; }
  .veh .detail { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .45; stroke-linecap: round; }

  .opt.vehicle { color: var(--text-3); text-align: center; padding: 0 0 15px; overflow: hidden; }
  .opt.vehicle .name, .opt.vehicle .sub { padding: 0 14px; }
  .opt.vehicle:hover { color: var(--text-2); }
  .opt.vehicle:has(input:checked) { color: var(--pink); }
  .opt.vehicle .name { display: block; color: var(--text); }
  .opt.vehicle:has(input:checked) .name { color: var(--pink); }
  .opt.vehicle .sub { margin-top: 2px; }

  .opt {
    position: relative; display: block;
    border: 1px solid var(--line); background: var(--panel);
    border-radius: 3px; padding: 15px 17px; cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
  }
  .opt:hover { border-color: var(--line-2); background: var(--panel-2); }
  .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .opt:has(input:checked) {
    border-color: var(--pink); background: var(--pink-dim);
    box-shadow: inset 3px 0 0 var(--pink);
  }
  .opt:has(input:focus-visible) { outline: 2px solid var(--peach); outline-offset: 2px; }

  .opt .row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
  .opt .name { font-family: var(--display); font-size: 19px; letter-spacing: .03em; }
  .opt .fig {
    font-family: var(--mono); font-size: 15px; font-weight: 700;
    font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text);
  }
  .opt:has(input:checked) .fig { color: var(--pink); }
  .opt .sub { color: var(--text-2); font-size: 14.5px; margin-top: 4px; line-height: 1.45; }
  .opt .meta {
    color: var(--text-3); font-size: 11.5px; font-family: var(--mono);
    margin-top: 10px; letter-spacing: .04em; text-transform: uppercase;
  }

  /* ---------- add-ons: name on the left, one price button per tier ---------- */
  .addons { display: flex; flex-direction: column; gap: 8px; }
  .arow {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    border: 1px solid var(--line); background: var(--panel);
    border-radius: 3px; padding: 12px 14px;
  }
  .arow.on { border-color: var(--pink); background: var(--pink-dim); box-shadow: inset 3px 0 0 var(--pink); }
  .arow.included { opacity: .62; }
  .arow .an { min-width: 0; flex: 1 1 220px; }
  .arow .an b {
    display: block; font-family: var(--display); font-size: 18px;
    font-weight: 400; letter-spacing: .03em; color: var(--text);
  }
  .arow .an span { color: var(--text-2); font-size: 14px; }
  .arow .tiers { display: flex; gap: 6px; flex-wrap: wrap; }
  .tier {
    font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums;
    color: var(--text-2); background: var(--raised);
    border: 1px solid var(--line-2); border-radius: 2px;
    padding: 6px 11px; cursor: pointer; white-space: nowrap;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
  }
  .tier em { font-style: normal; display: block; font-size: 10.5px;
    letter-spacing: .07em; text-transform: uppercase; opacity: .75; }
  .tier:hover { border-color: var(--text-3); color: var(--text); }
  .tier[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #FFFFFF; }
  .tier:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
  .badge {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
    text-transform: uppercase; border: 1px solid var(--go);
    color: var(--go); border-radius: 2px; padding: 3px 8px; white-space: nowrap;
  }

  .seg.travel { grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 700px) { .seg.travel { grid-template-columns: repeat(2, 1fr); } }

  /* segmented condition control */
  .seg {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--panel);
  }
  .seg label {
    position: relative; padding: 13px 12px; text-align: center; cursor: pointer;
    font-family: var(--display); font-size: 18px; letter-spacing: .04em;
    border-right: 1px solid var(--line); transition: background .12s ease;
  }
  .seg label:last-child { border-right: 0; }
  .seg label:hover { background: var(--panel-2); }
  .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .seg label:has(input:checked) { background: var(--pink); color: #FFFFFF; }
  .seg label:has(input:focus-visible) { outline: 2px solid var(--peach); outline-offset: -2px; }
  .seg .d {
    display: block; font-family: var(--mono); font-size: 11px;
    letter-spacing: .06em; opacity: .85; text-transform: none;
  }

  /* ---------- form ---------- */
  .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); gap: 14px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  .field label {
    font-family: var(--display); font-size: 14px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-2);
  }
  .field input, .field textarea {
    font-family: var(--body); font-size: 16px; color: var(--text);
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 3px; padding: 11px 13px;
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
  .field textarea { resize: vertical; min-height: 82px; }
  .field input:focus, .field textarea:focus {
    outline: none; border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-dim);
  }

  /* ---------- quote panel ---------- */
  .panel {
    position: sticky; top: 20px;
    background: var(--panel); border: 1px solid var(--line-2);
    border-radius: 3px; overflow: hidden;
  }
  .panel-head {
    padding: 15px 19px; background: #100F0F;
    border-bottom: 1px solid var(--pink);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .panel-head h2 { font-size: 20px; letter-spacing: .12em; }
  .panel-head .stamp { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .05em; }

  .lines { padding: 16px 19px; display: flex; flex-direction: column; gap: 11px; }
  .line { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; font-size: 15px; }
  .line .l { color: var(--text-2); min-width: 0; }
  .line .l b { color: var(--text); font-weight: 400; font-family: var(--display); font-size: 17px; letter-spacing: .03em; }
  .line .l small {
    display: block; color: var(--text-3); font-size: 11px;
    font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase;
  }
  .line .v { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .line.muted .v, .line.muted .l { color: var(--text-3); }

  .rule { height: 1px; background: var(--line); margin: 3px 0; }
  .rule.dash { height: 0; border-top: 1px dashed var(--line-2); background: none; }

  .total { padding: 16px 19px; background: var(--panel-2); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
  .total .grand { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .total .grand .k { font-family: var(--display); font-size: 22px; letter-spacing: .08em; }
  .total .grand .v {
    font-family: var(--mono); font-size: 29px; font-weight: 700;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--pink);
  }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .split div { border: 1px solid var(--line); border-radius: 2px; padding: 9px 11px; background: var(--raised); }
  .split .k {
    font-family: var(--display); font-size: 12px; letter-spacing: .09em;
    text-transform: uppercase; color: var(--text-3);
  }
  .split .v { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }

  .actions { padding: 16px 19px 20px; display: flex; flex-direction: column; gap: 9px; }
  .btn {
    display: block; width: 100%; text-align: center;
    font-family: var(--display); font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
    padding: 12px 14px; border-radius: 2px; cursor: pointer;
    border: 1px solid transparent; text-decoration: none;
    transition: filter .12s ease, background .12s ease;
  }
  .btn:hover { filter: brightness(1.12); }
  .btn:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
  .btn-primary { background: var(--pink); color: #FFFFFF; }
  .btn-secondary { background: var(--raised); color: var(--text); border-color: var(--line-2); }
  .btn-ghost {
    background: none; color: var(--text-3); font-family: var(--body);
    font-size: 14px; letter-spacing: 0; text-transform: none; padding: 4px;
  }
  .btn-ghost:hover { color: var(--pink); filter: none; }

  /* mobile total bar */
  .bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: #100F0F; border-top: 1px solid var(--pink);
    padding: 11px 22px calc(11px + env(safe-area-inset-bottom));
  }
  .bar .in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
  .bar .k { font-family: var(--display); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
  .bar .v { font-family: var(--mono); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--pink); }
  .bar .btn { width: auto; margin-left: auto; padding: 11px 20px; }
  @media (max-width: 960px) { .bar { display: block; } .panel { position: static; } }

  /* ---------- notices ---------- */
  .notice {
    border: 1px solid var(--pink-ln); background: var(--pink-dim);
    border-radius: 3px; padding: 18px 20px;
  }
  .notice h3 { font-size: 18px; letter-spacing: .1em; color: var(--pink); }
  .notice p, .notice li { font-size: 15px; color: var(--text-2); }
  .notice p { margin: 10px 0 0; }
  .notice ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
  .notice b { color: var(--text); font-weight: 400; }
  .notice code { font-family: var(--mono); font-size: 13px; color: var(--peach); }

  footer { border-top: 1px solid var(--line); background: #100F0F; padding: 30px 0 44px; margin-top: 8px; }
  footer p { color: var(--text-3); font-size: 14px; margin: 0; }
  footer a { color: var(--pink); }

  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
