/* assets/v5.css — the rebuild on the locked layout (2026-11-30).

   Shea, 2026-11-30: "redo the website", on the layout plan he locked on 29 Nov: one
   general site built only from past work, the four biggest selling points straight under
   the hero, then the work, numbers, how it works, a comparison, questions and the close.
   Loaded after v4.css, so the v4 look (paper ground, serif display, mono labels, cobalt)
   carries on and this file only adds the new pieces.

   House motion rules hold: one moving idea per section, nothing moves until it is on
   screen, transform and opacity only, and with JavaScript off or reduced motion asked
   for, everything shows in its finished state. */

/* ---------------------------------------------------- feature sections */

.v5-feat { position: relative; }
.v5-feat-in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) {
  .v5-feat-in { grid-template-columns: 1fr 1fr; }
  .v5-feat--flip .v5-feat-copy { order: 2; }
}
.v5-feat-copy .v4-h2 { margin-bottom: 16px; }
.v5-feat-copy .v4-sub { margin-bottom: 0; }
.v5-feat-copy .hero-actions { margin-top: 26px; }
.v5-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.v5-num b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px;
  background: var(--fg); color: var(--bg); font-weight: 600; letter-spacing: 0;
}
.v5-feat + .v5-feat { border-top: 1px solid var(--line); }

