/* ==========================================================================
   Duepath — styles
   Dark midnight teal, warm cream, one bright teal accent.
   Rounded cards instead of rules. Inter for everything.
   ========================================================================== */

/* ------------------------------ Fonts ------------------------------
   Inter and Inter Display, served from the "fonts" folder beside this file
   (licence: fonts/Inter-LICENSE.txt). Nothing is loaded from another company's servers. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/inter-italic.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-semibold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/interdisplay-semibold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/interdisplay-bold.woff") format("woff"); }

:root {
  /* Palette */
  --teal:       #0D2E33;   /* midnight teal: the brand colour */
  --teal-2:     #133D43;   /* a step lighter, for cards on teal */
  --teal-3:     #1C4C53;
  --cream:      #F6F4EF;
  --white:      #FFFFFF;
  --accent:     #2BB5A8;   /* bright teal: buttons, eyebrows, "paid" */
  --accent-ink: #137168;   /* the accent darkened so small text stays readable on cream */
  --accent-soft:#DDEFEC;
  --ink:        #0D2E33;
  --slate:      #4A6064;
  --mist:       #E6E9E4;

  /* Colour roles (light sections). Dark sections re-set these. */
  --bg: var(--cream);
  --card: var(--white);
  --fg: #2E4549;
  --head: var(--ink);
  --muted: #5B6F72;
  --em: var(--accent-ink);
  --eyebrow: var(--accent-ink);
  --line: var(--mist);
  --btn-bg: var(--teal);
  --btn-fg: var(--cream);

  /* Type */
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Display", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Grid */
  --margin: clamp(20px, 4.4vw, 64px);
  --gutter: clamp(12px, 1.7vw, 24px);
  --nav-h: 72px;
  --r: 20px;          /* card radius */
  --r-s: 10px;        /* button and field radius */

  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ------------------------------ Base ------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--teal);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
svg { display: block; }
em { font-style: normal; color: var(--em); }
b { font-weight: 600; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--teal); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nb { white-space: nowrap; }

.skip {
  position: absolute; left: var(--margin); top: -80px; z-index: 100;
  background: var(--accent); color: var(--teal); padding: 10px 14px; border-radius: var(--r-s);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--margin); }

/* Small labels: uppercase, spaced, never mono */
.label {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.label b { font-weight: 600; color: var(--head); margin-right: .7em; }

.tag {
  display: inline-block;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: .04em;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--head);
}
.tag--gold { background: var(--accent); color: var(--teal); }   /* "Paid" moments: now the accent teal */

/* Anything still to be filled in. Deliberately impossible to miss. */
.ph {
  display: inline-block;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px dashed currentColor;
  border-radius: 6px;
  vertical-align: baseline;
  opacity: .8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 22px;
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--r-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--small { padding: 11px 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--btn-bg); }
.btn--ghost:hover { background: var(--btn-bg); color: var(--btn-fg); filter: none; }

/* ------------------------------ Eyebrows (the old running headers) ------------------------------ */

.runhead {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--eyebrow);
}
.runhead__no, .runhead__page, .runhead__note { display: none; }
/* In the hero the descriptive line reads better as the eyebrow than the word "Overview". */
.hero .runhead__title { display: none; }
.hero .runhead__note { display: block; }

/* Tabular figures only where numbers change or line up */
.tl__count, .tl__day, .tl__tick i, .fig__num, .ctl__val, .res__num, .res__note, .pricing__num, .chart text, .toc__no, .rt__no { font-variant-numeric: tabular-nums lining-nums; }

/* ------------------------------ 1. Nav ------------------------------ */

.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(13, 46, 51, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__brand {
  margin-right: auto;
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--cream);
  text-decoration: none;
}
.logo-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  padding: 6px 0;
  opacity: .88;
  border-bottom: 2px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-current { opacity: 1; border-bottom-color: var(--accent); }
.nav__cta { --btn-bg: var(--accent); --btn-fg: var(--teal); }
.nav__rule { display: none; }
.nav__toggle {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 1.5px solid rgba(246, 244, 239, .45);
  border-radius: var(--r-s);
  padding: 9px 14px;
  cursor: pointer;
}

