/* CRUMB website styles.
   Colours mirror the app palette in Apps/Crumb/DesignSystem/Theme.swift (light and dark).
   No external fonts, images or imports: everything is served from this site. */

:root {
  color-scheme: light dark;

  /* Palette, light */
  --canvas: #F5F0E8;          /* porcelain */
  --raised: #FFFCF7;
  --sunk: #EAE3D7;
  --ink: #171A1F;
  --ink-soft: #5A5E66;
  --line: rgba(23, 26, 31, 0.10);
  --line-strong: rgba(23, 26, 31, 0.18);
  --terracotta: #B84A2F;
  --on-terracotta: #FFFCF7;
  --terracotta-soft: #F7DFD5;
  --terracotta-deep: #9A3A22;
  --mint: #D3EBDD;
  --mint-deep: #1F6348;
  --band-accent-text: #9A3A22;   /* text on the on-terracotta pill */

  /* The always-dark band and the phone hardware */
  --night: #111315;
  --device: #0B0C0E;
  --device-edge: rgba(23, 26, 31, 0.12);
  --shadow-phone: 0 44px 70px -42px rgba(23, 26, 31, 0.55), 0 18px 30px -22px rgba(23, 26, 31, 0.30);
  --shadow-card: 0 1px 0 rgba(23, 26, 31, 0.04), 0 18px 40px -30px rgba(23, 26, 31, 0.28);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-figure: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(20px, 5vw, 40px);
  --wrap: 1160px;
  --section: clamp(72px, 10vw, 124px);
  --radius-card: 24px;
  --radius-control: 16px;

  /* Glass (Revision 4, 3.2): small translucent cards near product imagery, never whole sections. */
  --glass-fill: rgba(255, 252, 247, 0.72);
  --glass-solid: rgba(255, 252, 247, 0.94);   /* where the browser cannot blur */
  --glass-edge: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 16px 34px -20px rgba(23, 26, 31, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111315;
    --raised: #1A1D21;
    --sunk: #262A30;
    --ink: #F5F0E8;
    --ink-soft: #A9ADB5;
    --line: rgba(245, 240, 232, 0.14);
    --line-strong: rgba(245, 240, 232, 0.24);
    --terracotta: #E9785A;
    --on-terracotta: #171A1F;
    --terracotta-soft: #43251C;
    --terracotta-deep: #F3A58A;
    --mint: #1C4435;
    --mint-deep: #8FD7B6;
    --band-accent-text: #F3A58A;

    --night: #1A1D21;
    --device: #050607;
    --device-edge: rgba(245, 240, 232, 0.20);
    --shadow-phone: 0 44px 70px -42px rgba(0, 0, 0, 0.9), 0 18px 30px -22px rgba(0, 0, 0, 0.6);
    --shadow-card: none;

    --glass-fill: rgba(38, 42, 48, 0.68);
    --glass-solid: rgba(38, 42, 48, 0.96);
    --glass-edge: rgba(245, 240, 232, 0.18);
    --glass-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.8);
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.6vw + 1.15rem, 4.6rem); letter-spacing: -0.04em; line-height: 1.0; }
h2 { font-size: clamp(1.85rem, 2.6vw + 1.2rem, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--terracotta-deep);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 + .lede { margin-top: 20px; }

.nowrap { white-space: nowrap; }

.lede {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
  line-height: 1.55;
}

.text-link {
  color: var(--terracotta-deep);
  font-weight: 700;
}

/* ---------- Buttons and the store call to action ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}
a.btn, button.btn { cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.btn:hover, button.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px var(--ink); }
a.btn:active, button.btn:active { transform: translateY(0); }

.btn--small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9375rem; white-space: nowrap; }

.btn--on-accent { background: var(--on-terracotta); color: var(--band-accent-text); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn__dot {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--terracotta);
}
.btn--on-accent .btn__dot { background: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header {
    background: color-mix(in srgb, var(--canvas) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.brand img { width: auto; height: 26px; }

.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--sunk); }

@media (min-width: 900px) {
  .brand { flex: none; }
  .brand img { height: 30px; }
}
/* The section links need room beside the logo and the button, so they wait for a wide screen.
   Below that the three-bar menu and, on the home page, the floating section bar take over. */
.site-nav a { white-space: nowrap; }
@media (min-width: 1060px) {
  .site-nav { display: block; }
}
@media (min-width: 1060px) and (max-width: 1199.98px) {
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 0 9px; font-size: 0.875rem; }
}

.site-header__end { display: flex; align-items: center; gap: 8px; flex: none; }

/* Three-bar menu (a details element, so it opens without JavaScript) */
.menu { position: relative; }
.menu__toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sunk);
  cursor: pointer;
  list-style: none;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__bars, .menu__bars::before, .menu__bars::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.menu__bars { position: relative; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
.menu__bars::before { top: -6px; }
.menu__bars::after { top: 6px; }
.menu[open] .menu__bars { background: transparent; }
.menu[open] .menu__bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__bars::after { top: 0; transform: rotate(-45deg); }
.menu__panel {
  position: absolute;
  right: 0; top: calc(100% + 12px);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--raised);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.55);
}
.menu__panel ul { margin: 0; padding: 0; list-style: none; }
.menu__panel ul + ul { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.menu__panel a:hover { background: var(--sunk); }
@media (min-width: 1060px) { .menu { display: none; } }
@media (max-width: 430px) {
  .site-header__inner { gap: 10px; min-height: 64px; }
  .site-header .brand img { height: 22px; }
  .site-header .btn--small { min-height: 40px; padding: 0.4rem 0.85rem; font-size: 0.8125rem; }
  .site-header .btn--small .btn__dot { display: none; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: clamp(36px, 6vw, 84px) 0; overflow: hidden; background: var(--canvas); }

.hero__grid {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-deep);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero h1 em { color: var(--terracotta); font-style: normal; }

/* Revision 4 proposition, right under the headline: "Built for British food. Built for real life." */
.hero__prop {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.5vw + 1rem, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.hero__prop span { color: var(--terracotta-deep); }

.hero__sub {
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.hero__copy .lede { margin-top: 22px; max-width: 34em; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
}

.hero__meta { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }

.tagline {
  margin-top: 40px;
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Two phones side by side, offset in height. Fifty columns: the front phone takes 25 (50%), the
   back one starts at column 25 (48%) and is a touch smaller, so only the two bezels meet and
   both screens show in full (Revision 4, 3.1). */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(50, minmax(0, 1fr));
  align-items: start;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-bottom: calc(6% + 44px);
}
.hero__disc {
  position: absolute;
  left: 50%; top: 54%;
  width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  transform: translate(-50%, -50%);
}
.hero__stage .phone--front { grid-column: 1 / span 25; grid-row: 1; z-index: 2; }
.hero__stage .phone--back { grid-column: 25 / span 24; grid-row: 1; z-index: 1; margin-top: 18%; }
.hero__stage .phone--back .phone__body { box-shadow: 0 0 0 1px var(--device-edge), 0 34px 60px -40px rgba(23, 26, 31, 0.5); }
.hero__stage .bubbles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* Small screens: the app sells itself. A tight headline, then every main screen in a
   swipeable row that starts inside the first view; the two-phone stage is desktop only. */
.hero__carousel {
  display: flex;
  gap: 14px;
  margin: 22px calc(var(--gutter) * -1) 0;
  padding: 6px var(--gutter) 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
}
.hero__grid > * { min-width: 0; }
.hero__carousel::-webkit-scrollbar { display: none; }
.hero__carousel:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; border-radius: 12px; }
.hero__carousel li { flex: 0 0 min(40vw, 196px); scroll-snap-align: start; }
.hero__carousel figure { margin: 0; }
.hero__carousel figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 959.98px) {
  .hero { padding-block: 14px var(--section); }
  .hero__grid { gap: 0; }
  .hero__stage { display: none; }
  .hero__pill { margin-bottom: 12px; padding: 6px 12px; font-size: 0.8125rem; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.5rem); line-height: 1.04; }
  .hero__prop { margin-top: 10px; font-size: clamp(1.1rem, 4.6vw, 1.5rem); }
  .hero__sub { margin-top: 22px; font-size: 1.0625rem; }
  .hero__carousel { margin-top: 16px; }
  .hero__actions { margin-top: 14px; }
  .hero__copy .lede { margin-top: 14px; }
  .tagline { margin-top: 22px; }
  /* On phones: headline, proposition, the screens, then straight to the call to action, so it
     sits inside the first screen. The longer lines follow. */
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy > .hero__pill { align-self: flex-start; }
  .hero__copy .hero__carousel { order: 1; }
  .hero__copy .hero__actions { order: 2; }
  .hero__copy .hero__meta { order: 3; margin-top: 12px; }
  .hero__copy .bubbles--row { order: 4; }
  .hero__copy .hero__sub { order: 5; }
  .hero__copy .lede { order: 6; }
  .hero__copy .tagline { order: 7; }
}
.hero__copy > .hero__meta { margin-top: 16px; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero__stage { margin-inline: auto 0; }
  .hero__carousel, .bubbles--row { display: none; }
}

/* ---------- Phone frame (drawn in CSS; the screen is an image) ---------- */

.phone { position: relative; width: 100%; }

.phone__body {
  position: relative;
  padding: 3.4%;
  border-radius: 15.6% / 7.3%;
  background: var(--device);
  box-shadow: 0 0 0 1px var(--device-edge), var(--shadow-phone);
}
.phone__body::after {
  content: "";
  position: absolute;
  left: 50%; top: 2.75%;
  width: 28.5%; height: 3.7%;
  border-radius: 999px;
  background: var(--device);
  transform: translateX(-50%);
}
.phone__body img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 12.6% / 5.8%;
  background: var(--sunk);
}

