@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour: two values plus one orange */
  --board: #F4F6F5;
  --ink: #101A24;
  --tape: #5B6670;
  --night: #101A24;
  --night-soft: #B7C1CB;
  --orange: #FF6A13;
  /* the orange's tooth: mid-grey noise overlaid on the fill, like powder-coated hi-vis stock */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.4 .4 .4 0 -.1 .4 .4 .4 0 -.1 .4 .4 .4 0 -.1 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --orange-fill: var(--grain) var(--orange);

  /* space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s9: clamp(4rem, 9vw, 7rem);

  /* radius: inner = outer - padding - border */
  --r-block: 4px;
  --r-strip: 6px;
  --r-seg: 12px;
  --r-seg-pad: 4px;
  --r-seg-inner: 6px;
  --r-btn: 12px;
  --r-board: 14px;

  --step: 120ms steps(2, end);
  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: "Overpass", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--orange);
}

/* grain sits on the orange through overlay: mid-grey is invisible, so it only adds tooth */
.call-btn, .strip.rr, .l.out, .b.rr, .key, .call-bar { background-blend-mode: overlay; }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-block);
}
.math :focus-visible, .close :focus-visible, .night :focus-visible { outline-color: var(--board); }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.02; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num, .t { font-variant-numeric: tabular-nums lining-nums; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- header rail ---------- */

/* skip link: out of sight until a keyboard lands on it, then the outlined control on board white,
   which reads over the dark preview bar and the white rail alike */
.skip {
  position: absolute; z-index: 40; top: var(--s3); left: var(--gutter);
  padding: var(--s2) var(--s3);
  background: var(--board); color: var(--ink); font-weight: 800; text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--r-strip);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.preview-note { background: var(--ink); color: var(--board); text-align: center; font-size: 1rem; font-weight: 600; padding: var(--s2) var(--gutter); }
.preview-note[hidden] { display: none; }

.rail {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s5);
  padding: var(--s3) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--board);
  border-bottom: 2px solid var(--ink);
}
.wordmark { display: block; flex-shrink: 0; }
/* the logo carries headroom for the ringing ticks; lift it so the strip itself centres on the rail */
.wordmark svg { display: block; height: 2.83rem; width: auto; position: relative; top: -0.27rem; }
.rail-nav { display: flex; gap: var(--s5); margin-left: auto; }
.rail-nav a { text-decoration: none; font-weight: 600; padding: var(--s2) 0; }
.rail-nav a:hover { text-decoration: underline; }
.rail-call {
  font-weight: 800; text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 2px solid var(--ink); border-radius: var(--r-strip);
}
.rail-call:hover { background: var(--ink); color: var(--board); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s6);
  align-items: end;
  padding-block: var(--s5) var(--s5);
}
.hero-main { display: grid; gap: var(--s4); }
.hero-side { display: grid; gap: var(--s3); justify-items: stretch; }
.lede { font-size: 1.25rem; line-height: 1.45; max-width: 62ch; }
.aside { color: var(--tape); font-weight: 600; font-size: 1rem; }

/* hear a sample call: the secondary action, outlined so the orange stays the call */
.hear {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 3.25rem; padding: 0.625rem 1.25rem;
  font: inherit; font-size: 1.125rem; font-weight: 800; color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: var(--r-btn);
  cursor: pointer;
}
.hear:hover, .hear[data-state="playing"] { background: var(--ink); color: var(--board); }
.hear-time { font-weight: 600; }
[data-hear] .i-pause, [data-hear][data-state="playing"] .i-play { display: none; }
[data-hear][data-state="playing"] .i-pause { display: block; }
[data-hear][data-state="loading"] { cursor: progress; }
[data-hear][data-state="loading"] .icon { animation: ring 600ms steps(2, end) infinite; }
.i-play { fill: currentColor; }

.call-btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: 1.125rem 1.5rem;
  background: var(--orange-fill); color: var(--ink);
  border: 2px solid var(--orange); border-radius: var(--r-btn);
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; line-height: 1.15;
  text-decoration: none;
}
.call-btn .num { white-space: nowrap; }
.hero .call-btn { padding: 1.25rem 1.75rem; container-type: inline-size; }
.hero .call-btn .num { display: block; font-size: 1.5em; letter-spacing: -0.01em; }
/* the number never breaks, so on a zoomed phone or with large text it gives up size rather than push the page wide.
   It is about 7.6em long; the icon and the gap sit beside it. */
