/* Plateflow site. Concept: the label your cooking never came with.
   One stylesheet, tokens first. See DESIGN.md for the system. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.64b6c50f.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('fonts/martian-mono.a66b939e.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap does not move the page */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 98%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Martian Fallback';
  src: local('Menlo'), local('Consolas'), local('Courier New');
  size-adjust: 96%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* palette, sampled from the bowl and the app */
  --paper: #F2F3EE;
  --paper-hi: #FCFCF9;
  --steam: #E4E6DE;
  --ink: #111213;
  --ink-2: #1D1E20;
  --tomato: #D63B22;
  --tomato-deep: #B52D15;
  --tomato-lit: #FF6A4D;
  --pistachio: #CBDD52;
  --pistachio-lit: #D8E86A;

  /* roles (light) */
  --bg: var(--paper);
  --bg-2: var(--steam);
  --fg: var(--ink);
  --fg-2: #51544E;
  --rule: rgba(17, 18, 19, 0.18);
  --accent: var(--tomato-deep);
  --accent-fill: var(--tomato);
  --hi: var(--pistachio);
  --on-hi: var(--ink);
  --hl-blend: multiply;
  --hi-tint: color-mix(in srgb, var(--hi) 22%, transparent);

  /* type */
  --f-display: 'Archivo', 'Archivo Fallback', 'Arial Narrow', Arial, sans-serif;
  --f-text: 'Archivo', 'Archivo Fallback', Arial, sans-serif;
  --f-mono: 'Martian Mono', 'Martian Fallback', ui-monospace, Menlo, monospace;
  --t-mega: clamp(4.2rem, 19.6vw, 9rem);
  --t-xl: clamp(2.9rem, 10.4vw, 8.5rem);
  --t-l: clamp(1.9rem, 4.6vw, 3.6rem);
  --t-m: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-s: 0.875rem;
  --t-xs: 0.72rem;

  /* space and shape */
  --gutter: clamp(1rem, 3.4vw, 3rem);
  --gap: clamp(0.75rem, 1.6vw, 1.5rem);
  --sec: clamp(5rem, 13vw, 12rem);
  --heavy: clamp(6px, 0.7vw, 10px);
  --top-h: 3.5rem;

  /* motion: print and tally */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.8, 0.3);
  --d-1: 0.18s;
  --d-2: 0.42s;
  --d-3: 0.8s;
  --d-4: 1.2s;

  --z-top: 50;
  --z-menu: 40;
}

/* Dark: theme.js sets data-theme in <head> before the first paint, from the saved choice or the system setting.
   Without script the page stays light. */
:root[data-theme='dark'] {
  --bg: #0F1011;
  --bg-2: #191A1C;
  --fg: #F2F3EE;
  --fg-2: #A9ACA4;
  --rule: rgba(242, 243, 238, 0.2);
  --accent: var(--tomato-lit);
  --accent-fill: var(--tomato);
  --hi: var(--pistachio-lit);
  --hl-blend: screen;
  --hi-tint: color-mix(in srgb, var(--hi) 9%, transparent);
}
@media (min-width: 60em) {
  :root { --top-h: 4rem; --t-mega: clamp(7rem, 14.1vw, 17.5rem); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--t-body);
  font-stretch: 100%;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--pistachio); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.defs { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 112rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: var(--gutter); top: 0.5rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--fg); color: var(--bg);
  font-size: var(--t-s); font-weight: 600;
  translate: 0 -200%;
}
.skip:focus { translate: 0 0; }