.phone--solo { max-width: 250px; margin-inline: auto; }
@media (min-width: 880px) { .phone--solo { max-width: 300px; } }

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

/* The decorative discs behind the phones are wider than the column on small screens:
   clip them at the section edge so the page never scrolls sideways. */
.section { padding-block: var(--section); overflow-x: hidden; overflow-x: clip; background: var(--canvas); }
.section--tight-top { padding-top: 0; }
.section--raised { background: var(--raised); border-block: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .lede { margin-top: 20px; }
.section__head--centre { margin-inline: auto; text-align: center; }

.strapline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.1vw + 0.9rem, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

/* Cards */

.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards--2, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--raised);
  box-shadow: var(--shadow-card);
}
.section--raised .card { background: var(--canvas); box-shadow: none; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card__note { margin-top: auto; padding-top: 8px; font-size: 0.875rem; }
.card p.card__note { color: var(--ink-soft); }

.badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--mint-deep);
}
.badge--terracotta { background: var(--terracotta-soft); color: var(--terracotta-deep); }

.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}
.tag--terracotta { background: var(--terracotta-soft); color: var(--terracotta-deep); }
.tag--mint { background: var(--mint); color: var(--mint-deep); }
/* "Coming soon": only inside data-availability="coming-soon" (package.py), on any page. */
.tag--soon { background: var(--ink); color: var(--canvas); white-space: nowrap; }

.smallprint--centre { margin-inline: auto; text-align: center; }
.smallprint { margin-top: 22px; max-width: 60rem; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.55; }

/* Feature rows: a phone beside the words */

.feature {
  display: grid;
  gap: clamp(40px, 7vw, 72px);
  align-items: center;
}
.feature__copy .lede { margin-top: 20px; }

.ticks { display: grid; gap: 16px; margin-top: 30px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.ticks .icon {
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-deep);
  stroke-width: 2.4;
}

.feature__media { position: relative; }
.feature__media::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(118%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terracotta-soft);
  transform: translate(-50%, -50%);
}
.feature__media--mint::before { width: min(112%, 580px); background: var(--mint); }
.section--raised .feature__media::before { background: var(--sunk); }

/* Illustration cards are wide and short, so their disc is sized from the height of the media
   box (a little taller than it is wide) and can never reach the copy above or below it. */
.feature__media--illo {
  display: grid;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.1;
}
.feature__media--illo::before { width: auto; height: min(100%, 560px); }

.phone-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 26px);
  max-width: 520px;
  margin-inline: auto;
}
.phone-pair .phone:last-child { margin-top: 16%; }

@media (min-width: 880px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature:not(.feature--flip) .feature__media { order: -1; }
}

/* Small feature list (streaks, week, widgets, nudges) */

.minis { display: grid; gap: 26px; margin-top: 34px; }
.mini { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.mini .badge { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
.mini h3 { font-size: 1.125rem; }
.mini p { margin-top: 4px; color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 560px) { .minis { grid-template-columns: repeat(2, 1fr); } }

.feature > * { min-width: 0; }

.feature__title { font-size: clamp(1.6rem, 1.8vw + 1.1rem, 2.35rem); letter-spacing: -0.03em; line-height: 1.08; }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.feature__tags + .ticks, .feature__tags + .steps { margin-top: 26px; }
.feature__note { margin-top: 26px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }

/* Numbered steps (eating out) */

.steps { display: grid; gap: 18px; margin-top: 30px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-family: var(--font-figure);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
}

/* Two answers side by side (a published figure, or an estimate) */

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 28px; }
.compare__item {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
}
.section--raised .compare__item { background: var(--canvas); }
.compare__item .tag { justify-self: start; }
.compare__item p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- Illustrations ----------
   Small drawings of app cards for features that have no screen capture yet. Each one is a
   single image to assistive technology (role="img" with a label); the text inside is
   decoration. They are cards, never phones: the phone frames show real captures only. */

.illo { position: relative; width: 100%; max-width: 430px; margin-inline: auto; }
.illo__card {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 4.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--raised);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.illo__card > * { min-width: 0; }
.illo__label {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.illo__head { display: grid; gap: 6px; }
.illo__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.illo__text { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; }

.illo__fields { display: grid; gap: 8px; }
.illo__field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--sunk);
  font-weight: 700;
}
.illo__field .icon { color: var(--ink-soft); }
.illo__field-name { display: block; color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; }

.illo__rows { display: grid; }
.illo__rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.illo__rows li:last-child { padding-bottom: 0; }
.illo__food { flex: 1 1 7rem; min-width: 0; font-weight: 700; }
.illo__food small { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 500; }
.illo__end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.illo__figure { font-family: var(--font-figure); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.illo .tag { align-self: center; }
.illo__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
}

/* Drink measures */

.measures { display: flex; flex-wrap: wrap; gap: 6px; }
.measures li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}
.measures .is-on { border-color: var(--ink); background: var(--ink); color: var(--canvas); }

/* The weekly budget line under the example week (spotlight C). */
.bank__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.section--raised .illo__card, .feature__media--mint .illo__card { box-shadow: none; }
.section--raised .illo__card { background: var(--canvas); }

/* ---------- The always-dark band ---------- */