/* The status chip: Queued, Building, Live. Without JavaScript it reads Live. */
.v5-st {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; white-space: nowrap;
  color: #1d7a50; background: color-mix(in oklab, #1d8a5a 12%, transparent);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.v5-st::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.v5-st[data-st="queued"] { color: var(--muted); background: var(--surface-2); }
.v5-st[data-st="building"] { color: #8a5a12; background: color-mix(in oklab, #c98a1a 14%, transparent); }
.v5-st[data-st="building"]::before { animation: v5-pulse 900ms ease-in-out infinite alternate; }
@keyframes v5-pulse { from { opacity: 0.35; } to { opacity: 1; } }

/* ------------------------------------------- feature 1: the $0.00 invoice */

.v5-invoice {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-win);
  padding: clamp(18px, 3vw, 28px);
  max-width: 520px; width: 100%; justify-self: center;
}
.v5-inv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.v5-inv-top strong { font-family: var(--display-font); font-weight: 400; font-size: 1.25rem; }
.v5-inv-lines { list-style: none; margin: 0; padding: 8px 0; }
.v5-inv-lines li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  font-size: 0.95rem; max-width: none;
}
.v5-inv-lines li:last-child { border-bottom: 0; }
.v5-inv-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 16px; border-top: 2px solid var(--fg);
}
.v5-inv-total span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.v5-inv-total strong { font-family: var(--display-font); font-weight: 400; font-size: clamp(2.4rem, calc(1.4rem + 3vw), 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.v5-inv-note { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); text-align: right; max-width: none; }
.v5-inv-stamp {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 6px; padding: 5px 9px;
  transform: rotate(-3deg);
}

/* ------------------------------------------------ feature 2: live proof */

.v5-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .v5-proof { grid-template-columns: 1fr 1fr; } }
.v5-proof li { max-width: none; }
.v5-proof a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  min-height: 76px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--fg); text-decoration: none;
  transition: border-color 240ms var(--ease), transform 300ms var(--ease);
}
.v5-proof a:hover { border-color: var(--fg); transform: translateY(-2px); }
.v5-proof b { font-weight: 600; }
.v5-proof small { grid-column: 1; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5-proof .v5-dot {
  grid-row: 1 / span 2; grid-column: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #1d7a50;
}
.v5-proof .v5-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 16%, transparent); }
.v5-proof .v5-dot[data-badge="preview"] { color: #a0660f; }
.v5-proof-foot { margin-top: 14px; font-size: 0.88rem; color: var(--muted); max-width: none; }

.v5-reviews { display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 720px) { .v5-reviews { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.v5-review { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.v5-review blockquote { margin: 0 0 14px; font-family: var(--display-font); font-size: 1.15rem; line-height: 1.35; }
.v5-review p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: none; }

/* ------------------------------------- feature 3: the log with status flips */

.v5-log li { grid-template-columns: 34px 1fr auto !important; align-items: start; }
.v5-log li > span:first-of-type { min-width: 0; }
.v4-log .v5-st[data-st="queued"] { color: #8d8c87; background: #2b2c31; }
.v4-log .v5-st[data-st="building"] { color: #f2c46d; background: rgb(242 196 109 / 0.14); }
.v4-log .v5-st, .v4-log .v5-st[data-st="live"] { color: #57d39a; background: rgb(87 211 154 / 0.12); }
.v4-log .v5-st[data-st="queued"] { color: #8d8c87; background: #2b2c31; }
.v4-log .v5-st[data-st="building"] { color: #f2c46d; background: rgb(242 196 109 / 0.14); }

/* ------------------------------------------------ the work: stacking cards */

.v5-stack { display: grid; gap: clamp(18px, 3vw, 28px); }
.v5-stack .v4-sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 -10px 40px -30px rgb(24 25 28 / 0.4);
  margin: 0;
}
@media (min-width: 960px) and (min-height: 860px) and (prefers-reduced-motion: no-preference) {
  .v5-stack .v4-sheet { position: sticky; top: calc(84px + var(--i, 0) * 18px); }
}
.v5-case-link { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }

/* ------------------------------------------- how it works: one filling line */

.v5-line { list-style: none; margin: 36px 0 0; padding: 0; position: relative; display: grid; gap: 22px; }
.v5-line::before, .v5-line::after {
  content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line);
}
.v5-line::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); transition: transform 200ms linear; }
.v5-line li { position: relative; z-index: 1; display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; max-width: none; }
.v5-line .n {
  width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line); font-family: var(--mono); font-weight: 600; font-size: 0.85rem;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.v5-line li.on .n, .no-v5line .v5-line .n { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.v5-line h3 { font-family: var(--body-font); font-size: 1.05rem; font-weight: 600; margin: 6px 0 4px; font-variation-settings: normal; }
.v5-line p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 960px) {
  .v5-line { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .v5-line::before, .v5-line::after { left: 18px; right: 18px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .v5-line::after { transform-origin: left; transform: scaleX(var(--p, 1)); }
  .v5-line li { grid-template-columns: 1fr; gap: 12px; }
}

/* ------------------------------------------------------- the comparison */

/* Comparison, 2 Dec 2026. Shea: "higher contrast between us and them, we want to stand out
   as the better option, it should be clear that this is a comparison", with a "preferred"
   meter. Our column is the dark, raised one with a Preferred badge, a full meter and a tick
   on every row; the do-it-yourself column is greyed back with an empty meter and a cross. */
.v5-cmp-wrap { margin-top: 26px; overflow-x: auto; padding-top: 24px; }
.v5-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; min-width: 560px; }
.v5-cmp th, .v5-cmp td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.v5-cmp thead th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; vertical-align: bottom; border-bottom: 0; padding-top: 22px; }
.v5-cmp tbody th, .v5-cmp tfoot th { font-weight: 600; width: 26%; }
.v5-cmp-name { display: block; margin-bottom: 10px; }
.v5-cmp-vs { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-family: var(--display-font, serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--fg); font-style: italic; }
/* do-it-yourself: pushed back */
.v5-cmp .diy { color: color-mix(in oklab, var(--muted) 80%, var(--bg)); background: color-mix(in oklab, var(--fg) 3%, var(--bg)); }
.v5-cmp thead th.diy { color: var(--muted); border-radius: 14px 14px 0 0; }
.v5-cmp tbody tr:last-child td.diy, .v5-cmp tfoot td.diy { }
.v5-cmp tfoot td.diy { border-radius: 0 0 14px 14px; border-bottom: 0; }
/* ours: dark, raised, preferred */
.v5-cmp .us { background: var(--fg); color: var(--bg); font-weight: 500; border-bottom-color: color-mix(in oklab, var(--bg) 16%, transparent); }
.v5-cmp thead th.us { position: relative; color: var(--bg); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 0 0 var(--fg); }
.v5-cmp tfoot td.us { border-radius: 0 0 16px 16px; border-bottom: 0; box-shadow: 0 10px 0 0 var(--fg), 0 24px 40px -18px color-mix(in oklab, var(--fg) 55%, transparent); }
.v5-pref { position: absolute; top: -12px; left: 18px; padding: 5px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-fg); font-size: 0.62rem; letter-spacing: 0.14em; line-height: 1; box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--accent) 70%, transparent); }
.v5-cmp td > span { vertical-align: middle; }
.v5-cmp td:has(> .v5-mk) { position: relative; padding-left: 50px; }
.v5-cmp td:has(> .v5-mk) > .v5-mk { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); margin: 0; }
.v5-mk { display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: middle; flex: none; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; border-radius: 99px; padding: 3px; }
.v5-cmp td.diy .v5-mk { stroke: var(--muted); background: color-mix(in oklab, var(--muted) 14%, transparent); }
.v5-cmp td.us .v5-mk { stroke: var(--accent-fg); background: var(--accent); }
/* the preferred meter */
.v5-meter { display: block; height: 6px; border-radius: 6px; background: color-mix(in oklab, var(--bg) 22%, transparent); overflow: hidden; }
.v5-meter i { display: block; height: 100%; width: var(--to); background: var(--accent); border-radius: 6px; }
.v5-meter--diy { background: color-mix(in oklab, var(--muted) 22%, transparent); }
.v5-meter-l { display: block; margin-top: 7px; font-size: 0.62rem; letter-spacing: 0.1em; opacity: 0.85; }
.v5-cmp-verdict th, .v5-cmp-verdict td { font-size: 1.02rem; padding-top: 20px; padding-bottom: 22px; }
.v5-cmp-verdict td.us { font-weight: 700; }
@media (min-width: 720px) { .v5-cmp-verdict td { padding-left: 50px; } }
.v5-cmp-verdict td.diy { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--muted) 60%, transparent); }