@media (max-width: 959px) {
  .nav__toggle { display: inline-flex; }
  .no-js .nav__toggle { display: none; }
  .nav__links {
    display: none;
    position: absolute; left: 12px; right: 12px; top: calc(var(--nav-h) - 4px);
    flex-direction: column; gap: 0;
    background: var(--teal-2);
    border-radius: var(--r);
    padding: 10px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { font-size: 16px; padding: 14px 0; border-bottom: 0; }
  .nav__links a.is-current { color: var(--accent); }
}

/* ------------------------------ 2. Hero ------------------------------ */

.hero-track { position: relative; background: var(--teal); }
.hero {
  position: relative;
  --fg: #CFDCDB; --head: var(--cream); --muted: #9DB4B4; --em: var(--accent); --eyebrow: var(--accent);
  --btn-bg: var(--cream); --btn-fg: var(--teal);
  color: var(--fg);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(18px, 4vh, 56px));
  padding-bottom: clamp(16px, 3vh, 36px);
}
.hero__inner > * { flex-shrink: 0; }

/* With motion on, the hero pins in place while the invoice timeline draws. */
.motion .hero-track { height: 270vh; height: calc(100svh + 170vh); }
.motion .hero { position: sticky; top: 0; height: 100vh; height: 100svh; }
.motion .hero__inner { height: 100%; min-height: 0; }
.motion .hero-track.is-flow { height: auto; }
.motion .hero-track.is-flow .hero { position: relative; height: auto; }
.motion .hero-track.is-flow .hero__inner { height: auto; min-height: 100svh; }

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, min(7.4vw, 10.5vh), 108px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--head);
  margin-top: clamp(12px, 2vh, 22px);
}
.hero__title em { color: var(--head); }
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.hero__title .line__in { display: block; }

.hero__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-top: clamp(14px, 2.6vh, 30px);
}
.hero__sub {
  grid-column: 1 / span 6;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  max-width: 31em;
}
.hero__cta {
  grid-column: 8 / span 5;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  text-align: right;
}
.hero__cta .label { color: var(--muted); letter-spacing: .05em; }

/* ---- Timeline (Fig. 1), set on a cream card ---- */

.tl {
  --p: 1;
  --up: clamp(96px, 13.5vh, 156px);
  --down: 62px;
  --bg: var(--cream); --card: var(--cream);
  --fg: #2E4549; --head: var(--ink); --muted: #5B6F72; --line: #E2E6E1;
  --node-off: #B9C6C5;
  margin-top: auto;
  background: var(--cream);
  color: var(--fg);
  border-radius: calc(var(--r) + 4px);
  padding: clamp(16px, 2.4vh, 28px) clamp(18px, 2.4vw, 34px) clamp(8px, 1.4vh, 14px);
}
.tl__head { position: relative; display: flex; align-items: flex-end; gap: 18px; }
.tl__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.tl__cap .label b { color: var(--head); }
.tl__counter { margin-left: auto; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.tl__count {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vh, 54px);
  line-height: .86;
  letter-spacing: -.03em;
  color: var(--head);
  min-width: 1.25em;
  text-align: right;
}
.tl__paidtag { align-self: center; transition: opacity .4s ease; }

.tl__plot { position: relative; height: calc(var(--up) + var(--down)); margin-top: 12px; }
.tl__zone { position: absolute; top: 0; height: var(--up); }
.tl__zone--terms { left: 0; width: 25%; }
.tl__zone--overdue { left: 25%; right: 0; background: var(--accent-soft); border-radius: 12px 12px 0 0; }
.tl__zone .label { position: absolute; left: 12px; top: 9px; white-space: nowrap; }
.tl__zone--terms .label { left: 0; }

.tl__hint { position: absolute; right: 12px; top: 9px; z-index: 3; color: var(--accent-ink); display: none; white-space: nowrap; }
.tl__hint-short { display: none; }

.tl__base {
  position: absolute; left: 0; right: 0; top: calc(var(--up) - 1px);
  height: 2px; background: var(--node-off); border-radius: 2px;
  transform-origin: left center;
}
.tl__line {
  position: absolute; left: 0; right: 0; top: calc(var(--up) - 2px);
  height: 4px; background: var(--ink); border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(var(--p));
}
/* Axis break: the 30 days of payment terms are drawn shorter than the overdue days. */
.tl__break {
  position: absolute; left: 12.5%; top: calc(var(--up) - 9px);
  width: 13px; height: 18px; margin-left: -6px;
  background: var(--cream);
  z-index: 2;
}
.tl__break::before, .tl__break::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1.5px;
  background: var(--muted);
  transform: skewX(-18deg);
}
.tl__break::before { left: 3px; }
.tl__break::after { left: 9px; }

.tl__ticks { position: absolute; left: 0; right: 0; top: var(--up); height: 0; }
.tl__tick { position: absolute; left: calc(var(--x) * 100%); top: 3px; width: 1px; height: 5px; background: var(--node-off); }
.tl__tick i {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  font-style: normal; font-size: 11px; line-height: 1; font-weight: 500;
  color: var(--muted);
}