/* Display voice: the label */
h1, h2 {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.86;
  text-wrap: balance;
}
h2 { font-size: var(--t-xl); margin-left: -0.03em; }
h3 { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; line-height: 1; letter-spacing: -0.005em; }
.lead { font-size: var(--t-m); line-height: 1.32; font-weight: 450; max-width: 34ch; text-wrap: pretty; }
p { text-wrap: pretty; }
p a, .faq-a a, .legal-body a, .legal a {
  text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.18em;
  transition: text-decoration-thickness var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
p a:hover, .legal a:hover { text-decoration-thickness: 0.2em; }
p a, .legal-body a { padding-block: 0.32em; }

/* Data voice: every figure is tabular */
.num, dt, .panel-recipe, .panel-note { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.brand-svg { height: 1.75rem; width: auto; }
.p-bar { fill: currentColor; }
.p-ring { fill: none; stroke: currentColor; stroke-width: 12; }
.p-wave { fill: var(--accent-fill); }
.brand-word { fill: currentColor; }
.brand .p-wave { transition: translate var(--d-3) var(--ease); }
.brand .brand-word { transition: translate var(--d-2) var(--ease); }
@media (hover: hover) {
  .brand:hover .p-wave { translate: 0 -22px; }
  .top .brand:hover .brand-word { translate: 10px 0; }
}
.brand:focus-visible .p-wave { translate: 0 -22px; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-top);
  height: var(--top-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--gap);
  padding-inline: var(--gutter);
  background: var(--bg); color: var(--fg);
  border-bottom: 2px solid var(--fg);
  transition: translate var(--d-2) var(--ease);
}
html.top-away:not(.menu-open) .top { translate: 0 -102%; }
.top-nav { display: none; justify-self: end; }
.top-nav ul { display: flex; gap: clamp(0.3rem, 1.1vw, 1.15rem); }
.top-nav a, .foot-links a, .menu-btn, .chip { font-size: var(--t-s); font-weight: 600; text-decoration: none; }
.top-nav a { display: inline-flex; align-items: center; height: 2.75rem; padding-inline: 0.3rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.45em; transition: text-decoration-color var(--d-1) var(--ease); }
.top-nav a[aria-current], .top-nav a:focus-visible { text-decoration-color: currentColor; }
@media (hover: hover) { .top-nav a:hover { text-decoration-color: currentColor; } }

.top-tools { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.chip { display: none; align-items: center; gap: 0.5rem; height: 2rem; white-space: nowrap; margin-inline: 0.4rem 0.2rem; }
.chip::before { content: ''; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent-fill); }
.theme-toggle, .step-btn {
  position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; overflow: hidden; isolation: isolate;
}
.theme-toggle svg, .step-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle::before, .step-btn::before, .btn::before, .menu-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  scale: 1 0; transform-origin: 50% 100%; transition: scale var(--d-2) var(--ease);
}
.theme-toggle { border: 1.5px solid currentColor; width: 2.25rem; height: 2.25rem; transition: color var(--d-2) var(--ease), rotate var(--d-3) var(--ease); }
.theme-toggle::after { content: ''; position: absolute; inset: -0.3rem; }
.theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }
@media (hover: hover) {
  .theme-toggle:hover { color: var(--bg); rotate: 30deg; }
  .theme-toggle:hover::before { scale: 1 1; }
}
.theme-toggle:active, .step-btn:active, .btn:active, .menu-btn:active { scale: 0.94; }
.menu-btn {
  position: relative; isolation: isolate; overflow: hidden;
  height: 2.25rem; padding: 0 0.9rem; border: 1.5px solid currentColor; border-radius: 99px;
  transition: color var(--d-2) var(--ease);
}
.menu-btn-close { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn-open { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn-close { display: inline; }
@media (hover: hover) {
  .menu-btn:hover { color: var(--bg); }
  .menu-btn:hover::before { scale: 1 1; }
}
@media (min-width: 64em) {
  .top-nav { display: block; }
  .menu-btn { display: none; }
  .chip { display: inline-flex; }
}
@media (min-width: 26em) { .chip { display: inline-flex; } }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--fg); color: var(--bg);
  padding: calc(var(--top-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu ul { border-top: var(--heavy) solid currentColor; }
.menu li { border-bottom: 2px solid currentColor; overflow: hidden; }
.menu a {
  display: block; padding: 0.14em 0 0.06em;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 13.5vw, 5rem); line-height: 0.95; text-decoration: none;
  transition: translate var(--d-2) var(--ease), color var(--d-1);
}
.menu a:hover, .menu a:focus-visible { translate: 0.12em 0; color: var(--pistachio); }
html.motion .menu a { animation: feed var(--d-3) var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.menu-note { margin-top: 2rem; font-size: var(--t-m); font-weight: 600; }
@keyframes feed { from { translate: 0 105%; } to { translate: 0 0; } }

/* ---------- Reveal system (only when html.motion is set by theme.js) ---------- */
html.motion [data-reveal] { opacity: 0; translate: 0 1.5rem; }
html.motion [data-reveal].is-in { opacity: 1; translate: 0 0; transition: opacity var(--d-3) var(--ease), translate var(--d-3) var(--ease); transition-delay: var(--dl, 0s); }
.pr { display: block; }
html.motion [data-print] .pr { clip-path: inset(0 0 100% 0); }
html.motion [data-print].is-in .pr { animation: print var(--d-3) steps(7, end) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-0.1em -0.1em -0.2em -0.1em); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: var(--top-h); min-height: 100svh; display: flex; overflow: clip; }
.hero-in { position: relative; display: flex; flex-direction: column; padding-top: clamp(0.9rem, 2.4vw, 2rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.hero-h { font-size: var(--t-mega); line-height: 0.84; margin-left: -0.035em; position: relative; z-index: 3; pointer-events: none; }
.ln { display: block; overflow: hidden; padding-top: 0.04em; margin-top: -0.04em; white-space: nowrap; position: relative; }
.ln-pair { display: block; position: relative; z-index: 3; }
.ln-i { display: block; }
/* line one is the LCP element: it paints at once, the lines under it feed in */
html.motion .ln-pair .ln-i { animation: feed 0.9s var(--ease) both; }
html.motion .ln-pair .ln:first-child .ln-i { animation-delay: 0.08s; }
html.motion .ln-pair .ln:last-child .ln-i { animation-delay: 0.16s; }

/* The plate: a real photograph in the brand mark's ring. The 404 page reuses the ring around a zero. */
.plate { position: relative; aspect-ratio: 1; border-radius: 50%; }
.plate::before {
  content: ''; position: absolute; inset: -5.5%; border-radius: 50%;
  border: clamp(5px, 1.5cqi, 16px) solid var(--fg); pointer-events: none;
}
.plate-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.hero-lead { display: grid; gap: 1rem; margin-top: clamp(1.25rem, 4vw, 2rem); max-width: 30rem; }
/* the one call to action before launch: a plain mailto, so no form, no service and no change to the CSP */
.btn.btn-notify {
  min-height: 3rem; padding-inline: 1.4rem; text-decoration: none;
  font-size: 1rem; font-weight: 650;
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.btn.btn-notify::before { background: var(--tomato-deep); }
@media (hover: hover) { .btn.btn-notify:hover { color: #fff; border-color: var(--tomato-deep); } }

/* The annotated plate: the recipe as a label. A photograph in the brand's ring, with its numbers called out
   on fine leader lines. Nothing here depends on hover or press. */
.hero { --anno-plate-max: 18.5rem; } /* the fallback photo is 256 px, so the plate is never shown larger than this */
.anno { width: 100%; max-width: calc(var(--anno-plate-max) / 0.54); margin: clamp(1.1rem, 3.4vw, 1.75rem) auto 0; border-top: var(--heavy) solid var(--fg); }
.anno-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.55rem 0 0.5rem; border-bottom: 2px solid var(--fg); }
.panel-title { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; }
.panel-recipe, dt, .unit {
  font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); line-height: 1.35;
}
.panel-recipe { text-align: right; max-width: 24ch; }
.panel-note { margin-top: 0.6rem; color: var(--fg-2); max-width: 46ch; font-size: var(--t-s); line-height: 1.4; }
.anno-body { position: relative; aspect-ratio: 1; container-type: inline-size; margin-top: 0.4rem; }
.anno-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anno-lines-w { display: none; }
.anno-lines path { fill: none; stroke: var(--fg); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.anno-lines circle { fill: var(--fg); }
.anno-plate { position: absolute; left: 28%; top: 50%; width: 54%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--fg); }
.anno-photo, .anno-plate::after { position: absolute; inset: 6.5%; width: 87%; height: 87%; border-radius: 50%; }
.anno-photo { object-fit: cover; filter: contrast(1.05) saturate(1.06); }
/* a fine printed screen over the photograph: it reads as print, and keeps a small photo from looking soft */
.anno-plate::after { content: ''; pointer-events: none; background: radial-gradient(circle, rgba(17, 18, 19, 0.3) 0.55px, transparent 0.85px) 0 0 / 3px 3px; mix-blend-mode: multiply; opacity: 0.55; }

.ac { position: absolute; display: flex; flex-direction: column-reverse; gap: 0.15rem; translate: 0 -40%; }
.ac dt { text-transform: uppercase; letter-spacing: 0.03em; color: var(--fg-2); }
.ac dd { display: flex; align-items: baseline; gap: 0.3rem; margin: 0; }
.ac .num { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; line-height: 1; font-size: 9.2cqi; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.unit { font-weight: 500; }
.ac-kcal { left: 64%; top: 14%; }
.ac-p { left: 64%; top: 31%; }
.ac-f { left: 64%; top: 48%; }
.ac-c { left: 64%; top: 65%; }
.ac-cost { left: 64%; top: 85%; translate: 0 -50%; background: var(--hi); color: var(--on-hi); padding: 0.25rem 0.55rem 0.3rem; flex-direction: column; gap: 0; }
.ac-cost dt { color: inherit; order: 2; }
.ac-cost .num { font-size: 12cqi; }

html.motion .anno-plate { animation: plate-in var(--d-3) var(--ease) both; }
@keyframes plate-in { from { scale: 0.86; opacity: 0; } to { scale: 1; opacity: 1; } }
html.motion .ac { animation: ac-in var(--d-3) var(--ease) both; animation-delay: calc(0.25s + var(--n, 0) * 0.09s); }
@keyframes ac-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
html.motion .ac:nth-child(2) { --n: 1; } html.motion .ac:nth-child(3) { --n: 2; } html.motion .ac:nth-child(4) { --n: 3; } html.motion .ac:nth-child(5) { --n: 4; }
html.motion .anno-lines g { animation: lines-in 0.6s steps(5, end) both 0.45s; }
@keyframes lines-in { from { opacity: 0; } to { opacity: 1; } }

/* rolling digits */
.rd { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.rd-s { display: block; transition: transform var(--d-4) var(--ease); will-change: transform; }
.rd-s > b { display: block; height: 1em; font-weight: inherit; }
.rd-x { display: inline-block; line-height: 1; height: 1em; vertical-align: top; }

@media (min-width: 60em) {
  .hero-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap); width: 100%; }
  .hero-h { grid-column: 1 / -1; grid-row: 1; }
  .ln-pair .ln { display: inline-block; vertical-align: top; }
  .hero-lead { grid-column: 1 / span 4; grid-row: 2; align-self: end; margin: 1.5rem 0 clamp(1.5rem, 3vw, 2.5rem); }
  /* the plate and its callouts have to fit under the headline on the first screen */
  .anno {
    grid-column: 5 / -1; grid-row: 2; justify-self: end; margin: 0.5rem 0 0;
    max-width: none;
    width: min(100%, calc(var(--anno-plate-max) / 0.34), max(32rem, calc((100svh - var(--top-h) - 2.6rem - 1.7 * var(--t-mega) - 6.5rem) * 160 / 90)));
  }
  .anno-body { aspect-ratio: 160 / 90; margin-top: 0.3rem; }
  .panel-recipe { max-width: none; }
  .panel-note { max-width: none; margin-top: 0.4rem; }
  .anno-lines-w { display: block; }
  .anno-lines-t { display: none; }
  .anno-plate { left: 50%; top: 35.6%; width: 34%; }
  .ac .num { font-size: 8.6cqi; }
  .ac-kcal, .ac-p { right: 72.5%; left: auto; align-items: flex-end; text-align: right; }
  .ac-f, .ac-c { left: 72.5%; }
  .ac-kcal, .ac-f { top: 16.1%; }
  .ac-p, .ac-c { top: 55%; }
  .ac-cost { left: 50%; top: 73.3%; translate: -50% 0; flex-direction: row; align-items: baseline; gap: 0.5rem; padding: 0.2rem 0.8rem 0.3rem; }
  .ac-cost .num { font-size: 11cqi; }
  .ac dt, .unit { font-size: clamp(0.72rem, 1.6cqi, 0.9rem); }
}

/* ---------- Cost: the docket ---------- */
.cost { background: var(--pistachio); color: var(--ink); --fg: var(--ink); --bg: var(--pistachio); --fg-2: #3D4319; --rule: rgba(17, 18, 19, 0.22); --accent: var(--ink); padding-block: var(--sec); position: relative; }
.cost-copy { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.cost-copy h2 { max-width: 9ch; }

.till {
  position: sticky; top: var(--top-h); z-index: 5;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.9rem;
  margin-inline: calc(var(--gutter) * -1); padding: 0.6rem var(--gutter);
  background: var(--pistachio); border-block: 2px solid var(--ink);
  transition: top var(--d-2) var(--ease);
}
html.top-away .till { top: 0; }
html.motion .till { transition: top var(--d-2) var(--ease), opacity var(--d-2) var(--ease); }
html.motion .till.is-empty { opacity: 0; }
.plate-till { width: 3.5rem; container-type: inline-size; background: var(--paper-hi); }
.plate-till::before { border-width: 3px; inset: -7%; }
.till-read { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0.75rem; }
.till-k { grid-column: 1 / -1; font-family: var(--f-mono); font-stretch: 80%; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.03em; }
.till-n { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: 1; }
.till-m { display: flex; flex-wrap: wrap; gap: 0 0.6rem; font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); }
.till-m b { font-weight: 700; }

.docket {
  position: relative; isolation: isolate; margin-top: 1.75rem;
  padding: clamp(1.25rem, 3.2vw, 2.75rem); padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
  color: var(--ink); --fg: var(--ink); --fg-2: #51544E; --rule: rgba(17, 18, 19, 0.18); --accent: var(--tomato-deep); --bg: var(--paper-hi);
  filter: drop-shadow(0 1.2rem 1.6rem rgba(40, 48, 8, 0.28));
}
.docket::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper-hi);
  --z: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.docket::after { /* the printer's mouth */
  content: ''; position: absolute; left: -0.6rem; right: -0.6rem; top: -0.45rem; height: 0.9rem; background: var(--ink); border-radius: 0.45rem; z-index: 1;
}
.docket-head { display: grid; gap: 0.6rem; padding-bottom: 1.1rem; border-bottom: var(--heavy) solid var(--ink); }
.docket-brand .brand-svg { height: 1.4rem; }
.docket h3 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 0.9; text-wrap: balance; }
.docket-meta, .line-b, .ctl-title, .stepper-label, .sum-row > span:first-child, .sum-macros {
  font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); line-height: 1.45;
}
.docket-meta { display: flex; flex-wrap: wrap; gap: 0 1.1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.line { position: relative; padding: 0.9rem 0 0.85rem; border-bottom: 1px dashed rgba(17, 18, 19, 0.38); }
.line-a { display: flex; align-items: baseline; gap: 0.5rem; }
.line-name { font-weight: 650; font-size: 1.06rem; line-height: 1.2; }
.line-dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(17, 18, 19, 0.4); translate: 0 -0.2em; }
.line-cost { font-family: var(--f-mono); font-stretch: 87.5%; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.line-b { display: flex; flex-wrap: wrap; gap: 0 0.9rem; margin-top: 0.3rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
html.motion .docket.is-armed .line:not(.is-in) > * { clip-path: inset(0 0 100% 0); }
html.motion .docket.is-armed .line.is-in > * { animation: print 0.45s steps(5, end) both; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.85rem;
  border: 1.5px solid currentColor; border-radius: 99px;
  font-size: var(--t-s); font-weight: 600;
  transition: color var(--d-2) var(--ease), background-color var(--d-2) var(--ease), scale var(--d-1) var(--ease);
}
@media (hover: hover) {
  .btn:hover { color: var(--paper-hi); }
  .btn:hover::before { scale: 1 1; }
  .step-btn:hover { color: var(--paper-hi); }
  .step-btn:hover::before { scale: 1 1; }
}

.sum { margin-top: 0.25rem; border-bottom: var(--heavy) solid var(--ink); }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-top: 2px solid var(--ink); }
.sum-row > span:first-child { text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.sum-macros { display: none; gap: 0 0.8rem; margin-left: auto; color: var(--fg-2); }
.sum-macros b { color: var(--ink); }
.sum-row .num { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1; }
.sum-total .num { background: linear-gradient(var(--pistachio), var(--pistachio)) 0 100% / 100% 62% no-repeat; padding-inline: 0.12em; }

.docket-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1.1rem 0 1.2rem; border-bottom: 1px dashed rgba(17, 18, 19, 0.38); }
.ctl-title { flex-basis: 100%; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; color: var(--tomato-deep); }
.stepper { display: flex; align-items: center; gap: 0.6rem; }
.stepper-label { text-transform: uppercase; letter-spacing: 0.03em; margin-right: 0.3rem; }
.step-btn { border: 1.5px solid currentColor; transition: color var(--d-2) var(--ease), scale var(--d-1) var(--ease); }
.step-btn::before { background: var(--ink); }
.step-btn[disabled] { opacity: 0.3; cursor: default; }
.step-btn[disabled]::before { display: none; }
.step-btn[disabled]:hover { color: inherit; }
.step-btn[disabled]:active { scale: 1; }
.stepper-n { min-width: 1.4ch; text-align: center; font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: 2.25rem; line-height: 1; }
.btn::before { background: var(--ink); }
.docket-note { margin-top: 1rem; color: var(--fg-2); font-size: var(--t-s); line-height: 1.45; }

@media (min-width: 34em) { .sum-macros { display: flex; } }
@media (min-width: 60em) {
  .cost-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap); align-items: start; }
  .cost-copy { grid-column: 1 / span 6; grid-row: 1; margin-bottom: clamp(2rem, 5vw, 4rem); }
  .till {
    grid-column: 1 / span 5; grid-row: 2; top: calc(var(--top-h) + 2rem);
    margin: 0; padding: 1.25rem 0 0; border: 0; border-top: var(--heavy) solid var(--ink); background: none;
    grid-template-columns: clamp(9rem, 15vw, 15rem) 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
    transition: none;
  }
  html.top-away .till { top: calc(var(--top-h) + 2rem); }
  .plate-till { width: 100%; margin: 6%; max-width: 88%; }
  .plate-till::before { border-width: clamp(5px, 2.6cqi, 9px); inset: -6%; }
  .till-read { grid-template-columns: 1fr; row-gap: 0.4rem; }
  .till-k { font-size: var(--t-xs); }
  .till-n { font-size: clamp(4.5rem, 9.5vw, 10rem); line-height: 0.9; }
  .till-m { font-size: var(--t-s); gap: 0 1rem; }
  .docket { grid-column: 7 / -1; grid-row: 1 / span 2; margin-top: 0.5rem; rotate: -1.1deg; }
}

/* ---------- Screens: the reel ---------- */
.screens { background: var(--bg-2); border-block: 2px solid var(--fg); position: relative; }
.screens-pin { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; overflow: clip; }
.screens-head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.reel { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter); }
/* with a mouse and no pinned pan (reduced motion, no script) the reel needs a scrollbar to be reachable */
@media (hover: hover) and (pointer: fine) {
  .reel:not(.is-pan) { scrollbar-width: thin; scrollbar-color: var(--fg) var(--rule); padding-bottom: 1rem; }
  .reel:not(.is-pan) + .reel-bar { display: none; }
}
.reel:focus-visible { outline-offset: -4px; }
.reel-track { display: flex; gap: clamp(1.25rem, 5vw, 6rem); padding-inline: var(--gutter); width: max-content; }
.shot { flex: 0 0 auto; width: min(66vw, 17rem); scroll-snap-align: start; }
.shot figure { display: grid; gap: 1.1rem; }
.shot-img { position: relative; }
.shot-img img { width: 100%; filter: drop-shadow(0 1.4rem 1.6rem rgba(0, 0, 0, 0.22)); }
.hl { position: absolute; background: var(--pistachio); mix-blend-mode: var(--hl-blend); border-radius: 2px; transform-origin: 0 50%; opacity: 0.9; }
:root[data-theme='dark'] .hl { opacity: 0.55; }
html.motion .hl { scale: 0 1; transition: scale var(--d-3) var(--ease) 0.25s; }
html.motion .shot.is-in .hl { scale: 1 1; }
.hl-home { left: 11.5%; top: 71.0%; width: 31.7%; height: 1.6%; }
.hl-recipes { left: 9.2%; top: 87.3%; width: 19.8%; height: 1.6%; }
.hl-ingredients { left: 9.1%; top: 38.0%; width: 54.2%; height: 1.6%; }
.hl-plan { left: 69.8%; top: 49.8%; width: 20.1%; height: 1.6%; }
.hl-shopping { left: 32.8%; top: 34.1%; width: 39.3%; height: 1.4%; }
/* the heading is sized to its own column (the longest, 4 INGREDIENTS, is 5.4em wide), so it can never run into the next phone */
.shot figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; row-gap: 0.4rem; align-items: baseline; container-type: inline-size; }
.shot-n { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: min(2.6rem, calc((100cqi - 0.7rem) / 5.6)); line-height: 0.85; color: var(--accent); }
.shot h3 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: min(2.6rem, calc((100cqi - 0.7rem) / 5.6)); line-height: 0.85; }
.shot p { grid-column: 1 / -1; font-size: var(--t-s); line-height: 1.45; color: var(--fg-2); max-width: 30ch; }
.reel-bar { height: 2px; background: var(--rule); margin: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) 0; position: relative; overflow: hidden; }
.reel-bar-fill { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; scale: 0.2 1; }