@supports (width: 1cqi) {
  .hero .call-btn .num { font-size: min(1.5em, (100cqi - 1.25em - var(--s3)) / 7.6); }
}
.call-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--board); }
.call-btn:active { transform: translateY(2px); }

/* ---------- week board ---------- */

.week { padding-bottom: var(--s9); }
.week-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-bottom: var(--s4); }
.week-head h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
/* the controls keep their natural width: when they can't sit beside the heading they move under it as one row,
   rather than squeezing the trade switch onto two lines */
.controls { display: flex; flex-wrap: wrap; flex: 1 1 auto; gap: var(--s3) var(--s4); justify-content: space-between; }
#trades { flex-wrap: nowrap; }

.seg {
  display: inline-flex; flex-wrap: wrap; gap: var(--r-seg-pad);
  padding: var(--r-seg-pad);
  border: 2px solid var(--ink); border-radius: var(--r-seg);
}
.seg button {
  font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--ink);
  background: transparent; border: 0; border-radius: var(--r-seg-inner);
  padding: 0.5rem 0.625rem; min-height: 2.75rem; cursor: pointer; white-space: nowrap;
}
.seg button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--board); text-decoration: none; }

.board {
  display: grid;
  grid-template-columns: 7.5rem repeat(7, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  border: 2px solid var(--ink); border-radius: var(--r-board);
  overflow: hidden;
  background: var(--board);
}
.band-label { grid-column: 1; padding: var(--s3); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.band-corner { grid-row: 1; border-bottom: 3px solid var(--tape); }
.band-day { grid-row: 2; }
.band-night { grid-row: 3; background: var(--night); color: var(--board); }

.day {
  grid-row: 1 / span 3;
  display: grid; grid-template-rows: subgrid;
  border-left: 3px solid var(--tape);
  min-width: 0;
}
.day h3 { padding: var(--s3); font-size: 1.125rem; border-bottom: 3px solid var(--tape); }
.jobs, .night {
  min-width: 0;
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s2);
}
.night {
  min-height: 6rem;
  background: var(--night); color: var(--board);
}
.night:has(.call) { padding: 0; }

.strip {
  display: grid; gap: 0.125rem;
  padding: 0.4375rem 0.5625rem;
  border: 2px solid var(--ink); border-radius: var(--r-strip);
  font-size: 0.9375rem; line-height: 1.3;
}
.strip .t { font-weight: 800; }
.strip .missed { display: none; }
.strip.rr { background: var(--orange-fill); border-color: var(--orange); color: var(--ink); }

/* the booked job: an open slot while the call runs, then it lands in three hard frames */
.result.open { background: transparent; border-style: dashed; border-color: var(--tape); color: transparent; }
.result.landing { animation: fill 480ms step-end; }

/* voicemail mode: what the same week looks like unanswered */
:is(.board, .pw)[data-mode="voicemail"] .strip.rr {
  background: transparent; border-style: dashed;
  border-color: var(--tape); color: var(--tape);
}
:is(.board, .pw)[data-mode="voicemail"] .night .strip.rr { border-color: var(--night-soft); color: var(--night-soft); }
:is(.board, .pw)[data-mode="voicemail"] .strip.rr .what { display: none; }
:is(.board, .pw)[data-mode="voicemail"] .strip.rr .missed { display: block; }
:is(.board, .pw)[data-mode="voicemail"] .strip.result,
:is(.board, .pw)[data-mode="voicemail"] .strip.booked { display: none; }

/* the call, written out on the night band across three columns */
.call {
  position: relative; z-index: 1;
  width: calc(300% + 6px); flex: 1;
  padding: var(--s3) var(--s4) var(--s4);
  background: var(--night);
  display: grid; gap: var(--s3); align-content: start;
  container-type: inline-size;
}
.call-when { display: flex; align-items: center; gap: var(--s3); font-weight: 800; }
/* the panel's plan switch: the segmented control in night material, sitting tight on the time line */
.call:has(.call-plan) { padding-top: var(--s2); }
.call-plan { justify-self: start; flex-wrap: nowrap; margin-bottom: calc(var(--s2) - var(--s3)); border-color: var(--board); }
.call-plan button { color: var(--board); white-space: normal; }
.call-plan button:first-child { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 23rem) { .seg.call-plan button { font-size: 0.9375rem; padding-inline: 0.5rem; } }
/* with large text the two plans can't share a row, even wrapped: let the second one drop under the first */
@container (max-width: 14em) { .call-plan { flex-wrap: wrap; } }
.call-plan button[aria-pressed="true"] { background: var(--board); color: var(--night); }
.lines { display: grid; gap: var(--s2); font-size: 1rem; line-height: 1.4; }
.l b { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--night-soft); }
.l.sys { color: var(--night-soft); }
.l.c { padding-left: var(--s5); }
.l.out {
  justify-self: start;
  padding: 0.4375rem 0.625rem;
  background: var(--orange-fill); color: var(--ink);
  border-radius: var(--r-strip); font-weight: 700;
}
/* the text the owner gets: a plain message on board white, the last step of the call */
.l.sms { display: grid; gap: var(--s1); }
.sms-body {
  justify-self: start;
  padding: 0.4375rem 0.625rem;
  background: var(--board); color: var(--ink);
  border-radius: var(--r-strip); line-height: 1.3;
}
.sms-body span { display: block; }
/* Lead Management: the request as it came off the web form, the same block in outline */
.l.req .sms-body { background: transparent; color: var(--board); border: 2px solid var(--board); }
.l.pending { visibility: hidden; }
.l.land { animation: land var(--step); }
.vm { display: none; color: var(--night-soft); }