.tl__steps { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.tl__step { position: absolute; left: calc(var(--x) * 100%); top: var(--up); width: calc(var(--w) * 100%); height: 0; }
/* Ring nodes, as in "the path to paid" */
.tl__node {
  position: absolute; left: -7px; top: -7px; z-index: 3;
  width: 14px; height: 14px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color .35s ease, border-color .35s ease;
}
.tl__text {
  position: absolute; left: 0;
  display: block;
  width: 100%;
  padding-left: 11px;
  border-left: 1.5px solid var(--node-off);
  transition: border-color .35s ease;
}
.tl__step--chase .tl__text { bottom: 0; height: calc(var(--up) - 34px); }
.tl__step--mile .tl__text { top: 0; padding-top: 24px; }
.tl__day {
  display: block;
  font-size: 11.5px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-ink);
  transition: color .35s ease;
}
.tl__name {
  display: block;
  margin-top: 3px;
  font-size: 14.5px; line-height: 1.3; font-weight: 500;
  color: var(--ink);
  transition: color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.tl__short { display: none; }

.tl__step--end { left: auto; right: 0; }
.tl__step--end .tl__text { padding-left: 0; padding-right: 11px; border-left: 0; border-right: 1.5px solid var(--node-off); text-align: right; }
.tl__step--end .tl__node { left: auto; right: -7px; }

/* Paid: the accent moment */
.tl__step--paid .tl__node {
  width: 18px; height: 18px; top: -9px; right: -9px;
  background: var(--accent); border-color: var(--accent);
}
.tl__step--paid .tl__name {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 11px;
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600;
  background: var(--accent);
  color: var(--teal);
  border-radius: 999px;
}

/* Unlit states, only with motion on */
.motion .tl__step:not(.is-on) .tl__node { background: var(--cream); border-color: var(--node-off); }
.motion .tl__step:not(.is-on) .tl__day,
.motion .tl__step:not(.is-on) .tl__name { color: #93A3A3; }
.motion .tl__step--paid:not(.is-on) .tl__name { background: transparent; box-shadow: inset 0 0 0 1.5px var(--node-off); }
.motion .tl:not(.is-paid) .tl__paidtag { opacity: 0; }
.motion .tl__step.is-on .tl__node { animation: node-on .7s var(--ease); }
@keyframes node-on { 0% { transform: scale(1); } 35% { transform: scale(1.6); } 100% { transform: scale(1); } }
.motion .tl__hint { display: block; }

@media (max-width: 1399px) {
  .tl__full { display: none; }
  .tl__short { display: inline; }
}

/* ------------------------------ Sections ------------------------------ */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0;
  background: var(--bg);
  color: var(--fg);
}
/* Two light sections in a row share their spacing instead of doubling it. */
.section:not(.section--forest) + .section:not(.section--forest) { padding-top: clamp(24px, 3vw, 48px); }

.section--forest,
.footer {
  --bg: var(--teal);
  --card: var(--teal-2);
  --fg: #CFDCDB;
  --head: var(--cream);
  --muted: #9DB4B4;
  --em: var(--accent);
  --eyebrow: var(--accent);
  --line: rgba(246, 244, 239, .12);
  --btn-bg: var(--cream);
  --btn-fg: var(--teal);
  background: var(--teal);
  color: var(--fg);
}

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 18px;
  align-items: end;
  margin: clamp(14px, 1.6vw, 22px) 0 clamp(32px, 4vw, 56px);
}
.sec-head .h2 { grid-column: 1 / span 7; }
.sec-head .lead { grid-column: 8 / span 5; color: var(--muted); }
.sec-head--full .h2 { grid-column: 1 / span 10; }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--head);
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--head);
}
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; max-width: 36em; }

/* A card: the basic container everywhere */
.fig, .rt-wrap, .step, .split__col, .calc__controls, .res, .chart,
.pricing__offer, .terms, .plate, .toc__item, .form {
  background: var(--card);
  border-radius: var(--r);
}