.night {
  --canvas: #111315;
  --raised: #1A1D21;
  --sunk: #262A30;
  --ink: #F5F0E8;
  --ink-soft: #A9ADB5;
  --line: rgba(245, 240, 232, 0.14);
  --line-strong: rgba(245, 240, 232, 0.24);
  --terracotta: #E9785A;
  --terracotta-deep: #F3A58A;
  --terracotta-soft: #43251C;
  --mint: #1C4435;
  --mint-deep: #8FD7B6;
  background: var(--night);
  color: var(--ink);
}
.night__inner { display: grid; gap: 36px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 460px; }
.swatch {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.swatch--light { background: #F5F0E8; color: #171A1F; }
.swatch--dark { background: #111315; color: #F5F0E8; box-shadow: inset 0 0 0 1px rgba(245, 240, 232, 0.24); }
.swatch__dots { display: flex; gap: 8px; }
.swatch__dots span { width: 22px; height: 22px; border-radius: 50%; }
.swatch--light .dot-ink { background: #171A1F; }
.swatch--light .dot-terracotta { background: #B84A2F; }
.swatch--light .dot-mint { background: #D3EBDD; box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.12); }
.swatch--dark .dot-ink { background: #F5F0E8; }
.swatch--dark .dot-terracotta { background: #E9785A; }
.swatch--dark .dot-mint { background: #1C4435; box-shadow: inset 0 0 0 1px rgba(245, 240, 232, 0.2); }
@media (min-width: 880px) { .night__inner { grid-template-columns: 1.2fr 0.8fr; } .swatches { margin-left: auto; } }

/* ---------- Sources ---------- */

.source__credit {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.callout {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-card);
  background: var(--terracotta-soft);
  color: var(--ink);
}
.callout h3 { color: var(--terracotta-deep); }
.callout p { max-width: 54rem; }

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 880px) { .pricing { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--raised);
  box-shadow: var(--shadow-card);
}
.plan--premium { border: 2px solid var(--terracotta); }
.plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan__name h3 { font-size: 1.6rem; }
.plan__lead { color: var(--ink-soft); }

.figure {
  font-family: var(--font-figure);
  font-size: clamp(2.6rem, 3vw + 1.6rem, 3.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.prices { display: grid; gap: 10px; }
.price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--canvas);
}
.price__name { font-weight: 700; }
.price__note { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.875rem; }
.price__amount { font-family: var(--font-figure); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price__per { color: var(--ink-soft); font-family: var(--font); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; }
.price__note .tag { display: flex; width: fit-content; margin: 2px 0 6px; }

.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--mint-deep); stroke-width: 2.4; }
.plan--premium .checks .icon { color: var(--terracotta); }
.checks li > span { min-width: 0; }
.checks__note { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.5; }

.pricing__terms { display: grid; gap: 10px; margin-top: 26px; max-width: 60rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- UK-first ---------- */

.statement { max-width: 52rem; margin-inline: auto; text-align: center; }
.statement .lede { margin-top: 22px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 54rem; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 22px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-right: 4px;
  border-right: 2.5px solid var(--terracotta);
  border-bottom: 2.5px solid var(--terracotta);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq__answer { display: grid; gap: 12px; padding: 0 22px 22px; color: var(--ink-soft); }
/* The buttons under the Questions page's introduction (Contact Support, Compare all features). */
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }

/* ---------- Closing band ---------- */

.closing { padding-block: 0 var(--section); }
.closing__band {
  display: grid;
  gap: 26px;
  justify-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(22px, 5vw, 64px);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--terracotta);
  color: var(--on-terracotta);
  text-align: center;
}
.closing__band h2 { font-size: clamp(2.2rem, 4.4vw + 1rem, 4.2rem); letter-spacing: -0.04em; }
.closing__band p { max-width: 36rem; font-size: 1.125rem; }

/* Notify me (posts to /forms/waitlist; hidden when config.js sets waitlistEndpoint to "") */

.notify {
  max-width: 44rem;
  margin: 22px auto 0;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--raised);
}
.notify h2 { font-size: 1.5rem; }
.notify p { margin-top: 8px; color: var(--ink-soft); }
.notify__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.notify label { display: block; margin-top: 18px; font-weight: 700; }
.notify input[type="email"] {
  flex: 1 1 240px;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.notify .hp { position: absolute; left: -9999px; }

/* The launch-news card, shown after 30 seconds by site.js. */
.notify--popup {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  margin: 0;
  overflow-y: auto;
  padding: 22px 22px 16px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
}
.notify--popup h2 { padding-right: 36px; font-size: 1.3rem; line-height: 1.2; }
.notify--popup p { font-size: 0.9375rem; }
.notify--popup label { margin-top: 14px; }
.notify--popup .notify__row { margin-top: 10px; }
.notify--popup input[type="email"] { min-height: 50px; flex-basis: 180px; }
.notify--popup .btn { min-height: 50px; }
.notify__badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--terracotta-soft);
  font-size: 1.4rem;
}
.notify__close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--ink);
  cursor: pointer;
}
.notify__close .icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.notify__later {
  display: block;
  min-height: 44px;
  margin: 6px auto 0;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.notify__later:hover { color: var(--ink); }
/* The quiet launch-news button sits on the solid terracotta band: it takes the band's own text
   colour, with a border to match (5.1:1 light, 6.1:1 dark; the page ink was below AA there). */
.closing__notify { margin-top: 12px; color: var(--on-terracotta); box-shadow: inset 0 0 0 1.5px var(--on-terracotta); }
button.closing__notify:hover { box-shadow: inset 0 0 0 1.5px var(--on-terracotta), 0 14px 26px -16px rgba(0, 0, 0, 0.55); }
@media (max-width: 1059.98px) {
  /* Above the floating section bar on the home page. */
  body:has(.dock) .notify--popup { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .notify--popup { right: 16px; left: 16px; width: auto; }
}
.notify__small { font-size: 0.875rem; }

/* Forms (creator programme, press). They post to the site's own Worker and work without JavaScript. */

.prose .form {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
}
.form__grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prose .form p { margin-top: 0; }
.form__field { margin-bottom: 14px; }
.form__field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9375rem; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="month"], .form textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }
.form__check { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; font-weight: 700; }
.form__check input { width: 22px; height: 22px; accent-color: var(--terracotta); }
.prose .form .form__small { margin-top: 12px; color: var(--ink-soft); font-size: 0.875rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px 44px; border-top: 1px solid var(--line); }
.site-footer__top { display: grid; gap: 32px; }
.site-footer .brand img { height: 26px; }
.site-footer__tagline { margin-top: 10px; color: var(--terracotta-deep); font-weight: 800; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: -12px; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.site-footer nav a:hover { background: var(--sunk); }
.site-footer__legal { display: grid; gap: 10px; margin-top: 36px; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.55; }
@media (min-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer nav ul { margin-left: 0; justify-content: flex-end; }
}

/* ---------- Legal, support and 404 pages ---------- */

.page { padding-block: clamp(40px, 7vw, 84px) var(--section); }
.page__head { max-width: 46rem; }
.page__head h1 { font-size: clamp(2.2rem, 3.6vw + 1.2rem, 3.6rem); }
.page__head .lede { margin-top: 18px; }

.draft-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 30px;
  padding: 16px 20px;
  border: 2px solid var(--terracotta);
  border-radius: 18px;
  background: var(--terracotta-soft);
  color: var(--ink);
  font-size: 0.9375rem;
}
.draft-banner strong { color: var(--terracotta-deep); font-size: 1rem; }

.live-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 30px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.9375rem;
}
.live-banner strong { color: var(--mint-deep); font-size: 1rem; }

.prose { max-width: 46rem; margin-top: clamp(32px, 5vw, 52px); }
.prose h2 { margin-top: 48px; font-size: 1.6rem; }
.prose h3 { margin-top: 30px; font-size: 1.15rem; }
.prose p, .prose ul, .prose ol, .prose dl { margin-top: 14px; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--terracotta); }
/* Buttons inside prose keep their own colours (a .btn link inside .prose read 2.49:1 light, 1.75:1 dark). */
.prose a:not(.btn) { color: var(--terracotta-deep); font-weight: 600; }
.prose dt { margin-top: 18px; font-weight: 700; }
.prose dd { color: var(--ink-soft); }
.prose .todo {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 14px 14px 0;
  background: var(--raised);
  font-size: 0.9375rem;
}
.prose .panel {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
}
.prose .panel > :first-child { margin-top: 0; }
.prose .panel h2, .prose .panel h3 { margin-top: 0; }
.updated { margin-top: 14px; color: var(--ink-soft); font-size: 0.9375rem; }

.notfound { display: grid; gap: 22px; justify-items: start; max-width: 40rem; padding-block: clamp(56px, 12vw, 140px); }
.notfound__mark { width: 84px; height: 84px; }
.notfound .lede { max-width: 30rem; }

/* ---------- Floating section bar (home page, below the wide layout) ----------
   Hidden at the very top of the page and slides up once scrolling starts. Without JavaScript
   it simply stays visible. */

.dock {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 10px;
  pointer-events: none;
}
/* A small tab on top of the bar that says it can be swiped. Shown only while there is more
   to swipe to (the script hides it when every button already fits). */
.dock__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 -1px;
  padding: 5px 14px 4px;
  border-radius: 12px 12px 0 0;
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dock__arrow {
  width: 14px; height: 8px;
  background: currentColor;
  clip-path: polygon(0 38%, 62% 38%, 62% 0, 100% 50%, 62% 100%, 62% 62%, 0 62%);
}
.dock.is-fitting .dock__hint { display: none; }
.dock ul {
  display: flex;
  gap: 7px;
  max-width: 100%;
  margin: 0;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  list-style: none;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}
.dock ul::-webkit-scrollbar { display: none; }
/* Each link is drawn as its own raised button. */
.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--canvas) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--canvas) 26%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--night) 22%, transparent);
  color: var(--canvas);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.dock a:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--canvas) 26%, transparent); }
.dock a[aria-current="true"] {
  background: var(--terracotta);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  color: var(--on-terracotta);
}
.js-dock .dock { visibility: hidden; opacity: 0; transform: translateY(calc(100% + 28px)); }
.js-dock .dock.is-shown { visibility: visible; opacity: 1; transform: none; }
/* Room at the end of every section for the floating bar, so nothing a section ends with is
   hidden behind it when the section pins. */
