/* Little Headlines website. Breakfast Table design system (tokens from the app's design system, v1, 30 Oct 2026).
   Layout: a warm table top running the full page; content in a 1120px column; cards are cut paper with a flat sticker edge.
   The printed paper keeps its own black and white identity (Lora headlines, Poppins text) and never takes the brand colours. */

/* ---------- fonts, self hosted (latin subset from Google Fonts) so no visitor's address goes to Google ----------
   Figtree, Fredoka and Lora are variable fonts: one file covers every weight we use. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/fredoka-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/figtree-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lora-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lora-italic-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-latin.woff2") format("woff2"); }


:root {
  /* colour, light: breakfast in the morning */
  --surface: #FFF6E9;
  --surface-raised: #FFFFFF;
  --surface-sunk: #FBEDD8;
  --line: #E7D3B5;
  --line-strong: #8C7A62;
  --ink: #2B2D42;
  --ink-muted: #5F5866;
  --tomato: #C8412B;
  --on-tomato: #FFFFFF;
  --tomato-soft: #FDE2DA;
  --sky: #2B6FB3;
  --sky-soft: #E2EEFA;
  --butter: #FFD166;
  --on-butter: #2B2D42;
  --butter-soft: #FFF0C2;
  --leaf: #2D7A4F;
  --leaf-soft: #DDF1E4;
  --focus: #2B6FB3;
  --sticker: #E7D3B5;
  --press-edge: #2B2D42;
  --phone-frame: #2B2D42;
  /* the printed page stays black and white in both themes */
  --paper: #FFFFFF;
  --paper-ink: #111111;
  --paper-rule: #111111;
  --paper-grey: #6B6B6B;
  --paper-tint: #F1F1F1;

  /* type */
  --font-display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
  --font-paper-head: "Lora", Georgia, "Times New Roman", serif;
  --font-paper-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* space, shape */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --tap-min: 48px; --button-height: 56px;
  --column: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1C1D2B; --surface-raised: #272939; --surface-sunk: #232435;
    --line: #3D3F57; --line-strong: #767896;
    --ink: #F7F1E8; --ink-muted: #C4BCB2;
    --tomato: #FF7B5F; --on-tomato: #1C1D2B; --tomato-soft: #4A2621;
    --sky: #84BDF2; --sky-soft: #1F3550;
    --butter: #F5C552; --on-butter: #1C1D2B; --butter-soft: #4A3C14;
    --leaf: #73D49A; --leaf-soft: #1E3B2B;
    --focus: #84BDF2; --sticker: #121320; --press-edge: #121320; --phone-frame: #0B0C14;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1C1D2B; --surface-raised: #272939; --surface-sunk: #232435;
  --line: #3D3F57; --line-strong: #767896;
  --ink: #F7F1E8; --ink-muted: #C4BCB2;
  --tomato: #FF7B5F; --on-tomato: #1C1D2B; --tomato-soft: #4A2621;
  --sky: #84BDF2; --sky-soft: #1F3550;
  --butter: #F5C552; --on-butter: #1C1D2B; --butter-soft: #4A3C14;
  --leaf: #73D49A; --leaf-soft: #1E3B2B;
  --focus: #84BDF2; --sticker: #121320; --press-edge: #121320; --phone-frame: #0B0C14;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--sky); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap {
  max-width: calc(var(--column) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--surface-raised); padding: 8px 12px; }

/* ---------- type scale ---------- */
.display { font-size: clamp(46px, 8.4vw, 92px); line-height: 0.98; font-weight: 600; }
.h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; }
.h3 { font-size: 22px; line-height: 1.15; font-weight: 500; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; max-width: 34em; }
.label {
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
}
.muted { color: var(--ink-muted); }
.prose { max-width: 65ch; display: grid; gap: var(--space-4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--button-height); padding: 0 var(--space-5);
  border-radius: var(--radius-md); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn--primary { background: var(--tomato); color: var(--on-tomato); box-shadow: 0 3px 0 0 var(--press-edge); }
.btn--primary:active { transform: translateY(3px); box-shadow: none; }
.btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:active { transform: translateY(2px); }
.btn--small { min-height: 44px; font-size: 17px; padding: 0 var(--space-4); }
.btn:hover { text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--sky); }
@media (max-width: 720px) { .nav .nav-link { display: none; } }
.brand, .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 32px; height: 32px; }
  .site-header .btn--small { min-height: 40px; font-size: 15px; padding: 0 12px; }
}