/* Footnotes and notes, set small */
.notes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 10px;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.notes__label { grid-column: 1 / span 2; }
.notes__list, .notes__text, .notes__body { grid-column: 3 / span 9; }
.notes__list { list-style: none; padding: 0; columns: 2; column-gap: var(--gutter); }
.notes__list li { display: grid; grid-template-columns: 1.7em 1fr; break-inside: avoid; margin-bottom: 6px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.notes__n { font-size: 12px; font-weight: 600; color: var(--eyebrow); padding-top: 1px; }
.notes__list li:target { color: var(--head); }
.notes__strong { font-size: 14.5px; color: var(--head); font-weight: 600; margin-bottom: 10px; }
.notes__ul { list-style: none; padding: 0; columns: 2; column-gap: var(--gutter); }
.notes__ul li { position: relative; padding-left: 1.2em; margin-bottom: 7px; break-inside: avoid; }
.notes__ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ------------------------------ 3. Key figures ------------------------------ */

.figs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.fig { min-width: 0; padding: clamp(22px, 2.4vw, 34px); }
.fig--xl { grid-column: span 6; }
.fig--l { grid-column: span 4; }
.fig--wide { grid-column: 1 / -1; }
.fig__label span { color: var(--eyebrow); margin-right: .8em; }
.fig__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--head);
  margin: clamp(20px, 2.4vw, 36px) 0 12px;
  white-space: nowrap;
}
.fig--xl .fig__num { font-size: clamp(56px, 7.2vw, 108px); }
.fig__unit { font-size: .34em; letter-spacing: -.01em; margin-left: .25em; font-weight: 600; color: var(--muted); }
.fn { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0; vertical-align: top; position: relative; top: .45em; margin-left: 6px; }
.fn a { color: var(--muted); text-decoration: none; padding: 4px; margin: -4px; }
.fn a:hover { color: var(--eyebrow); text-decoration: underline; }
.fn--inline { top: -.1em; font-size: 11px; margin-left: 5px; }
.fig__text { max-width: 30ch; color: var(--fg); }
.fig__text--wide { max-width: 64ch; margin-top: clamp(20px, 2.4vw, 30px); color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 18px; }
.tier { min-width: 0; background: var(--bg); border-radius: 14px; padding: 18px 20px 20px; }
.tier .fig__num { margin: 0 0 6px; font-size: clamp(40px, 4vw, 60px); }

/* ------------------------------ 4. Who we help ------------------------------ */

.rt-wrap { overflow: hidden; padding: 6px clamp(18px, 2.2vw, 32px); }
.rt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rt th, .rt td { text-align: left; vertical-align: top; font-weight: 400; padding: 0 var(--gutter) 0 0; }
.rt th:last-child, .rt td:last-child { padding-right: 0; }
.rt thead th {
  font-size: 12px; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
  padding-top: 20px; padding-bottom: 14px;
}
.rt tbody th, .rt tbody td { padding-top: 24px; padding-bottom: 26px; border-top: 1px solid var(--line); }
.rt__no { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--eyebrow); }
.rt__name {
  display: block;
  margin-top: 6px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -.02em;
  color: var(--head);
}
.rt tbody td { font-size: 15.5px; line-height: 1.55; }

/* ------------------------------ 5. How it works ------------------------------ */

.how {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
.how__index { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 28px); }
.how__index ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.how__index a {
  display: grid;
  grid-template-columns: 3em 1fr 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s ease, background-color .3s ease;
}
.how__index a .n { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.how__index a::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream);
  opacity: 0; transition: opacity .3s ease;
}
.how__index li:last-child a::after { background: var(--accent); }
.how__index a:hover { color: var(--cream); }
.how__index a.is-active { color: var(--cream); background: var(--teal-2); }
.how__index a.is-active .n { color: var(--accent); }
.how__index a.is-active::after { opacity: 1; }

.how__steps { grid-column: 6 / span 7; display: grid; gap: var(--gutter); }
.step {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: clamp(24px, 3vw, 40px);
  scroll-margin-top: calc(var(--nav-h) + 28px);
}
.step__no {
  grid-column: 1 / span 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal-3);
  font-family: var(--display); font-weight: 700;
  font-size: 17px; line-height: 1; letter-spacing: -.01em;
  color: var(--accent);
}
.step--paid .step__no { background: var(--accent); color: var(--teal); }
.step__body { grid-column: 2 / span 6; padding-top: 6px; }
.step__body > p { margin-top: 14px; max-width: 34em; font-size: 16.5px; color: var(--fg); }