@media (min-width: 60em) {
  .screens-pin { min-height: 100svh; padding-block: calc(var(--top-h) + 1.5rem) 2rem; justify-content: space-between; }
  .screens-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: 1.5rem; }
  .screens-head h2 { grid-column: 1 / span 9; font-size: clamp(3rem, 7vw, 7.25rem); }
  html.motion .reel.is-pan { overflow: visible; scroll-snap-type: none; }
  .reel-track { gap: clamp(4rem, 9vw, 10rem); align-items: flex-start; }
  .shot { width: auto; }
  .shot figure { grid-template-columns: auto clamp(14rem, 21vw, 24rem); gap: clamp(1.5rem, 2.2vw, 2.5rem); align-items: end; }
  .shot-img img { height: min(58svh, 40rem); width: auto; }
  .shot:nth-child(even) { margin-top: clamp(1.5rem, 5svh, 3.5rem); }
  .shot:nth-child(even) figure { align-items: start; }
  .shot-n, .shot h3 { font-size: min(clamp(3rem, 4.6vw, 5rem), calc((100cqi - 0.7rem) / 5.6)); }
}

/* ---------- iPhone Duo: the unfold ---------- */
.duo { background: var(--fg); color: var(--bg); --rule: color-mix(in srgb, var(--bg) 22%, transparent); padding-bottom: clamp(3rem, 6vw, 5.5rem); overflow: clip; }
.duo :focus-visible { outline-color: var(--pistachio); }
.duo-pin { padding-top: clamp(4rem, 9vw, 7rem); }
.duo-head { display: grid; gap: 1.25rem; }
.duo-head p { max-width: 44ch; font-size: var(--t-m); line-height: 1.35; opacity: 0.82; }
/* below 60em the device is a still picture, so the stage is only as tall as its content */
.duo-stage { display: grid; place-items: center; gap: 1.25rem; padding: clamp(2rem, 6vw, 3rem) var(--gutter) 1.5rem; }
.fold-box { position: relative; width: min(100%, 68rem, 118svh); aspect-ratio: 1280 / 930; perspective: 2600px; }
/* The fold is laid out larger than its box and scaled down as it opens, so it is sharp at every step. */
.fold { --fold-s: 1; position: absolute; left: calc(50% - 50% * var(--fold-s)); top: calc(50% - 50% * var(--fold-s)); width: calc(100% * var(--fold-s)); aspect-ratio: 1280 / 930; transform-style: preserve-3d; }
.fold-static, .fold-3d { position: absolute; inset: 0; }
.fold-3d { display: none; transform-style: preserve-3d; }
.fold.is-3d .fold-3d { display: block; }
.fold.is-3d .fold-static { display: none; }

