/* Velouté — the mascot cut.
   ---------------------------------------------------------------------------
   The site was rebuilt on this sheet rather than reskinned onto the old one.
   Nothing of the dark "second cut" survives except the handful of class names
   js/ reaches for by name, which are marked where they appear.

   The argument, in one paragraph: Louié is the face of the product the way the
   Duolingo bird is the face of that one. He is big, he is on nearly every
   screen, and he is doing the thing the screen is about. What keeps that from
   reading as a children's app is the craft around him — one heavy grotesque cut
   tight, flat colour fields with hard edges, a real grid, and controls that are
   chunky on purpose rather than by accident.

   Four rules the whole sheet obeys:

     1  no blur. Every shadow is a solid offset, the way a silkscreen or a
        printed sticker behaves. A blurred shadow on a flat colour field is a
        material that does not exist.
     2  one edge weight. 3px of ink, everywhere. It is the difference between a
        card and a rectangle that happens to have a line around it.
     3  crimson is a GROUND, not a highlight. Whole sections sit on it.
     4  two faces and no more. Bricolage Grotesque for anything at display size,
        Figtree for anything read at length.

   The policy is default-src 'self', so there is no inline style anywhere in the
   markup and no font CDN to call. Per-element numbers reach this sheet as
   custom properties written from js/motion.js, which is CSSOM rather than a
   style attribute, and is allowed. */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/bricolage.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --cream: #FFF9EF;
  --sand: #FFE7C2;
  --ink: #1C1210;
  --ink-2: #5B4B45;
  --crimson: #E63946;
  --crimson-deep: #B01F2C;
  --on-crimson: #FFF4EE;
  --on-ink: #FFF9EF;
  --on-ink-2: #C7B4AA;

  /* Two greens and one amber, and they are the only colours on the site that
     are not cream, ink or crimson. They exist because "included" and "not
     included" cannot both be crimson, and a warning that is the brand colour is
     not a warning. */
  --yes: #2E7D4F;
  /* The app's amber, measured 4.86:1 on cream. #B4690E until 2026-09-13, which
     measured 4.04:1 and failed AA. */
  --warn: #96640C;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 96px; --s7: 128px;

  --display: 'Bricolage', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --page: 1200px;
  --edge: 3px;
  --bar: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Every component class here sets a display, and a class beats the browser's
   own [hidden] rule. Half this site's markup is hidden and revealed by script,
   so the rule has to be said once, loudly, rather than remembered per class. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The bar is sticky at the top of every page, so an anchor jump that lands a
     heading at y=0 lands it underneath the navigation. */
  scroll-padding-top: calc(var(--bar) + var(--s3));
  scrollbar-width: thin;
  scrollbar-color: var(--crimson) var(--sand);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Chrome reads the two standard properties above in preference to the
   ::-webkit- rules below, and then derives a hover shade of its own from
   scrollbar-color that no rule here can switch off. Handing the standard pair
   back to their initial values, in the browsers that speak ::-webkit-scrollbar,
   puts the bar under the rules below instead, where the thumb is one colour and
   stays it. Firefox does not match the query and keeps the thin crimson bar. */
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-width: auto; scrollbar-color: auto; }
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb {
  background: var(--crimson);
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Anything at display size is set in the grotesque, tight and heavy. The
   optical-size axis is pinned high so the counters stay open at 92px. */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
  letter-spacing: -0.035em;
  line-height: 0.99;
}
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.d1 { font-size: clamp(42px, 6.4vw, 92px); }
.d2 { font-size: clamp(32px, 4.2vw, 58px); }
.d3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.06; }

.lede {
  margin-top: var(--s3);
  max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--dim, var(--ink-2));
}

.wrap { width: min(var(--page), 100% - clamp(40px, 7vw, 130px)); margin-inline: auto; }
.wrap--tight { --page: 860px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  padding: var(--s2) var(--s3);
  border: var(--edge) solid var(--ink);
  background: var(--crimson); color: var(--on-crimson);
  font-weight: 800;
}
.skip:focus { left: 0; }

/* ---------- the tag ----------
   What the old site spent on a repeated mono small-caps line. It is an object
   now, with an edge, which is at least something to look at. */