.facts { margin-top: 24px; display: grid; gap: 10px; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  column-gap: var(--gutter);
  align-items: baseline;
  padding: 12px 16px;
  background: var(--teal);
  border-radius: 12px;
}
.facts dt { font-size: 12px; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.facts dd { font-size: 15.5px; color: var(--head); }
.facts .tag { margin-right: 8px; position: relative; top: -1px; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(40px, 5vw, 72px);
}
.split__col { padding: clamp(24px, 3vw, 40px); min-width: 0; }
.split__col + .split__col { background: var(--cream); --head: var(--ink); --muted: #5B6F72; --em: var(--accent-ink); }
.split__list { list-style: none; padding: 0; margin-top: clamp(18px, 2.4vw, 32px); }
.split__list li,
.split__big {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.03em;
  color: var(--head);
}
.split__list li + li { margin-top: .16em; }
.split__big { margin-top: clamp(18px, 2.4vw, 32px); }
.split__big em { color: var(--ink); }
.split__small { list-style: none; padding: 0; margin-top: clamp(18px, 2vw, 26px); display: flex; flex-wrap: wrap; gap: 8px; }
.split__small li {
  font-size: 13.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
}

/* ------------------------------ 6. Calculator ------------------------------ */

.calc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.calc__controls {
  grid-column: 1 / span 4;
  display: grid; row-gap: clamp(26px, 3vw, 38px);
  padding: clamp(22px, 2.4vw, 32px);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.calc__out { grid-column: 5 / span 8; min-width: 0; display: grid; gap: var(--gutter); }

.ctl { min-width: 0; }
.ctl__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctl__val {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -.025em;
  color: var(--head);
  white-space: nowrap;
}
.ctl__scale { display: flex; justify-content: space-between; letter-spacing: .03em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 36px; margin: 8px 0 0; padding: 0;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / var(--fill) 100% no-repeat,
    var(--mist);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -8px;
  background: var(--white); border: 2.5px solid var(--teal); border-radius: 50%;
  box-shadow: 0 2px 6px rgba(13, 46, 51, .2);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--mist); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--white); border: 2.5px solid var(--teal); border-radius: 50%; }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.res { padding: clamp(18px, 2vw, 26px); min-width: 0; }
.res .label { min-height: 2.9em; }
.res__num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 2.5vw, 36px); line-height: 1; letter-spacing: -.03em;
  color: var(--head);
  margin-top: 12px;
  white-space: nowrap;
}
.res__note { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.res:first-child { background: var(--teal); --head: var(--cream); --muted: #9DB4B4; }

.chart { padding: clamp(18px, 2vw, 28px); }
.chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.chart__svg { width: 100%; height: clamp(230px, 24vw, 320px); margin-top: 16px; overflow: visible; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }
.chart__legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.key--comp { background: var(--accent-soft); box-shadow: inset 0 0 0 1px #B7D9D4; }
.key--int { background: var(--teal); }
.key--you { background: var(--white); box-shadow: inset 0 0 0 2px var(--accent); border-radius: 50%; }

.chart text { font-family: var(--sans); font-size: 11px; font-weight: 500; fill: var(--muted); }
.chart .c-grid { stroke: var(--mist); stroke-width: 1; }
.chart .c-axis { stroke: #B9C6C5; stroke-width: 1; }
.chart .c-comp { fill: var(--accent-soft); }
.chart .c-int { fill: var(--teal); }
.chart .c-top { stroke: var(--teal); stroke-width: 1.5; fill: none; }
.chart .c-mark-bg { stroke: var(--white); stroke-width: 3; }
.chart .c-mark { stroke: var(--accent-ink); stroke-width: 1.5; stroke-dasharray: 2 3; }
.chart .c-dot { fill: var(--white); stroke: var(--accent); stroke-width: 2.5; rx: 6px; }
.chart .c-cap, .chart .c-val { paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.chart .c-cap { fill: var(--ink); font-weight: 600; }
.chart .c-val { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; fill: var(--ink); }

/* ------------------------------ 7. Pricing ------------------------------ */

.pricing {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: stretch;
}
.pricing__offer {
  grid-column: 1 / span 5;
  padding: clamp(26px, 3vw, 42px);
  background: var(--cream);
  --head: var(--ink); --muted: #5B6F72;
  color: #2E4549;
}
.pricing__num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(96px, 12vw, 176px); line-height: .9; letter-spacing: -.05em;
  color: var(--head);
  margin: clamp(16px, 2vw, 28px) 0 clamp(14px, 1.6vw, 22px);
}
.pricing__text { font-size: 17px; max-width: 26em; }

.terms { grid-column: 6 / span 7; padding: 8px clamp(22px, 2.6vw, 36px); }
.terms > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 20px 0;
}
.terms > div + div { border-top: 1px solid var(--line); }
.terms dt {
  grid-column: 1 / span 2;
  font-size: 12px; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
  padding-top: 4px;
}
.terms dd { grid-column: 3 / span 4; font-size: 17px; color: var(--head); }
.terms dd a { color: var(--em); font-weight: 600; }

/* ------------------------------ 8. Founders ------------------------------ */

.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.plate {
  grid-column: span 6;
  display: flex; flex-direction: column;
  min-height: clamp(180px, 18vw, 250px);
  padding: clamp(22px, 2.4vw, 32px);
}
.plate > .label:first-child {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--accent); letter-spacing: .02em;
}
.plate__name {
  margin-top: auto;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.03em;
  color: var(--head);
}
.plate__name .ph { font-size: clamp(11px, 1vw, 13px); vertical-align: middle; font-family: var(--sans); letter-spacing: .03em; }
.plate__role { margin-top: 8px; color: var(--eyebrow); }

/* ------------------------------ 9. FAQ ------------------------------ */

.toc { list-style: none; padding: 0; display: grid; gap: 12px; }
.toc__item { padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.6vw, 34px); }
.toc__row { display: flex; align-items: baseline; gap: 16px; }
.toc__no { flex: 0 0 auto; width: 2.4em; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--eyebrow); }
.toc__q {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.02em;
  color: var(--head);
}
.toc__dots { flex: 1 1 24px; min-width: 24px; }
.toc__short {
  flex: 0 0 auto; align-self: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
}
.toc__a { margin: 8px 0 0 calc(2.4em * 13 / 16.5 + 16px); max-width: 40em; font-size: 16.5px; color: var(--fg); }
.toc__a .ph { margin-top: 4px; }