/* ---------- hero ---------- */
.hero { padding-block: var(--space-7) var(--space-8); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; }
.hero-copy .display span { color: var(--tomato); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-note { font-size: 15px; color: var(--ink-muted); }
@media (max-width: 880px) {
  .hero { padding-block: var(--space-5) var(--space-7); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); max-width: 760px; }
.band { background: var(--surface-sunk); }
@media (max-width: 720px) { .section { padding-block: var(--space-8); } .section-head { margin-bottom: var(--space-6); } }

.card {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 3px 0 0 var(--sticker);
  padding: var(--space-5);
}

/* promises */
.promises { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.promise { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5) var(--space-4); border-top: 3px solid var(--ink); }
.promise b { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.15; }
.promise span { font-size: 15px; color: var(--ink-muted); }
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .promises { gap: var(--space-2) var(--space-4); } .promise { padding: var(--space-4) 0; } .promise b { font-size: 18px; } }

/* questions */
.faq { display: grid; gap: var(--space-3); align-content: start; }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); min-height: var(--tap-min);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--tomato); flex: none; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--space-5) var(--space-5); display: grid; gap: var(--space-3); max-width: 65ch; }

/* call to action */
.cta {
  background: var(--tomato); color: var(--on-tomato); border-radius: 32px;
  padding: var(--space-8) var(--space-7); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--space-6); align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--butter);
  right: -80px; top: -110px; opacity: .95;
}
.cta > * { position: relative; z-index: 1; }
.cta p { font-size: 19px; max-width: 34em; }
.cta .h2 { color: var(--on-tomato); }
.btn--on-tomato { background: var(--surface-raised); color: var(--ink); box-shadow: 0 3px 0 0 var(--press-edge); }
.btn--on-tomato:active { transform: translateY(3px); box-shadow: none; }
@media (max-width: 800px) { .cta { grid-template-columns: minmax(0, 1fr); padding: var(--space-6) var(--space-5); border-radius: 24px; } .cta::after { width: 160px; height: 160px; right: -60px; top: -70px; } }

/* footer */
.site-footer { padding-block: var(--space-7) var(--space-7); border-top: 1px solid var(--line); margin-top: var(--space-8); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink); }
.site-footer .small { font-size: 14px; color: var(--ink-muted); }
.email { font-weight: 600; user-select: all; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
.page-head { padding-block: var(--space-7) var(--space-6); display: grid; gap: var(--space-4); }
.page-head .display { font-size: clamp(40px, 6vw, 64px); }
.legal { max-width: 70ch; display: grid; gap: var(--space-4); padding-bottom: var(--space-7); }
.legal h2 { font-size: 28px; line-height: 1.15; margin-top: var(--space-5); }
.legal h3 { font-size: 20px; font-weight: 500; margin-top: var(--space-2); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--surface-sunk); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.summary-box { background: var(--sky-soft); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-3); }
.summary-box ul { padding-left: 1.2em; }