.mono {
  display: inline-block;
  padding: 6px 12px;
  border: var(--edge) solid var(--edge-on, var(--ink));
  border-radius: 999px;
  background: var(--tag-bg, var(--sand));
  color: var(--tag-fg, var(--ink));
  font-family: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------- bands ----------
   Each one owns its palette outright, and declares the muted text colour and
   the edge colour its contents should draw with, so a component inside one does
   not have to know where it landed. */

.band { position: relative; padding-block: var(--s6); border-top: var(--edge) solid var(--ink); }
.band--cream { background: var(--cream); }
.band--sand  { background: var(--sand); }
.band--ink {
  background: var(--ink); color: var(--on-ink);
  --dim: var(--on-ink-2);
  --edge-on: var(--on-ink);
  --tag-bg: transparent;
  --tag-fg: var(--on-ink);
  --rule: rgba(255, 249, 239, 0.2);
  /* The green that reads on cream goes muddy on ink, so the ground names its
     own yes rather than every component testing where it landed. */
  --yes: #62C68C;
}
.band--crimson {
  background: var(--crimson); color: var(--on-crimson);
  --dim: rgba(255, 244, 238, 0.88);
  --tag-bg: var(--cream);
  --rule: rgba(255, 244, 238, 0.32);
}
/* Two of the same ground in a row would draw the same rule twice. */
.band--cream + .band--cream, .band--sand + .band--sand { border-top: 0; }
.band--tight { padding-block: var(--s5); }

.head { max-width: 20ch; }
.head + .lede { margin-top: var(--s3); }

/* ---------- the bar ----------
   Opaque, bordered, one height everywhere. It passes over the page without ever
   being confused with it, which the old translucent floating pill could not
   say: it spent every scroll blurring whatever it happened to be over and
   reading as a different object on every section.

   .pill and .pill-who* are named by js/who.js. */

.pill {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: var(--bar);
  padding-inline: clamp(20px, 3.5vw, 65px);
  border-bottom: var(--edge) solid var(--ink);
  background: var(--cream);
  transition: height 0.26s var(--ease);
}
/* Past the first screen it draws in. Nothing else moves: a navigation that is
   fixed should be fixed, and the old pill slid every item sideways at the exact
   moment the reader's eye was on it. */
.pill.tight { height: 60px; }

/* The read-along rail, sitting on the bar's own bottom edge so it reads as that
   edge filling in rather than as an ornament stuck underneath. --progress is
   written once a frame by js/motion.js. */
.pill::after {
  content: "";
  position: absolute;
  left: 0; bottom: calc(var(--edge) * -1);
  width: 100%; height: var(--edge);
  background: var(--crimson);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}
html:not(.motion) .pill::after { display: none; }

.pill-mark {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 24px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
/* Louié rides the wordmark. He is the first thing on every page and the reason
   the bar is worth 76 pixels. */
.pill-louie {
  width: 40px; height: 36px; object-fit: contain;
  transition: width 0.26s var(--ease), height 0.26s var(--ease);
}
.pill.tight .pill-louie { width: 32px; height: 29px; }
/* A finger is not 24px wide. Every target in the bar keeps the type size it was
   drawn at and grows an invisible pad to about 44px, which is what the thumb
   actually hits. Padding is not used: it would make the bar taller. */
.pill-mark::after { content: ""; position: absolute; inset: -8px -6px; }

.pill-links {
  display: flex; align-items: center; gap: var(--s3);
  margin: 0 0 0 auto; padding: 0; list-style: none;
}
.pill-links a {
  position: relative;
  font-size: 16px; font-weight: 700;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.pill-links a::before { content: ""; position: absolute; inset: -13px -4px; }
.pill-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -6px; height: var(--edge);
  background: var(--crimson);
  transition: right 0.28s var(--ease);
}
.pill-links a:hover { color: var(--crimson-deep); }
.pill-links a:hover::after { right: 0; }
/* The page you are already on: the hover underline, left drawn. */
.pill-links a[aria-current="page"]::after { right: 0; }

/* The account button, the one thing in the bar that is about the reader rather
   than about the site, and so the thing the bar's single slab is spent on. Red
   in both states: signed out it is the way in, signed in it is the way to the
   account, and a button that changes colour with your session reads as two
   different controls.

   Signed in, the face is the whole button: the profile Louié chosen in the app,
   with the address kept to the button's accessible name. The image is
   decorative, since a screen reader naming a mascot pose in the middle of a
   navigation helps nobody. */
.pill-who { gap: 9px; padding-left: 11px; }
.pill-who--face { padding: 5px 18px; }
.pill-who--face .pill-who-louie { width: 30px; height: 30px; }
.pill-who-louie {
  width: 26px; height: 26px; flex: none;
  /* No dish behind him: he sits on the button's own red the way he sits on the
     cream in the wordmark. The drawings are a whole Louié in a wide box, so the
     box is cropped to his head rather than scaled down to his feet. */
  object-fit: cover;
  object-position: 50% 22%;
}
.pill-who-louie[hidden] { display: none; }
.pill-who span {
  display: block; max-width: 20ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* A class beats the browser's own [hidden] rule, so the label hidden once the
   face is on the button needs saying again here. */
.pill-who span[hidden] { display: none; }

/* The bar on a page that is one errand: no links, one way back. */
.pill--gate .pill-links { margin-left: auto; }
.pill-out, .pill-email { font-size: 15px; font-weight: 700; }
.pill-email { color: var(--ink-2); }
.pill-you { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }

/* ---------- the slab ----------
   A printed sticker being pushed flat: the face is crimson, the edge under it
   is ink, and it travels the whole offset when pressed. */

.slab {
  --depth: 5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 15px 26px;
  border: var(--edge) solid var(--ink);
  border-radius: 14px;
  background: var(--crimson);
  color: var(--on-crimson);
  font-size: 17px; font-weight: 800; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 var(--depth) 0 0 var(--ink);
  transition: transform 0.09s var(--ease), box-shadow 0.09s var(--ease),
              background 0.2s var(--ease);
}
/* Down a pixel on the way in, all the way down on the click. The shadow is the
   button's thickness, so it shrinks as the face travels and goes to nothing
   when the face is flat on the page: the same object, seen from the same
   angle. */
.slab:hover {
  background: var(--crimson-deep);
  transform: translateY(1px);
  box-shadow: 0 calc(var(--depth) - 1px) 0 0 var(--ink);
}
.slab:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 0 var(--ink); }
.slab--sm { --depth: 4px; padding: 11px 18px; font-size: 15px; }
/* The second button in a pair, and every button on a card that costs nothing.
   The same object as the red one, so it keeps the edge and the thickness, and
   only the face changes: one filled crimson button per row and the eye lands on
   the paid card without anything shouting. */
.slab--ghost { background: var(--cream); color: var(--ink); }
.slab--ghost:hover { background: var(--sand); }
/* The same object again for use on crimson, where a crimson face would vanish. */
.slab--light { background: var(--cream); color: var(--ink); }
.slab--light:hover { background: var(--sand); }
/* A link cannot be disabled, so the checkout's onward links say it in ARIA
   while the card they are waiting on is still being read. Nothing lifts and
   nothing presses: the point of the state is that this is not a button yet. */
.slab[disabled], .slab[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.slab[disabled]:hover, .slab[disabled]:active,
.slab[aria-disabled="true"]:hover, .slab[aria-disabled="true"]:active {
  background: var(--crimson);
  transform: none;
  box-shadow: 0 var(--depth) 0 0 var(--ink);
}
.slab--ghost[aria-disabled="true"]:hover, .slab--light[aria-disabled="true"]:hover { background: var(--cream); }

/* On an ink or crimson ground the edge and the thickness have to be the light,
   or the button is a shape floating with no object under it. */
.band--ink .slab, .foot .slab, .band--crimson .slab {
  border-color: var(--on-ink);
  box-shadow: 0 var(--depth) 0 0 var(--on-ink);
}
.band--ink .slab:hover, .foot .slab:hover, .band--crimson .slab:hover {
  box-shadow: 0 calc(var(--depth) - 1px) 0 0 var(--on-ink);
}
.band--ink .slab:active, .foot .slab:active, .band--crimson .slab:active {
  box-shadow: 0 0 0 0 var(--on-ink);
}

/* ---------- focus ----------
   Every control here is a real button or a real link, so it has to show where
   the keyboard is. Crimson on the light grounds, cream on the dark ones, both
   at the site's own edge weight. */

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--edge) solid var(--crimson-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.band--ink :where(a, button, input, select, textarea):focus-visible,
.band--crimson :where(a, button, input, select, textarea):focus-visible,
.foot :where(a, button):focus-visible { outline-color: var(--cream); }

/* ---------- Louié, at three sizes ----------
   He is a whole character in a wide box, so a drawing used at 40px and a
   drawing used at 440px are the same file behaving differently. These are the
   only three sizes he is ever used at. */

.louie-sm { width: 62px; }
.louie-md { width: clamp(140px, 16vw, 190px); }
.louie-lg { width: min(440px, 100%); }

/* ---------- cards ----------
   One object, used everywhere: three pixels of ink and a solid offset under it.
   A card, a plan, a panel and a row are all this with different insides. */

.card {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s3);
  border: var(--edge) solid var(--ink);
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 6px 0 0 var(--ink);
}
.card--sand { background: var(--sand); }
.card h3 { font-size: 24px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .louie-md { width: 150px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.duo  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }

/* A card that answers the pointer. Only where a card is a link or holds one:
   nothing that cannot be clicked should move when you point at it. */
html.motion a.card, html.motion .card--live {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
html.motion a.card:hover, html.motion .card--live:hover, html.motion .card--live:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 0 var(--ink);
}

/* ---------- a panel: a card with a heading strip ----------
   Used for anything that is a working control rather than a paragraph. */

.panel {
  min-width: 0;
  border: var(--edge) solid var(--ink);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 6px 0 0 var(--ink);
  overflow: hidden;
}
.panel-h {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  padding: 14px var(--s3);
  border-bottom: var(--edge) solid var(--ink);
  background: var(--sand);
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em;
}
.panel-h span {
  margin-left: auto;
  font-family: var(--text); font-size: 14px; font-weight: 700;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.panel-b { padding: var(--s3); }
.panel-b > * + * { margin-top: var(--s2); }

/* ---------- the two working controls ----------
   The scaler and the cook stepper, which are the app's two tricks running on
   the page rather than pictures of them. Both live in a .panel, because they
   are two views of one thing. */

/* The servings nudge. A pill with the count between two crimson discs, which is
   the one place on the site a circle is the right shape: it is a thumb target
   on a phone before it is anything else. */
.nudge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px;
  border: var(--edge) solid var(--ink); border-radius: 999px;
  background: var(--cream);
}
.nudge button {
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: var(--crimson); color: var(--on-crimson);
  font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1;
  cursor: pointer;
  transition: transform 0.09s var(--ease), background 0.16s var(--ease);
}
.nudge button:hover { background: var(--crimson-deep); }
.nudge button:active { transform: scale(0.9); }
.nudge b { min-width: 46px; text-align: center; font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }

.serves { display: flex; align-items: center; gap: var(--s2); }
.panel-b > .serves + * { margin-top: var(--s3); }
.serves-say { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.serves-louie { width: 62px; height: auto; margin-left: auto; }

.mix { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.mix li {
  display: flex; align-items: baseline; gap: var(--s2);
  padding-block: 9px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.mix li:first-child { border-top: 0; }
.mix-what { flex: 1 1 auto; }
.mix-how { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mix-how b { display: inline-block; font-weight: inherit; }

/* The stepper. Five steps stacked in one grid cell so the panel never changes
   height as they swap, and only the one being read is reachable. */
.steps { position: relative; display: grid; min-height: 190px; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); pointer-events: none; }
.step.is-on { opacity: 1; transform: none; pointer-events: auto; }
html.motion .step { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
/* No script: they cannot be stepped through, so they are simply a list. */
html:not(.motion) .steps { display: grid; gap: var(--s3); min-height: 0; }
html:not(.motion) .step { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
/* Named through .step, or `.step p` beats it on the font size. */
.step .step-n { font-family: var(--display); font-weight: 800; font-size: 48px; letter-spacing: -0.04em; color: var(--crimson); line-height: 1; }
.step p { margin-top: var(--s1); font-size: 19px; max-width: 32ch; }

.step-rail { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.step-rail i {
  display: block; height: 100%;
  background: var(--crimson);
  transform: scaleX(var(--at, 0.2)); transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.panel-b > .step-rail + * { margin-top: var(--s3); }

.step-feet { display: flex; align-items: center; gap: var(--s2); }
.panel-b > .steps + .step-feet { margin-top: var(--s3); }
.step-feet .slab--sm { border-radius: 12px; }
.timer {
  display: flex; align-items: center; gap: var(--s2); margin-left: auto;
  font-family: var(--display); font-weight: 800; font-size: 26px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}

.hint { font-size: 14px; color: var(--ink-2); }

/* ---------- rows ----------
   A flat list inside a card. The old site put every row in its own box, which
   is boxes inside boxes: a row is a line with a rule above it, and that is
   all it needs to be.

   .acct-form, .acct-card and .acct-shut are named by js/. */

.rows { display: grid; }
.row {
  display: flex; align-items: center; gap: var(--s3);
  padding-block: 15px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  text-align: left;
}
.rows > :first-child { border-top: 0; }
.row-what { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.row-sub { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.row-is {
  flex: 0 0 auto; max-width: 52%;
  color: var(--ink-2); text-align: right;
  overflow-wrap: anywhere;
}
.row-is--num { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* A row that goes somewhere carries a chevron and answers the pointer. */
button.row, a.row { width: 100%; border-inline: 0; border-bottom: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
button.row:hover, a.row:hover { background: color-mix(in srgb, var(--sand) 60%, transparent); }
.row-go { flex: none; color: var(--ink-2); font-size: 20px; }

/* The strip of headings above a group of rows. Twelve pixels, uppercase, and
   only where a group genuinely needs naming. */
.rows-h {
  margin: var(--s3) 0 var(--s1);
  font-family: var(--text); font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.rows-h:first-child { margin-top: 0; }

/* ---------- plans ----------
   Four rungs. The cards are narrow rather than tall, and the one that is
   recommended wears the sand rather than a badge. */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.plans--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  display: grid; gap: var(--s2); align-content: start;
  padding: var(--s3);
  border: var(--edge) solid var(--ink);
  border-radius: 22px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 6px 0 0 var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.plan--best { background: var(--sand); }
html.motion .plan:hover, html.motion .plan:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 0 var(--ink);
}
.plan-name { font-size: 24px; }
.plan-when {
  font-family: var(--display); font-weight: 800; font-size: 38px;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.plan-when small { font-family: var(--text); font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.plan-when b { display: inline-block; font-weight: inherit; }
.plan-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; }
.plan-list li { position: relative; padding-left: 21px; }
.plan-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson);
}
.plan--best .plan-list li::before { background: var(--ink); }
.plan .slab { margin-top: var(--s1); text-align: center; }

/* One switch for the page, driven by two radios, so it works with the script
   off: the checked radio hides one price and shows the other through a sibling
   selector, and js/switch.js only ever moves the thumb onto the real width of
   the chosen word. Four per-card toggles were four chances to leave the page
   disagreeing with itself.

   The radios are off-screen rather than display:none, so they keep their place
   in the tab order and the labels stay real labels. */
.cad { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cad-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.yearly { display: none; }
.cad-y:checked ~ .cad-row ~ .plans .monthly,
.cad-y:checked ~ .cad-row ~ .compare-wrap .monthly { display: none; }
.cad-y:checked ~ .cad-row ~ .plans .yearly,
.cad-y:checked ~ .cad-row ~ .compare-wrap .yearly { display: inline; }
.cad:focus-visible ~ .cad-row .cadence-toggle { outline: var(--edge) solid var(--crimson-deep); outline-offset: 3px; }
.cadence-toggle label {
  position: relative; z-index: 1;
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: color 0.2s var(--ease);
}
.cad-m:checked ~ .cad-row .lab-m,
.cad-y:checked ~ .cad-row .lab-y { color: var(--on-crimson); }

/* Nothing on this page can be bought yet, and js/onsale.js says so by replacing
   the button with a span. It keeps the card's shape because it keeps the card's
   class: what it loses is the promise and the click. */
.is-shut {
  background: var(--sand); color: var(--ink-2);
  box-shadow: none; cursor: default;
  border-style: dashed;
}
.is-shut:hover { background: var(--sand); transform: none; box-shadow: none; }

/* The monthly/yearly switch. One for the page, not one per card: four toggles
   that each changed one figure was four chances to leave the page disagreeing
   with itself.

   .cadence-toggle and .switch-thumb are named by js/switch.js. */
.cadence-toggle {
  position: relative;
  display: inline-flex; gap: 4px;
  padding: 5px;
  border: var(--edge) solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}
.cadence-toggle button {
  position: relative; z-index: 1;
  padding: 9px 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: color 0.2s var(--ease);
}
.cadence-toggle button[aria-pressed="true"] { color: var(--on-crimson); }
.switch-thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px;
  border-radius: 999px;
  background: var(--crimson);
  transition: transform 0.28s var(--ease), width 0.28s var(--ease);
}
/* Until js/switch.js has measured the two labels the thumb has nowhere to be,
   and a bar of crimson parked at the left edge under the wrong word is worse
   than no bar at all. */
.cadence-toggle:not(.is-measured) .switch-thumb { opacity: 0; }
.cad-save { align-self: center; padding-inline: 10px; font-size: 13px; font-weight: 800; color: var(--crimson-deep); }

/* The head of a plan card: the name, and whatever switch belongs beside it. */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }

/* Three numbered steps in a row, for a process rather than a comparison. */
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.flow-step h3 { margin-top: var(--s2); font-size: 22px; }
.flow-step p { margin-top: var(--s1); color: var(--dim, var(--ink-2)); font-size: 16px; }
@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr; gap: var(--s3); } }

/* The one line that closes a page: a sentence and the way onward, on a rule. */
.doc-end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.doc-end-row h2 { font-size: clamp(24px, 3vw, 38px); max-width: 22ch; }

/* ---------- the comparison ----------
   A table, set as a table. Ticks and crosses carry a word for a screen reader
   and a shape for everybody else. */

.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 13px var(--s2); text-align: left; border-top: 1px solid var(--rule, color-mix(in srgb, var(--ink) 16%, transparent)); }
.compare thead th { border-top: 0; font-family: var(--display); font-size: 20px; }
.compare tbody th { font-weight: 700; }
.compare td { text-align: center; }
.compare-group th {
  padding-top: var(--s4);
  font-family: var(--text); font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim, var(--ink-2));
  border-top: 0;
}
.cell-yes { color: var(--yes); font-weight: 800; }
.cell-no { color: var(--dim, var(--ink-2)); }
.compare-row.on { background: color-mix(in srgb, currentColor 8%, transparent); }

/* ---------- forms ----------
   One field, everywhere. Three pixels of ink and a solid offset, the same
   object as the button beside it. */

.field { display: grid; gap: 7px; }
.field-label { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.field input, .field select, .field textarea, .input {
  width: 100%;
  min-height: 54px;
  padding: 13px var(--s2);
  border: var(--edge) solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit; font-size: 17px;
  box-shadow: 0 4px 0 0 var(--ink);
  transition: box-shadow 0.12s var(--ease), transform 0.12s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .input::placeholder { color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  transform: translateY(1px);
  box-shadow: 0 3px 0 0 var(--ink), 0 0 0 3px var(--sand);
}
.band--crimson .field input, .band--crimson .input,
.band--ink .field input, .band--ink .input { box-shadow: 0 4px 0 0 var(--ink); }
.field-note { font-size: 14px; color: var(--ink-2); }
.err { margin-top: var(--s1); font-size: 15px; font-weight: 700; color: var(--crimson-deep); }
.band--crimson .err, .band--ink .err { color: var(--on-crimson); }

/* ---------- notes and banners ---------- */

.note {
  padding: var(--s2) var(--s3);
  border: var(--edge) solid var(--ink);
  border-radius: 18px;
  background: var(--sand);
  font-size: 16px;
}
.note--warn { background: color-mix(in srgb, var(--warn) 18%, var(--cream)); }
.note strong { display: block; font-weight: 800; }
.note span { color: var(--ink-2); }

/* ---------- the footer ----------
   Two storeys. The upper one is the site's own map, brand on the left and the
   pages grouped on the right, because a strip of six links in a row tells you
   nothing about which of them you want. The lower one is the small print
   nobody reads on purpose: the year, and the one fact the whole site turns on,
   which is that this cannot be downloaded yet. */

.foot-band { padding-block: var(--s5) var(--s3); border-top: var(--edge) solid var(--ink); }
.foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: var(--s5); align-items: start; }
.foot-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 27px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--on-ink);
}
.foot-louie { width: 40px; height: 36px; object-fit: contain; }
.foot-kicker { margin-top: var(--s2); }
.foot-blurb { margin-top: var(--s2); max-width: 38ch; font-size: 16px; color: var(--on-ink-2); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.foot-head {
  font-family: var(--text); font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-2);
}
.foot-col ul { margin: var(--s2) 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot-col a {
  font-size: 16px; font-weight: 600; color: var(--on-ink-2);
  text-decoration: none; overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.foot-col a:hover { color: var(--crimson); }
.foot-end {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s2); flex-wrap: wrap;
  font-size: 13px; color: var(--on-ink-2);
}
.foot-state { text-align: right; }

/* ===========================================================================
   THE PAGES
   ======================================================================== */

/* ---------- the hero ----------
   The mascot leads. He is the largest thing on the first screen, he is doing
   the thing the screen is about, and he answers the pointer. This is the whole
   argument of the cut in one section. */

.hero { border-top: 0; padding-block: var(--s6) var(--s6); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s5); align-items: center; }
.hero .d1 { max-width: 13ch; }
.hero .d1 em { font-style: normal; color: var(--crimson-deep); }
.hero-do { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* The stage is what the pointer is measured against and what the steam hangs
   off; he tilts inside it. */
.hero-stage { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-louie {
  width: 100%;
  transform-origin: 50% 85%;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.42s var(--ease);
}

/* ---------- the companion ----------
   One drawing pinned to the corner of the window who wears the pose of whatever
   section is being read: cooking, then the timer, then the microphone, then the
   money. He is the reason the site has a character rather than a logo.

   Desktop only. On a phone there is no margin to give him, and a mascot over
   the copy is not a mascot, it is an obstruction. */
.mate {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 128px;
  pointer-events: none;
}
.mate img {
  width: 100%;
  transform: rotate(var(--tilt, 0deg));
  transition: opacity 0.18s linear, transform 0.42s var(--ease);
}
.mate.is-turning img { opacity: 0; }
@media (max-width: 1180px) { .mate { display: none; } }

/* ---------- a full-bleed photograph ----------
   The photography did not go anywhere. It just no longer has to carry the
   introduction on its own. */

.plate { position: relative; border-top: var(--edge) solid var(--ink); border-bottom: var(--edge) solid var(--ink); overflow: hidden; }
.plate img { width: 100%; height: clamp(300px, 44vw, 560px); object-fit: cover; }
.plate-line {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s4) clamp(20px, 5vw, 64px);
  background: linear-gradient(to top, rgba(28, 18, 16, 0.78), transparent);
  color: var(--on-ink);
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.03em; line-height: 1.05;
}

/* ---------- the pinned phone ----------
   The set piece. Every other object on this site is a solid shape with three
   pixels of ink around it and one hard offset under it, and the phone is no
   exception: no metal gradient, no gloss, no lighting. The screen inside it is
   the only lit thing on the page, which is the point of framing it at all.

   The ghosting of the copy is a desk affordance and nothing else. It only
   applies where the pin actually pins, because a step that is dim and never
   lights up is just unreadable text. */

.pin { padding-block: var(--s5) var(--s6); }
.pin-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: var(--s5);
  margin-top: var(--s4);
}
.pin-media { position: relative; }
/* Under the bar, not behind it: the bar is opaque and sticky, so a pane pinned
   at 0 puts the top of the phone inside it. */
.pin-sticky {
  position: sticky; top: calc(var(--bar) + var(--s2));
  height: calc(100dvh - var(--bar) - var(--s2));
  display: flex; align-items: center; gap: var(--s4);
}

.dots { order: -1; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.dots li {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
/* The dash grows when its step is active, so it is drawn inside a box that is
   already the grown width. Growing the box widened the rail, and a wider rail
   pushed the phone sideways every time the active step changed. */
.dots li b { position: relative; flex: none; width: 44px; height: var(--edge); }
.dots li b::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 44px; height: var(--edge);
  background: color-mix(in srgb, var(--ink) 26%, transparent);
  /* Drawn at the grown width and scaled down to the resting 26px rather than
     drawn at 26px and widened: motion.js retoggles this on every scroll step,
     and animating width lays the rail out again on every frame. */
  transform: scaleX(0.591); transform-origin: left center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.dots li.on { color: var(--ink); }
.dots li.on b::before { transform: scaleX(1); background: var(--crimson); }

.phone {
  --pw: clamp(230px, 21vw, 310px);
  position: relative; flex: none;
  width: var(--pw); aspect-ratio: 554 / 1206;
  padding: calc(var(--pw) * 0.03);
  border: var(--edge) solid var(--ink);
  border-radius: calc(var(--pw) * 0.158);
  background: var(--ink);
  box-shadow: 0 8px 0 0 var(--crimson-deep);
}
.glass {
  position: absolute; inset: calc(var(--pw) * 0.03);
  display: block; overflow: hidden; background: var(--ink);
  border-radius: calc(var(--pw) * 0.126);
}
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(var(--clip, 0%) 0 0 0); }

.pin-copy { margin: 0; padding: 0; list-style: none; }
/* The spine. It is one unbroken crimson line down the whole run of steps, drawn
   as a border on each block rather than on the list, because the tail at the
   bottom is spacing rather than a step and the line has no business running
   through it. Blocks stack with no margin between them, so seven borders read
   as one line. */
.pin-step {
  /* The inset the copy sits at, and how far out of the spine the branch reaches.
     Both are named because the branch is positioned off the number and has to
     find its way back to a line it cannot see. */
  --spine-gap: var(--s4);
  --branch: 25px;
  min-height: var(--step-h, 78vh);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--s3);
  padding-left: var(--spine-gap);
  border-left: var(--edge) solid var(--crimson);
}
/* The tag is inline-block, and a flex column stretches its items across, so a
   pill that is a label would otherwise draw as a bar the width of the copy. */
.pin-step .mono {
  position: relative;
  align-self: flex-start;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
/* The branch. The spine is permanent; the step being read is the one the spine
   reaches out to. It is hung off the number rather than the block because the
   block is a viewport and a bit tall and its copy floats in the middle of it,
   so the only thing that knows where the title starts is the title. It grows
   left to right, off the rail and towards the words. */
.pin-step .mono::before {
  content: "";
  position: absolute; top: 50%;
  /* Back out to the spine, then in again by the length of the branch, so the
     line leaves the rail and stops short of the number rather than joining the
     two: a tick pointing at the title, not a bridge to it. */
  right: calc(100% + var(--spine-gap) + var(--edge) - var(--branch));
  width: var(--branch); height: var(--edge);
  margin-top: calc(var(--edge) / -2);
  background: var(--crimson);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.34s var(--ease);
}
.pin-step h3 { margin-top: var(--s2); font-size: clamp(30px, 3.6vw, 50px); transition: color 0.3s var(--ease); }
.pin-text { margin-top: var(--s2); max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); transition: color 0.3s var(--ease); }
.pin-more { margin-top: var(--s2); max-width: 40ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); transition: color 0.3s var(--ease); }
/* Set from motion.js, and only there: the lead is a measurement of the pinned
   pane, not a number that can be guessed from the viewport. */
.pin-step:first-child { min-height: calc(var(--step-h, 78vh) + var(--step-lead, 0px)); }
/* A sticky box one viewport tall stops sticking a whole viewport before its
   column ends, so the phone used to slide away while the last step was still on
   screen. The tail buys that viewport back. */
.pin-tail { min-height: max(120px, calc(100dvh - 780px)); padding-left: 0; border-left: 0; }

/* The active step, said in the two ways this site says anything: a crimson
   ground under the number, and a crimson edge down the side. Exactly the
   conditions under which motion.js runs the pin, so a step is never left dim
   with nothing able to light it. */
@media (min-width: 901px) and (pointer: fine) {
  html.motion .pin-step h3, html.motion .pin-step .pin-text { color: var(--ink-2); }
  html.motion .pin-step .pin-more { color: color-mix(in srgb, var(--ink-2) 62%, transparent); }
  html.motion .pin-step.on .mono::before { transform: scaleX(1); }
  html.motion .pin-step.on .mono { background: var(--crimson); color: var(--on-crimson); }
  html.motion .pin-step.on h3, html.motion .pin-step.on .pin-text { color: var(--ink); }
  html.motion .pin-step.on .pin-more { color: var(--ink-2); }
}

/* No script: nothing sets --clip or --step-h, and seven screens would stack in
   viewport-tall blocks. The sequence stands still and every word is at full
   strength, because there is nothing left to light it up. */
html:not(.motion) .pin-sticky { position: static; height: auto; }
html:not(.motion) .pin-step { min-height: 0; }
html:not(.motion) .screen { clip-path: none; }
html:not(.motion) .screen:not(:first-child) { display: none; }
html:not(.motion) .dots { display: none; }

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

.how-step { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s5); align-items: center; margin-top: var(--s5); }
.how-step--flip .shot { order: 2; }
.shot { margin: 0; border: var(--edge) solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 0 var(--ink); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.how-copy h3 { margin-top: var(--s2); font-size: clamp(26px, 3vw, 40px); }
.how-copy p { margin-top: var(--s2); max-width: 46ch; color: var(--ink-2); }

/* ---------- the written pages ----------
   Terms and privacy. A column of prose with its own contents held beside it.
   .doc-index and .is-here are named by js/docnav.js. */

.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.doc-side { position: sticky; top: calc(var(--bar) + var(--s3)); }
.doc-side .mono { margin-bottom: var(--s2); }
/* js/docnav.js puts is-here on the anchor itself, not on its row. */
.doc-index { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.doc-index a {
  display: block;
  padding: 8px 0 8px var(--s2);
  border-left: var(--edge) solid color-mix(in srgb, var(--ink) 16%, transparent);
  font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.doc-index a:hover { color: var(--ink); }
.doc-index a.is-here { border-left-color: var(--crimson); color: var(--ink); }
.prose { max-width: 66ch; }
.prose h2 { margin-top: var(--s5); font-size: clamp(26px, 2.6vw, 34px); scroll-margin-top: calc(var(--bar) + var(--s3)); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s3); font-size: 21px; }
.prose p, .prose ul, .prose ol { margin-top: var(--s2); color: var(--ink-2); }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.updated { font-size: 15px; color: var(--ink-2); }

/* ---------- support ----------
   The questions are a list, not a stack of cards. Twenty-seven cards turned a
   page of answers into a page of boxes. */

.faq { margin: 0; padding: 0; }
.faq-block + .faq-block { margin-top: var(--s5); }
.faq-label { position: sticky; top: calc(var(--bar) + var(--s2)); z-index: 2; padding-block: var(--s1); background: inherit; }
.faq-answers { margin: var(--s3) 0 0; }
.faq-answers dt { margin-top: var(--s3); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.faq-answers dd { margin: 7px 0 0; max-width: 54ch; color: var(--ink-2); }
.faq-jump { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); padding: 0; list-style: none; }
.faq-jump a { text-decoration: none; }

.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: center; }
.contact-mail { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact-note { margin-top: var(--s2); color: var(--ink-2); }

/* ---------- the page that is not there ---------- */

.lost { min-height: 72vh; display: grid; align-content: center; text-align: center; }
.lost .lede { margin-inline: auto; }
.lost-do { margin-top: var(--s4); display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.lost-mascot { width: min(300px, 62vw); margin: 0 auto var(--s3); }

/* ---------- the gate: sign in, join, the callback ----------
   .gate is named by js/signin.js. One card, centred, and Louié holding the key
   beside it. */

.gate { min-height: calc(100dvh - var(--bar)); display: grid; align-content: center; justify-content: center; justify-items: center; padding-block: var(--s5); }
.gate-grid { display: grid; grid-template-columns: auto minmax(0, 420px); gap: var(--s5); align-items: center; }
.gate-louie { width: min(260px, 34vw); }
.gate-card {
  padding: var(--s4);
  border: var(--edge) solid var(--ink); border-radius: 22px;
  background: var(--cream); box-shadow: 0 6px 0 0 var(--ink);
}
.gate-card h1 { font-size: clamp(30px, 3.4vw, 42px); }
.gate-lede { margin-top: var(--s2); font-size: 17px; color: var(--ink-2); }
.gate-form { margin-top: var(--s3); display: grid; gap: var(--s2); }
.gate-form .slab { width: 100%; }
.gate-or {
  display: flex; align-items: center; gap: var(--s2);
  margin-block: var(--s3);
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.gate-or::before, .gate-or::after { content: ""; flex: 1 1 auto; height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.gate-providers { display: grid; gap: var(--s2); }
.gate-provider { width: 100%; }
.gate-provider-mark { width: 20px; height: 20px; }
/* The eye on the password field, inside its own box so the field keeps its
   shape whichever way the eye is pointing. */
.gate-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.gate-hold { position: relative; }
.gate-hold input { padding-right: 56px; }
.gate-peek {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-content: center;
  border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--ink-2);
}
.gate-peek:hover { color: var(--ink); background: var(--sand); }
.gate-note { margin-top: var(--s3); font-size: 14px; color: var(--ink-2); }
.gate-say { margin-top: var(--s2); }

/* ---------- the checkout ----------
   .is-held and .is-ready are named by js/order.js. */

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; }
.order-card { padding: var(--s3); border: var(--edge) solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 0 6px 0 0 var(--ink); }
.order-card + .order-card { margin-top: var(--s3); }
.order-row { display: flex; align-items: center; gap: var(--s3); padding-block: 13px; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.order-row:first-of-type { border-top: 0; }
.order-label { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.order-label span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }
.order-card select { min-width: 170px; }
/* The bill rides the scroll: on a long roster the total should never be a
   thing you have to go and look for. */
.order-bill { position: sticky; top: calc(var(--bar) + var(--s3)); }
.bill-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bill-pay { width: 100%; margin-top: var(--s3); }
.bill-louie { width: 96px; margin: 0 auto var(--s2); }
.order-done { display: grid; justify-items: center; text-align: center; gap: var(--s2); }
.done-louie { width: min(240px, 60vw); }

/* ---------- the account ----------
   The one place the site is an application rather than a page. The rules are
   the same rules; what changes is that nearly everything is a row.

   .acct-form, .acct-card, .acct-shut, .is-armed and .acct-in--saving are named
   by js/account.js, js/profile.js and js/settings.js. */

.acct-page { padding-block: var(--s5) var(--s6); }
.acct-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.acct-ident-face { width: 88px; height: 88px; border: var(--edge) solid var(--ink); border-radius: 50%; background: var(--sand); object-fit: cover; object-position: 50% 22%; }
.acct-name { font-size: clamp(26px, 3vw, 38px); }
.acct-say { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.acct-card {
  padding: var(--s3);
  border: var(--edge) solid var(--ink); border-radius: 22px;
  background: var(--cream); box-shadow: 0 6px 0 0 var(--ink);
}
.acct-card + .acct-card { margin-top: var(--s3); }
.acct-card > h2 { font-size: 24px; }
.acct-card > h2 + * { margin-top: var(--s2); }
/* The rows run to the card's own edges. A list of rows inset inside a card is
   a box inside a box. */
.acct-rows { margin: var(--s3) calc(var(--s3) * -1) calc(var(--s3) * -1); padding-inline: var(--s3); }
.acct-rows .row:first-child { border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.acct-in--saving { opacity: 0.5; pointer-events: none; }
.acct-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.acct-face { padding: 6px; border: var(--edge) solid var(--ink); border-radius: 18px; background: var(--cream); cursor: pointer; }
.acct-face[aria-pressed="true"] { background: var(--sand); box-shadow: 0 4px 0 0 var(--ink); }
.acct-face img { width: 100%; }
.acct-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: var(--s3); }
.acct-chart i { flex: 1 1 0; min-width: 2px; background: var(--crimson); border-radius: 2px 2px 0 0; }
.acct-danger { border-color: var(--crimson-deep); }
.acct-danger .slab { background: var(--crimson-deep); }
.acct-empty { padding: var(--s4) 0; text-align: center; color: var(--ink-2); }
.acct-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.acct-forms { display: grid; gap: var(--s2); margin-top: var(--s3); }
.is-armed { outline: var(--edge) solid var(--crimson); outline-offset: 3px; }

/* ===========================================================================
   MOTION
   ---------------------------------------------------------------------------
   Nothing below applies until js/motion.js puts `motion` on <html>. With the
   script off, or before it runs, every element is already in its finished state
   and the page is complete: that is why there are no from-states in the markup
   and nothing anybody can get stranded behind.

   Only transform and opacity are animated. Anything needing a per-element
   number (a stagger index, a pointer angle, a pin fraction) gets it as a custom
   property written from script.

   Reduced motion is at the foot of this block and it substitutes rather than
   deletes: the rises become a plain fade, the idling stops, the pin lets go.
   Every control still does its job. ====================================== */

html.motion [data-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.motion [data-rise].is-in { opacity: 1; transform: none; }

html.motion .hero-stage .hero-louie { animation: bob 4.4s ease-in-out infinite; }
html.motion .hero-stage.is-poked .hero-louie { animation: squash 0.62s var(--pop); }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes squash {
  0% { scale: 1 1; }
  28% { scale: 1.1 0.88; }
  60% { scale: 0.95 1.06; }
  100% { scale: 1 1; }
}

/* Three puffs off the spoon, offset in time so it never pulses as one shape.
   Pointer-events off, so he stays pressable through them. */
.steam { position: absolute; left: 44%; top: 6%; width: 120px; height: 120px; pointer-events: none; }
.steam i {
  position: absolute; bottom: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(28, 18, 16, 0.14);
  opacity: 0;
}
html.motion .steam i { animation: puff 3.6s ease-out infinite; }
.steam i:nth-child(1) { left: 0; animation-delay: 0s; }
.steam i:nth-child(2) { left: 26px; width: 22px; height: 22px; animation-delay: 1.2s; }
.steam i:nth-child(3) { left: 54px; width: 13px; height: 13px; animation-delay: 2.4s; }
@keyframes puff {
  0% { opacity: 0; translate: 0 0; scale: 0.6; }
  18% { opacity: 0.9; }
  100% { opacity: 0; translate: 10px -96px; scale: 1.5; }
}

/* A figure that has just been rewritten: it rolls in from above rather than
   simply becoming a different number, so the change is something you saw
   happen rather than something you have to notice. */
html.motion .is-rolled b { animation: roll 0.34s var(--ease); }
@keyframes roll {
  0% { opacity: 0; translate: 0 -16px; }
  60% { opacity: 1; }
  100% { opacity: 1; translate: 0 0; }
}

/* ===========================================================================
   THE GATE, THE CHECKOUT AND THE ACCOUNT
   ---------------------------------------------------------------------------
   Everything below is markup js/ owns: the class names and the data hooks are a
   contract with signin.js, order.js, account.js, profile.js and settings.js, so
   this half of the sheet is written to fit the markup rather than the other way
   round. ================================================================== */

/* ---------- the gate ---------- */

.gate-card { width: min(460px, 100%); text-align: left; }
.gate-card + .gate-card { margin-top: var(--s3); }
.gate-say { display: grid; justify-items: center; text-align: center; }
.gate-louie { width: min(180px, 44vw); margin-bottom: var(--s2); order: -1; }
.gate-h { font-size: clamp(28px, 3.2vw, 38px); }
.gate-kicker { margin-bottom: var(--s2); }
.gate-do { margin-top: var(--s3); }
.gate-field { display: grid; gap: 7px; }
.gate-label { font-size: 14px; font-weight: 800; }
.gate-field input {
  width: 100%; min-height: 54px;
  padding: 13px var(--s2);
  border: var(--edge) solid var(--ink); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  font: inherit; font-size: 17px;
  box-shadow: 0 4px 0 0 var(--ink);
  transition: box-shadow 0.12s var(--ease), transform 0.12s var(--ease);
}
.gate-field input::placeholder { color: var(--ink-2); }
.gate-field input:focus { outline: none; transform: translateY(1px); box-shadow: 0 3px 0 0 var(--ink), 0 0 0 3px var(--sand); }
.gate-go { width: 100%; margin-top: var(--s1); }
.gate-provider {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; min-height: 54px;
  padding: 13px var(--s2);
  border: var(--edge) solid var(--ink); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 0 0 var(--ink);
  transition: background 0.2s var(--ease), transform 0.09s var(--ease), box-shadow 0.09s var(--ease);
}
.gate-provider:hover { background: var(--sand); transform: translateY(1px); box-shadow: 0 3px 0 0 var(--ink); }
.gate-provider:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--ink); }
.gate-or { display: flex; align-items: center; gap: var(--s2); margin-block: var(--s3); }
.gate-or::before, .gate-or::after { content: ""; flex: 1 1 auto; height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.gate-or span { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
/* The app's eye, drawn rather than fetched: it has to take the colour of the
   text around it, which an <img> cannot do. */
.gate-eye { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.gate-eye-slash { display: none; }
.gate-peek[aria-pressed="true"] .gate-eye-slash { display: block; }
.gate-alts { display: grid; gap: var(--s1); margin-top: var(--s3); font-size: 15px; color: var(--ink-2); }
.gate-swap { display: flex; flex-wrap: wrap; gap: 6px; }
/* Each of these lines is a question with one answer, and signin.js hides the
   answers that do not apply to the mode on screen. A question left standing on
   its own reads as a broken sentence, so the line goes with its button. */
.gate-swap:has(> .gate-alt[hidden]) { display: none; }
.gate-alt {
  padding: 0; border: 0; background: none;
  font: inherit; font-weight: 800; color: var(--crimson-deep); cursor: pointer;
  border-bottom: 2px solid currentColor;
}
.gate-alt:hover { color: var(--ink); }
.gate-forgot { font-size: 14px; }
.gate-note:not(:empty) { margin-top: var(--s2); font-size: 15px; font-weight: 700; color: var(--crimson-deep); }
.gate-card--said { text-align: center; }
.gate-card--said .gate-louie { margin-inline: auto; }
.gate-alts--said { justify-items: center; }
.gate-alts--said .gate-swap { justify-content: center; }

/* ---------- the checkout ---------- */

.order { padding-block: var(--s5) var(--s6); border-top: 0; }
.order-h { font-size: clamp(30px, 4vw, 52px); margin-top: var(--s2); }
.order-kicker { margin-bottom: 0; }
.order-grid { margin-top: var(--s4); }
.order-said { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.order-change { font-size: 15px; font-weight: 800; color: var(--crimson-deep); }
.order-carries { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 16px; }
.order-carries li { position: relative; padding-left: 21px; }
.order-carries li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--crimson); }
.order-switch {
  position: relative;
  display: inline-flex; gap: 4px; padding: 5px;
  border: var(--edge) solid var(--ink); border-radius: 999px; background: var(--cream);
}
.order-switch label {
  position: relative; z-index: 1;
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: var(--ink-2); cursor: pointer;
  transition: color 0.2s var(--ease);
}
.ord-m:checked ~ .order-switch label[for="ord-monthly"],
.ord-y:checked ~ .order-switch label[for="ord-yearly"] { color: var(--on-crimson); }
.order-switch:not(.is-measured) .switch-thumb { opacity: 0; }
/* Inside a row the label is a label, not a tag: a pill on every line turns a
   short list of facts into a row of buttons. */
.order-row .mono, .bill-card-line .mono {
  padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--ink-2); font-size: 12px; letter-spacing: 0.1em;
}
.bill-kicker { margin-bottom: var(--s2); }
.bill-small { margin-top: var(--s3); font-size: 14px; color: var(--ink-2); }
.bill-when { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.bill-card-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-top: var(--s3); }
.bill-brand { font-weight: 800; }
/* Stripe's own frame. It is given an ink edge and a ground and nothing else:
   what is inside it is theirs. */
.bill-field {
  margin-top: var(--s1); padding: 15px var(--s2);
  border: var(--edge) solid var(--ink); border-radius: 14px;
  background: var(--cream); box-shadow: 0 4px 0 0 var(--ink);
}
.bill-note:not(:empty) { margin-top: var(--s2); font-size: 15px; font-weight: 700; }
.bill-fire { width: 100%; margin-top: var(--s3); }
.done-h { margin-top: var(--s1); font-size: clamp(28px, 3.4vw, 42px); }
.done-lede, .done-when, .done-small { color: var(--dim, var(--ink-2)); }
.done-small { font-size: 15px; max-width: 44ch; }
.done-go { margin-top: var(--s2); }
.order-fallback { margin-top: var(--s4); display: grid; gap: var(--s2); max-width: 60ch; }
.order-fallback p { color: var(--dim, var(--ink-2)); }

/* ---------- the two handover pages ----------
   /join and /auth/callback. One drawing, one sentence, one way onward. */

.reply { min-height: 100dvh; display: grid; align-content: center; text-align: center; padding-block: var(--s5); border-top: 0; }
.reply .wrap { display: grid; justify-items: center; gap: var(--s3); }
.reply h1 { font-size: clamp(28px, 3.6vw, 44px); }
.reply p { max-width: 54ch; color: var(--ink-2); }
.reply > .wrap > div { display: grid; justify-items: center; gap: var(--s2); }
.reply-louie { width: min(240px, 56vw); margin-bottom: var(--s2); }
.join-note { font-size: 15px; }

/* ---------- the account ----------
   The one place the site is an application rather than a page. Same rules;
   what changes is that nearly everything is a row on a card, and there are
   three cards rather than one per group. */

.acct-page { padding-block: var(--s5) var(--s6); border-top: 0; }
.acct-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.acct-ident { display: flex; align-items: center; gap: var(--s3); }
.acct-ident-face { width: 88px; height: 88px; border: var(--edge) solid var(--ink); border-radius: 50%; background: var(--sand); object-fit: cover; object-position: 50% 22%; }
.acct-name { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; }
.acct-say { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.acct-kicker { margin-bottom: var(--s2); }
/* The card's floor: the consequence sentence on the left, the button that acts
   on it on the right, on the card's own edge rather than floating in its body. */
/* The floor is the sand bar, not the row inside it. Two of these cards put a
   second row on the floor once something has been pressed, and a bar that
   carried its own negative margin would have the second row land on top of the
   first. */
.acct-floor {
  margin: var(--s3) calc(var(--s3) * -1) calc(var(--s3) * -1);
  padding-block: var(--s2);
  border-top: var(--edge) solid var(--ink);
  background: var(--sand);
  border-radius: 0 0 19px 19px;
}
.acct-strip, .acct-stop {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  padding-inline: var(--s3);
}
.acct-strip p { flex: 1 1 240px; font-size: 15px; }
.acct-strip--acts { justify-content: flex-end; }
.acct-strip + .acct-stop, .acct-floor > * + * { margin-top: var(--s2); }
/* The forms a card opens sit under its floor's bar, on the card's own inset. */
.acct-floor > .acct-forms { padding-inline: var(--s3); margin-top: var(--s2); }
.acct-back { font-weight: 800; text-decoration: none; }

.acct-card > h2 { font-size: 24px; }
.acct-card > h2 + p, .acct-card > h2 + .acct-note { margin-top: 6px; }
.acct-note { font-size: 15px; color: var(--ink-2); max-width: 56ch; }
.acct-small { font-size: 14px; color: var(--ink-2); }
.acct-label { font-size: 14px; font-weight: 800; }

/* The rows run to the card's own edges. A list of rows inset inside a card is
   a box inside a box, which is the thing this whole page was rebuilt to stop
   doing.

   A row is one of three things and they all draw the same: a plain <li>, an
   <a class="acct-go"> that goes somewhere, or the <summary> of a <details>
   that opens in place. */
.acct-rows { margin: var(--s3) calc(var(--s3) * -1) calc(var(--s3) * -1); padding: 0 var(--s3); list-style: none; }
.acct-row,
.acct-go,
.acct-open > summary {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; padding-block: 15px;
  border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: none; font: inherit; color: inherit; text-align: left;
  text-decoration: none;
}
.acct-rows > :first-child .acct-go,
.acct-rows > :first-child .acct-open > summary,
.acct-rows > .acct-row:first-child { border-top: 0; }
.acct-go, .acct-open > summary { cursor: pointer; list-style: none; }
.acct-open > summary::-webkit-details-marker { display: none; }
.acct-go:hover, .acct-open > summary:hover { color: var(--crimson-deep); }
.acct-row-what { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.acct-row-sub { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.acct-row-is { flex: 0 0 auto; max-width: 54%; color: var(--ink-2); text-align: right; overflow-wrap: anywhere; }
.acct-row-is--num { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.acct-row-holder { display: block; }
/* A row that goes somewhere, and a row that opens, each say so with a mark on
   the right. The chevron turns when the details is open. */
.acct-go::after,
.acct-open > summary::after {
  content: "";
  flex: none; width: 9px; height: 9px;
  border-right: var(--edge) solid var(--ink-2);
  border-bottom: var(--edge) solid var(--ink-2);
  transform: rotate(-45deg);
  transition: transform 0.24s var(--ease);
}
.acct-open > summary::after { transform: rotate(45deg); }
.acct-open[open] > summary::after { transform: rotate(-135deg); }
.acct-open > .acct-open-body { padding-bottom: var(--s3); }

/* The one control that lives inside a row. It draws no edge until it is being
   used, because a field that looks like a field on every line turns a list into
   a form, which is the thing this page was rebuilt to stop being. */
.acct-in {
  width: 100%; max-width: 220px;
  padding: 8px 10px;
  border: var(--edge) solid transparent; border-radius: 10px;
  background: none; color: var(--ink);
  font: inherit; font-size: 17px; text-align: right;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.acct-in::placeholder { color: var(--ink-2); }
.acct-in:hover:not([disabled]) { background: color-mix(in srgb, var(--sand) 60%, transparent); }
.acct-in:focus { outline: none; border-color: var(--ink); background: var(--cream); text-align: left; }
.acct-in[disabled] { opacity: 0.6; }

.acct-group-h {
  margin: var(--s3) 0 var(--s1);
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}
.acct-group-top { margin-top: 0; }
.acct-stack { display: grid; gap: var(--s3); }
.acct-facts { display: grid; gap: 0; }
.acct-fact-mark { display: none; }
.acct-empty { padding: var(--s4) 0; text-align: center; color: var(--ink-2); }
.acct-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.acct-out { font-weight: 800; }
.acct-stop { color: var(--crimson-deep); font-weight: 800; }
.acct-stop .acct-small { flex: 1 1 240px; }

.acct-foot { margin-top: var(--s5); }
.acct-sprite { width: 44px; height: 44px; flex: none; object-fit: cover; object-position: 50% 22%; border-radius: 50%; border: 2px solid var(--ink); background: var(--sand); }

/* The apron a person is wearing. A card of facts and buttons that do not
   argue: somebody who already pays did not come here to be sold to. */
.acct-apron { display: grid; gap: var(--s3); }
.acct-apron-say .acct-say { margin-top: var(--s1); color: var(--ink-2); }
.acct-facts { margin: var(--s3) calc(var(--s3) * -1) 0; padding: 0 var(--s3); list-style: none; }
.acct-facts li {
  display: flex; align-items: baseline; gap: var(--s3);
  padding-block: 11px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.acct-facts li:first-child { border-top: 0; }
.acct-facts li > :first-child { flex: 1 1 auto; color: var(--ink-2); }
.acct-facts li > :last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
/* The paywall's own table, and it belongs to somebody who has not bought. */
.acct-has { margin-top: var(--s2); }
.acct-cmp { width: 100%; border-collapse: collapse; margin-top: var(--s2); font-size: 15px; }
.acct-cmp th, .acct-cmp td { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); text-align: right; }
.acct-cmp thead th { border-top: 0; font-family: var(--text); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.acct-hall { display: grid; gap: var(--s2); }
.acct-hall-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.acct-kitchens { display: grid; }

/* Free against paid, said side by side rather than in a table. */
/* Named through the table so these beat the row rule above, which sets every
   cell right and has two classes to this one's one. */
.acct-cmp .acct-cmp-what { width: 100%; text-align: left; font-weight: 700; }
.acct-cmp .acct-cmp-free, .acct-cmp .acct-cmp-paid { white-space: nowrap; padding-left: var(--s3); font-variant-numeric: tabular-nums; }
.acct-cmp-free { color: var(--ink-2); }
.acct-cmp-paid { font-weight: 800; }

/* The faces you can wear, and the one you are wearing. */
.acct-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.acct-faces button { padding: 6px; border: var(--edge) solid var(--ink); border-radius: 18px; background: var(--cream); cursor: pointer; }
.acct-faces button[aria-pressed="true"] { background: var(--sand); box-shadow: 0 4px 0 0 var(--ink); }
.acct-faces img { width: 100%; }

/* Thirty days of credits, as thirty bars. No axis and no labels: the shape is
   the whole point, and a reader who wants the number has the row above it. */
.acct-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: var(--s3); }
.acct-chart i { flex: 1 1 0; min-width: 2px; background: var(--crimson); border-radius: 2px 2px 0 0; }

/* A banner with nothing in it is not a banner. Half of these are filled in by
   script and the rest stay empty for the life of the page. */
.acct-banner:empty, .acct-note:empty, .acct-say:empty { display: none; }
.acct-banner {
  margin-top: var(--s3); padding: var(--s2) var(--s3);
  border: var(--edge) solid var(--ink); border-radius: 18px;
  background: var(--sand); font-size: 16px;
}
.acct-banner--warn { background: color-mix(in srgb, var(--warn) 18%, var(--cream)); }

/* A row that opens: the Louié picker, the allergies, the forms behind a
   dangerous button. Zero to one fraction of a row, which is the one way to
   transition to a height nobody has measured. */
.acct-form { display: grid; gap: var(--s2); padding-block: var(--s2); }
.acct-forms { display: grid; gap: var(--s2); margin-top: var(--s3); }
.acct-field { display: grid; gap: 6px; }
.acct-field-label { font-size: 14px; font-weight: 800; }
.acct-field input, .acct-field select {
  width: 100%; min-height: 50px; padding: 12px var(--s2);
  border: var(--edge) solid var(--ink); border-radius: 14px;
  background: var(--cream); color: var(--ink); font: inherit; font-size: 16px;
  box-shadow: 0 4px 0 0 var(--ink);
}
.acct-field input:focus, .acct-field select:focus { outline: none; box-shadow: 0 3px 0 0 var(--ink), 0 0 0 3px var(--sand); }
.acct-in--saving { opacity: 0.5; pointer-events: none; }
/* Armed: the second press is the one that does it, and the thing about to
   happen is ringed in the colour of the button that will do it. */
.is-armed { outline: var(--edge) solid var(--crimson-deep); outline-offset: 4px; border-radius: 22px; }
.acct-danger { border-color: var(--crimson-deep); box-shadow: 0 6px 0 0 var(--crimson-deep); }
.acct-danger .acct-floor { border-top-color: var(--crimson-deep); }
.acct-shut { color: var(--crimson-deep); }
.acct-fallback { display: grid; gap: var(--s2); max-width: 60ch; }
.acct-fallback p { color: var(--dim, var(--ink-2)); }

@media (max-width: 620px) {
  .acct-ident { flex-direction: column; align-items: flex-start; }
  .acct-ident-face { width: 64px; height: 64px; }
  .acct-strip--acts { margin-left: 0; }
  .acct-floor { margin-inline: calc(var(--s2) * -1); margin-bottom: calc(var(--s2) * -1); }
  .acct-strip, .acct-stop, .acct-floor > .acct-forms { padding-inline: var(--s2); }
  .acct-cmp .acct-cmp-free { display: none; }
  .order-row { flex-wrap: wrap; }
}

/* The account's head band: the face, the name, the address and the way out.
   .acct-top is the row inside it, which is why the band carries its own name. */
.acct-head { padding-block: var(--s5) var(--s4); border-top: 0; }
.acct-head .acct-ident { flex-wrap: wrap; }
.acct-head .acct-out { margin-left: auto; }
.acct-head .lede { margin-top: 4px; font-size: 17px; }

/* The kitchens the reader is in. Each is a row on the same rules as the rest. */
.acct-kitchens { margin: var(--s3) calc(var(--s3) * -1) 0; padding: 0 var(--s3); list-style: none; }
.acct-kitchens li {
  display: flex; align-items: center; gap: var(--s3);
  padding-block: 15px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.acct-kitchens li:first-child { border-top: 0; }
/* The sprite sheet is an inline <svg> holding <symbol>s, which is markup rather
   than an image, so it is allowed under a policy with no 'unsafe-inline'. It
   draws nothing itself. */
svg.acct-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.acct-faces legend { padding: 0; margin-bottom: var(--s1); }
.acct-faces { border: 0; padding: 0; margin-inline: 0; }

/* ---------- reduced motion ----------
   Substitution, not deletion. */

@media (prefers-reduced-motion: reduce) {
  html.motion [data-rise] { transform: none; transition: opacity 0.18s linear; transition-delay: 0ms; }
  html.motion .hero-stage .hero-louie,
  html.motion .hero-stage.is-poked .hero-louie,
  html.motion .steam i { animation: none; }
  html.motion .steam { display: none; }
  .hero-louie, .mate img { transform: none; transition: none; }
  html.motion .is-rolled b { animation: none; }
  html.motion .step { transition: opacity 0.18s linear; transform: none; }
  .nudge button { transition: none; }
  html.motion .pin-sticky { position: static; height: auto; }
  html.motion .pin-step { min-height: 0; }
  html.motion .screen { clip-path: none; }
  html.motion .screen:not(:first-child) { display: none; }
  html.motion .dots { display: none; }
  /* drawPin bails under reduced motion, so nothing will ever be marked active.
     Dim copy that can never light up is just copy nobody can read. */
  html.motion .pin-step h3, html.motion .pin-step .pin-text { color: var(--ink); }
  html.motion .pin-step .pin-more { color: var(--ink-2); }
  html.motion a.card:hover, html.motion .card--live:hover, html.motion .card--live:focus-within,
  html.motion .plan:hover, html.motion .plan:focus-within { transform: none; box-shadow: 0 6px 0 0 var(--ink); }
  .pill, .pill-louie, .slab, .field input, .switch-thumb { transition: none; }
}

/* ===========================================================================
   RESPONSIVE
   ---------------------------------------------------------------------------
   Three steps. 1180 drops the companion and turns the two-column layouts into
   one. 900 is the tablet: the pin stops pinning and the tables stop being
   tables. 620 is the phone, where the bar has to be re-cut. ============== */

@media (min-width: 1700px) {
  :root { --page: 1480px; --s6: 116px; --s7: 152px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-stage { justify-self: start; width: min(320px, 70%); }
  .order-grid { grid-template-columns: 1fr; }
  .order-bill { position: static; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .doc-side { position: static; }
  .doc-index { display: flex; flex-wrap: wrap; gap: var(--s1); }
  .doc-index a { border-left: 0; border-bottom: var(--edge) solid color-mix(in srgb, var(--ink) 16%, transparent); padding: 6px 10px; }
  .doc-index a.is-here { border-bottom-color: var(--crimson); }
}

@media (max-width: 900px) {
  .band { padding-block: var(--s5); }
  .trio, .duo { grid-template-columns: 1fr; }
  .card { grid-template-columns: 150px minmax(0, 1fr); column-gap: var(--s3); }
  .card .louie-md { grid-row: span 3; }
  .how-step { grid-template-columns: 1fr; gap: var(--s3); margin-top: var(--s4); }
  .how-step--flip .shot { order: 0; }
  .foot { grid-template-columns: 1fr; gap: var(--s4); }
  .gate-grid { grid-template-columns: 1fr; gap: var(--s4); justify-items: center; }
  .gate-louie { width: min(200px, 46vw); }
  .acct-top { grid-template-columns: 1fr; justify-items: start; }
  .contact-card { grid-template-columns: 1fr; }

  /* The pin stops pinning: the phone sits above its copy and the sequence
     stands still, which is a finished layout rather than a broken one. The
     spine stays, because it is what ties seven blocks into one run. */
  .pin-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .pin-sticky { position: static; height: auto; justify-content: center; }
  .pin-step { --spine-gap: var(--s3); min-height: 0; padding-block: var(--s3); }
  .pin-step:first-child { min-height: 0; }
  .pin-tail { display: none; }
  .dots { display: none; }
  html.motion .screen { clip-path: none; }
  html.motion .screen:not(:first-child) { display: none; }

  /* A comparison table with four columns on a phone is four columns of nothing.
     Each row becomes its own block with the plan names carried into the cells
     by their data-for. */
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding-block: var(--s2); border-top: 1px solid var(--rule, color-mix(in srgb, var(--ink) 16%, transparent)); }
  .compare tbody th { border: 0; padding: 0 0 6px; }
  .compare td { border: 0; padding: 3px 0; text-align: left; font-size: 15px; }
  .compare td::before { content: attr(data-for) " "; font-weight: 800; color: var(--dim, var(--ink-2)); }
  .compare-group th { padding-top: var(--s3); }
}

@media (max-width: 620px) {
  :root { --bar: 62px; }
  .pill { gap: var(--s2); padding-inline: var(--s2); }
  .pill.tight { height: 54px; }
  .pill-mark { font-size: 19px; gap: 7px; }
  .pill-louie { width: 30px; height: 27px; }
  .pill.tight .pill-louie { width: 26px; height: 23px; }
  .pill-links { gap: 14px; }
  .pill-links a { font-size: 14px; }
  .pill .slab--sm { padding: 9px 13px; font-size: 13px; --depth: 3px; }
  .pill-who--face { padding: 4px 12px; }
  .pill-who--face .pill-who-louie { width: 26px; height: 26px; }

  .card { grid-template-columns: 1fr; }
  .card .louie-md { grid-row: auto; width: 120px; }
  .serves { flex-wrap: wrap; row-gap: var(--s1); }
  .serves-say { flex: 1 1 auto; font-size: 14px; }
  .serves-louie { display: none; }
  .panel-h { font-size: 17px; padding-inline: var(--s2); }
  .panel-h span { font-size: 13px; }
  .panel-b { padding: var(--s2); }
  .step-feet { flex-wrap: wrap; row-gap: var(--s2); }
  .timer { margin-left: 0; }
  .plans { grid-template-columns: 1fr; }
  .acct-card, .order-card, .gate-card { padding: var(--s2); }
  .acct-rows { margin-inline: calc(var(--s2) * -1); padding-inline: var(--s2); }
  .row { gap: var(--s2); }
  .cadence-toggle { flex-wrap: wrap; }
  .foot-nav { grid-template-columns: 1fr; gap: var(--s3); }
  .foot-end { flex-direction: column; }
  .foot-state { text-align: left; }
}

/* Narrower than any phone sold, and the wordmark is the first thing that can
   go: the mascot alone still says whose site this is. */
@media (max-width: 400px) {
  .pill-mark { font-size: 0; gap: 0; }
  .pill-louie { width: 34px; height: 31px; }
  .pill-links { gap: 11px; }
}