/* ------------------------------ 10. Book a call ------------------------------ */

.book {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
  margin-top: clamp(14px, 1.6vw, 22px);
}
.book__intro { grid-column: 1 / span 5; }
.book__intro .h2 { margin-top: 0; }
.book__intro .lead { margin-top: clamp(16px, 1.8vw, 24px); color: var(--muted); }
.terms--contact { margin-top: clamp(26px, 3vw, 40px); }
.terms--contact > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.terms--contact dt { grid-column: 1 / span 1; }
.terms--contact dd { grid-column: 2 / span 4; }

.form {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--cream);
  --head: var(--ink); --muted: #5B6F72; --btn-bg: var(--teal); --btn-fg: var(--cream);
  color: #2E4549;
}
.field { min-width: 0; }
.field--wide, .form__foot, .form__status { grid-column: 1 / -1; }
.field .label { display: block; margin-bottom: 8px; color: var(--head); }
.label__opt { margin-left: .6em; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input,
.field select {
  display: block; width: 100%;
  font-family: var(--sans); font-size: 16.5px; line-height: 1.3;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #DCE1DD; border-radius: var(--r-s);
  padding: 13px 14px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 181, 168, .18);
}
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 40px; cursor: pointer; }
.field.is-invalid input,
.field.is-invalid select { border-color: #B4442F; }
.field__err { margin-top: 7px; font-size: 13.5px; color: #9C3826; font-weight: 500; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; }
.form__status:focus { outline: none; }

/* The "email us" card that sits where the booking form used to be */
.book__card {
  grid-column: 7 / span 6;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--cream);
  border-radius: var(--r);
  --head: var(--ink); --muted: #5B6F72; --btn-bg: var(--teal); --btn-fg: var(--cream);
  color: #2E4549;
}
.book__card .label { color: var(--muted); }
.book__list { list-style: none; margin: 0; padding: 0; counter-reset: bk; display: grid; gap: 12px; width: 100%; }
.book__list li {
  counter-increment: bk;
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline;
  padding-top: 12px; border-top: 1px solid rgba(13, 46, 51, .14);
  font-size: 16.5px; line-height: 1.5; color: var(--ink);
}
.book__list li::before { content: "0" counter(bk); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.book__note { font-size: 13px; color: var(--muted); }
.book__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.book__status { min-height: 1.5em; margin-top: -12px; font-size: 14px; color: var(--accent-ink); }
.book__status:empty { min-height: 0; margin-top: -22px; }

/* ------------------------------ Privacy notice page ------------------------------ */

.legal-page { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }
.legal { max-width: 46em; margin-top: clamp(28px, 3.4vw, 52px); }
.legal__part { padding-top: clamp(26px, 3vw, 38px); margin-top: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); }
.legal__part:first-child { margin-top: 0; }
.legal .h3 { font-size: clamp(21px, 1.9vw, 26px); }
.legal p, .legal li, .legal dd { font-size: 16.5px; line-height: 1.65; color: var(--fg); }
.legal p { margin-top: 14px; max-width: 40em; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--head); text-decoration: underline; text-underline-offset: 3px; }
.legal__facts { margin-top: 18px; display: grid; gap: 0; }
.legal__facts > div {
  display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 6px 24px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.legal__facts > div:first-child { border-top: 0; padding-top: 4px; }
.legal__facts dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 4px; }
.legal__facts dd { margin: 0; }
@media (max-width: 640px) {
  .legal__facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------ 11. Footer ------------------------------ */

.footer { padding: clamp(8px, 1.5vw, 24px) 0 26px; overflow: hidden; }
.footer .runhead { display: none; }
.footer a { text-decoration-color: rgba(246, 244, 239, .35); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 30px;
}
.footer__col { grid-column: span 3; min-width: 0; font-size: 15.5px; color: var(--fg); }
.footer__col .label { margin-bottom: 12px; color: var(--accent); }
.footer__col p + p { margin-top: 8px; }
.footer__mark {
  margin-top: clamp(48px, 7vw, 104px);
  font-family: var(--display); font-weight: 700;
  font-size: 23.5vw;               /* the script fits this exactly to the page width */
  line-height: .86;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: var(--teal-2);
  padding-bottom: .16em;
}
.footer__mark span { display: inline-block; }
.footer__mark, .footer__mark span { transition: none !important; }   /* lets the script measure it instantly */
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--cream); }