.replay {
  justify-self: start;
  font: inherit; font-size: 0.9375rem; font-weight: 700;
  color: var(--board); background: transparent;
  border: 2px solid var(--board); border-radius: var(--r-strip);
  padding: 0.375rem 0.75rem; min-height: 2.75rem; cursor: pointer;
}
.replay:hover { background: var(--board); color: var(--night); }
.replay[hidden] { display: none; }
.call-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hear-inline { display: inline-flex; align-items: center; gap: var(--s2); }
.hear-inline[data-state="playing"] { background: var(--board); color: var(--night); }

:is(.board, .pw)[data-mode="voicemail"] .lines,
:is(.board, .pw)[data-mode="voicemail"] .call-actions { display: none; }
:is(.board, .pw)[data-mode="voicemail"] .vm { display: block; }

/* ringing: three bars stepping while the phone rings */
.ring { display: none; gap: 3px; align-items: end; height: 1rem; }
.call.ringing .ring { display: inline-flex; }
.ring i { width: 4px; background: var(--orange); height: 100%; animation: ring 600ms steps(2, end) infinite; }
.ring i:nth-child(2) { animation-delay: 200ms; }
.ring i:nth-child(3) { animation-delay: 400ms; }

/* ringing ticks on the logo and on each call button's phone: blink twice in held frames, one after another */
.ringing .ring-tick { animation: tick-ring 600ms step-end backwards; }
.ringing .rt2 { animation-delay: 100ms; }
.ringing .rt3 { animation-delay: 200ms; }

