/* PARTNERS.

   An offer about direction and duration, so both are drawn rather than
   described: a rail of monthly shares that leaves the right edge of its card,
   three arrows that show which way the deals travel, and a line that visibly
   jumps where the whole book re-rates.

   Each figure is one piece of markup. Under 900px the drawing steps aside and
   what remains is an ordinary list — the numbers and the sentences are in the
   DOM either way, so nothing here depends on a script or on a chart being
   readable at 375px.

   It shares The Mind's palette and measure; it is a room in the same building. */

@font-face {
  font-family: "PP Mori";
  src: url("../fonts/PPMori-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --page: #101010;
  --card: #141a23;
  --rule: #202936;
  --deep: #171e28;
  --edge: #2a3442;
  --sq: #2f3a48;
  --slot: #11161d;
  --sq: #2f3a48;

  /* state */
  --hot: #e8a33d;
  --gold: #e8b44f;
  --gold-lit: #f0c468;
  --wait: #8fb4e0;
  --brand: #4a90e2;

  /* the trace's own two series, so a legend swatch and the shader agree */
  --sig: #5f6b7d;
  --quiet: #394452;
  --faint: #313c4b;

  /* ink */
  --ink: #ffffff;
  --ink-2: #c9cfd4;
  --ink-3: #a2aab1;
  --ink-4: #8a93a0;
  --ink-5: #737d88;
  --ink-6: #5f6874;
  --ink-7: #4a535f;

  --sans: "PP Mori", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --h1: clamp(30px, 3.3vw, 52px);
  --h2: clamp(26px, 2.55vw, 44px);
  --sub: clamp(15px, 1.15vw, 20px);
  --body: clamp(14px, 1vw, 17px);
  --cap: clamp(11px, .85vw, 15px);

  --gap: clamp(88px, 9vw, 200px);
  --gut: clamp(20px, 4.2vw, 72px);
  --nav-h: 80px;
  --pane-r: clamp(18px, 1.6vw, 24px);
  --pane-p: clamp(20px, 2.6vw, 44px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

b {
  font-weight: 400;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.wrap {
  width: 100%;
  max-width: calc(1584px + var(--gut) * 2);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.mono {
  font-family: var(--mono);
  letter-spacing: .12em;
}

.dim {
  color: var(--ink-6);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--wait);
  outline-offset: 3px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sig);
  flex: none;
}

.dot--wait {
  background: var(--wait);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1;
  padding: 12px 20px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  background: none;
  color: var(--ink-3);
  transition: background-color .22s ease, color .22s ease;
}

.btn--brand {
  background: #478fc6;
  color: #fff;
}

.btn--brand:hover {
  background: #5a9fd6;
}

.btn--big {
  padding: 16px 28px;
  font-size: clamp(15px, 1.15vw, 18px);
}

/* ---- nav ------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 26px 0 38px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(16, 16, 16, .97) 0%, rgba(16, 16, 16, .96) 40%, rgba(16, 16, 16, .78) 60%,
      rgba(16, 16, 16, .44) 76%, rgba(16, 16, 16, .16) 89%, rgba(16, 16, 16, 0) 100%);
}

.nav a {
  pointer-events: auto;
}

.nav__mark,
.nav__sign,
.nav__links a {
  text-shadow: 0 1px 8px rgba(16, 16, 16, .8);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__mark {
  font-size: clamp(19px, 1.5vw, 26px);
  color: var(--ink);
  letter-spacing: .02em;
}

.nav__links {
  display: flex;
  gap: clamp(20px, 2.4vw, 38px);
  font-size: 15px;
  color: var(--ink-3);
}

.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--ink);
}

.nav__cta {
  padding: 10px 22px;
  border-radius: 4px;
}

/* The way back in, beside the way in. Deliberately not an outlined twin of the
   filled button: someone who already has an account needs a door, not a second
   offer, so it carries the nav's own weight and lets Apply keep all the colour. */
.nav__act {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.nav__sign {
  font-size: 15px;
  color: var(--ink-3);
  transition: color .22s ease;
}

.nav__sign:hover {
  color: var(--ink);
}

@media (max-width: 899px) {
  .nav {
    padding: 18px 0 30px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    padding: 8px 16px;
    font-size: 14px;
  }

  .nav__sign {
    font-size: 14px;
  }
}
/* ---- the way through, in the hand ------------------------------------

   Below 1024 the six links stand down and this takes their place. It is a
   native <details>, so it works with no JavaScript at all; nav.js only adds
   what a disclosure cannot do for itself (Escape, close-on-choose, a lock
   on the page behind it).

   The trigger is deliberately not three equal lines turning into a cross.
   It is the site's own index: six marks for six sections, with the one you
   are on carried at full length in brand. Opening extends every mark to
   that same length, and those marks are the same object that rules each row
   of the panel, so the control reads as a compressed form of what it opens.
   Every bar keeps its rounded caps in both states and travels its whole
   track, so nothing flips or stops half way.
   --------------------------------------------------------------------- */

.mnu {
  /* the component's own palette and measure, so every rule below is identical
     wherever this ships and only this header changes with the page's system */
  --mnu-surface: var(--card);
  --mnu-mark: var(--ink-4);
  --mnu-here: var(--brand);
  --mnu-link: var(--ink-2);
  --mnu-lit: var(--ink);
  --mnu-word: var(--ink-3);
  --mnu-gut: var(--gut);
  --mnu-bleed: 0px;
  --mnu-ring: var(--wait);
  --mnu-shade: rgba(16, 16, 16, .8);

  display: none;
  position: static;
  pointer-events: auto;
}

/* the bar is inert by default; the control and its panel have to opt back in */
.mnu__t,
.mnu__p {
  pointer-events: auto;
}

/* The summary keeps its own display: WebKit hangs the disclosure role off
   list-item, and changing it there can cost the control its semantics. The
   marker goes without touching display, and an inner span does the layout. */
.mnu__t {
  position: relative;
  /* the summary stays a list-item for its role, so its line box would otherwise
     add leading around the control and push the mark off centre */
  line-height: 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

/* The target is 44px without the bar being 44px tall. The control's own box
   stays the height of its mark and the hit area is cast around it, so adding
   the menu never pushed the header down over the hero behind it. */
.mnu__t::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.mnu__tin {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 10px;
  line-height: 1;
  padding-left: 2px;
}

.mnu__t::-webkit-details-marker {
  display: none;
}

.mnu__t::marker {
  content: "";
}

/* a fixed 18px slot per mark, so a short bar and a full one start on the
   same axis and the row beside them never shifts */
.mnu__i {
  filter: drop-shadow(0 1px 6px var(--mnu-shade));
  display: grid;
  gap: 2px;
  width: 18px;
  flex: none;
}

.mnu__b {
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--mnu-mark);
  justify-self: start;
  transition: width .26s cubic-bezier(.33, .9, .3, 1), background-color .22s ease;
}

.mnu__b--here {
  width: 18px;
  background: var(--mnu-here);
}

/* only the trigger's own marks extend; the panel's rows keep encoding where
   you are, which is the whole point of them */
.mnu[open] .mnu__i .mnu__b {
  width: 18px;
}

.mnu__w {
  text-shadow: 0 1px 6px var(--mnu-shade);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--mnu-word);
  transition: color .22s ease;
}

/* Focus and press answer everywhere. Hover is gated behind a device that has
   one, because on a touch screen it latches: tap the control and it stays lit
   until you tap something else. */
.mnu__t:focus-visible .mnu__w,
.mnu__t:active .mnu__w {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__t:hover .mnu__w {
    color: var(--mnu-lit);
  }
}

/* one word is in the accessible name at a time, never both */
.mnu[open] .mnu__w--shut,
.mnu:not([open]) .mnu__w--open {
  display: none;
}

/* ---- the panel ---- */

/* A sheet, not a section: it is lifted a step off the page rather than drawn
   with a line, and the bar lifts with it so the two read as one object. A fade
   was tried here first and was wrong, because as soon as the sheet has to
   scroll the fade lands on a live row and the page ghosts through it. */
.mnu__p {
  position: absolute;
  left: calc(-1 * var(--mnu-bleed));
  right: calc(-1 * var(--mnu-bleed));
  top: calc(100% + 16px);
  padding: 6px var(--mnu-gut) 26px;
  background: var(--mnu-surface);
  max-height: calc(100vh - 148px);
  max-height: calc(100dvh - 148px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mnu__l {
  display: grid;
}

.mnu__l a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
  font-size: 19px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--mnu-link);
  transition: color .2s ease;
}

.mnu__l a:focus-visible,
.mnu__l a:active {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__l a:hover {
    color: var(--mnu-lit);
  }
}

/* Where you are is carried by the type and its own mark, never by a dot tacked
   underneath. Reading it off aria-current means the markup states it once. */
.mnu__l a[aria-current] {
  color: var(--mnu-lit);
}

.mnu__l a[aria-current] .mnu__b {
  width: 18px;
  background: var(--mnu-here);
}

/* an account action, not a seventh section, so it carries no section mark and
   sits off the run of six on its own air */
.mnu__f {
  margin-top: 26px;
}

.mnu__f a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  color: var(--mnu-word);
  transition: color .2s ease;
}

.mnu__f a:focus-visible,
.mnu__f a:active {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__f a:hover {
    color: var(--mnu-lit);
  }
}

/* The six section pages carry a site-wide focus ring; the home page carries
   none, so the component brings its own rather than leaving a new keyboard
   control relying on the browser default over a dark hero. */
.mnu__t:focus-visible,
.mnu__l a:focus-visible,
.mnu__f a:focus-visible {
  outline: 2px solid var(--mnu-ring);
  outline-offset: 3px;
}

/* The entrance moves the sheet only. Opacity stays at 1 the whole way, so a
   transition that never runs still leaves every link fully readable. */
@media (prefers-reduced-motion: no-preference) {
  .mnu__p {
    transition: transform .24s cubic-bezier(.33, .9, .3, 1);
  }

  @starting-style {
    .mnu[open] .mnu__p {
      transform: translateY(-8px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {

  .mnu__b,
  .mnu__w,
  .mnu__l a,
  .mnu__f a {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .nav__in {
    position: relative;
  }

  .nav__links {
    display: none;
  }

  /* the way back in moves into the panel; the bar keeps only the way in */
  .nav__sign {
    display: none;
  }

  .mnu {
    display: block;
  }

  /* Open, the scrim has nothing left to fade into, so it takes the sheet's own
     surface and the two become one object with a single edge at the bottom.
     An opaque sheet must also stop passing clicks through to the page under it.
     The class is set by nav.js; :has covers the no-JavaScript path. */
  .nav.is-menu,
  .nav:has(.mnu[open]) {
    background: var(--card);
    pointer-events: auto;
  }

  /* the page behind an open sheet should not travel under it */
  html.is-locked,
  html.is-locked body {
    overflow: hidden;
  }
}

/* Measured, not guessed: the bar needs 377px to hold the wordmark, Apply and a
   worded control on one line, and 329px without the word. Below that the
   wordmark is what breaks, so the word gives up its pixels and keeps its place
   in the accessible name. The hit area is unaffected: it is cast, not measured. */
@media (max-width: 379px) {
  .mnu__w {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
}

/* On paper the control is dead and the sheet is not the page, so neither prints. */
@media print {
  .mnu {
    display: none;
  }
}



/* ---- section rhythm -------------------------------------------------- */

.sec {
  padding-top: var(--gap);
}

.hero {
  padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 86px));
}

.head {
  max-width: 760px;
}

.head--mid {
  margin-inline: auto;
  text-align: center;
}

.head h2 {
  font-size: var(--h2);
  line-height: 1.26;
  letter-spacing: -.03em;
  color: var(--ink);
  font-weight: 400;
}

.head .kicker+h2 {
  margin-top: 16px;
}

.head .sub {
  font-size: var(--sub);
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: 16px;
}

.kicker {
  font-size: var(--cap);
}

.cta__go {
  margin-top: 32px;
}

.note {
  font-size: var(--sub);
  line-height: 1.6;
  color: var(--ink-5);
  margin-top: clamp(28px, 3vw, 48px);
}

.note--mid {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

/* The panel: a surface a shade off the page, edged in its own colour. */
.pane {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--pane-r);
  padding: var(--pane-p);
}

/* ---- footer ---------------------------------------------------------- */

.foot {
  margin-top: var(--gap);
  padding-bottom: clamp(32px, 3vw, 56px);
}

.foot__top {
  display: grid;
  gap: clamp(28px, 3vw, 56px);
  padding-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .foot__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.foot__mark {
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--ink);
  letter-spacing: .02em;
}

.foot__say {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--ink-5);
  margin-top: 12px;
  max-width: 420px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 64px);
}

.foot__cols div {
  display: grid;
  gap: 11px;
  align-content: start;
}

.foot__cap {
  font-size: 9px;
  color: var(--ink-6);
}

.foot__cols a {
  font-size: clamp(13px, 1.05vw, 16px);
  color: var(--ink-3);
}

.foot__cols a:hover {
  color: var(--ink);
}

.foot__base {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 40px);
  padding-top: clamp(16px, 1.8vw, 26px);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .foot__base {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
  }
}

.foot__legal {
  display: flex;
  gap: 20px;
}

.foot__legal a,
.foot__c {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--ink-5);
}

.foot__legal a:hover {
  color: var(--ink-2);
}

.foot__c {
  color: var(--ink-6);
}




/* ---- the statement header -------------------------------------------- */

.statement { display: grid; gap: clamp(28px, 3.4vw, 120px); }

@media (min-width: 900px) {
  .statement { grid-template-columns: minmax(0, 900fr) minmax(0, 560fr); }
}

.statement__h {
  font-size: var(--h1); line-height: 1.18; letter-spacing: -.03em;
  color: var(--ink); font-weight: 400;
}
.statement__h--sm { font-size: clamp(28px, 2.9vw, 52px); }
.statement__body { display: grid; gap: 22px; align-content: start; padding-top: .5em; }
.statement__body p { font-size: clamp(15px, 1.25vw, 20px); line-height: 1.5; color: var(--ink-3); }
.statement__turn { color: var(--wait); }

.band__h {
  max-width: 1200px;
  font-size: var(--h1); line-height: 1.18; letter-spacing: -.03em;
  color: var(--ink); font-weight: 400;
}

.band__note { margin-top: clamp(32px, 3.4vw, 48px); display: grid; gap: 14px; max-width: 700px; }
@media (min-width: 900px) { .band__note { margin-left: 55.8081%; } }
.band__nh { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.3; color: var(--ink); font-weight: 400; }
.band__note p { font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; color: var(--ink-3); }

/* ---- the life of the account ------------------------------------------ */

/* Twelve months of share, and a rail that leaves the card rather than
   stopping — "for as long as it runs" is the whole offer, and a line that
   ended would be arguing against it. */

.life { position: relative; display: grid; gap: clamp(14px, 1.4vw, 20px); margin: clamp(40px, 5vw, 88px) 0 0; }
.life__cap { font-size: var(--cap); color: var(--ink-6); }
.life__svg, .life__start { display: none; }

.life__sign, .life__rate { font-size: var(--cap); }
.life__sign { color: var(--ink-4); }
.life__rate { color: var(--wait); }
.life__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.life__total b { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; color: var(--ink); line-height: 1.1; }
.life__total span { font-size: var(--cap); color: var(--ink-4); }
.life__say { font-size: clamp(14px, 1.07vw, 17px); line-height: 1.45; color: var(--ink-4); }

@media (min-width: 900px) {
  .life { display: block; aspect-ratio: 1584 / 420; min-height: 320px; padding: 0; overflow: hidden; }
  .life > * { position: absolute; margin: 0; }
  .life__svg { display: block; inset: 0; width: 100%; height: 100%; }
  .life__rail   { fill: none; stroke: var(--wait); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .life__months { fill: none; stroke: var(--wait); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .life__year   { fill: none; stroke: var(--edge); stroke-width: 1; vector-effect: non-scaling-stroke; }

  .life__cap   { left: 2.7778%; top: 8.5714%; }
  /* the marker rides the same percentage grid as the rail, so it always sits
     on the end of it */
  .life__start {
    display: block; left: 11.3636%; top: 59.5238%; translate: -50% -50%;
    width: 12px; height: 12px; border-radius: 50%; background: var(--wait);
  }
  .life__sign  { left: 11.3636%; top: 65.7143%; translate: -50% 0; }
  .life__rate  { left: 13.5101%; top: 44.2857%; }
  .life__total { left: 84.2172%; top: 40.9524%; display: block; }
  .life__total span { display: block; margin-top: 6px; }
  .life__say   { left: 2.7778%; top: 78.5714%; width: 35.3535%; }
}

/* ---- which way the deals flow ----------------------------------------- */

.flow { margin: clamp(40px, 5vw, 72px) 0 0; display: grid; }
.flow__r { display: grid; gap: clamp(20px, 2.6vw, 72px); padding: clamp(24px, 2.4vw, 34px) 0; }
.flow__r + .flow__r { border-top: 1px solid var(--rule); }

@media (min-width: 760px) {
  .flow__r { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; }
}

/* width:360 would size its own grid column, so max-width:100% could never bite
   and the diagram spilled out of the card on a phone */
.flow__d { position: relative; width: 100%; max-width: 360px; aspect-ratio: 360 / 92; }
.flow__d svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow__line { fill: none; stroke: var(--wait); stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow__fence { fill: none; stroke: var(--hot); stroke-width: 1; vector-effect: non-scaling-stroke; }

.flow__n {
  position: absolute; top: 32.6087%; translate: -50% -50%;
  width: 12px; height: 12px; border-radius: 50%; background: var(--wait);
}
.flow__n--a { left: 16.6667%; }
.flow__n--b { left: 83.3333%; }
.flow__n.is-dim { background: var(--ink-6); }

.flow__l {
  position: absolute; top: 56.5217%; width: 33.3333%; text-align: center;
  font-size: clamp(11px, .85vw, 13px); color: var(--ink-4);
}
.flow__l--a { left: 16.6667%; translate: -50% 0; }
.flow__l--b { left: 83.3333%; translate: -50% 0; }

.flow__k { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.flow__kick { font-size: clamp(11px, .85vw, 13px); color: var(--hot); }
.flow__dir  { font-size: clamp(11px, .85vw, 13px); color: var(--ink-4); }
.flow__s { font-size: clamp(17px, 1.5vw, 24px); line-height: 1.4; color: var(--ink); }

/* ---- the step at ten --------------------------------------------------- */

/* The mechanic is that the whole book re-rates, so the line jumps rather than
   bends. Three numbers could never show that. */

.step { position: relative; display: grid; gap: clamp(16px, 1.8vw, 24px); margin: clamp(40px, 5vw, 72px) 0 0; }
.step__cap { font-size: var(--cap); color: var(--ink-6); }
.step__svg, .step__d, .step__ax { display: none; }

.step__pts { display: grid; gap: clamp(16px, 1.8vw, 22px); }
.step__pt { display: grid; gap: 4px; }
.step__pt b { font-weight: 400; color: var(--ink); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; }
.step__pt b.mono { font-size: clamp(11px, .9vw, 14px); color: var(--hot); letter-spacing: .12em; }
.step__pt span { font-size: clamp(13px, 1.07vw, 17px); line-height: 1.45; color: var(--ink-4); }
.step__pt--ten span { color: var(--ink-3); }

@media (min-width: 900px) {
  .step { display: block; aspect-ratio: 1584 / 440; min-height: 340px; padding: 0; overflow: hidden; }
  .step > * { position: absolute; margin: 0; }
  .step__svg { display: block; inset: 0; width: 100%; height: 100%; }
  .step__axis  { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .step__p20, .step__p25 { fill: none; stroke: var(--wait); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .step__jump  { fill: none; stroke: var(--hot);  stroke-width: 2; vector-effect: non-scaling-stroke; }
  .step__guide { fill: none; stroke: var(--edge); stroke-width: 1; vector-effect: non-scaling-stroke; }

  .step__cap { left: 2.7778%; top: 8.1818%; }
  .step__d {
    display: block; translate: -50% -50%; border-radius: 50%; background: var(--wait);
  }
  .step__d--five { left: 28.0934%; top: 72.7273%; width: 10px; height: 10px; }
  .step__d--end  { left: 89.6465%; top: 18.1818%; width: 14px; height: 14px; }

  /* the list must not become a positioning context of its own, or every
     point resolves against it instead of against the figure */
  .step__pts { position: static; display: block; }
  .step__pt  { position: absolute; display: block; }
  .step__pt--five { left: 28.0934%; top: 49.5000%; width: 12.6263%; translate: -50% 0; text-align: center; }
  .step__pt--five span { display: block; margin-top: 2px; }
  /* the curve leaves room above its shallow half and below its steep half,
     so each callout goes where there is actually space */
  .step__pt--ten  { left: 30%; top: 12%; width: 17.8%; text-align: right; }
  .step__pt--ten span { display: block; margin-top: 8px; }
  .step__pt--end  { left: 74.4949%; top: 40%; width: 13.8889%; text-align: right; }
  .step__pt--end b { font-size: clamp(30px, 2.8vw, 44px); }
  .step__pt--end span { display: block; margin-top: 4px; }

  .step__ax { display: block; top: 90%; font-size: clamp(11px, .85vw, 13px); color: var(--ink-4); }
  .step__ax--a { left: 7.5758%; }
  .step__ax--b { left: 77.0202%; width: 12.6263%; text-align: right; }
}

/* ---- certification ----------------------------------------------------- */

.steps { display: grid; gap: clamp(28px, 3vw, 56px); margin: clamp(40px, 5vw, 72px) 0 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps__s { display: grid; gap: 14px; align-content: start; padding-right: clamp(0px, 3vw, 56px); }
.steps__n { font-size: clamp(11px, .9vw, 14px); color: var(--hot); }
.steps__t { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.3; color: var(--ink); }
.steps__d { font-size: clamp(14px, 1.07vw, 17px); line-height: 1.55; color: var(--ink-3); }

/* ---- the terms --------------------------------------------------------- */

.terms { margin: clamp(40px, 5vw, 72px) 0 0; }
.terms__r { display: grid; gap: 8px; padding: clamp(20px, 2.2vw, 28px) 0; }
.terms__r + .terms__r { border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .terms__r { grid-template-columns: minmax(0, 700fr) minmax(0, 700fr); column-gap: 11.6162%; }
}
.terms dt { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.4; color: var(--ink-2); }
.terms dd { margin: 0; font-size: clamp(14px, 1.07vw, 17px); line-height: 1.55; color: var(--ink-3); }

/* ---- the application --------------------------------------------------- */

.form {
  display: grid; gap: clamp(20px, 2.2vw, 28px);
  max-width: 1180px; margin: clamp(40px, 5vw, 64px) 0 0;
}
@media (min-width: 620px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__g { display: grid; gap: 10px; }
.form__g--wide, .form__go, .form__set { grid-column: 1 / -1; }
.form__l { font-size: clamp(13px, 1.05vw, 16px); color: var(--ink-3); }
.form__i {
  font: inherit; font-size: clamp(15px, 1.2vw, 17px); color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 14px 16px; width: 100%;
  transition: border-color .22s ease, background-color .22s ease;
}
.form__i::placeholder { color: var(--ink-4); }
.form__i:hover { border-color: var(--edge); }
.form__i:focus { outline: none; border-color: var(--wait); background: var(--deep); }

.form__set { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 12px; }

/* a real control: the input carries the state, the label is the target */
.chip { position: relative; }
.chip input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.chip span {
  display: block; padding: 12px 22px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--rule);
  font-size: clamp(14px, 1.2vw, 17px); color: var(--ink-4);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.chip input:hover + span { border-color: var(--edge); }
.chip input:checked + span { background: var(--deep); border-color: var(--edge); color: var(--ink-2); }
.chip input:focus-visible + span { outline: 2px solid var(--wait); outline-offset: 3px; }

/* The certified door opens with evidence; the referral door does not ask for
   it. Shown by default and hidden for referral, rather than the reverse, so a
   browser without :has() leaves an applicant with a field they can ignore
   instead of missing one they need. */
.form__cert { display: grid; }
.form:has(input[name="door"][value="referral"]:checked) .form__cert { display: none; }

.form__i--ta {
  resize: vertical; min-height: 112px; line-height: 1.7;
  font-family: var(--mono); font-size: clamp(14px, 1.1vw, 16px);
}

.form__go { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 26px); margin-top: 6px; }
.form__note { font-size: clamp(13px, 1.05vw, 16px); color: var(--ink-5); }

.form__msg { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: var(--wait); }
.form__msg:empty { display: none; }
.form__msg.is-bad { color: var(--hot); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Headings break into lines of even length rather than wherever the line
   runs out, so a narrow screen never strands one word on a line of its own;
   running text avoids a lone last word the same way. */
h1,
h2,
h3 {
  text-wrap: balance
}

p,
li {
  text-wrap: pretty
}

/* ---- in the hand: one type scale ----------------------------------------
   Stacked on a phone the page headline, the section headings and the card
   headings had all come out between 26 and 30 pixels, so nothing outranked
   anything and a section heading read as loud as the page's own claim. Three
   clear steps instead: the page's headline, a section's, a card's. Section
   headings also lose the narrow measures they were set to on a wide frame,
   which stacked them three and four lines deep in a column this narrow. */
@media (max-width: 759px) {
  main h1,
  h1.statement__h,
  h1.belief__h {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -.022em;
  }

  .head h2,
  h2.split__h,
  h2.band__h,
  h2.statement__h,
  h2.fic__h {
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: -.012em;
    max-width: none;
  }
}

/* ---- in the hand: the numbers lead ---------------------------------------
   Stacked, the two money figures were the same size as the copy around them,
   and their labels were tracked out wider than the figures themselves. The
   figure is the point of each card, so it leads: the total large, what it is
   made of under it, and the labels set as quiet data rather than shouting. */
@media (max-width: 759px) {
  .life__cap { order: 1; }
  .life__total { order: 2; }
  .life__rate { order: 3; }
  .life__sign { order: 4; margin-top: -10px; }
  .life__say { order: 5; }

  .life__total b {
    font-size: 40px;
    letter-spacing: -.02em;
  }

  .life__total span,
  .life__sign,
  .step__pt span.mono {
    letter-spacing: .04em;
  }

  .step__pt b {
    font-size: 30px;
    letter-spacing: -.015em;
  }

  .step__pt--end b {
    font-size: 40px;
  }

  .step__pt--ten {
    padding: 4px 0;
  }

  /* the territory fence is drawn to the diagram's width; its label has to
     fit inside it at a phone's width too, or the fence cuts through it */
  .flow__l {
    font-size: 10px;
    letter-spacing: .1em;
  }
}

/* The company line and the way to reach it, in the footer's own words: the
   links sit in the sentence, so they are underlined to read as links. */
.foot__say a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.foot__say a:hover,
.foot__say a:focus-visible {
  color: var(--ink);
}

/* the footer's small captions and copyright line at a readable contrast
   (ink-6 measured 3.4 to 1 on the page; ink-4 clears 4.5) */
.foot__cap,
.foot__c {
  color: var(--ink-4);
}