/* still view: the open device, or the closed one when the visitor asks (reduced motion, no script) */
.fold-view { position: absolute; inset: 0; transition: opacity var(--d-2) var(--ease), visibility var(--d-2); }
.fold-view picture { display: block; height: 100%; }
.fold-view-open img { width: 100%; height: 100%; }
.fold-view-closed { opacity: 0; visibility: hidden; }
.fold-view-closed img { height: 100%; width: auto; margin-inline: auto; }
.fold.is-closed .fold-view-open { opacity: 0; visibility: hidden; }
.fold.is-closed .fold-view-closed { opacity: 1; visibility: visible; }
.fold-toggle { justify-self: center; min-height: 2.75rem; padding-inline: 1.25rem; }
.duo .btn::before { background: var(--bg); }
@media (hover: hover) { .duo .btn:hover { color: var(--fg); } }

/* the unfold: the cover is the right half of the open device, hinged on its left edge */
/* the two halves overlap by 1px at the hinge so no hairline shows between them when open */
.fold-base, .fold-cover { position: absolute; left: calc(50% - 1px); top: 0; width: calc(50% + 1px); height: 100%; }
.fold-base { overflow: hidden; }
.fold-cover { transform-origin: 1px 50%; transform-style: preserve-3d; transform: translateZ(1px); }
.fold-front, .fold-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fold-back { overflow: hidden; transform: rotateY(180deg); }
.fold-base picture, .fold-back picture { display: block; }
.fold-base img, .fold-back img { position: absolute; top: 0; height: 100%; width: calc(200% - 2px); max-width: none; }
.fold-base img { left: calc(-100% + 2px); }
.fold-back img { left: 0; }
/* the closed device: the real outer display. The shell stays put; the screen layer fades and blurs out over a dark screen. */
.fold-front { --screen: inset(2.76% 3.52% 2.1% 5.09% round 1.6% 16.8% 16.8% 1.6% / 1.1% 11.6% 11.6% 1.1%); }
.fold-front picture { display: block; position: absolute; left: 0; top: 2.68%; height: 94.6%; width: 98.5%; }
.fold-front img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.fold-black, .fold-livewrap, .fold-spec { position: absolute; left: 0; top: 2.68%; height: 94.6%; width: 98.5%; pointer-events: none; }
.fold-black { background: #000; clip-path: var(--screen); }
.fold-livewrap { clip-path: var(--screen); }
.fold-livewrap picture { inset: 0; top: 0; height: 100%; width: 100%; }
.fold-spec { clip-path: var(--screen); opacity: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%) 0 0 / 260% 100%; }
.fold-cast { position: absolute; inset: 2.68% 3.9% 2.68% 0; border-radius: 0 14.7% 14.7% 0 / 0 10.2% 10.2% 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent 62%); opacity: 0; pointer-events: none; }
.fold-crease { position: absolute; left: calc(50% - 1.3%); width: 2.6%; top: 2.68%; bottom: 2.68%; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.6) 50%, transparent); opacity: 0; pointer-events: none; transform: translateZ(0.5px); }
.fold-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); width: min(100%, 68rem, 118svh); }
.fold-note { font-size: var(--t-s); line-height: 1.4; max-width: 26ch; }
.fold-note-r { justify-self: end; text-align: right; }
.fold-note-k { display: block; font-weight: 700; color: var(--pistachio-lit); margin-bottom: 0.2rem; }
:root[data-theme='dark'] .fold-note-k { color: var(--tomato-deep); }
.duo-more { display: grid; gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(1rem, 3vw, 2.5rem); }
.duo-fig img { width: 100%; }
.duo-fig figcaption { margin-top: 0.75rem; font-size: var(--t-s); opacity: 0.82; }
/* each device shows whole and fits one screen height, whatever the window's shape */
.duo-fig-shop { width: min(82%, 78svh * 930 / 1280); }
.duo-fig-cat, .duo-fig-lib, .duo-fig-plan { width: min(100%, 78svh * 1280 / 930); }
/* where a figure is narrower than the column they step left, right, left, as on wide screens */
.duo-fig-cat { justify-self: end; }
@media (min-width: 60em) {
  .duo-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .duo-head h2 { grid-column: 1 / span 8; font-size: clamp(3rem, 7vw, 7.25rem); }
  .duo-head p { grid-column: 9 / -1; font-size: var(--t-body); }
  .duo-stage { min-height: 100svh; align-content: center; gap: 1.5rem; padding-top: calc(var(--top-h) + 1rem); }
  .fold-box, .fold-notes { width: min(100%, 68rem, 92svh); }
  .duo-more { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .duo-fig-shop { grid-column: 1 / span 4; grid-row: 1 / span 2; }
  .duo-fig-cat { grid-column: 6 / -1; grid-row: 1; }
  .duo-fig-lib { grid-column: 5 / span 6; grid-row: 2; margin-top: clamp(1rem, 3vw, 3rem); }
  .duo-fig-plan { grid-column: 2 / span 7; grid-row: 3; margin-top: clamp(1rem, 3vw, 3rem); }
}

/* ---------- Features: the index ---------- */
.features { padding-block: clamp(4rem, 9vw, 8rem) var(--sec); position: relative; }
.features-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.index { border-top: var(--heavy) solid var(--fg); }
.row { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0.5rem; align-items: start; padding: clamp(1.1rem, 2.2vw, 1.75rem) 0; border-bottom: 2px solid var(--fg); transition: color var(--d-2) var(--ease); }
.row::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--hi); scale: 1 0; transform-origin: 50% 100%; transition: scale var(--d-2) var(--ease); }
.row h3 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: var(--t-l); line-height: 0.92; transition: translate var(--d-2) var(--ease); text-wrap: balance; }
.row > p { grid-column: 1 / -1; color: var(--fg-2); max-width: 44ch; transition: color var(--d-2) var(--ease); }
.tier { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0.3em; font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.3rem 0.6rem; border: 1.5px solid currentColor; border-radius: 99px; white-space: nowrap; }
.tier-p { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .row:hover { color: var(--on-hi); }
  .row:hover > p { color: var(--on-hi); }
  .row:hover::before { scale: 1 1; }
  .row:hover h3 { translate: 0.3em 0; }
  .row:hover .tier-p { background: var(--ink); color: var(--pistachio); border-color: var(--ink); }
}
.nest { grid-column: 1 / -1; display: grid; justify-items: start; gap: 0; margin-top: 0.5rem; font-size: var(--t-s); line-height: 1.3; }
.nest span { padding: 0.5rem 0.75rem; border: 1.5px solid currentColor; background: var(--bg); color: var(--fg); }
.nest .nest-b { margin-left: 1.5rem; margin-top: -1.5px; background: var(--hi); color: var(--on-hi); border-color: var(--fg); font-weight: 700; }
.nest-c { margin-left: 3rem; margin-top: -1.5px; }
@media (min-width: 60em) {
  .features-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .features-head h2 { grid-column: 1 / span 7; }
  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; }
  .row h3 { grid-column: 1 / span 6; }
  .row > p { grid-column: 7 / span 4; }
  .tier { grid-column: 11 / -1; justify-self: end; margin-top: 0; }
  .row-nest > p { grid-column: 7 / span 3; }
  .nest { grid-column: 10 / -1; grid-row: 1; margin-top: 0; align-self: center; }
}