/* ==========================================================================
   Motion. Only when the visitor has not asked their device to reduce it.
   ========================================================================== */

.motion .hero__title .line__in { transform: translateY(118%); transition: transform 1.1s var(--ease) .15s; }
.motion .hero__title .line:nth-child(2) .line__in { transition-delay: .3s; }
.motion.is-loaded .hero__title .line__in { transform: none; }

.motion .hero .runhead,
.motion .hero__row > * { opacity: 0; transform: translateY(12px); transition: opacity .9s ease .6s, transform .9s var(--ease) .6s; }
.motion.is-loaded .hero .runhead,
.motion.is-loaded .hero__row > * { opacity: 1; transform: none; }

.motion .tl { opacity: 0; transform: translateY(20px); transition: opacity .9s ease .8s, transform 1s var(--ease) .8s; }
.motion.is-loaded .tl { opacity: 1; transform: none; }
.motion.is-loaded .tl.has-scrolled .tl__hint { opacity: 0; transition: opacity .4s ease; }
.motion .tl__arrow { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }

.motion .section .runhead { opacity: 0; transition: opacity .8s ease; }
.motion .section .runhead.is-in { opacity: 1; }

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 999px) {
  .hero__sub { grid-column: 1 / span 7; }
  .hero__cta { grid-column: 8 / span 5; }

  .sec-head .h2, .sec-head--full .h2 { grid-column: 1 / -1; }
  .sec-head .lead { grid-column: 1 / span 9; }

  .notes__label { grid-column: 1 / -1; }
  .notes__list, .notes__text, .notes__body { grid-column: 1 / -1; }
  .notes__list, .notes__ul { columns: 1; }

  /* Who we help: each row becomes its own card */
  .rt-wrap { overflow: visible; background: transparent; padding: 0; }
  .rt, .rt tbody, .rt tr, .rt th, .rt td { display: block; }
  .rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rt tbody { display: grid; gap: var(--gutter); }
  .rt tbody tr { background: var(--card); border-radius: var(--r); padding: 22px 24px 24px; }
  .rt tbody th, .rt tbody td { border: 0; padding: 0; }
  .rt tbody th { margin-bottom: 14px; }
  .rt tbody td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
    column-gap: var(--gutter);
    padding: 8px 0;
    font-size: 15.5px;
  }
  .rt tbody td::before {
    content: attr(data-label);
    font-size: 12px; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
    color: var(--muted);
    padding-top: 3px;
  }

  .how__index { grid-column: 1 / span 4; }
  .how__steps { grid-column: 5 / span 8; }
  .step { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .step__no { grid-column: 1 / span 1; }
  .step__body { grid-column: 2 / span 7; padding-left: 10px; }

  .calc__controls { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); position: static; }
  .calc__out { grid-column: 1 / -1; }
  .ctl__top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .chart__svg { height: clamp(230px, 40vw, 340px); }

  .pricing__offer { grid-column: 1 / -1; }
  .terms { grid-column: 1 / -1; }

  .book__intro { grid-column: 1 / -1; }
  .book__intro .lead { max-width: 30em; }
  .form, .book__card { grid-column: 1 / -1; }

  .footer__col { grid-column: span 6; }
}

/* ==========================================================================
   Phone
   ========================================================================== */