/* --------------------------------------------------------- the questions */

.v5-faq { counter-reset: q; display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.v5-faq details { border-bottom: 1px solid var(--line); counter-increment: q; }
.v5-faq summary {
  list-style: none; cursor: pointer; min-height: 60px;
  display: grid; grid-template-columns: 40px 1fr 24px; gap: 10px; align-items: center;
  padding: 14px 0; font-weight: 600; font-size: 1.02rem;
}
.v5-faq summary::-webkit-details-marker { display: none; }
.v5-faq summary::before { content: counter(q, decimal-leading-zero); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.v5-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; text-align: center; transition: transform 300ms var(--ease); }
.v5-faq details[open] summary::after { transform: rotate(45deg); }
.v5-faq details > p { margin: 0 0 18px 50px; color: var(--muted); max-width: 62ch; }
@media (max-width: 559px) { .v5-faq details > p { margin-left: 0; } }

/* ------------------------------------------------------------- the close */

.v5-ask { margin: 30px auto 0; max-width: 520px; text-align: left; border-top: 1px dashed var(--line); padding-top: 24px; }
.v5-ask label { display: block; font-weight: 600; margin-bottom: 10px; }
.v5-ask-row { display: flex; gap: 8px; }
.v5-ask input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit;
}
.v5-ask input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.v5-ask .btn { white-space: nowrap; }
.v5-ask p { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); max-width: none; }
@media (max-width: 479px) { .v5-ask-row { flex-direction: column; } }
.v5-risk { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.v5-risk::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #1d8a5a; }

/* ------------------------------------------------ the phone sticky bar */

.v4-float .v5-float-t { display: none; }
@media (max-width: 719px) {
  .v4-float {
    left: 0; right: 0; bottom: 0; border-radius: 0; min-height: 60px;
    justify-content: space-between; padding: 10px 12px 10px 18px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--surface); color: var(--fg); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgb(0 0 0 / 0.35);
  }
  .v4-float:hover { background: var(--surface); color: var(--fg); }
  .v4-float .v5-float-t { display: block; font-weight: 500; font-size: 0.9rem; }
  .v4-float .v5-float-b {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; white-space: nowrap;
  }
}