@keyframes ring { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes tick-ring { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes land { from { transform: translateY(6px); } to { transform: none; } }
@keyframes fill {
  0% { background: transparent; border-style: dashed; border-color: var(--tape); color: transparent; }
  33% { background: var(--ink); border-style: solid; border-color: var(--ink); color: var(--ink); }
  66% { background: var(--orange); border-color: var(--orange); color: var(--ink); }
}

/* ---------- the week on a phone ---------- */

.pw { display: none; }
.pw-call { border-radius: var(--r-board); overflow: hidden; }
.pw-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto auto;
  margin-top: var(--s3);
  border: 2px solid var(--ink); border-radius: var(--r-board); overflow: hidden;
}
.pw-col {
  display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid;
  padding: 0; font: inherit; color: var(--ink); text-align: center;
  background: transparent; border: 0; border-left: 3px solid var(--tape); cursor: pointer;
}
.pw-col:first-child { border-left: 0; }
.pw-col:focus-visible { outline-offset: -3px; }
.pw-name { padding: 0.5rem 0; font-size: 1rem; font-weight: 800; border-bottom: 3px solid var(--tape); }
.pw-col[aria-pressed="true"] .pw-name { background: var(--ink); color: var(--board); }
.pw-cell { display: flex; flex-direction: column; gap: 4px; padding: 6px 5px; min-height: 4.75rem; }
.pw-n { background: var(--night); min-height: 2.75rem; }
.b { display: block; height: 0.875rem; border: 2px solid var(--ink); border-radius: var(--r-block); }
.b.rr { background: var(--orange-fill); border-color: var(--orange); }
.pw[data-mode="voicemail"] .b.rr { background: transparent; border-style: dashed; border-color: var(--tape); }
.pw[data-mode="voicemail"] .pw-n .b.rr { border-color: var(--night-soft); }
.pw[data-mode="voicemail"] .b.result, .pw[data-mode="voicemail"] .b.booked { display: none; }
.pw-list { margin-top: var(--s4); border: 2px solid var(--ink); border-radius: var(--r-board); overflow: hidden; }
.pw-list h3 { padding: var(--s3); border-bottom: 3px solid var(--tape); }

.board-note { margin-top: var(--s4); color: var(--tape); font-size: 1rem; max-width: 70ch; }
.key {
  display: inline-block; width: 1.5rem; height: 0.75rem;
  margin-right: var(--s1); vertical-align: baseline;
  background: var(--orange-fill); border-radius: 3px; /* one-off: 3px on a 0.75rem bar */
}

/* ---------- how it works ---------- */

.how { padding-block: var(--s9); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.trade-photo { margin: 0; }
.trade-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-board); background: var(--tape); }
.trade-photo figcaption { margin-top: var(--s4); font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; line-height: 1.3; text-wrap: balance; }
.states { margin-top: var(--s6); border-top: 2px solid var(--ink); }
.states li {
  display: grid; gap: var(--s2);
  padding-block: var(--s5); border-bottom: 1px solid var(--tape);
}
.states h3 { font-size: 1.5rem; }
.states p { max-width: 62ch; }
.how-close {
  margin-top: var(--s6);
  font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; line-height: 1.3;
  max-width: 34ch;
}

/* ---------- speed: why picking up first matters ---------- */

/* a night field, so the numbers can carry the orange */
.speed { background: var(--night); color: var(--board); padding-block: var(--s9); }
.speed .lede { margin-top: var(--s4); color: var(--night-soft); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s7); }
.stats li { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s5); border-top: 4px solid var(--orange); }
/* the figure step, the same size as the math result: a stat never outranks the page headline */
.stat-fig { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--orange); }
.stat-say { font-size: 1.25rem; font-weight: 700; line-height: 1.35; max-width: 30ch; }
.stat-more { color: var(--night-soft); }
/* sources sit at the foot of each column, quiet: they back the figures up, nobody reads them through */
.stat-src { margin-top: auto; padding-top: var(--s4); font-size: 0.8125rem; color: var(--night-soft); }
/* owners' guess against the recordings: two bars in the board's block material */
.gap { display: grid; gap: var(--s2); max-width: 22rem; }
.gap-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9375rem; font-weight: 700; color: var(--night-soft); }
.gap-row b { font-size: 1.25rem; font-weight: 800; color: var(--board); }
.gap-bar { display: block; height: 0.875rem; border: 2px solid var(--board); border-radius: var(--r-strip); overflow: hidden; }
.gap-bar + .gap-row { margin-top: var(--s2); }
.gap-bar span { display: block; height: 100%; background: var(--night-soft); }
.gap-bar.real { border-color: var(--orange); }
.gap-bar.real span { background: var(--orange-fill); background-blend-mode: overlay; }

/* ---------- the math: a night field ---------- */

.math { background: var(--night); color: var(--board); padding-block: var(--s9); }
.math-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: end; }
.field { display: grid; gap: var(--s2); margin-top: var(--s6); font-weight: 600; color: var(--night-soft); }
.money {
  display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s4);
  border: 2px solid var(--board); border-radius: var(--r-btn);
  color: var(--board); font-size: 2rem; font-weight: 800;
  max-width: 16rem;
}
.money:focus-within { outline: 3px solid var(--board); outline-offset: 3px; }
.money input {
  font: inherit; color: inherit; background: transparent;
  border: 0; outline: 0; width: 100%; padding: var(--s3) 0;
  font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield;
}
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.slider { -webkit-appearance: none; appearance: none; width: 100%; max-width: 16rem; margin-top: var(--s4); height: 2.75rem; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 4px; background: var(--tape); border-radius: 2px; }
.slider::-moz-range-track { height: 4px; background: var(--tape); border-radius: 2px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 28px; margin-top: -12px; border: 0; border-radius: var(--r-block); background: var(--board); }
.slider::-moz-range-thumb { width: 14px; height: 28px; border: 0; border-radius: var(--r-block); background: var(--board); }