/* ---------- Privacy: contains no ---------- */
.privacy { background: var(--tomato-deep); color: #fff; --fg: #fff; --accent: #fff; padding-block: var(--sec) clamp(4rem, 8vw, 7rem); }
.privacy ::selection { background: #fff; color: var(--tomato-deep); }
.privacy h2 { font-size: clamp(3.1rem, 12.4vw, 12rem); line-height: 0.84; max-width: 12ch; }
.privacy-side { margin-top: clamp(2rem, 5vw, 4rem); display: grid; gap: 2rem; }
.privacy .lead { max-width: 30ch; }
.facts { border-top: var(--heavy) solid currentColor; }
.facts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 2px solid currentColor; }
.fact-k { font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.facts p { font-size: var(--t-m); line-height: 1.3; max-width: 34ch; }
@media (min-width: 60em) {
  .privacy-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .privacy h2 { grid-column: 1 / -1; }
  .privacy-side { display: contents; }
  .privacy .lead { grid-column: 1 / span 4; }
  .privacy .facts { grid-column: 6 / -1; }
}

/* ---------- Pricing: two columns, like a panel ---------- */
.pricing { padding-block: var(--sec); }
.pricing-head { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.pricing-head p { color: var(--fg-2); max-width: 36ch; }
.pricing-head .trial { color: var(--fg); font-size: var(--t-m); font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.trial-n { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: 3rem; line-height: 0.9; letter-spacing: 0; background: var(--hi); color: var(--on-hi); padding: 0.08em 0.16em 0.02em; text-transform: uppercase; }
.plans { width: 100%; border-collapse: collapse; border-top: var(--heavy) solid var(--fg); }
.plans th, .plans td { padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.plans thead th { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; border-bottom: 2px solid var(--fg); padding-block: 0.7rem 0.6rem; }
.plans thead th:not(.plans-what), .plans td { text-align: center; width: clamp(4.6rem, 14vw, 9rem); }
.plans thead th:last-child { background: var(--hi); color: var(--on-hi); }
.plans td:last-child { background: var(--hi-tint); }
.plans tbody th { font-weight: 500; padding-left: 0; line-height: 1.3; }
.plans .plans-what { padding-left: 0; }
.plans tbody tr:last-child > * { border-bottom: 2px solid var(--fg); }
.yes, .no { display: inline-block; vertical-align: middle; }
.yes { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--fg); }
.yes-soon { background: none; border: 2.5px solid var(--fg); }
.no { width: 0.9rem; height: 2px; background: var(--fg-2); }
.pill { display: inline-block; margin-left: 0.4rem; padding: 0.15rem 0.5rem; border: 1.5px solid currentColor; border-radius: 99px; font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; vertical-align: 0.1em; }
.pricing-head .pricing-lead { color: var(--fg); font-size: var(--t-m); line-height: 1.32; max-width: 30ch; }
.price-note { margin-top: 1.25rem; font-size: var(--t-s); line-height: 1.5; color: var(--fg-2); max-width: 62ch; }
@media (min-width: 60em) {
  .pricing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pricing-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--top-h) + 2rem); margin: 0; }
  .pricing-head h2 { font-size: clamp(3rem, 6.4vw, 6.5rem); }
  .plans-wrap { grid-column: 7 / -1; }
  .trial-n { font-size: 4rem; }
}

/* ---------- FAQ ---------- */
.faq-sec { padding-bottom: var(--sec); }
.faq-grid > h2 { font-size: clamp(5rem, 22vw, 15rem); margin-bottom: 1.5rem; }
.faq { border-top: var(--heavy) solid var(--fg); }
.faq details { border-bottom: 2px solid var(--fg); position: relative; }
.faq summary { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; padding: 1.15rem 0; font-size: var(--t-m); font-weight: 650; line-height: 1.2; transition: color var(--d-2) var(--ease), padding var(--d-2) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; background: var(--hi); scale: 1 0; transform-origin: 50% 100%; transition: scale var(--d-2) var(--ease); }
.faq summary::after {
  content: ''; flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) 50% 50% / 0.7rem 2px no-repeat,
    linear-gradient(var(--bg), var(--bg)) 50% 50% / 2px 0.7rem no-repeat,
    var(--fg);
  transition: rotate var(--d-2) var(--ease), background-size var(--d-2) var(--ease);
}
.faq details[open] summary::after { rotate: 180deg; background-size: 0.7rem 2px, 2px 0, auto; }
@media (hover: hover) {
  .faq summary:hover { color: var(--on-hi); padding-inline: 0.5rem 0; }
  .faq summary:hover::before { scale: 1 1; }
  .faq summary:hover::after { background: linear-gradient(var(--hi), var(--hi)) 50% 50% / 0.7rem 2px no-repeat, linear-gradient(var(--hi), var(--hi)) 50% 50% / 2px 0.7rem no-repeat, var(--ink); }
  .faq details[open] summary:hover::after { background-size: 0.7rem 2px, 2px 0, auto; }
}
.faq summary:focus-visible { outline-offset: -3px; }
.faq-a, .faq details > p { padding: 0 0 1.4rem; max-width: 58ch; color: var(--fg-2); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--d-2) var(--ease), content-visibility var(--d-2) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq { interpolate-size: allow-keywords; } }
@media (min-width: 60em) {
  .faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .faq-grid > h2 { grid-column: 1 / span 5; position: sticky; top: calc(var(--top-h) + 1.5rem); margin: -0.06em 0 0 -0.03em; font-size: clamp(8rem, 19vw, 19rem); }
  .faq { grid-column: 6 / -1; }
}