/* ------------------------------------------------------------ case pages */

.v5-case-hero { padding-block: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 36px); }
.v5-case-hero h1 { font-size: clamp(2.4rem, calc(1rem + 4.4vw), 4.4rem); line-height: 1.02; margin: 0 0 16px; }
.v5-back { display: inline-flex; gap: 8px; margin-bottom: 18px; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.v5-back:hover { color: var(--fg); }
.v5-case-grid { display: grid; gap: clamp(26px, 4vw, 48px); }
@media (min-width: 960px) { .v5-case-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.v5-case-grid .v4-sheet-art { position: relative; }
.v5-facts { display: grid; gap: 18px; }
.v5-facts h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 8px; font-variation-settings: normal; }
.v5-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.v5-pager a { text-decoration: none; color: var(--fg); font-weight: 600; }
.v5-pager small { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* -------------------------------------------------------------- book page */

.v5-book { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) { .v5-book { grid-template-columns: 1fr 1fr; align-items: start; } }
.v5-book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.v5-book-card .btn { width: 100%; justify-content: center; }
.v5-book-card .v5-ask { margin-top: 24px; max-width: none; }
.v5-mail { display: block; margin-top: 12px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.v5-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.v5-next li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; max-width: none; }
.v5-next li::before { content: counter(s); width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--mono); font-size: 0.8rem; font-weight: 600; }

/* ------------------------------------------------------ page heads (v5) */
.v5-page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 32px); }
.v5-page-hero h1 { font-size: clamp(2.4rem, calc(1rem + 4.4vw), 4.4rem); line-height: 1.02; margin: 0 0 16px; max-width: 18ch; }
.v5-page-hero.v4-center h1 { margin-inline: auto; }

/* Footer: Updates lives here now. */
.foot-row .foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-row .foot-links a { color: var(--fg); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .v5-st[data-st="building"]::before { animation: none; }
  .v5-line::after { transition: none; }
}

/* ------------------------------------------------ how it works page steps */
.v5-hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.v5-hsteps > li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); max-width: none; }
.v5-hsteps > li:first-child { border-top: 0; padding-top: 8px; }
.v5-hsteps .n { font-family: var(--display-font); font-size: 2rem; line-height: 1; color: var(--accent); }
.v5-hsteps h2 { font-size: clamp(1.4rem, calc(1rem + 1.2vw), 1.9rem); margin: 0 0 10px; }
.v5-hsteps p { color: var(--muted); margin: 0 0 10px; }
.v5-hsteps .ticks { margin-top: 12px; }
@media (max-width: 559px) { .v5-hsteps > li { grid-template-columns: 1fr; gap: 8px; } }

/* The All / None rows inside a half-width feature column: smaller and tighter. */
.v5-feat .v4-rows li { grid-template-columns: 110px 1fr auto !important; gap: 14px; align-items: center; padding-block: 18px; }
.v5-feat .v4-rows b { font-size: clamp(2rem, calc(1.2rem + 2vw), 2.8rem); }
.v5-feat .v4-rows span { font-size: clamp(1.1rem, calc(0.9rem + 0.6vw), 1.35rem); }
.v5-feat .v4-rows em { white-space: nowrap; }
@media (max-width: 479px) { .v5-feat .v4-rows li { grid-template-columns: 84px 1fr !important; } .v5-feat .v4-rows em { grid-column: 2; } }

/* Centred "more" links: a paragraph's reading width would pull them left. */
.v4-more { max-width: none; }
.v5-line li { margin: 0 !important; }
.v5-line h3 { margin: 6px 0 4px !important; }