@media (max-width: 719px) {
  :root { --nav-h: 62px; --r: 18px; }

  .nav__brand { font-size: 21px; gap: 9px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav__cta { display: none; }

  .runhead { font-size: 12px; }

  /* Hero */
  .hero__inner { padding-top: calc(var(--nav-h) + 18px); }
  .hero__title { font-size: clamp(38px, 11.4vw, 52px); }
  .hero__row { margin-top: 14px; }
  .hero__sub { grid-column: 1 / -1; font-size: 16px; }
  .hero__cta { display: none; }

  /* Timeline turns upright on a phone */
  .tl { --row: clamp(28px, 4.5vh, 36px); padding: 16px 18px 12px; border-radius: var(--r); }
  .tl__head { display: block; }
  .tl__cap { display: block; }
  .tl__cap .label { display: block; }
  .tl__cap .tag { margin-top: 8px; }
  .tl__counter {
    position: absolute; right: 0; top: calc(100% + 14px); z-index: 4;
    flex-direction: column; align-items: flex-end; gap: 5px;
    margin: 0;
  }
  .tl__countlabel { order: 1; }
  .tl__count { order: 2; font-size: clamp(42px, 7.5vh, 56px); line-height: .9; }
  .tl__daylabel { order: 3; }
  .tl__paidtag { order: 4; align-self: flex-end; }

  .tl__plot { height: auto; margin-top: 12px; }
  .tl__zone, .tl__ticks, .tl__break { display: none; }
  .tl__steps { position: relative; }
  .tl__step,
  .tl__step--end {
    position: relative; left: auto; right: auto; top: auto;
    width: auto; height: var(--row);
    display: flex; align-items: center;
    padding-left: 24px;
  }
  .tl__node, .tl__step--end .tl__node { left: 0; right: auto; top: 50%; margin-top: -7px; }
  .tl__step--paid .tl__node { left: -2px; right: auto; top: 50%; margin-top: -9px; }
  .tl__text,
  .tl__step--chase .tl__text,
  .tl__step--mile .tl__text,
  .tl__step--end .tl__text {
    position: static;
    display: flex; align-items: baseline; gap: 10px;
    width: auto; height: auto;
    padding: 0; border: 0; text-align: left;
    white-space: nowrap;
  }
  .tl__day { flex: 0 0 52px; }
  .tl__name { margin-top: 0; font-size: 14.5px; white-space: normal; line-height: 1.2; }
  .tl__text, .tl__step--chase .tl__text, .tl__step--mile .tl__text, .tl__step--end .tl__text { min-width: 0; }
  .tl__step--paid .tl__name { margin-top: 0; }
  .tl__base {
    left: 6px; right: auto; width: 2px; height: auto;
    top: calc(var(--row) / 2); bottom: calc(var(--row) / 2);
    transform-origin: center top;
  }
  .tl__line {
    left: 5px; right: auto; width: 4px; height: auto;
    top: calc(var(--row) / 2); bottom: calc(var(--row) / 2);
    transform-origin: center top;
    transform: scaleY(var(--p));
  }
  .tl__hint { right: 0; top: auto; bottom: calc(var(--row) / 2 - 8px); }
  .tl__hint-long { display: none; }
  .tl__hint-short { display: inline; }

  /* Sections */
  .sec-head .lead { grid-column: 1 / -1; }

  .fig--xl, .fig--l { grid-column: 1 / -1; }
  .fig__num, .fig--xl .fig__num { font-size: clamp(52px, 16vw, 72px); margin-top: 18px; }
  .tiers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tier { display: flex; align-items: baseline; gap: 16px; padding: 14px 16px; }
  .tier .fig__num { font-size: 38px; margin: 0; flex: 0 0 auto; min-width: 2.6em; }

  .rt tbody tr { padding: 20px; }
  .rt tbody td { display: block; }
  .rt tbody td::before { display: block; padding: 0; margin-bottom: 4px; }

  .how { display: block; }
  .how__index { position: static; }
  .how__steps { margin-top: 24px; }
  .step { display: block; padding: 24px 20px; }
  .step__body { padding: 18px 0 0; }
  .facts > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split__list li, .split__big { font-size: clamp(30px, 9vw, 40px); }

  .calc__controls { grid-template-columns: minmax(0, 1fr); }
  .ctl__top { flex-direction: row; align-items: baseline; }
  input[type="range"] { height: 44px; }
  .results { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .res { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); align-items: start; }
  .res .label { min-height: 0; grid-column: 1; }
  .res__num { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; font-size: 30px; text-align: right; }
  .res__note { grid-column: 1; margin-top: 4px; }
  .chart__head { flex-direction: column; gap: 8px; }
  .chart__svg { height: 250px; }

  .terms > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 16px 0; }
  .terms dt, .terms dd, .terms--contact dt, .terms--contact dd { grid-column: 1 / -1; }
  .terms dd { font-size: 16px; }

  .plate { grid-column: 1 / -1; min-height: 160px; }

  .toc__dots, .toc__short { display: none; }
  .toc__no { width: 2em; }
  .toc__a { margin-left: 0; }

  .form { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .form__foot .btn { width: 100%; }
  .book__card { padding: 22px 18px; }
  .book__actions { width: 100%; flex-direction: column; }
  .book__card .btn { width: 100%; text-align: center; }

  .footer__col { grid-column: 1 / -1; }
}