/* ---------- End and footer ---------- */
.end { border-top: var(--heavy) solid var(--fg); padding-block: clamp(3rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem); overflow: clip; }
.end h2 { font-size: clamp(3.6rem, 15.5vw, 17rem); line-height: 0.82; }
.end-sub { margin-top: 1.5rem; font-size: var(--t-m); font-weight: 500; }
.end .notify { margin-top: 1.75rem; }
.end-sub .num { background: var(--hi); color: var(--on-hi); padding: 0.1em 0.35em; font-weight: 700; }
.foot { background: var(--fg); color: var(--bg); padding-block: clamp(2.5rem, 6vw, 5rem) calc(2rem + env(safe-area-inset-bottom)); }
.foot :focus-visible { outline-color: var(--pistachio); }
.foot-in { display: grid; gap: 2rem; }
.foot-brand { justify-self: start; }
.foot-brand .brand-svg { height: clamp(2rem, 3vw, 2.75rem); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.foot-links a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--t-s); }
.foot-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.6rem; height: 2px; background: currentColor; scale: 0 1; transform-origin: 0 50%; transition: scale var(--d-2) var(--ease); }
.foot-links a:hover::after, .foot-links a:focus-visible::after { scale: 1 1; }
.foot-legal { display: grid; gap: 0.4rem; font-size: var(--t-s); line-height: 1.5; max-width: 70ch; opacity: 0.82; }
@media (min-width: 60em) {
  .foot-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .foot-brand { grid-column: 1 / -1; margin-bottom: 0.5rem; }
  .foot-legal { grid-column: 1 / span 7; }
  .foot-nav { grid-column: 9 / -1; justify-self: end; grid-row: 2; }
}