/* Phones: the comparison reads as one card per row instead of a table that scrolls sideways. */
@media (max-width: 719px) {
  .v5-cmp-wrap { overflow: visible; }
  .v5-cmp { min-width: 0; }
  .v5-cmp tr { display: grid; grid-template-columns: 1fr 1fr; }
  .v5-cmp thead th:first-child { display: none; }
  .v5-cmp th, .v5-cmp td { padding: 12px 12px; font-size: 0.9rem; }
  .v5-cmp thead th { padding-top: 22px; font-size: 0.6rem; letter-spacing: 0.08em; }
  .v5-cmp tbody th, .v5-cmp tfoot th { grid-column: 1 / -1; width: auto; padding: 16px 2px 8px; border-bottom: 0; font-size: 0.82rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .v5-cmp td { display: flex; align-items: flex-start; }
  .v5-cmp td:has(> .v5-mk) { padding-left: 12px; }
  .v5-cmp td:has(> .v5-mk) > .v5-mk { position: static; transform: none; margin: 1px 8px 0 0; }
  .v5-cmp .v5-mk { width: 18px; height: 18px; }
  .v5-cmp-wrap { padding-top: 24px; }
  .v5-cmp tbody td.diy { border-radius: 12px 0 0 12px; }
  .v5-cmp tbody td.us { border-radius: 0 12px 12px 0; }
  .v5-cmp tfoot td.diy { border-radius: 12px 0 0 12px; }
  .v5-cmp tfoot td.us { border-radius: 0 12px 12px 0; box-shadow: 0 18px 30px -18px color-mix(in oklab, var(--fg) 55%, transparent); }
  .v5-cmp thead th.us { box-shadow: none; }
  .v5-pref { left: 12px; }
}
}