/* help page */
.help-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; padding-bottom: var(--space-7); }
@media (max-width: 900px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap-min); padding: 10px var(--space-4);
  border-radius: var(--radius-md); border: 1.5px solid var(--line-strong);
  background: var(--surface-sunk); color: var(--ink); font: 400 17px/1.45 var(--font-body);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.reasons { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.reason-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.reason-chips input { position: absolute; opacity: 0; pointer-events: none; }
.reason-chips label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer;
}
.reason-chips input:checked + label { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); }
.reason-chips input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: var(--radius-md); padding: var(--space-4); font-size: 16px; display: flex; gap: var(--space-3); align-items: start; }
.status--ok { background: var(--leaf-soft); color: var(--ink); }
.status--err { background: var(--tomato-soft); color: var(--ink); }
.status--info { background: var(--sky-soft); color: var(--ink); }
.side { display: grid; gap: var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

/* ======================================================================
   Version 2 (31 Oct): the paper as the hero, a four page viewer, the app's screens
   ====================================================================== */

/* ---------- hero: a stack of four printed pages on the table ---------- */
.hero-stack { position: relative; width: 100%; max-width: 500px; justify-self: center; aspect-ratio: 1 / 1.12; }
.sun { position: absolute; width: 56%; aspect-ratio: 1; right: -2%; top: -2%; border-radius: 50%; background: var(--butter); }
.sun::after {
  content: ""; position: absolute; inset: -9%; border-radius: 50%;
  background: repeating-conic-gradient(var(--butter) 0 6deg, transparent 6deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 57%, #000 58%, #000 70%, transparent 71%);
}
.stack-sheet, .hero-sheet { position: absolute; left: 6%; top: 6%; width: 66%; }
.stack-sheet { aspect-ratio: 210 / 297; background: var(--paper); border-radius: 4px; box-shadow: 0 3px 0 0 var(--sticker); }
.stack-sheet.s3 { transform: rotate(9deg) translate(14%, 3%); }
.stack-sheet.s2 { transform: rotate(3deg) translate(7%, 1%); }
.hero-sheet { transform: rotate(-4deg); }
.hero-sheet .sheet { box-shadow: 0 4px 0 0 var(--sticker), 0 24px 40px -24px rgba(43, 45, 66, .45); }
@media (prefers-reduced-motion: no-preference) {
  .hero-sheet { animation: settle .9s cubic-bezier(.2,.9,.25,1.15) both; }
  @keyframes settle { from { transform: translateY(28px) rotate(0deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
}
.sticky-note {
  position: absolute; right: 0; bottom: 4%; width: 36%;
  background: var(--butter-soft); color: var(--ink); border-radius: 6px; padding: 12px 14px 14px;
  transform: rotate(4deg); box-shadow: 0 3px 0 0 var(--sticker);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.25;
}
@media (max-width: 880px) { .hero-stack { max-width: 440px; } }

/* ---------- the printed page (A4). 1em = one point of a 595pt wide page ---------- */
.sheet-wrap { container-type: inline-size; }
.sheet {
  font-size: calc(100cqw / 595);
  aspect-ratio: 210 / 297; overflow: hidden; position: relative;
  background: var(--paper); color: var(--paper-ink); border-radius: 4.9em;
  padding: 41.5em 41.5em 26.8em; display: flex; flex-direction: column; gap: 11em;
  font-family: var(--font-paper-body); line-height: 1.45;
}
.sheet p, .sheet li { font-size: 11em; margin: 0; }
.sheet b { font-weight: 600; }
.sheet h3 { font-family: var(--font-paper-head); font-weight: 700; font-size: 20.7em; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
.sheet h4 { font-family: var(--font-paper-head); font-weight: 700; font-size: 14em; line-height: 1.2; margin: 0; }
.sheet ul { margin: 0; padding-left: 12.2em; display: flex; flex-direction: column; gap: 2.4em; }
.sheet hr { border: 0; border-top: 1.2em solid var(--paper-rule); margin: 2.4em 0; width: 100%; }
.sheet .k { font-size: 8.3em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sheet .tag, .sheet .bar { align-self: flex-start; background: var(--paper-ink); color: var(--paper); font-size: 8.5em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .3em .7em; line-height: 1.3; }
.sheet .pill { align-self: flex-start; font-size: 7.8em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: .17em solid var(--paper-rule); border-radius: 11em; padding: .25em .9em; margin-bottom: -.4em; }
.sheet p.small { font-size: 9.3em; }
.sheet .note { border-left: .3em solid var(--paper-rule); padding-left: .8em; }
.mast { text-align: center; display: flex; flex-direction: column; gap: 3.7em; }
.mast b { font-family: var(--font-paper-head); font-weight: 700; font-size: 40.3em; line-height: 1; letter-spacing: -0.01em; }
.mast small { font-size: 7.8em; letter-spacing: .24em; text-transform: uppercase; }
.dl { display: flex; justify-content: space-between; border-top: 1.8em solid var(--paper-rule); border-bottom: .8em solid var(--paper-rule); padding: 3.7em 0; }
.dl span { font-size: 9em; font-weight: 600; }
.bx { border: 1.8em solid var(--paper-rule); border-radius: 7.3em; padding: 9.8em 11em; display: flex; flex-direction: column; gap: 3.7em; min-width: 0; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12.2em; }
.g2.plain > div { display: flex; flex-direction: column; gap: 3.7em; }
.nums { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 7.3em; }
.nums.n5 { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.nums .bx { align-items: center; justify-content: center; text-align: center; gap: 1.2em; padding: 7.3em 3.7em; }
.nums .bx.big { border-width: 3.2em; }
.nums b { font-family: var(--font-paper-head); font-weight: 700; font-size: 17.1em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nums .big b { font-size: 25.6em; }
.nums small { font-size: 7.6em; line-height: 1.25; }
.wx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7.3em; }
.wx.w5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wx .bx { align-items: center; text-align: center; gap: 2.4em; padding: 6.1em 3.7em 7.3em; }
.wx .bx.on { border-width: 3.2em; }
.wx b { font-size: 9.8em; text-transform: uppercase; letter-spacing: .06em; }
.wx b:last-child { font-family: var(--font-paper-head); font-size: 15.9em; letter-spacing: 0; text-transform: none; }
.wx small { font-size: 7.3em; }
.wx svg { width: 26.8em; height: 26.8em; }
.serial { gap: 4.9em; }
.foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--paper-grey); }
.foot span { font-size: 7.6em; }
.comic-head { display: flex; justify-content: space-between; align-items: baseline; }
.comic-head b { font-family: var(--font-paper-head); font-weight: 700; font-size: 15.9em; }
.comic-head span { font-size: 7.8em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.comic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7.3em; }
.panel { position: relative; aspect-ratio: 1.3; border: 1.8em solid var(--paper-rule); border-radius: 3.7em; overflow: hidden; }
.panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9%; border-top: .8em solid var(--paper-rule); }
.panel svg { position: absolute; bottom: 5%; }
.panel .c1 { left: 5%; width: 40%; height: 56%; }
.panel .c2 { right: 4%; width: 44%; height: 48%; }
.say { position: absolute; top: 6%; max-width: 72%; background: var(--paper); border: .16em solid var(--paper-rule); border-radius: 1.5em; padding: .35em .6em; font-size: 8.1em; font-weight: 600; line-height: 1.2; z-index: 1; }
.say.l { left: 6%; } .say.r { right: 6%; }
.cross { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 19.5em; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(6, 19.5em); grid-template-rows: repeat(5, 19.5em); }
.grid i { border: 1.5em solid var(--paper-rule); margin: -.6em; position: relative; background: var(--paper); }
.grid em { position: absolute; top: .6em; left: 1.7em; font-style: normal; font-size: 6.1em; }
.clues { display: flex; flex-direction: column; gap: 3em; }
.tides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: center; padding: 7.3em; }
.tides div { display: flex; flex-direction: column; gap: 1.2em; }
.tides small { font-size: 7.1em; text-transform: uppercase; letter-spacing: .08em; }
.tides b { font-size: 12.2em; }
.joke { align-items: center; text-align: center; }
.brief ul { gap: 3em; }
.sheet p.answers { font-size: 7.8em; transform: rotate(180deg); color: #333; }

/* ---------- Look inside: page viewer ---------- */
.viewer { display: grid; gap: var(--space-5); }
.viewer-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); max-width: 760px; }
.vtab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 60px; padding: 8px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink);
  font: 600 16px/1.2 var(--font-body); cursor: pointer; text-align: left;
}
.vtab span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.vtab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface-raised); }
.vtab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.viewer-page { max-width: 640px; width: 100%; }
.viewer-page .sheet { box-shadow: 0 4px 0 0 var(--sticker), 0 30px 50px -30px rgba(43, 45, 66, .5); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); font-size: 18px; }
.notes li { position: relative; padding-left: 34px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--butter); }
.viewer-caption { margin-top: var(--space-5); font-size: 14px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .viewer-body { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .viewer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { font-size: 17px; }
}

/* ---------- How it works: the app's screens ---------- */
.phones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.phone-step { display: grid; gap: var(--space-5); align-content: start; }
.step-copy { display: grid; gap: var(--space-2); justify-items: start; }
.step-copy .n, .n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--butter); color: var(--on-butter);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 21px;
}
.phone {
  --p: calc(100cqw / 390);
  container-type: inline-size; width: 100%; max-width: 290px; justify-self: center;
  aspect-ratio: 390 / 760; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); font-family: var(--font-body);
  border: 9px solid var(--phone-frame, #2B2D42); border-radius: 42px;
  box-shadow: 0 4px 0 0 var(--sticker);
}
.phone.sunk { background: var(--surface-sunk); }
.phone > * { margin-inline: calc(var(--p) * 20); }
.phone > * + * { margin-top: calc(var(--p) * 14); }
.phone > :first-child { margin-top: calc(var(--p) * 22); }
.phone small { font-size: calc(var(--p) * 14); color: var(--ink-muted); line-height: 1.3; }
.ph-top, .ph-bar, .ph-row { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--p) * 10); }
.ph-back { font-size: calc(var(--p) * 34); line-height: .8; }
.ph-progress { flex: 1; display: flex; gap: calc(var(--p) * 6); }
.ph-progress i { flex: 1; height: calc(var(--p) * 6); border-radius: 99px; background: var(--line); }
.ph-progress i.on { background: var(--tomato); }
.ph-link { color: var(--sky); font-weight: 600; font-size: calc(var(--p) * 15); }
.ph-link.centre { text-align: center; }
.ph-title { font-family: var(--font-display); font-weight: 600; font-size: calc(var(--p) * 30); line-height: 1.12; }
.ph-sub { font-size: calc(var(--p) * 16); color: var(--ink-muted); }
.phone > .ph-sub { margin-top: calc(var(--p) * 6); }
.ph-chips { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--p) * 8); }
.ph-chips span { display: flex; align-items: center; min-height: calc(var(--p) * 44); padding: 0 calc(var(--p) * 12); border-radius: calc(var(--p) * 14); border: 1.5px solid var(--line-strong); background: var(--surface-raised); font-weight: 600; font-size: calc(var(--p) * 14.5); }
.ph-chips span.on { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); }
.ph-card { display: flex; flex-direction: column; gap: calc(var(--p) * 4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: calc(var(--p) * 16); padding: calc(var(--p) * 12) calc(var(--p) * 14); }
.ph-card b { font-size: calc(var(--p) * 16); }
.ph-card.strong { box-shadow: 0 3px 0 0 var(--ink); border-radius: calc(var(--p) * 22); padding: calc(var(--p) * 16); gap: calc(var(--p) * 12); }
.ph-pill { align-self: flex-start; background: var(--tomato); color: var(--on-tomato); border-radius: 99px; padding: calc(var(--p) * 6) calc(var(--p) * 12); font-weight: 600; font-size: calc(var(--p) * 14); margin-top: calc(var(--p) * 4); }
.ph-btn { display: flex; align-items: center; justify-content: center; min-height: calc(var(--p) * 56); border-radius: calc(var(--p) * 12); background: var(--tomato); color: var(--on-tomato); font-family: var(--font-display); font-weight: 500; font-size: calc(var(--p) * 20); box-shadow: 0 3px 0 0 var(--press-edge); }
.phone > .ph-btn { margin-top: auto; margin-bottom: calc(var(--p) * 22); }
.ph-head { display: flex; gap: calc(var(--p) * 12); align-items: center; }
.ph-head > span:last-child { display: flex; flex-direction: column; }
.ph-disc { width: calc(var(--p) * 44); height: calc(var(--p) * 44); flex: none; border-radius: 50%; background: var(--butter); color: var(--on-butter); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--p) * 21); }
.ph-paper { font-family: var(--font-paper-head); font-weight: 700; font-size: calc(var(--p) * 22); line-height: 1.2; }
.ph-seg { display: flex; padding: calc(var(--p) * 4); gap: calc(var(--p) * 4); background: var(--surface-sunk); border: 1.5px solid var(--line-strong); border-radius: calc(var(--p) * 12); }
.ph-seg span { flex: 1; text-align: center; padding: calc(var(--p) * 9) 0; border-radius: calc(var(--p) * 8); font-weight: 600; font-size: calc(var(--p) * 14); white-space: nowrap; }
.ph-seg span.on { background: var(--ink); color: var(--surface-raised); }
.ph-h { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--p) * 20); }
.ph-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--p) * 9); }
.ph-stages li { display: flex; align-items: center; gap: calc(var(--p) * 10); font-size: calc(var(--p) * 15); color: var(--ink-muted); font-weight: 500; }
.ph-stages li::before { content: ""; flex: none; box-sizing: border-box; width: calc(var(--p) * 20); height: calc(var(--p) * 20); border-radius: 50%; border: 1.5px solid var(--line-strong); }
.ph-stages li.done { color: var(--ink); }
.ph-stages li.done::before { background: var(--leaf); border: 0; }
.ph-stages li.now { color: var(--ink); font-weight: 700; }
.ph-stages li.now::before { background: var(--butter); border: 0; }
.ph-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--p) * 12); }
.ph-thumbs span { display: flex; flex-direction: column; gap: calc(var(--p) * 6); font-size: calc(var(--p) * 13); font-weight: 700; }
.ph-thumbs i { aspect-ratio: 210 / 297; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--p) * 6); box-shadow: 0 2px 0 0 var(--sticker); }
.ph-bar > span:nth-child(2) { display: flex; flex-direction: column; align-items: center; }
.ph-bar b { font-size: calc(var(--p) * 16); }
.ph-i { width: calc(var(--p) * 24); height: calc(var(--p) * 24); border-radius: 50%; border: 1.8px solid var(--ink); display: grid; place-items: center; font-size: calc(var(--p) * 13); font-weight: 700; }
.ph-sheet { flex: 1; min-height: 0; background: var(--paper); border-radius: calc(var(--p) * 6); box-shadow: 0 3px 0 0 var(--ink), 0 0 0 1px var(--ink); padding: calc(var(--p) * 18) calc(var(--p) * 16); display: flex; flex-direction: column; gap: calc(var(--p) * 9); overflow: hidden; }
.ph-sheet > b { font-family: var(--font-paper-head); font-weight: 700; font-size: calc(var(--p) * 30); text-align: center; color: #000; border-bottom: 1.5px solid #000; padding-bottom: calc(var(--p) * 6); }
.ph-sheet > i { display: block; height: calc(var(--p) * 4); background: #BBBBBB; border-radius: 2px; }
.ph-sheet > i.w { height: calc(var(--p) * 7); background: #111; width: 70%; }
.ph-sheet > i.s { width: 60%; }
.ph-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--p) * 5); }
.ph-boxes i { height: calc(var(--p) * 44); border: 1.5px solid #111; border-radius: calc(var(--p) * 5); }
.ph-boxes.two { grid-template-columns: 1fr 1fr; flex: 1; }
.ph-boxes.two i { height: auto; min-height: calc(var(--p) * 60); }
.ph-dots { display: flex; justify-content: center; gap: calc(var(--p) * 8); }
.ph-dots i { width: calc(var(--p) * 8); height: calc(var(--p) * 8); border-radius: 99px; background: var(--line-strong); }
.ph-dots i.on { width: calc(var(--p) * 22); background: var(--ink); }
.ph-centre { text-align: center; }
@media (max-width: 860px) {
  .phones { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .phone-step { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); align-items: center; gap: var(--space-5); }
}
@media (max-width: 520px) {
  /* On phones the three steps swipe sideways instead of stacking. */
  .phones { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); }
  .phone-step { grid-template-columns: minmax(0, 1fr); scroll-snap-align: start; }
  .phone { max-width: 230px; justify-self: start; }
}