@media (max-width: 1059.98px) {
  body:has(.dock) main > section { padding-bottom: calc(var(--section) + 76px + env(safe-area-inset-bottom, 0px)); }
  body:has(.dock) main > .hero { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  body:has(.dock) main > .section--promo { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1059.98px) {
  body:has(.dock) .site-footer { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1060px) { .dock { display: none; } }
@media print { .dock, .menu { display: none; } }

/* ---------- Scanner example ----------
   Two phone frames with the scanner and its result drawn in CSS over a real photograph.
   Sizes inside a screen are in container units, so the drawing scales with the phone. */

.scan-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 26px);
  max-width: 520px;
  margin-inline: auto;
}
.scan-demo .phone:last-child { margin-top: 16%; }
.phone__caption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}
.scan-demo__caption {
  position: relative;
  max-width: 30rem;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}
.section--raised .feature__media--mint::before { background: var(--mint); }

.screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border-radius: 12.6% / 5.8%;
  background: #1B1D21;
  container-type: inline-size;
  font-size: 9px;
  line-height: 1.2;
  color: #FFFFFF;
}
.screen .screen__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  background: none;
}
.screen > span, .screen__sheet > span { display: block; }

.screen--camera::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.6));
}
.screen__title {
  position: absolute; z-index: 2;
  top: 9.5%; left: 50%;
  transform: translateX(-50%);
  font-size: 5.4cqw;
  font-weight: 800;
  white-space: nowrap;
}
.screen__frame { position: absolute; z-index: 2; left: 9%; right: 9%; top: 26%; bottom: 31%; }
.screen__frame i {
  position: absolute;
  width: 15%; aspect-ratio: 1;
  border: 0 solid #FFFFFF;
}
.screen__frame i:nth-child(1) { left: 0; top: 0; border-width: 0.9cqw 0 0 0.9cqw; border-top-left-radius: 5cqw; }
.screen__frame i:nth-child(2) { right: 0; top: 0; border-width: 0.9cqw 0.9cqw 0 0; border-top-right-radius: 5cqw; }
.screen__frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 0.9cqw 0.9cqw; border-bottom-left-radius: 5cqw; }
.screen__frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 0.9cqw 0.9cqw 0; border-bottom-right-radius: 5cqw; }
.screen__beam {
  position: absolute; z-index: 2;
  left: 11%; right: 11%; top: 47%;
  height: 0.8cqw;
  border-radius: 999px;
  background: #F28D6F;
  box-shadow: 0 0 5cqw 1.6cqw rgba(233, 120, 90, 0.55);
}
.screen__modes {
  position: absolute; z-index: 2;
  left: 50%; bottom: 17.5%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 1cqw;
  padding: 1cqw;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.6);
  font-size: 3.5cqw;
  font-weight: 700;
  white-space: nowrap;
}
.screen__modes b { padding: 1.6cqw 3.2cqw; border-radius: 999px; font-weight: inherit; }
.screen__modes .is-on { background: #FFFFFF; color: #171A1F; }
.screen__shutter {
  position: absolute; z-index: 2;
  left: 50%; bottom: 5.5%;
  width: 17cqw; aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1.1cqw solid #FFFFFF;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0 60%, transparent 62%);
}

.screen--result .screen__photo { height: 53%; }
.screen__pin {
  position: absolute; z-index: 2;
  padding: 1.2cqw 2.8cqw;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  color: #171A1F;
  font-size: 3.3cqw;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.25);
}
.screen__pin--a { top: 15%; left: 6%; }
.screen__pin--b { top: 27%; right: 5%; }
.screen__pin--c { top: 41%; left: 34%; }
.screen__sheet {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0; top: 49%;
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  padding: 5.5cqw 5cqw 4cqw;
  border-radius: 7cqw 7cqw 0 0;
  background: var(--raised);
  color: var(--ink);
}
.screen__meal { font-size: 5cqw; font-weight: 800; line-height: 1.15; }
.screen__flag {
  align-self: flex-start;
  padding: 0.8cqw 2.6cqw;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-size: 3.2cqw;
  font-weight: 700;
}
.screen__kcal { font-family: var(--font-figure); font-size: 4.2cqw; font-weight: 700; color: var(--ink-soft); }
.screen__kcal strong { font-size: 12cqw; font-weight: 800; line-height: 1; color: var(--ink); }
.screen__macros { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; }
.screen__macros span {
  display: grid;
  gap: 0.6cqw;
  padding: 2.4cqw 1cqw;
  border-radius: 3.4cqw;
  background: var(--sunk);
  color: var(--ink-soft);
  font-size: 3cqw;
  font-weight: 600;
  text-align: center;
}
.screen__macros span:first-child { background: var(--mint); color: var(--mint-deep); }
.screen__macros b { font-family: var(--font-figure); font-size: 4.4cqw; font-weight: 800; color: var(--ink); }
.screen__macros span:first-child b { color: inherit; }
.screen__items { display: grid !important; gap: 1.5cqw; min-height: 0; overflow: hidden; }
.screen__items span { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2cqw; align-items: baseline; font-size: 3.1cqw; }
.screen__items b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.screen__items i { color: var(--ink-soft); font-style: normal; }
.screen__items em { min-width: 6.5cqw; font-style: normal; font-weight: 700; text-align: right; }
.screen__save {
  margin-top: auto;
  padding: 3.2cqw;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 4cqw;
  font-weight: 700;
  text-align: center;
}

/* ---------- Social links and footer contact ---------- */

.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.social__link::before {
  content: "";
  width: 20px; height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.social__link--tiktok { --glyph: url("/assets/icons/tiktok.svg"); }
.social__link--instagram { --glyph: url("/assets/icons/instagram.svg"); }
.social__handle { color: var(--ink-soft); font-weight: 600; }
.site-footer__contact { margin-top: 12px; color: var(--ink-soft); font-size: 0.9375rem; }
.site-footer__contact a { color: var(--ink); font-weight: 700; }

/* ---------- Questions page, blog and jump links ---------- */

.jump { margin-top: 28px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.jump a:hover { background: var(--terracotta-soft); color: var(--terracotta-deep); }
.prose--wide { max-width: 54rem; }
.prose .faq--page { margin: 18px 0 0; max-width: none; }
.prose .faq--page p { margin-top: 0; }
.prose .faq--page p + p { margin-top: 10px; }
.posts { margin-top: clamp(32px, 5vw, 52px); }
.post-card__title { font-size: 1.35rem; line-height: 1.2; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--terracotta-deep); }

/* ---------- A little character: loose crumbs, the food ticker, the creators band ---------- */

.hero__pill strong { font-weight: 800; }
.hero__pill-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* Loose crumbs, the same terracotta shapes as the logo's. Decoration only. */
.crumbs { position: absolute; inset: 0; pointer-events: none; }
.crumbs span {
  position: absolute;
  width: 14px; height: 12px;
  border-radius: 44% 56% 52% 48% / 55% 42% 58% 45%;
  background: var(--terracotta);
  opacity: 0.85;
}
.crumbs span:nth-child(1) { left: 4%; top: 13%; width: 18px; height: 15px; transform: rotate(18deg); }
.crumbs span:nth-child(2) { left: 46%; top: 6%; width: 9px; height: 8px; opacity: 0.6; }
.crumbs span:nth-child(3) { right: 6%; top: 18%; width: 22px; height: 19px; transform: rotate(-24deg); }
.crumbs span:nth-child(4) { right: 22%; top: 58%; width: 10px; height: 9px; opacity: 0.55; }
.crumbs span:nth-child(5) { left: 38%; top: 72%; width: 13px; height: 11px; transform: rotate(40deg); opacity: 0.7; }
.crumbs span:nth-child(6) { left: 1.5%; top: 62%; width: 8px; height: 7px; opacity: 0.5; }
.crumbs span:nth-child(7) { right: 2%; top: 80%; width: 15px; height: 13px; transform: rotate(12deg); }
.hero .wrap, .promo > :not(.crumbs) { position: relative; z-index: 1; }
@media (max-width: 959.98px) {
  .crumbs span:nth-child(2), .crumbs span:nth-child(4), .crumbs span:nth-child(5), .crumbs span:nth-child(6) { display: none; }
  .crumbs span:nth-child(1) { top: 2.2%; left: auto; right: 30%; }
  .crumbs span:nth-child(3) { top: 1.2%; right: 3%; width: 16px; height: 14px; }
}

/* The things Britain actually eats, drifting past under the hero. */
.ticker {
  position: relative;
  display: flex;
  gap: 0;
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 14px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--raised);
}
.ticker ul { display: flex; flex: none; gap: 10px; margin: 0; padding: 0 5px; list-style: none; }
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}
.ticker__emoji { font-size: 1.15rem; line-height: 1; }