/* The plan card is dark, so its button takes the accent colour rather than disappearing into it. */
.price-card .btn.price-cta { background: var(--accent); color: var(--accent-fg, #fff); border-color: var(--accent); }

/* The one-field form keeps a usable field wherever it sits (the booking card makes buttons full width). */
.v5-ask-row { flex-wrap: wrap; }
.v5-ask input { flex: 1 1 200px; min-width: 0; }
.v5-ask .v5-ask-row .btn { flex: 0 0 auto; width: auto; }
@media (max-width: 479px) { .v5-ask .v5-ask-row .btn { width: 100%; } }

/* Page heroes: the big heading sits centred under its label on wide screens. */
.v4-hero--page .v4-center .v4-h2 { margin-inline: auto; text-align: center; }

/* ---------- the fit form, apply.html (2026-11-30) */
.v5-apply-top { max-width: 720px; margin-inline: auto; text-align: center; }
.v5-apply-top .v4-sub { margin-inline: auto; }
.v5-apply-top .v5-next { text-align: left; max-width: 560px; margin: 24px auto 0; }
.v5-apply-sec { padding-top: 0; }
.v5-apply, .v5-done { max-width: 760px; margin-inline: auto; }
.v5-req-note { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.v5-req-note span, .v5-apply .field i { color: var(--accent); font-style: normal; }
.v5-fs { border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 32px); margin: 0 0 18px; background: var(--surface, transparent); min-width: 0; }
.v5-fs legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; display: flex; align-items: baseline; gap: 12px; }
.v5-fs legend .n { font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.v5-fs legend + * { clear: both; }
.v5-fs-help { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; max-width: none; }
.v5-apply .field > span { color: var(--fg); font-weight: 600; font-size: 0.92rem; }
.v5-grid2 { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .v5-grid2 { grid-template-columns: 1fr 1fr; } }
.v5-apply .textarea { min-height: 96px; }
.v5-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.v5-opt { position: relative; cursor: pointer; }
.v5-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v5-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; background: var(--bg); transition: background 150ms, border-color 150ms, color 150ms; }
.v5-opt:hover span { border-color: var(--accent); }
.v5-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-fg, #fff); }
.v5-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.v5-apply-send { text-align: center; padding: 8px 0 0; }
.v5-apply-send .btn { min-height: 56px; padding-inline: 32px; font-size: 1.05rem; }
.v5-apply-send p { margin: 12px auto 0; color: var(--muted); font-size: 0.88rem; max-width: 460px; }
@media (max-width: 479px) { .v5-apply-send .btn { width: 100%; } }
.v5-done { border: 1px solid var(--accent); border-radius: 18px; padding: clamp(18px, 4vw, 32px); margin-bottom: 24px; }
.v5-done h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.v5-done p { max-width: none; }
.v5-done-text { min-height: 180px; font-size: 0.85rem !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 12px 0; }
.v5-done-row { display: flex; flex-wrap: wrap; gap: 10px; }
.v5-done-mail { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* Fit form, 2 Dec 2026: one section per page, and the price shown only here at the end. */
.v5-steps-top { margin: 0 0 18px; }
.v5-steps-count { margin: 0 0 8px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.v5-steps-count b { color: var(--fg); }
.v5-steps-bar { display: block; height: 6px; border-radius: 6px; background: color-mix(in oklab, var(--accent) 14%, transparent); overflow: hidden; }
.v5-steps-bar i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 6px; transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .v5-steps-bar i { transition: none; } }
.v5-steps-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.v5-steps-nav .btn { min-height: 52px; padding-inline: 26px; }
.v5-steps-nav [data-step-next] { margin-left: auto; }
.v5-steps-nav.is-last { margin-bottom: 6px; }
.v5-apply.is-steps .v5-fs[hidden] { display: none; }
@media (max-width: 479px) { .v5-steps-nav .btn { flex: 1; padding-inline: 14px; } }
.v5-price { margin: 0 0 22px; padding: 20px 22px; border-radius: 16px; background: var(--fg); color: var(--bg); }
.v5-price p { margin: 0; max-width: none; }
.v5-price-l { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 8px !important; }
.v5-price-big { font-family: var(--display-font); font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1; }
.v5-price-big span, .v5-price-plus span { font-family: var(--body-font); font-size: 0.95rem; margin-left: 10px; opacity: 0.8; }
.v5-price-plus { font-family: var(--display-font); font-size: 1.5rem; margin-top: 6px !important; color: color-mix(in oklab, var(--accent) 55%, var(--bg)); }
.v5-price-p { margin-top: 12px !important; font-size: 0.92rem; opacity: 0.85; }

/* Texture, 2 Dec 2026. Shea: "everything feels small because it is all in the center of the
   screen ... lets add some texture to the website to make it feel filled in (this is very
   minor)". A fine paper grain over the whole page, and on screens wider than the content
   column, a faint dot grid with a ruled margin line filling the side gutters, in the same
   draft-paper language as the "How it works" section. Fixed behind everything, never moves,
   never takes a click. */
html[data-v4] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
}
@media (min-width: 1240px) {
  html[data-v4] body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    --edge: calc(50% - (var(--container) / 2));
    background:
      linear-gradient(90deg, transparent calc(var(--edge) - 1px), color-mix(in oklab, var(--accent) 22%, transparent) calc(var(--edge) - 1px), color-mix(in oklab, var(--accent) 22%, transparent) var(--edge), transparent var(--edge), transparent calc(100% - var(--edge)), color-mix(in oklab, var(--accent) 22%, transparent) calc(100% - var(--edge)), color-mix(in oklab, var(--accent) 22%, transparent) calc(100% - var(--edge) + 1px), transparent calc(100% - var(--edge) + 1px)),
      radial-gradient(color-mix(in oklab, var(--fg) 22%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - (var(--container) / 2) + 2px), transparent calc(50% - (var(--container) / 2) + 2px), transparent calc(50% + (var(--container) / 2) - 2px), #000 calc(50% + (var(--container) / 2) - 2px), #000 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - (var(--container) / 2) + 2px), transparent calc(50% - (var(--container) / 2) + 2px), transparent calc(50% + (var(--container) / 2) - 2px), #000 calc(50% + (var(--container) / 2) - 2px), #000 100%);
    opacity: 0.7;
  }
}