.math-out .big { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.math-out .big .num { display: inline-block; min-width: 1ch; }
.math-out .big.tick, .math-out .spare.tick { animation: land var(--step); }
.spare { margin-top: var(--s3); font-size: 1.25rem; font-weight: 700; }
.fine { margin-top: var(--s4); color: var(--night-soft); }
/* which plan the math is for: the segmented control in night material, like the call panel's */
.math-plan { display: none; margin-bottom: var(--s5); border-color: var(--board); }
.js .math-plan { display: inline-flex; }
.math-plan { flex-wrap: nowrap; }
.math-plan button { color: var(--board); white-space: normal; }
/* phones: three plans share one row; on the narrowest, a long name wraps inside its own button */
@media (max-width: 30rem) { .seg.math-plan button { padding-inline: 0.5rem; } }
.math-plan button[aria-pressed="true"] { background: var(--board); color: var(--night); }

/* ---------- pricing ---------- */

.pricing { padding-block: var(--s9); }
/* pay monthly or for the year: the switch sits over the table, the saving shows on each plan */
.billing { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s6); }
.billing .seg { display: none; }
.js .billing .seg { display: inline-flex; }
.billing-note { font-weight: 700; }
.plans { width: 100%; border-collapse: collapse; margin-top: var(--s6); }
.plans th, .plans td { text-align: left; vertical-align: baseline; padding: var(--s4) var(--s4) var(--s4) 0; }
.plans thead th { font-size: 0.9375rem; font-weight: 700; color: var(--tape); border-bottom: 2px solid var(--ink); padding-block: var(--s2); }
.plans tbody tr { border-bottom: 1px solid var(--tape); }
.plans tbody th { font-size: 1.375rem; font-weight: 800; }
.plans tbody th span { display: block; font-size: 1rem; font-weight: 400; margin-top: var(--s1); }
.plans td.num { font-size: 1.375rem; font-weight: 700; white-space: nowrap; }
/* monthly is the price that matters; setup is a one-off, so it steps back */
.plans thead th:nth-child(2) { width: 11rem; }
.plans thead th:nth-child(3) { width: 9.5rem; }
.plans td[data-label="Setup"] { font-size: 1.125rem; font-weight: 600; color: var(--tape); }
.plans :is(.billed, .waived) { display: none; margin-top: var(--s1); font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.plans .save {
  display: none; width: fit-content; margin-top: var(--s2);
  padding: 0.125rem 0.5rem; border-radius: var(--r-strip);
  background: var(--orange-fill); background-blend-mode: overlay;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.4;
}
.plans[data-billing="year"] :is(.billed, .save, .waived) { display: block; }
.plans td.tick { animation: land var(--step); }
.plans tbody th span { max-width: 34ch; }
.plans td[data-label="Included"] { font-size: 0.9375rem; }
.plans tr.lead th { font-size: 2rem; }
.plans tr.lead td[data-label="Monthly"] { font-size: 2rem; font-weight: 800; }
.plans tr.lead th, .plans tr.lead td { padding-block: var(--s5); }
/* the terms: one quiet labelled row under the table, so the prices stay the loudest thing */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s6); margin-top: var(--s5); }
.terms dt { font-size: 0.9375rem; font-weight: 700; color: var(--tape); margin-bottom: var(--s1); }
.terms dd { font-size: 1rem; max-width: 40ch; }
.terms-fine { margin-top: var(--s5); max-width: 80ch; font-size: 1rem; color: var(--tape); }

/* ---------- who ---------- */