/* ---------- promises, questions and the note ---------- */
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .promises { gap: var(--space-2) var(--space-4); } .promise { padding: var(--space-4) 0; } .promise b { font-size: 18px; } }
.qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--space-7); align-items: start; }
.qa-side { display: grid; gap: var(--space-4); }
.letter {
  background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: 0 3px 0 0 var(--sticker); border: 1px solid var(--line); display: grid; gap: var(--space-3);
  font-size: 17px; line-height: 1.6; margin-top: var(--space-2);
}
.letter .sig { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
@media (max-width: 860px) { .qa { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the message: informed, theirs, unplugged (31 Oct) ---------- */
.pillars-band { padding-block: 0 var(--space-8); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.pillar { display: grid; gap: var(--space-2); align-content: start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 3px 0 0 var(--sticker); padding: var(--space-5); }
.pillar-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--space-2); }
.pillar-mark svg { width: 28px; height: 28px; }
.g-tomato { background: var(--tomato-soft); color: var(--tomato); }
.g-sky { background: var(--sky-soft); color: var(--sky); }
.g-butter { background: var(--butter); color: var(--on-butter); }
.pillar-word { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pillars-foot { margin-top: var(--space-5); display: flex; gap: var(--space-3); align-items: flex-start; font-size: 18px; max-width: 60em; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; }
.tick svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } .pillars-band { padding-block: 0 var(--space-7); } .pillar { padding: var(--space-4) var(--space-5); } .pillar-mark { display: none; } .pillars-foot { font-size: 17px; } }
