/* AKUK Route Check. AKUK greens (#014C02, #088E14) on AKUK's cool page grey, Inter 400.
   Type sits on the 13/16/26/42/68 scale; spacing on 10/16/26/42/68/110. Gold only echoes the logo's divider. */
:root {
  --page: #F4F6F4;
  --card: #FFFFFF;
  --ink: #142019;
  --ink-2: #3F4A44;
  --ink-3: #6A7570;
  --line: #E1E5E1;
  --line-2: #D1CFCF;
  --green: #014C02;
  --green-2: #0B5E14;
  --cta: #088E14;
  --tint: #EEF5EE;
  --gold: #E2B023;
  --error: #A8281E;
  --s1: 10px; --s2: 16px; --s3: 26px; --s4: 42px; --s5: 68px; --s6: 110px;
  --t1: 13px; --t2: 16px; --t3: 26px; --t4: 42px; --t5: 68px;
  --r: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.has-sheet { overflow: hidden; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t2); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: #D5EAD7; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: var(--green); -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }
.display:focus, .display-2:focus, .q__title:focus, .welcome__q:focus { outline: none; }
.opt:focus-visible, .slot:focus-visible, .day:focus-visible, .pchip:focus-visible { outline: 1px solid var(--ink-3); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
.noscript { padding: 26px; }
.kbproxy { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }

/* ---------- app shell ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; align-items: center; column-gap: var(--s3);
  height: 76px; padding: 0 var(--s4); background: var(--page);
}
/* AKUK's lockup, rebuilt for screens: their mark, the gold divider, and "UK Accounting Academy" as crisp text. */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand__name { padding-left: 10px; border-left: 2px solid var(--gold); font-size: 11.5px; line-height: 1.12; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }

/* Back lives with the content, where the eye already is. On the result it becomes "Change my answers". */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 var(--s3); padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: var(--t2); cursor: pointer; transition: color .2s, border-color .2s; }
.back[hidden] { display: none; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.is-result .back { color: var(--green); border-color: #C9D8CC; }

.progress { position: relative; width: 100%; max-width: 560px; justify-self: center; height: 40px; transition: opacity .4s; }
.is-welcome .progress { opacity: 0; }
.progress__track { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress__fill { position: absolute; inset: 0; background: var(--cta); transform: scaleX(0); transform-origin: left center; }
.progress__dot { position: absolute; top: 13px; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 3px var(--page); }
.pst { position: absolute; top: 13px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.pst:first-child { transform: none; align-items: flex-start; }
.pst:last-child { transform: translateX(-100%); align-items: flex-end; }
.pst i { width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s, box-shadow .3s; }
.pst:first-child i { margin-left: -4px; }
.pst:last-child i { margin-right: -4px; }
.pst em { margin-top: 8px; font-style: normal; font-size: var(--t1); color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.pst.is-done i, .pst.is-now i { background: var(--cta); box-shadow: none; }
.pst.is-now em, .pst.is-done em { color: var(--green); }

.chip {
  justify-self: end; display: none; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: var(--t1); color: var(--ink-2); cursor: pointer;
}
.chip__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--green); font-variant-numeric: tabular-nums; }

.body {
  flex: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(300px, 1fr); column-gap: var(--s5);
  padding: var(--s5) var(--s4);
}
.is-welcome .body { grid-template-columns: minmax(0, 1fr); padding-top: var(--s4); }
.is-welcome .ledger, .lane-notfit .ledger { display: none; }
.lane-notfit .body { grid-template-columns: minmax(0, 1fr); }
.lane-notfit .screen { margin: 0 auto; }
.stage { position: relative; min-height: min(560px, 70vh); }
.screen { max-width: 620px; }
.welcome.screen { max-width: none; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 var(--s2); font-size: var(--t1); letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); }
.display { margin: 0; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.03; font-weight: 400; letter-spacing: -.035em; color: var(--green); max-width: 12em; }
.display-2 { margin: 0; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.12; font-weight: 400; letter-spacing: -.03em; color: var(--green); }
.lede { margin: var(--s2) 0 0; font-size: var(--t2); line-height: 1.7; color: var(--ink-2); max-width: 34em; }
.micro { font-size: var(--t1); color: var(--ink-3); }
.sub { margin: var(--s4) 0 var(--s2); font-size: var(--t3); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; color: var(--green); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
.nm { color: var(--cta); }
.ack { margin: 0 0 var(--s1); font-size: var(--t2); line-height: 1.55; color: var(--cta); max-width: 36em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 10px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--t2); font-weight: 500; line-height: 1.25; text-align: center; cursor: pointer; text-decoration: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { cursor: default; opacity: .75; }
.btn--primary { background: var(--green); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn--ghost { background: var(--card); color: var(--green); border-color: var(--line); }
.btn--sm { min-height: 46px; padding: 8px 20px; }
.btn__arrow { display: inline-grid; width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; text-decoration-color: rgba(1, 76, 2, .35); text-underline-offset: 3px; cursor: pointer; font: inherit; }
@media (hover: hover) {
  .back:hover { color: var(--green); border-color: #B7C6BB; }
  .back:hover svg { transform: translateX(-3px); }
  .btn--primary:hover { background: var(--green-2); }
  .btn--quiet:hover { border-color: var(--ink-3); color: var(--ink); }
  .btn--ghost:hover { border-color: var(--green); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
  .link:hover { text-decoration-color: var(--green); }
  .opt:hover { border-color: #B7C6BB; }
  .day:hover, .pchip:hover { border-color: #B7C6BB; }
  .slot:hover { border-color: var(--cta); }
  .demo__poster:hover .demo__play { transform: scale(1.08); }
  .demo__poster:hover .demo__img { transform: scale(1.02); }
}

/* ---------- welcome ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--s5); align-items: start; }
.welcome__copy { grid-column: 1; grid-row: 1 / span 2; }
.welcome__map { grid-column: 2; grid-row: 1; align-self: start; padding-top: var(--s4); }
.welcome .proof { grid-column: 2; grid-row: 2; align-self: start; margin-top: var(--s4); }
.welcome .legal { grid-column: 1 / -1; grid-row: 3; }
.welcome__ask { margin-top: var(--s4); max-width: 560px; }
.welcome__q { margin: 0; font-size: var(--t3); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.welcome__micro { margin: var(--s2) 0 0; }
.welcome--resume .welcome__copy { padding-top: var(--s4); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }

.proof { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); max-width: 560px; }
.proof__title { margin: 0 0 var(--s2); font-size: var(--t1); color: var(--ink-3); }
.proof__logos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.proof__logos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); filter: grayscale(1) contrast(1.05); opacity: .82; transition: filter .4s, opacity .4s; }
@media (hover: hover) { .proof__logos img:hover { filter: none; opacity: 1; } }
.quote { margin: var(--s3) 0 0; }
.quote blockquote { margin: 0; font-size: var(--t2); line-height: 1.65; color: var(--ink-2); }
.quote figcaption { margin-top: 6px; font-size: var(--t1); color: var(--ink-3); }

.map { width: 100%; max-width: 420px; height: auto; margin-left: auto; overflow: visible; }
.map__ghost { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; }
.map__line { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; }
.stn circle { fill: var(--page); stroke: var(--green); stroke-width: 2; }
.stn--start circle { fill: var(--card); stroke: var(--ink-3); stroke-width: 1.5; }
.stn--end circle { fill: var(--gold); stroke: none; }
.stn__l { font-family: Inter, sans-serif; font-size: 14px; fill: var(--ink-2); }
.stn--end .stn__l { fill: var(--green); }

/* ---------- questions ---------- */
.q__title { margin: 0; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; font-weight: 400; letter-spacing: -.03em; color: var(--ink); }
.q__intro { margin: var(--s2) 0 0; font-size: var(--t2); line-height: 1.6; color: var(--ink-2); }
.q__outro { margin: var(--s2) 0 0; font-size: var(--t1); line-height: 1.6; color: var(--ink-3); max-width: 40em; }
.q__included { display: inline-block; margin-top: 12px; font-size: var(--t2); font-weight: 500; }
.incl__list { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.incl__list li { position: relative; padding: 11px 0 11px 30px; font-size: var(--t2); line-height: 1.5; color: var(--ink); border-bottom: 1px solid #EEF1EE; }
.incl__list li:last-child { border-bottom: 0; }
.incl__list li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 16px; height: 9px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); transform-origin: 50% 50%; }
.incl .btn { width: 100%; justify-content: center; }
.gate-alt { margin-top: 14px; font-size: var(--t1); }
.opts { display: grid; gap: 10px; margin-top: var(--s3); }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-align: left; font-size: var(--t2); line-height: 1.4; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .15s, box-shadow .2s;
}
.opt:active { background: var(--tint); }
.opt__key {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  font-size: var(--t1); color: var(--ink-3); transition: background-color .2s, border-color .2s, color .2s;
}
.opt__label { flex: 1; }
.opt__tick { flex: none; width: 18px; height: 18px; opacity: 0; transition: opacity .2s; }
.opt__tick svg { width: 18px; height: 18px; fill: none; stroke: var(--cta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .05s; }
.opt[aria-pressed="true"] { border-color: var(--cta); background: var(--tint); box-shadow: inset 0 0 0 1px var(--cta); }
.opt[aria-pressed="true"] .opt__key { background: var(--cta); border-color: var(--cta); color: #fff; }
.opt[aria-pressed="true"] .opt__tick { opacity: 1; }
.opt[aria-pressed="true"] .opt__tick svg { stroke-dashoffset: 0; }
.hint { margin: var(--s2) 0 0; font-size: var(--t1); color: var(--ink-3); }

.check { margin-top: var(--s3); padding: 22px; background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--green); border-radius: 4px 16px 16px 4px; }
.check__title { margin: 0; font-size: var(--t2); font-weight: 500; color: var(--green); }
.check__body { margin: 8px 0 0; font-size: var(--t2); line-height: 1.65; color: var(--ink-2); }
.check__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s2); }
.cmp { width: 100%; margin: var(--s2) 0 0; border-collapse: collapse; table-layout: fixed; font-size: var(--t1); line-height: 1.45; }
.cmp th { padding: 0 10px 8px 0; text-align: left; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cmp th:last-child { color: var(--green); }
.cmp td { padding: 9px 10px 9px 0; vertical-align: top; color: var(--ink-3); border-bottom: 1px solid #EEF1EE; }
.cmp td:last-child { color: var(--ink); }
.cmp tr:last-child td { border-bottom: 0; }
.check__foot { margin: var(--s1) 0 0; font-size: var(--t1); line-height: 1.6; color: var(--ink-2); }

/* ---------- text fields ---------- */
.field { margin-top: var(--s4); max-width: 560px; }
.field__input {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1.5px solid var(--line-2); border-radius: 0; background: transparent;
  font: 400 26px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); transition: border-color .25s;
}
.field__input::placeholder { color: #A5AEA8; }
.field__input:focus { outline: none; border-bottom-color: var(--cta); }
.field__input--sm { font-size: var(--t3); padding: 8px 0 10px; }
.is-error .field__input { border-bottom-color: var(--error); }
.field__error { margin: 8px 0 0; font-size: var(--t1); color: var(--error); }
.field__error:empty { display: none; }
.field__suggest { margin: 10px 0 0; font-size: var(--t2); color: var(--ink-2); }
.field__suggest:empty { display: none; }
.field__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.helper { margin: var(--s2) 0 0; font-size: var(--t1); line-height: 1.6; color: var(--ink-2); }
.helper a { color: var(--ink-2); }
.tick { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; font-size: var(--t1); line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.tick__box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick__mark { flex: none; position: relative; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--card); transition: background-color .2s, border-color .2s; }
.tick__mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.tick__box:checked + .tick__mark { background: var(--cta); border-color: var(--cta); }
.tick__box:checked + .tick__mark::after { transform: rotate(45deg) scale(1); }
.tick__box:focus-visible + .tick__mark { outline: 2px solid var(--cta); outline-offset: 2px; }

/* ---------- route card ---------- */
.ledger { position: sticky; top: 108px; align-self: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.card__title { margin: 0; font-size: var(--t3); line-height: 1.2; letter-spacing: -.02em; color: var(--green); }
.rows { margin: 16px 0 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 0 6px; margin: 0 -6px; border-bottom: 1px solid #EEF1EE; border-radius: 6px; }
.row dt { font-size: var(--t1); color: var(--ink-3); white-space: nowrap; }
.row dd { margin: 0; font-size: var(--t2); color: #B4BCB7; text-align: right; }
.row.is-set dd { color: var(--ink); }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gold); }
.card__foot span { font-size: var(--t1); color: var(--ink-3); }
.card__foot strong { font-size: var(--t2); font-weight: 400; color: var(--green); text-align: right; }
.card.is-final { background: var(--green); border-color: var(--green); color: #fff; }
.card.is-final .card__title { color: #fff; }
.card.is-final .rows { border-top-color: rgba(255, 255, 255, .14); }
.card.is-final .row { border-bottom-color: rgba(255, 255, 255, .09); }
.card.is-final .row dt { color: rgba(255, 255, 255, .6); }
.card.is-final .row.is-set dd { color: #fff; }
.card.is-final .card__foot span { color: rgba(255, 255, 255, .6); }
.card.is-final .card__foot strong { color: #fff; }

.route { list-style: none; margin: 18px 0 0; padding: 0; }
.route__stn { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: 10px; min-height: 36px; padding: 4px 0; font-size: var(--t2); line-height: 1.35; color: #fff; }
.route__stn::before { content: ""; position: absolute; left: 4.5px; top: 50%; height: 100%; width: 1px; background: rgba(255, 255, 255, .22); }
.route__stn:last-child::before { display: none; }
.route__stn i { position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.route__stn.is-start i { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); }
.route__stn.is-start { color: #fff; }
.route__stn.is-focus { color: #fff; }
.route__stn.is-focus i { background: #fff; box-shadow: none; }
.route__cap { margin: 18px 0 0; font-size: var(--t1); color: rgba(255, 255, 255, .62); }
.route-wrap .route { margin-top: 10px; }
.route__stn.is-end { color: #fff; }
.route__stn.is-end i { width: 12px; height: 12px; margin-left: -1px; background: var(--gold); box-shadow: none; }

/* ---------- calculating ---------- */
.calc__list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 18px; }
.calc__list li { display: flex; align-items: center; gap: 14px; font-size: var(--t2); color: var(--ink-3); transition: color .3s; }
.calc__list li.is-done { color: var(--ink); }
.ring { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.ring svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--cta); stroke-width: 1.8; stroke-dasharray: 63; stroke-dashoffset: 63; }
.ring path { fill: none; stroke: var(--cta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transform: rotate(90deg); transform-origin: 12px 12px; }

/* ---------- results ---------- */
.result .display-2 { max-width: 15em; }
.mini { display: none; }
.note { margin: var(--s3) 0 0; padding: 14px 16px; font-size: var(--t2); line-height: 1.6; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--green); border-radius: 4px 12px 12px 4px; }
.enrol { margin: var(--s3) 0 0; font-size: var(--t2); color: var(--ink-2); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; font-size: var(--t2); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 400; color: var(--ink); }
.steps span { color: var(--ink-2); line-height: 1.6; }
.cal, .later-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s3); }

.demo { position: relative; margin-top: var(--s4); border-radius: 18px; overflow: hidden; background: var(--green); }
.demo__poster { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff; background: var(--green); text-align: left; }
.demo__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #F3F1EC; }
.demo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.demo__cap { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: #fff; }
.demo__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.demo__play svg { width: 16px; height: 16px; margin-left: 2px; fill: var(--green); }
.demo__txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.demo__txt strong { font-size: var(--t2); font-weight: 500; color: #fff; }
.demo__txt span { font-size: var(--t1); color: rgba(255, 255, 255, .75); }
.demo__len { flex: none; font-weight: 400; font-size: var(--t1); color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.demo iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.demo__bar { position: relative; height: 3px; background: rgba(255, 255, 255, .14); }
.demo__bar i { position: absolute; inset: 0; background: var(--cta); transform-origin: left center; }

.gate { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 16px; }
.gate__ring { position: relative; flex: none; width: 44px; height: 44px; }
.gate__ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.gate__ring circle { fill: none; stroke-width: 3; }
.gate__ring .t { stroke: var(--line); }
.gate__ring .f { stroke: var(--cta); stroke-dasharray: 107; stroke-dashoffset: 107; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.gate__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 400; color: var(--green); font-variant-numeric: tabular-nums; }
.gate__title { margin: 0; font-size: var(--t2); color: var(--ink); }
.gate__body { margin: 2px 0 0; font-size: var(--t1); line-height: 1.55; color: var(--ink-2); }
.gate.is-open { display: block; padding: 0; border: 0; margin-top: var(--s4); }
.gate.is-open .gate__title { font-size: var(--t3); letter-spacing: -.02em; color: var(--green); }
.gate.is-open .gate__body { font-size: var(--t2); margin-top: 6px; }
.gate.is-open .book { margin-top: var(--s2); }

/* ---------- booking ---------- */
.book { margin-top: var(--s3); padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.book__name { margin: 0; font-size: var(--t2); color: var(--green); }
.book__sub { margin: 2px 0 0; font-size: var(--t1); color: var(--ink-3); }
.book__days { display: flex; gap: 8px; margin: 16px -4px 0; padding: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.book__days::-webkit-scrollbar { display: none; }
.day {
  flex: none; display: grid; place-content: center; gap: 2px; width: 82px; height: 66px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 14px; background: var(--page); cursor: pointer; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.day span { font-size: var(--t1); color: var(--ink-3); }
.day strong { font-size: var(--t2); font-weight: 400; }
.day[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.day[aria-selected="true"] span { color: rgba(255, 255, 255, .75); }
.book__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 14px; }
.slot { height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: var(--t2); font-variant-numeric: tabular-nums; transition: background-color .2s, border-color .2s, color .2s; }
.slot:active { background: var(--tint); }
.slot[aria-pressed="true"] { background: var(--cta); border-color: var(--cta); color: #fff; }
.book__confirm { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.book__when { margin: 0; font-size: var(--t2); color: var(--green); }
.book__label { display: block; margin-top: 14px; font-size: var(--t1); color: var(--ink-3); }
.book__label input { display: block; margin-top: 2px; }
.book__form .btn { margin-top: 18px; }
.book__form .micro { margin: 12px 0 0; }
.book__alt { display: inline-block; margin-top: 16px; font-size: var(--t1); }

.book--callback { padding-top: 6px; }
.book--callback .book__form .btn { margin-top: 18px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--t1); white-space: nowrap; }
.prep { margin-top: var(--s4); padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.prep__title { margin: 0; color: var(--ink); }
.prep__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pchip { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--page); cursor: pointer; font-size: var(--t2); transition: background-color .2s, border-color .2s, color .2s; }
.pchip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.prep__note { margin: 10px 0 0; font-size: var(--t1); color: var(--cta); }
.prep__note:empty { display: none; }

/* ---------- bottom sheet (phones) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 20, 12, .4); }
.sheet {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow-y: auto;
  padding: 6px 20px calc(22px + env(safe-area-inset-bottom)); background: var(--card); border-radius: 22px 22px 0 0;
}
.sheet__grip { width: 40px; height: 4px; margin: 6px auto 10px; border-radius: 4px; background: var(--line-2); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.sheet__title { margin: 0; color: var(--green); }
.sheet__close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.sheet__close svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.sheet .card { border: 0; padding: 4px 0 0; }
.sheet .card.is-final { padding: 22px; }
.sheet .card .card__title { display: none; }
.sheet .card .rows { border-top: 0; margin-top: 0; }
.sheet .book__form .btn { width: 100%; }

/* ---------- legal ---------- */
.legal { margin: var(--s5) 0 0; max-width: 46em; font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.legal a { color: var(--ink-2); }

/* ---------- QA ---------- */
.qa { position: fixed; left: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 12px; }
.qa span { padding: 0 8px; color: #9FD3A6; }
.qa button { border: 0; background: rgba(255, 255, 255, .1); color: #fff; padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 12px; }

/* ---------- touch devices ---------- */
@media (hover: none) {
  .opt__key, .hint { display: none; }
  .opt { padding-left: 18px; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 1023px) {
  .body { grid-template-columns: minmax(0, 1fr); padding: var(--s4) var(--s3) var(--s5); }
  .ledger { display: none; }
  .chip { display: inline-flex; }
  .chip[hidden] { display: none; }
  .mini { display: block; margin-top: var(--s4); padding: 20px; background: var(--green); color: #fff; border-radius: 18px; }
  .mini__title { margin: 0 0 6px; font-size: var(--t2); color: #fff; }
  .mini .route { margin-top: 8px; }
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .welcome__map { display: none; }
  .welcome .proof, .welcome .legal { grid-column: 1; grid-row: auto; }
}
@media (max-width: 719px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px auto; height: auto; column-gap: 10px; padding: 0 16px 8px; border-bottom: 1px solid var(--line); }
  .brand img { height: 38px; }
  .brand__name { font-size: 11px; }
  .chip { grid-column: 2; grid-row: 1; height: 34px; padding-left: 12px; }
  .progress { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 14px; }
  .progress__track { top: 6px; }
  .progress__dot { top: 7px; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .pst { top: 7px; }
  .pst em { display: none; }
  .is-welcome .bar { padding-bottom: 0; border-bottom-color: transparent; }
  .is-welcome .progress { display: none; }
  .back { margin-bottom: var(--s2); }
  .body { padding: var(--s3) 20px calc(var(--s5) + env(safe-area-inset-bottom)); }
  .is-welcome .body { padding-top: var(--s1); }
  .stage { min-height: 0; }
  .display { font-size: 40px; }
  .welcome__ask { margin-top: var(--s3); }
  .welcome__q { font-size: 20px; }
  .opts { gap: 8px; margin-top: var(--s2); }
  .field { margin-top: var(--s3); }
  .field__actions .btn, .book__form .btn, .check__actions .btn, .cta-row .btn { width: 100%; }
  .book { padding: 18px 16px; margin-left: -4px; margin-right: -4px; }
  .day { width: 74px; }
  .book__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book__confirm { display: none; }
  .demo { margin-left: -4px; margin-right: -4px; border-radius: 16px; }
  .demo__cap { padding: 12px 14px; gap: 12px; }
  .demo__play { width: 40px; height: 40px; }
  .proof { margin-top: var(--s4); }
  .legal { margin-top: var(--s4); }
}

/* Short phones, such as in-app browsers with toolbars: keep every answer above the fold. */
@media (max-width: 719px) and (max-height: 740px) {
  .is-welcome .eyebrow { display: none; }
  .display { font-size: 34px; }
  .welcome .lede { margin-top: 10px; }
  .welcome__ask { margin-top: var(--s2); }
  .welcome__q { font-size: var(--t2); color: var(--ink-2); }
  .q__title { font-size: 24px; }
  .ack { margin-bottom: 6px; }
  .opts { gap: 6px; margin-top: 14px; }
  .opt { min-height: 50px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ring circle, .ring path { stroke-dashoffset: 0; }
}