.who { padding-bottom: var(--s9); }
.who-grid {
  display: grid; grid-template-columns: 11rem minmax(0, 5fr) minmax(0, 5fr); gap: var(--s6);
  align-items: start; margin-top: var(--s7);
  padding-top: var(--s5); border-top: 2px solid var(--ink);
}
.portrait {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-board); background: var(--tape);
}
/* a hello from the photo: a small badge pops on the corner, waves twice in held frames, and goes */
.portrait-wrap { position: relative; }
.wave {
  position: absolute; top: -0.75rem; right: -0.75rem;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: var(--board); border: 2px solid var(--ink); border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  opacity: 0; pointer-events: none;
}
.wave.waving { animation: wave 1680ms step-end forwards; }
@keyframes wave {
  0% { opacity: 1; transform: scale(0.6); }
  8% { opacity: 1; transform: scale(1); }
  16%, 40% { transform: rotate(16deg); }
  28%, 52% { transform: rotate(-10deg); }
  64% { transform: rotate(0); }
  86% { opacity: 1; transform: scale(0.8); }
  93%, 100% { opacity: 0; }
}
.bio { display: grid; gap: var(--s4); }
.bio-lead { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.does li { padding-block: var(--s3); border-bottom: 1px solid var(--tape); }
.does h3 { padding-bottom: var(--s3); border-bottom: 1px solid var(--tape); }
.does b { font-weight: 800; }

/* ---------- answers ---------- */

.answers { padding-bottom: var(--s9); }
.answers dl {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s7); margin-top: var(--s7);
  border-top: 2px solid var(--ink);
}
.answers dl > div { padding-block: var(--s5); border-bottom: 1px solid var(--tape); }
.answers dt { font-size: 1.25rem; font-weight: 800; margin-bottom: var(--s2); }
.answers dd { max-width: 48ch; }

/* ---------- close + footer ---------- */

.close { background: var(--night); color: var(--board); padding-block: var(--s9); }
.close .wrap { display: grid; gap: var(--s6); justify-items: start; }
.close h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); max-width: 16ch; }
.close .call-btn:hover { background: var(--board); border-color: var(--board); color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; padding-block: var(--s6); font-size: 1rem; }
.foot strong { font-weight: 900; margin-right: var(--s2); }

/* ---------- phone call bar (small screens only) ---------- */

.call-bar { display: none; }

/* ---------- responsive ---------- */

/* landscape tablets and small laptops: the board is still a week, but every pixel goes to the seven days.
   The band labels turn on their side in a narrow edge column, and the strips sit a little tighter. */
@media (min-width: 62.0625rem) and (max-width: 75rem) {
  .board { grid-template-columns: 2.5rem repeat(7, minmax(0, 1fr)); }
  .band-label { padding: var(--s3) 0; writing-mode: vertical-rl; transform: rotate(180deg); text-align: end; }
  .jobs, .night { padding: var(--s1); }
  .strip { padding: 0.375rem 0.4375rem; }
}

@media (max-width: 62rem) {
  .hero { grid-template-columns: 1fr; gap: var(--s5); }
  .math-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .how-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .who-grid { grid-template-columns: 8rem minmax(0, 1fr); }
  .does { grid-column: 1 / -1; }

  /* phones: the call leads, then the week as one small grid, the switch, and the chosen day */
  .week { display: flex; flex-direction: column; }
  .week-head, .controls { display: contents; }
  #trades { order: 1; flex-wrap: nowrap; overflow-x: auto; margin-bottom: var(--s3); scrollbar-width: none; }
  #trades button { flex: none; }
  .pw-call, .board { order: 2; }
  .pw-grid { order: 3; }
  #mode { order: 4; display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s3); }
  .pw-list { order: 5; }
  .board-note { order: 6; }
  .week-head h2 { margin-bottom: var(--s3); }
  .js .board { display: none; }
  .js .pw-call { display: flex; }
  .js .pw-grid { display: grid; }
  .js .pw-list { display: block; }
  .pw-list .jobs, .pw-list .night { padding: var(--s2); }

  /* without the script the board turns on its side: one row per day */
  .board { grid-template-columns: 1fr; grid-template-rows: none; }
  .band-label { display: none; }
  .day {
    grid-row: auto;
    grid-template-columns: 4rem minmax(0, 1fr); grid-template-rows: auto auto;
    border-left: 0;
  }
  .day + .day { border-top: 3px solid var(--tape); }
  .day h3 { grid-row: 1 / span 2; border-bottom: 0; border-right: 3px solid var(--tape); }
  .strip { font-size: 1.0625rem; }
  .l b { font-size: 0.9375rem; }
  .lines { font-size: 1.0625rem; }
  .jobs, .night { min-height: 0; grid-column: 2; }
  .jobs:empty, .night:empty { display: none; }
  .night:has(.call) { padding: 0; }
  .call { width: auto; padding: var(--s3); }
}