/* The supermarket strip at the very top: names in CRUMB's own lettering, never retailer logos. */
.ticker--shops { margin-top: 0; padding-block: 9px; border-top: 0; background: var(--canvas); }
.ticker--shops li { padding: 5px 14px 5px 11px; background: var(--raised); font-size: 0.875rem; }
.ticker--shops .ticker__label {
  padding-inline: 14px;
  background: var(--terracotta-soft);
  box-shadow: none;
  color: var(--terracotta-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker__basket {
  width: 15px; height: 15px;
  flex: none;
  background: var(--terracotta);
  -webkit-mask: url("/assets/icons/basket.svg") center / contain no-repeat;
  mask: url("/assets/icons/basket.svg") center / contain no-repeat;
}

.section--promo { padding-block: clamp(28px, 5vw, 56px); }
.promo {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--terracotta-soft);
}
.promo--mint { background: var(--mint); }
.promo--mint .eyebrow { color: var(--mint-deep); }
.promo__emoji {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--raised);
  font-size: 2rem;
  line-height: 1;
  transform: rotate(-6deg);
}
.promo h2 { margin-top: 6px; font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
.promo p { margin-top: 10px; max-width: 38rem; color: var(--ink); }
.promo .btn { justify-self: start; }
.crumbs--promo span:nth-child(1) { left: auto; right: 5%; top: 14%; }
.crumbs--promo span:nth-child(2) { left: auto; right: 16%; top: 30%; }
.crumbs--promo span:nth-child(3) { right: 9%; top: 62%; width: 12px; height: 10px; }
.crumbs--promo span:nth-child(4) { right: 26%; top: 78%; display: block; }
@media (max-width: 879.98px) {
  .crumbs--promo span:nth-child(2), .crumbs--promo span:nth-child(3), .crumbs--promo span:nth-child(4) { display: none; }
}
@media (min-width: 880px) {
  .promo { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; }
  .promo .btn { justify-self: end; }
}

/* ---------- Cards you swipe through on a phone (so long lists do not make a long page) ---------- */

@media (max-width: 719.98px) {
  .cards--3, .cards--4 {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards--3::-webkit-scrollbar, .cards--4::-webkit-scrollbar { display: none; }
  .cards--3 > .card, .cards--4 > .card { flex: 0 0 82%; scroll-snap-align: start; }

}

/* ---------- Sections that stack like cards as you scroll ----------
   Each section stays put once it has been read to the end, and the next one slides up over
   it. The script sets how far each one may travel (--stick). No script, or Reduce Motion: the
   page scrolls in the ordinary way. */

/* Scroll anchoring would nudge the page each time a section pins, which throws jumps off. */
.js-stack, .js-stack body, .js-stack main, .js-stack main > * { overflow-anchor: none; }
.js-stack main > section { position: sticky; top: var(--stick, 0px); }
.js-stack main > section + section {
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -22px 44px -30px rgba(0, 0, 0, 0.55);
}
.js-stack main > section.section--raised { border-bottom-color: transparent; }

/* ---------- Motivation tones (a switcher that works without JavaScript) ---------- */

.tones { position: relative; display: grid; gap: 16px; max-width: 440px; margin-inline: auto; }
.tones__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tones__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tones__tab {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 4px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}
.tones__tab:hover { background: var(--sunk); }
#tone-supportive:checked ~ .tones__tabs [for="tone-supportive"],
#tone-sassy:checked ~ .tones__tabs [for="tone-sassy"],
#tone-brutal:checked ~ .tones__tabs [for="tone-brutal"] { background: var(--ink); color: var(--canvas); }
#tone-explicit:checked ~ .tones__tabs [for="tone-explicit"] { background: var(--terracotta); color: var(--on-terracotta); }
.tones__radio:focus-visible ~ .tones__tabs .tones__tab { outline: none; }
#tone-supportive:focus-visible ~ .tones__tabs [for="tone-supportive"],
#tone-sassy:focus-visible ~ .tones__tabs [for="tone-sassy"],
#tone-brutal:focus-visible ~ .tones__tabs [for="tone-brutal"],
#tone-explicit:focus-visible ~ .tones__tabs [for="tone-explicit"] { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.tones__panel { display: none; }
#tone-supportive:checked ~ .tones__panel--supportive,
#tone-sassy:checked ~ .tones__panel--sassy,
#tone-brutal:checked ~ .tones__panel--brutal,
#tone-explicit:checked ~ .tones__panel--explicit { display: block; }

.notes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.note { display: grid; gap: 6px; }
.note__label { color: var(--ink-soft); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; }
.note__card {
  display: grid;
  gap: 3px;
  padding: 12px 14px 13px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--raised) 88%, transparent);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -22px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.note__head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.note__head img { width: 20px; height: 20px; border-radius: 6px; }
.note__when { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
.note__title { font-size: 0.9375rem; line-height: 1.3; }
.note__body { color: var(--ink); font-size: 0.9375rem; line-height: 1.4; }

.tones__gate {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background: var(--night);
  color: #F5F0E8;
}
.tones__badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  font-weight: 800;
}
.tones__gate-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.tones__gate p:not(.tones__gate-title) { color: #C9CCD2; font-size: 0.9375rem; }
.tones__gate .btn { background: var(--terracotta); color: var(--on-terracotta); }
.tones__gate-note { font-size: 0.8125rem; }
.tones__small { color: var(--ink-soft); font-size: 0.8125rem; text-align: center; }
@media (max-width: 380px) { .tones__tab { font-size: 0.75rem; } }

/* ---------- Motion ---------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  a.btn:hover, button.btn:hover { transform: none; }
}

@media print {
  .site-header, .closing, .notify, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}


/* ---------- Motion ----------
   Everything here is decoration: the page is complete without it, and all of it is switched
   off for people who ask their device for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes crumb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes crumb-pop { from { opacity: 0; transform: translateY(36px) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes crumb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes crumb-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.045); } }
  @keyframes crumb-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-26px); } 70% { transform: translateX(6px); } }
  @keyframes crumb-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.55; } }

  /* The hero arrives in order: label, headline, line, phones, button. */
  .hero__copy > * { animation: crumb-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero__copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.20s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.30s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.38s; }
  .hero__copy > :nth-child(6) { animation-delay: 0.46s; }
  .hero__copy > :nth-child(7) { animation-delay: 0.54s; }

  /* Desktop: the two phones rise in, then drift very slightly, out of step with each other. */
  .hero__stage .phone--front { animation: crumb-pop 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__stage .phone--back { animation: crumb-pop 0.9s 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__stage .phone--front .phone__body { animation: crumb-float 7s 1.4s ease-in-out infinite; }
  .hero__stage .phone--back .phone__body { animation: crumb-float 8.5s 2s ease-in-out infinite; }
  .hero__disc { animation: crumb-breathe 9s ease-in-out infinite; }

  /* Phones: one small nudge of the row so it is obvious it can be swiped. */
  .hero__carousel li { animation: crumb-nudge 1.1s 1.5s cubic-bezier(0.3, 0.6, 0.2, 1) 1 both; }

  /* The "coming soon" dot breathes. */
  .btn__dot { animation: crumb-pulse 2.4s ease-in-out infinite; }

  /* Cards and list items in a group follow one another in. */
  .js-reveal .cards > [data-reveal]:nth-child(2), .js-reveal .minis > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
  .js-reveal .cards > [data-reveal]:nth-child(3), .js-reveal .minis > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
  .js-reveal .cards > [data-reveal]:nth-child(4), .js-reveal .minis > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
  .js-reveal .cards--3 > [data-reveal]:nth-child(4) { transition-delay: 0s; }
  .js-reveal .cards--3 > [data-reveal]:nth-child(5) { transition-delay: 0.08s; }
  .js-reveal .cards--3 > [data-reveal]:nth-child(6) { transition-delay: 0.16s; }

  /* Phones further down the page lift a little as they come into view, and on hover. */
  .js-reveal .phone[data-reveal] { transform: translateY(34px) scale(0.97); }
  .js-reveal .phone[data-reveal].is-in { transform: none; }
  .phone--solo .phone__body, .phone-pair .phone__body { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  @media (hover: hover) {
    .phone--solo:hover .phone__body, .phone-pair .phone:hover .phone__body { transform: translateY(-6px); }
    .card { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
    .card:hover, .js-reveal .card[data-reveal].is-in:hover { transform: translateY(-3px); }
  }

  html { scroll-behavior: smooth; }
}

/* Motion for the menu, the floating section bar and the scanner example. */
@media (prefers-reduced-motion: no-preference) {
  .menu__bars, .menu__bars::before, .menu__bars::after { transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease; }
  .dock { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, visibility 0s linear 0.35s; }
  .dock.is-shown { transition-delay: 0s; }
  .notify--popup.is-showing { animation: crumb-popup 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes crumb-popup {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .dock a { transition: background-color 0.2s ease, color 0.2s ease; }
  .dock.is-shown .dock__arrow { animation: crumb-swipe 1.4s ease-in-out infinite; }
  @keyframes crumb-swipe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }
  .screen__beam { animation: crumb-scan 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  @keyframes crumb-scan {
    from { top: 29%; }
    to { top: 66%; }
  }
}

/* Motion for the crumbs and the ticker. */
@media (prefers-reduced-motion: no-preference) {
  .crumbs span { animation: crumb-drift 7s ease-in-out infinite; }
  .crumbs span:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
  .crumbs span:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
  @keyframes crumb-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
  }
  .ticker ul { animation: crumb-ticker 46s linear infinite; }
  .ticker--shops ul { animation-duration: 40s; animation-direction: reverse; }
  @keyframes crumb-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker ul + ul { display: none; }
}


/* =====================================================================================
   Revision 4 home page (23 November 2026): glass notes, the four spotlights, the plans
   preview, the NOT YET. band and the supporting features.
   ===================================================================================== */

/* ---------- Glass ----------
   Solid enough to read without blur; the blur is added only where the browser supports it.
   Only small cards use it, so the cost of the blur stays small. */

.glass {
  border: 1px solid var(--glass-edge);
  background: var(--glass-solid);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
  }
}

/* Glass on the coloured spotlight bands: a dark tint keeps light text well above 4.5:1. */
.glass--on-colour { border-color: rgba(255, 252, 247, 0.22); background: rgba(16, 18, 20, 0.34); color: #FFFCF7; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.6); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass--on-colour { background: rgba(16, 18, 20, 0.22); }
}

/* Floating notes ("📸 Meal analysed"). Decoration: hidden from screen readers, words always
   beside the emoji. */
.bubbles { margin: 0; padding: 0; list-style: none; }
.bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.bubble__emoji { font-size: 1.05rem; line-height: 1; }

.bubbles--stage .bubble { position: absolute; }
/* Placed on the disc, never on either screen (Revision 4, 3.1) and never past the stage's edge:
   one above the back phone (the strip its lower start leaves), two under the phones (the stage's
   bottom padding is the room for them). */
.bubble--a { top: -8px; right: 4%; }
.bubble--b { bottom: 1%; left: 3%; }
.bubble--c { bottom: 1%; right: 4%; }

.bubbles--row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bubbles--row .bubble { padding: 6px 12px 6px 9px; font-size: 0.8125rem; }
.bubbles--row .bubble:nth-child(3) { display: none; }
@media (min-width: 420px) { .bubbles--row .bubble:nth-child(3) { display: inline-flex; } }
@media (min-width: 960px) { .bubbles--row { display: none; } }

.scan-demo { position: relative; }
.bubble--demo { position: absolute; z-index: 3; top: 4%; left: 50%; transform: translateX(-50%); }
.illo .bubble, .phone--solo .bubble { position: absolute; z-index: 2; }
/* Ill Mode's second note sits on the phone's top edge, off the screen's content. */
.bubble--ill-top { left: -8%; top: -22px; }
.bubble--illo { right: -4%; top: -22px; }
.bubble--week-a { right: -10px; top: -20px; }
.bubble--week-b { left: -10px; bottom: -22px; }
.bubble--ill { position: absolute; z-index: 2; left: 50%; bottom: -12px; width: max-content; max-width: min(100%, 360px); transform: translateX(-50%); white-space: normal; text-align: left; }
@media (max-width: 559.98px) {
  .bubble--illo, .bubble--week-a { right: 6px; }
  .bubble--ill-top { left: -6px; }
  .bubble--week-b { left: 6px; }
  .bubble { font-size: 0.8125rem; }
}

/* ---------- Bigger headlines for the four spotlights ---------- */

.spot-title { font-size: clamp(2.1rem, 3.4vw + 1.2rem, 3.7rem); letter-spacing: -0.035em; line-height: 1.02; }

/* ---------- Spotlight A: the photo-to-diary steps ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.flow__step {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  counter-increment: flow;
}
.section--raised .flow__step { background: var(--canvas); }
.flow__emoji { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; line-height: 1; }
.flow__emoji::after {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-family: var(--font-figure);
  font-size: 0.8125rem;
  font-weight: 800;
}
.flow__step strong { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.25; }
.flow__step > span:last-child { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }

/* ---------- The near-hero plans preview ---------- */

.section--plans { padding-block: clamp(56px, 8vw, 96px); }
.tiers { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.tier {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--raised);
  box-shadow: var(--shadow-card);
}
.tier--premium { border: 2px solid var(--terracotta); }
.tier--plus { border-style: dashed; border-color: var(--line-strong); background: color-mix(in srgb, var(--raised) 60%, var(--canvas)); }
.tier__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tier__name { font-size: 1.45rem; }
.tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.tier__price .figure { font-size: clamp(2.2rem, 2vw + 1.6rem, 2.9rem); }
.tier__per, .tier__alt { color: var(--ink-soft); font-size: 0.9375rem; }
.tier__alt { margin-top: -6px; }
.tier__lead { color: var(--ink-soft); font-size: 0.9375rem; }
.tier__trial { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; }
.tier__trial .tag { margin-right: 6px; }
.tier .checks { margin-top: 4px; }
.checks--compact { gap: 9px; }
.checks--compact li { font-size: 0.9375rem; line-height: 1.4; }
.checks--compact .icon { margin-top: 0; }
.plans__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 26px; }
.plans__more--start { justify-content: flex-start; }

.tag--quiet { background: var(--sunk); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- Spotlight B: three source labels and the request block ---------- */

.compare--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.request {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--terracotta-soft);
}
.request__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--terracotta-deep); }
.request p:not(.request__title) { color: var(--ink); font-size: 0.9375rem; }
.request__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.request--shop { background: var(--mint); }
.request--shop .request__title { color: var(--mint-deep); }
.request .feature__tags { margin-top: 4px; }

/* ---------- Spotlights C and D: bold, high-contrast bands ----------
   Fixed colours in light and dark, like the dark-mode band: terracotta for the week, a deep
   green for Ill Mode. Soft glows behind give the glass cards something to blur. */

.spot { position: relative; isolation: isolate; color: #FFFCF7; }
.spot .eyebrow { color: #FFE6DB; }
.spot .lede { color: rgba(255, 252, 247, 0.88); }
.spot a { color: #FFFCF7; font-weight: 700; }
.spot__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spot__title { font-size: clamp(2.4rem, 5vw + 1rem, 5rem); letter-spacing: -0.045em; line-height: 0.98; }
.spot__head { max-width: 50rem; }
.spot__head .lede { margin-top: 22px; max-width: 42rem; }
.spot__emoji { font-size: 1.6rem; line-height: 1; }
/* Solid, not translucent: these are the honesty lines (brief 4.1 C), and 15px text needs 4.5:1. */
.spot__note { margin-top: 26px; max-width: 52rem; color: #FFFCF7; font-size: 0.9375rem; line-height: 1.55; }

.spot--week { background: linear-gradient(155deg, #B84A2F 0%, #A33F27 55%, #8A331D 100%); }
.spot--week .spot__glow {
  background:
    radial-gradient(38rem 24rem at 88% 30%, rgba(255, 196, 160, 0.38), transparent 70%),
    radial-gradient(30rem 22rem at 8% 92%, rgba(60, 18, 8, 0.22), transparent 70%);
}
.spot__grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 960px) { .spot__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
/* With the app's banking screen: the lines and the example card on the left, the phone on the right. */
@media (min-width: 960px) {
  .spot__grid--phone { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "lines phone" "card phone"; row-gap: 40px; }
  .spot__grid--phone .spot__lines { grid-area: lines; }
  .spot__grid--phone .weekcard { grid-area: card; }
  .spot__grid--phone > .phone--solo { grid-area: phone; width: 100%; }
}
.spot__lines { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.spot__lines li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3rem);
  line-height: 1.35;
}
.spot__lines strong { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }

/* The example week inside spotlight C: a light card on the terracotta band. */
.weekcard .illo { max-width: 500px; }
.weekcard__card { gap: 18px; border: 0; background: #FFFCF7; color: #171A1F; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.6); }
.weekcard__card .illo__label, .weekcard__card .bank__total { color: #171A1F; }
.weekcard__card .illo__label { color: #5A5E66; }
.weekcard__card .bank__total { border-top-color: rgba(23, 26, 31, 0.12); }
.weekcard__card .tag--mint { background: #D3EBDD; color: #1F6348; }
.weekcard__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.weekcard__start { font-size: 0.875rem; color: #5A5E66; }
.weekcard__start b { color: #9A3A22; }
.weekcard .bubble { color: #171A1F; background: rgba(255, 252, 247, 0.92); border-color: rgba(255, 255, 255, 0.7); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .weekcard .bubble { background: rgba(255, 252, 247, 0.8); }
}

/* Seven bars against the 2,300 target. One bar unit is 2,900 (the tallest day). */
.wk {
  --wk-max: 6.5rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wk__day { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.wk__delta, .wk__kcal {
  min-height: 1.1rem;
  font-family: var(--font-figure);
  font-size: clamp(0.625rem, 2.6vw, 0.8125rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1rem;
  color: #5A5E66;
}
.wk__bar {
  display: grid;
  place-items: start center;
  width: 100%;
  height: calc(var(--wk-max) * 2300 / 2900);
  border-radius: 10px 10px 4px 4px;
  background: #EAE3D7;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.08);
}
.wk__day--save .wk__bar { height: calc(var(--wk-max) * 2100 / 2900); background: #D3EBDD; }
.wk__day--save .wk__delta { color: #1F6348; }
.wk__day--plan .wk__bar { height: var(--wk-max); background: #B84A2F; box-shadow: none; }
.wk__day--plan .wk__delta { color: #9A3A22; }
.wk__pin { margin-top: 6px; font-size: 1rem; line-height: 1; }
.wk__kcal { color: #171A1F; }
.wk__letter { color: #5A5E66; font-size: 0.8125rem; font-weight: 800; }

/* Spotlight D: Ill Mode */
.spot--ill { background: linear-gradient(160deg, #1F6348 0%, #18513A 50%, #11392A 100%); }
.spot--ill .eyebrow { color: #D3EBDD; }
.spot--ill .spot__glow {
  background:
    radial-gradient(34rem 26rem at 82% 40%, rgba(143, 215, 182, 0.30), transparent 70%),
    radial-gradient(26rem 20rem at 10% 10%, rgba(247, 223, 213, 0.14), transparent 70%);
}
.spot__split { display: grid; gap: clamp(44px, 7vw, 72px); align-items: center; }
@media (min-width: 960px) { .spot__split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.spot__big {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #D3EBDD;
  text-wrap: balance;
}
.spot__copy .lede { margin-top: 18px; }
.spot--ill .ticks .icon { background: #D3EBDD; color: #1F6348; }
.spot--ill .ticks li { color: rgba(255, 252, 247, 0.88); }
.spot--ill .ticks strong { color: #FFFCF7; }

/* A fixed light note on the green band in both themes (the themed glass is dark in dark mode). */
.spot--ill .bubble--ill { color: #171A1F; background: rgba(255, 252, 247, 0.92); border-color: rgba(255, 255, 255, 0.7); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .spot--ill .bubble--ill { background: rgba(255, 252, 247, 0.8); }
}
.spot--ill .bubble--ill-top { color: #171A1F; background: rgba(255, 252, 247, 0.92); border-color: rgba(255, 255, 255, 0.7); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .spot--ill .bubble--ill-top { background: rgba(255, 252, 247, 0.8); }
}

/* ---------- NOT YET. band: its own colours, secondary to CRUMB ---------- */

.promo--notyet {
  background: #16180F;
  color: #F4F5EF;
}
.promo--notyet .eyebrow { color: #B9F02D; }
.promo--notyet h2 { color: #FFFFFF; }
.promo--notyet p { color: rgba(244, 245, 239, 0.88); }
.promo--notyet strong { color: #B9F02D; }
.promo__icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(185, 240, 45, 0.3); }
@media (min-width: 880px) { .promo__icon { width: 96px; height: 96px; border-radius: 22px; } }
.promo .promo__small { margin-top: 12px; color: rgba(244, 245, 239, 0.68); font-size: 0.875rem; }
.btn--notyet { background: #B9F02D; color: #16180F; }
a.btn--notyet:hover { box-shadow: 0 14px 26px -16px #B9F02D; }
.promo--notyet :focus-visible { outline-color: #B9F02D; }

/* ---------- Closing band ---------- */

.closing__line { font-family: var(--font-display); font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem) !important; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Motion for the notes: a slow drift, only when motion is welcome ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes crumb-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
  .bubbles--stage .bubble, .illo .bubble, .weekcard .bubble, .phone--solo .bubble { animation: crumb-bob 6.5s ease-in-out infinite; }
  .bubbles--stage .bubble:nth-child(2), .bubble--week-b, .bubble--ill-top { animation-duration: 7.5s; animation-delay: -2.5s; }
  .bubbles--stage .bubble:nth-child(3) { animation-duration: 8.5s; animation-delay: -4s; }
}

/* =====================================================================================
   Glass across the whole site (founder, 23 November 2026: "looks really good, use it across
   the whole site"). Close to Apple's materials, but CRUMB's own: warm porcelain light, soft
   graphite dark.

   Two kinds, so it stays legible and fast:
   - Glass surfaces (cards, plans, questions, panels, forms, chips): a translucent fill with a
     bright top edge and a soft shadow, over a faint wash of terracotta and mint that every
     section carries. No backdrop blur: the wash behind them is smooth, so a blur would cost
     without showing.
   - Floating glass (header, section bar, menu, launch-news card, cookie choice, the small
     notes, the spotlight cards on the coloured bands): the only layers that blur what is
     behind them, at 16-20px at most. Without backdrop-filter they are near-solid.
   Prefers reduced transparency: every surface becomes solid and nothing blurs.
   Contrast: body text on a surface is at least 4.5:1 in light and dark (measured against the
   lightest and darkest mix of fill and wash).
   ===================================================================================== */

:root {
  --glass-card: rgba(255, 252, 247, 0.62);
  --glass-card-strong: rgba(255, 252, 247, 0.84);
  --glass-card-edge: rgba(255, 255, 255, 0.78);
  --glass-card-line: rgba(23, 26, 31, 0.08);
  --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-card-shadow: 0 1px 2px rgba(23, 26, 31, 0.04), 0 24px 48px -34px rgba(23, 26, 31, 0.4);
  --glass-float: rgba(255, 252, 247, 0.9);   /* menu, launch news, cookie choice: --ink-soft stays 4.5:1 over the darkest band */
  --glass-blur: blur(18px) saturate(1.6);
  --glow-warm: rgba(184, 74, 47, 0.10);
  --glow-cool: rgba(31, 99, 72, 0.09);
  --glass-warm: color-mix(in srgb, var(--terracotta-soft) 74%, transparent);
  --glass-cool: color-mix(in srgb, var(--mint) 74%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass-card: rgba(38, 42, 48, 0.56);
    --glass-card-strong: rgba(38, 42, 48, 0.86);
    --glass-card-edge: rgba(245, 240, 232, 0.13);
    --glass-card-line: rgba(245, 240, 232, 0.10);
    --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --glass-card-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.85);
    --glass-float: rgba(30, 33, 38, 0.9);     /* and over the light example cards in dark mode */
    --glow-warm: rgba(233, 120, 90, 0.09);
    --glow-cool: rgba(143, 215, 182, 0.06);
  }
}

/* The wash behind the glass. Sections stay opaque (they stack over each other as you scroll). */
.section:not(.spot):not(.night):not(.section--promo),
.page {
  background-image:
    radial-gradient(52rem 32rem at 100% 0%, var(--glow-warm), transparent 65%),
    radial-gradient(44rem 30rem at 0% 100%, var(--glow-cool), transparent 65%);
}
.section--raised:not(.spot) {
  background-image:
    radial-gradient(46rem 30rem at 0% 0%, var(--glow-cool), transparent 65%),
    radial-gradient(52rem 32rem at 100% 100%, var(--glow-warm), transparent 65%);
}
.hero {
  background-image:
    radial-gradient(60rem 36rem at 85% 20%, var(--glow-warm), transparent 65%),
    radial-gradient(40rem 30rem at 0% 90%, var(--glow-cool), transparent 65%);
}

/* Glass surfaces. One rule for every page; "main" keeps it above the older per-section fills. */
main :is(.glass-card, .card, .tier, .plan, .compare__item, .illo__card:not(.weekcard__card), .faq details,
         .prose .panel, .prose .form, .forms-fallback, .notify:not(.notify--popup), .matrix, .flow__step,
         .tones__tabs, .prose .step, .callout, .request, .live-banner, .draft-banner, .why__everywhere) {
  border: 1px solid var(--glass-card-edge);
  background-color: var(--glass-card);
  box-shadow: var(--glass-sheen), var(--glass-card-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* The overrides below carry [class] so they outrank the shared rule above (same specificity, later). */
main :is(.callout, .request, .draft-banner)[class] { background-color: var(--glass-warm); }
main :is(.request--shop, .live-banner)[class] { background-color: var(--glass-cool); }
main .draft-banner[class] { border: 2px solid var(--terracotta); }
main :is(.tier--premium, .plan--premium)[class] {
  border: 2px solid var(--terracotta);
  box-shadow: var(--glass-sheen), 0 30px 60px -38px color-mix(in srgb, var(--terracotta) 70%, transparent), var(--glass-card-shadow);
}
main .tier--plus[class] { border-style: dashed; border-color: var(--line-strong); background-color: color-mix(in srgb, var(--glass-card) 70%, transparent); }
main :is(.price, .tier__status) { background: color-mix(in srgb, var(--canvas) 62%, transparent); box-shadow: inset 0 0 0 1px var(--glass-card-line); }
main .illo__field { background: color-mix(in srgb, var(--sunk) 72%, transparent); }
main .tier--premium-plus[class] { border-style: dashed; border-color: var(--line-strong); }
main .faq details[open] { background-color: var(--glass-card-strong); }
main .faq summary:hover { background: color-mix(in srgb, var(--canvas) 40%, transparent); }

/* Chips and small links: glass pills. */
:is(.jump a, .social__link, .qlinks a, .menu__toggle) {
  border: 1px solid var(--glass-card-edge);
  background: var(--glass-card);
  box-shadow: var(--glass-sheen);
}
.jump a:hover, .qlinks a:hover { border-color: var(--terracotta); background: var(--glass-card-strong); color: var(--terracotta-deep); }

/* Fields: nearly solid, so typed text is always clear. */
:is(.form, .notify) :is(input[type="text"], input[type="email"], input[type="url"], input[type="month"],
                         input[type="number"], input[type="file"], select, textarea) {
  background: var(--glass-card-strong);
  border-color: var(--line-strong);
  box-shadow: var(--glass-sheen);
}

/* Legal, support and other text pages: the text sits on one sheet of glass on wider screens. */
@media (min-width: 720px) {
  .page .prose:not(.prose--wide) {
    max-width: 52rem;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--glass-card-edge);
    border-radius: 32px;
    background: var(--glass-card);
    box-shadow: var(--glass-sheen), var(--glass-card-shadow);
  }
  .page .prose:not(.prose--wide) > :first-child { margin-top: 0; }
  .page .prose:not(.prose--wide) :is(.panel, .form, .forms-fallback, .step) { background-color: var(--glass-card-strong); box-shadow: var(--glass-sheen); }
}

/* Floating glass: the layers that sit over the page and blur it. */
.site-header { box-shadow: 0 1px 0 transparent; transition: box-shadow 0.2s ease; }
.site-header.is-stuck { border-bottom-color: var(--glass-card-line); box-shadow: 0 12px 30px -24px rgba(23, 26, 31, 0.35); }
.menu__panel, .notify--popup { border: 1px solid var(--glass-card-edge); background: var(--raised); box-shadow: var(--glass-sheen), 0 28px 60px -28px rgba(0, 0, 0, 0.55); }
.dock ul { background: var(--ink); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--canvas) 72%, transparent);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .menu__panel, .notify--popup {
    background: var(--glass-float);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
  }
  .dock ul {
    background: color-mix(in srgb, var(--ink) 80%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--canvas) 22%, transparent), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .glass { -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
}

/* The four-step strip and the tones tabs are surfaces, not floating: no blur. */
.flow__step.glass, .section--raised .flow__step { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- New pieces of the de-duplicated home page ---------- */

.plans__terms { max-width: 60rem; margin: 26px auto 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; text-align: center; }
.tier__more { margin-top: 2px; border-top: 1px solid var(--glass-card-line); padding-top: 12px; }
.tier__more summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--terracotta-deep);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.tier__more summary::-webkit-details-marker { display: none; }
.tier__more summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2.2px solid currentColor;
  border-bottom: 2.2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.tier__more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.tier__more .checks { margin-top: 8px; }
.tier .prices { gap: 8px; }
.tier .price { padding: 12px 16px; }
.tier .price__amount { font-size: 1.3rem; white-space: nowrap; }
.tier--premium .checks .icon { color: var(--terracotta); }

.why__drinks { margin-top: clamp(64px, 9vw, 112px); }
.request--shop { margin-top: clamp(28px, 4vw, 40px); }
.why__everywhere { margin-top: 22px; max-width: 60rem; padding: 18px 22px; border-radius: 20px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
.why__everywhere strong { color: var(--ink); }

.qlinks { display: grid; gap: 10px; max-width: 60rem; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 720px) { .qlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qlinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  height: 100%;
  padding: 14px 20px;
  border-radius: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.qlinks a::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2.2px solid var(--terracotta);
  border-top: 2.2px solid var(--terracotta);
  transform: rotate(45deg);
}

/* Spotlights C and D: tags, the two detail cards and the tick lists on the coloured bands. */
.spot__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag--on-colour { background: rgba(16, 18, 20, 0.28); color: #FFFCF7; box-shadow: inset 0 0 0 1px rgba(255, 252, 247, 0.32); }
.spot__copy .spot__tags + .ticks { margin-top: 22px; }
.spot__panels { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .spot__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.spot__panel { display: grid; align-content: start; gap: 10px; padding: clamp(22px, 3vw, 30px); border-radius: 26px; }
.spot__panel .eyebrow { margin: 0; }
.spot__panel-title { font-size: clamp(1.35rem, 1vw + 1.05rem, 1.75rem); letter-spacing: -0.025em; line-height: 1.15; color: #FFFCF7; }
.spot__panel .ticks { margin-top: 10px; gap: 14px; }
.spot .ticks li { color: rgba(255, 252, 247, 0.9); font-size: 1rem; }
.spot .ticks strong { color: #FFFCF7; }
.spot--week .ticks .icon { background: #FFFCF7; color: #9A3A22; }

/* The workout and rest-day card's small example week (Monday to Friday). Solid porcelain text on
   the card's dark glass, as the ticks; workout days carry a slightly darker tile. */
.goalweek { margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 252, 247, 0.22); }
.goalweek__label { color: #FFE6DB; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.goalweek__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.goalweek__day {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 2px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 247, 0.28);
  color: #FFFCF7;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.goalweek__day b { font-size: 0.9375rem; }
.goalweek__day--workout { background: rgba(16, 18, 20, 0.3); box-shadow: inset 0 0 0 1.5px #FFFCF7; }
.goalweek__key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: #FFFCF7; font-size: 0.875rem; }
.goalweek__key span { display: inline-flex; align-items: center; gap: 6px; }
.goalweek__swatch { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 252, 247, 0.6); }
.goalweek__swatch--workout { background: rgba(16, 18, 20, 0.3); box-shadow: inset 0 0 0 1.5px #FFFCF7; }

/* ---------- Prefers reduced transparency: solid surfaces, no blur ---------- */

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-card: var(--raised);
    --glass-card-strong: var(--raised);
    --glass-float: var(--raised);
    --glass-fill: var(--glass-solid);
    --glass-warm: var(--terracotta-soft);
    --glass-cool: var(--mint);
  }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header { background: var(--canvas); }
  .dock ul { background: var(--ink); }
  .glass { background: var(--glass-solid); }
  .glass--on-colour { background: rgba(16, 18, 20, 0.42); }
  .note__card { background: var(--raised); }
}