/* ---------- Legal, support and 404 ---------- */
.legal-page { padding-top: calc(var(--top-h) + clamp(2rem, 6vw, 5rem)); padding-bottom: var(--sec); }
.legal { display: grid; gap: 0; }
.legal h1 { font-size: clamp(3.4rem, 13vw, 13rem); margin-left: -0.03em; }
.effective { margin-top: 1rem; padding-bottom: 1.25rem; border-bottom: var(--heavy) solid var(--fg); font-size: var(--t-s); font-weight: 600; }
.legal-body { max-width: 44rem; margin-top: 2rem; }
.legal-body > * + * { margin-top: 1rem; }
.legal-body h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 0.92; margin-top: 3.25rem; padding-top: 1rem; border-top: 2px solid var(--fg); }
.legal-body h3 { font-size: 1.3rem; margin-top: 2rem; }
.legal-body ul, .legal-body ol { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal-body li::marker { color: var(--accent); }
.legal-body .faq { margin-top: 1.25rem; }
.legal-body .faq summary { font-size: 1.1rem; }
.contact { margin-top: 2rem; max-width: 44rem; padding: 1.5rem; background: var(--hi); color: var(--on-hi); --accent: var(--ink); display: grid; gap: 0.75rem; }
.contact h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.legal-index { display: none; }
@media (min-width: 60em) {
  .legal { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .legal > * { grid-column: 1 / -1; }
  .legal > .legal-body, .legal > .contact { grid-column: 5 / span 7; }
  .legal-index { display: block; grid-column: 1 / span 3; grid-row: 3 / span 3; position: sticky; top: calc(var(--top-h) + 1.5rem); margin-top: 2rem; max-height: calc(100svh - var(--top-h) - 3rem); overflow-y: auto; }
  .legal-index p { font-size: var(--t-s); font-weight: 700; padding-bottom: 0.6rem; border-bottom: 2px solid var(--fg); }
  .legal-index ol { list-style: none; padding: 0; margin: 0; counter-reset: sec; }
  .legal-index li { counter-increment: sec; border-bottom: 1px solid var(--rule); }
  .legal-index a { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.25rem; padding: 0.55rem 0.4rem 0.55rem 0; font-size: var(--t-s); line-height: 1.35; text-decoration: none; transition: color var(--d-2) var(--ease), padding var(--d-2) var(--ease); }
  .legal-index a::before { content: counter(sec, decimal-leading-zero); font-family: var(--f-mono); font-stretch: 80%; font-size: var(--t-xs); line-height: 1.9; color: var(--accent); font-weight: 700; transition: color var(--d-2) var(--ease); }
  .legal-index a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hi); scale: 1 0; transform-origin: 50% 100%; transition: scale var(--d-2) var(--ease); }
  .legal-index a:hover, .legal-index a:focus-visible, .legal-index a[aria-current] { color: var(--on-hi); padding-left: 0.4rem; }
  .legal-index a:hover::before, .legal-index a:focus-visible::before, .legal-index a[aria-current]::before { color: var(--on-hi); }
  .legal-index a:hover::after, .legal-index a:focus-visible::after, .legal-index a[aria-current]::after { scale: 1 1; }
  .legal-body h2 { scroll-margin-top: calc(var(--top-h) + 1.5rem); }
}