@media (max-width: 44rem) {
  body { padding-bottom: 5rem; }
  .rail-nav { display: none; }
  /* the logo holds its size when the text grows, so the number keeps room beside it */
  .rail { gap: var(--s3); }
  .wordmark svg { height: min(2.83rem, 45px); top: max(-0.27rem, -4.32px); }
  .rail-call { margin-left: auto; }
  .hero { padding-block: var(--s5); gap: var(--s4); }
  .hero-side { gap: var(--s4); }
  .seg button { font-size: 1rem; padding-inline: 0.75rem; }
  .week-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plans, .states, .answers dl, .stats { margin-top: var(--s5); }
  .stats { grid-template-columns: 1fr; gap: var(--s6); }
  .terms, .answers dl { grid-template-columns: 1fr; gap: 0; }
  .terms { gap: var(--s4); }
  .terms-fine { margin-top: var(--s4); }
  .call-btn { width: 100%; justify-content: center; container-type: inline-size; }
  /* full width, the number gets the same guard as the hero's: it shrinks before it pushes the page wide */
  @supports (width: 1cqi) {
    .call-btn .num { font-size: min(1em, (100cqi - 1.25em - var(--s3)) / 7.6); }
  }
  /* the photo and the opening line share a row; the rest of the bio runs full width under them */
  .who-grid { grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s4); margin-top: var(--s5); }
  .bio { display: contents; }
  .bio-lead { align-self: center; font-size: 1.625rem; line-height: 1.2; }
  .bio > p:not(.bio-lead) { grid-column: 1 / -1; }
  .does { margin-top: var(--s4); }

  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  /* a row that wraps, so with large text the setup price drops under the monthly one instead of pushing past the edge */
  .plans tbody tr { padding-block: var(--s4); display: flex; flex-wrap: wrap; column-gap: var(--s4); align-items: baseline; }
  .plans tbody th, .plans td[data-label="Included"] { flex-basis: 100%; }
  .plans th, .plans td, .plans tr.lead th, .plans tr.lead td { padding: var(--s1) 0; }
  /* the monthly price leads; setup follows it on the same line */
  .plans td[data-label="Monthly"] { order: 1; }
  .plans td[data-label="Setup"], .plans tr.lead td[data-label="Setup"] { order: 2; font-size: 1rem; font-weight: 400; color: var(--ink); }
  .plans td[data-label="Included"] { order: 3; }
  .plans td[data-label="Monthly"] .price::after { content: " a month"; font-size: 1rem; font-weight: 400; }
  .plans td[data-label="Setup"] .fee::after { content: " setup"; }

  .call-bar {
    position: fixed; z-index: 30;
    left: var(--s3); right: var(--s3);
    bottom: calc(var(--s3) + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; gap: var(--s3);
    min-height: 3.5rem;
    background: var(--orange-fill); color: var(--ink);
    border: 2px solid var(--ink); border-radius: var(--r-btn);
    font-size: 1.25rem; font-weight: 800; text-decoration: none;
    /* parked below the screen it is also out of the tab order and the accessibility tree;
       visibility flips at the end of the slide out and at the start of the slide in */
    transform: translateY(150%); visibility: hidden;
    transition: transform 160ms steps(3, end), visibility 0s 160ms;
  }
  .call-bar.show { transform: none; visibility: visible; transition-delay: 0s; }
}

/* a call button squeezed by large text or a small screen drops its icon, so the number keeps its size over the label */
@container (max-width: 12em) {
  .call-btn > .icon { display: none; }
  .call-btn .num { font-size: min(1em, 100cqi / 7.6); }
  .hero .call-btn .num { font-size: min(1.5em, 100cqi / 7.6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .l.land, .result.landing, .math-out .big.tick, .math-out .spare.tick, .plans td.tick, .ring i, [data-hear] .icon, .ringing .ring-tick { animation: none; }
  .call-bar { transition: none; }
  .wave { display: none; }
}