.notfound { min-height: 100svh; padding-top: calc(var(--top-h) + clamp(1.5rem, 4vw, 3rem)); padding-bottom: 3rem; display: flex; align-items: center; }
.notfound-in { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.notfound h1 { font-size: clamp(7rem, 38vw, 30rem); line-height: 0.78; margin-left: -0.012em; }
.notfound-docket { margin-top: clamp(0.5rem, 2vw, 1.5rem); max-width: 34rem; border-top: var(--heavy) solid var(--fg); }
.notfound-docket .line-b { color: var(--fg-2); }
.notfound-docket .line { border-bottom-color: var(--rule); }
.notfound-docket .line-dots { border-bottom-color: var(--rule); }
.notfound-docket .sum { border-bottom-color: var(--fg); }
.notfound-docket .sum-row { border-top-color: var(--fg); }
.notfound .btn { margin-top: 1.5rem; min-height: 2.75rem; padding-inline: 1.25rem; text-decoration: none; }
.notfound .btn::before { background: var(--fg); }
@media (hover: hover) { .notfound .btn:hover { color: var(--bg); } }
.plate-void { width: clamp(9rem, 26vw, 20rem); position: absolute; right: var(--gutter); top: calc(var(--top-h) + 14%); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.5rem, 5vw, 4rem); color: var(--accent); container-type: inline-size; }
.notfound { position: relative; }
@media (max-width: 59.99em) { .plate-void { top: calc(var(--top-h) + 2.4rem); width: 28vw; } }

/* ---------- Page-to-page: the paper feeds ---------- */
/* Opt in only when motion is welcome: under reduced motion the browser makes no transition at all,
   and where cross-document view transitions are unsupported this is ignored and navigation is normal. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.top { view-transition-name: top; }
::view-transition-old(root) { animation: vt-out 0.3s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 0.55s steps(9, end) both; }
::view-transition-group(top) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; translate: 0 -2rem; } }
@keyframes vt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ---------- Reduced motion: complete, still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  html.top-away .top { translate: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media print {
  :root, :root[data-theme='dark'] { --bg: #fff; --bg-2: #fff; --fg: #111213; --fg-2: #51544E; --rule: rgba(17, 18, 19, 0.25); --accent: var(--tomato-deep); --hi: var(--pistachio); --on-hi: var(--ink); --hl-blend: multiply; }
  .top, .menu, .skip, .theme-toggle, .docket-ctl, .reel-bar, .fold-toggle, .notify { display: none !important; }
  /* everything that waits for the scroll is shown */
  [data-reveal], [data-print] .pr, .docket .line > *, .ln-i, .anno-plate, .ac, .anno-lines g, .till, .hl, .fold-note {
    opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; animation: none !important; transform: none !important;
  }
  .hero, .screens-pin, .duo-stage { min-height: 0 !important; }
  .till { position: static; }
  .docket { filter: none; rotate: none; }
  .duo, .foot, .privacy, .cost, .screens { background: none !important; color: var(--fg) !important; --fg: #111213; --bg: #fff; }
  .reel { overflow: visible; }
  .reel-track { flex-wrap: wrap; width: auto; transform: none !important; row-gap: 2rem; }
  .shot { break-inside: avoid; }
  .fold.is-3d .fold-3d { display: none; }
  .fold.is-3d .fold-static { display: block; }
  h2, h3 { break-after: avoid; }
  figure, .row, .faq details, .plans tr { break-inside: avoid; }
  .faq details::details-content { block-size: auto; content-visibility: visible; }
}
