/*
 * Chefkin — landing page.
 *
 * The tokens below mirror `apps/mobile/src/theme/` one-to-one (colors,
 * gradients, shadows, radius, spacing, typography) so the site and the app
 * read as the same product. Change a token in the app, change it here.
 */

/* ── Tokens ─────────────────────────────────────────────────────────── */

:root {
  --snow: #faf5f5;
  --spruce: #157a6e;
  --shamrock: #499f68;
  --muted-teal: #77b28c;
  --aqua: #87f6ff;

  --bg: #faf5f5;
  --surface: #eff2ef;
  --card: #ffffff;
  --text: #13241f;
  --text-muted: #5f7570;
  --primary: #157a6e;
  --on-primary: #ffffff;
  --primary-soft: #dfede9;
  --on-primary-soft: #0d4c43;
  --accent: #87f6ff;
  --accent-soft: #dcf9fc;
  --on-accent: #083a3e;
  --tertiary: #77b28c;
  --border: #e5e9e5;
  --success: #499f68;
  --warning: #8a6116;
  --warning-bg: #fbf0ce;

  --grad-brand: linear-gradient(135deg, #157a6e, #3e9b71);
  --grad-spark: linear-gradient(135deg, #499f68, #5cc9d6);
  --grad-soft: linear-gradient(135deg, #dfede9, #dcf9fc);
  --cover-1: linear-gradient(135deg, #157a6e, #499f68);
  --cover-2: linear-gradient(135deg, #499f68, #77b28c);
  --cover-3: linear-gradient(135deg, #116a60, #3fa893);
  --cover-4: linear-gradient(135deg, #77b28c, #5cc9d6);

  --shadow-card: 0 2px 14px rgba(21, 122, 110, 0.1);
  --shadow-raised: 0 6px 18px rgba(21, 122, 110, 0.22);
  --shadow-floating: 0 12px 32px rgba(10, 42, 37, 0.22);
  --glass: rgba(255, 255, 255, 0.72);
  --hairline: transparent;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-2xl: 32px;
  --s-3xl: 48px;

  --maxw: 1160px;
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);

  color-scheme: light;
}

/* Dark mode: same tokens as the app's dark scheme. Declared twice on purpose
   — once for the manual toggle, once for the system preference — so the page
   is correct before JavaScript runs. */
:root[data-theme='dark'] {
  --bg: #0c1513;
  --surface: #131f1c;
  --card: #172723;
  --text: #edf5f2;
  --text-muted: #94a9a2;
  --primary: #37bca9;
  --on-primary: #03211d;
  --primary-soft: #16312b;
  --on-primary-soft: #9bd9ce;
  --accent: #87f6ff;
  --on-accent: #9fe8f2;
  --accent-soft: #0f343a;
  --border: #233530;
  --success: #57c98b;
  --warning: #e3b23c;
  --warning-bg: #3a2f12;
  --grad-brand: linear-gradient(135deg, #1f8577, #37bca9);
  --grad-spark: linear-gradient(135deg, #37bca9, #5cd1de);
  --grad-soft: linear-gradient(135deg, #16312b, #0f343a);
  --cover-1: linear-gradient(135deg, #135f55, #2e8d6b);
  --cover-2: linear-gradient(135deg, #1d6b4f, #4f8a68);
  --cover-3: linear-gradient(135deg, #0f4e47, #2a9483);
  --cover-4: linear-gradient(135deg, #3c7a5c, #2c97a4);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.35);
  --shadow-raised: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.55);
  --glass: rgba(19, 31, 28, 0.72);
  --hairline: #233530;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c1513;
    --surface: #131f1c;
    --card: #172723;
    --text: #edf5f2;
    --text-muted: #94a9a2;
    --primary: #37bca9;
    --on-primary: #03211d;
    --primary-soft: #16312b;
    --on-primary-soft: #9bd9ce;
    --accent: #87f6ff;
    --on-accent: #9fe8f2;
    --accent-soft: #0f343a;
    --border: #233530;
    --success: #57c98b;
    --warning: #e3b23c;
    --warning-bg: #3a2f12;
    --grad-brand: linear-gradient(135deg, #1f8577, #37bca9);
    --grad-spark: linear-gradient(135deg, #37bca9, #5cd1de);
    --grad-soft: linear-gradient(135deg, #16312b, #0f343a);
    --cover-1: linear-gradient(135deg, #135f55, #2e8d6b);
    --cover-2: linear-gradient(135deg, #1d6b4f, #4f8a68);
    --cover-3: linear-gradient(135deg, #0f4e47, #2a9483);
    --cover-4: linear-gradient(135deg, #3c7a5c, #2c97a4);
    --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.35);
    --shadow-raised: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.55);
    --glass: rgba(19, 31, 28, 0.72);
    --hairline: #233530;
    color-scheme: dark;
  }
}

/* ── Base ───────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 60;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  transition: translate 0.2s ease;
}

.skip:focus {
  translate: -50% 0;
}

/* `/` fallback when the host cannot negotiate the language itself. */
.chooser {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-md);
  padding: var(--s-xl);
  text-align: center;
}

.chooser img {
  margin-bottom: var(--s-sm);
}

/* Icons: stroked at 24×24, like the Ionicons outline set the app uses. */
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 22px;
  height: 22px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  background: var(--surface);
}

/* Typography scale — the app's `typography.ts`, fluid where it needs to be. */

.display,
.h1,
.h2,
.h3,
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.display {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.spark-text {
  background: var(--grad-spark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(4rem, 2rem + 8vw, 7.5rem);
}

.section-head {
  max-width: 44ch;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.section-head .overline {
  display: block;
  margin-bottom: var(--s-md);
}

.section-head p {
  margin-top: var(--s-lg);
}

.section-head--center {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
}

/* Background atmosphere: the app's `soft` gradient, blurred into blobs. */
.blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob--1 {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  right: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%);
}

.blob--2 {
  width: 40vw;
  height: 40vw;
  top: 42vh;
  left: -14vw;
  background: radial-gradient(circle at 50% 50%, var(--tertiary), transparent 65%);
  opacity: 0.35;
}

.blob--3 {
  width: 52vw;
  height: 52vw;
  bottom: -18vw;
  right: -8vw;
  background: radial-gradient(circle at 50% 50%, var(--primary), transparent 62%);
  opacity: 0.22;
}

/* ── Buttons & chips ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s ease,
    background 0.22s ease;
  will-change: transform;
}

.btn:active {
  transform: scale(0.96);
}

.btn--primary {
  background-image: var(--grad-brand);
  color: var(--on-primary);
  box-shadow: var(--shadow-raised);
}

.btn--primary:hover {
  box-shadow: 0 10px 26px rgba(21, 122, 110, 0.32);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}

.btn--secondary:hover {
  background: color-mix(in srgb, var(--primary-soft) 82%, var(--primary));
}

.btn--ghost {
  color: var(--primary);
  padding-inline: 0.9rem;
}

.btn--ghost:hover {
  background: var(--primary-soft);
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.chip--selected {
  background: var(--primary);
  color: var(--on-primary);
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--on-accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header.is-stuck {
  border-bottom-color: var(--border);
  background: var(--glass);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
}

.header .brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
}

.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-full);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
  flex: 0 0 auto;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}

.icon-btn:active {
  transform: scale(0.92);
}

.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.7rem;
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

.lang-switch:hover {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}

.lang-switch:active {
  transform: scale(0.92);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme='light']) .theme-toggle .icon-moon {
    display: none;
  }
}

/* The links go, the call to action stays — it is the point of the page. */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .header__inner {
    gap: var(--s-sm);
  }
  .header .btn {
    padding-inline: 1.1rem;
    font-size: 0.94rem;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 1rem + 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-block: var(--s-lg) var(--s-lg);
  max-width: 15ch;
}

.hero .lead {
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  margin-top: var(--s-xl);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust svg {
  color: var(--success);
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero h1,
  .hero .lead {
    max-width: none;
  }
  .hero__stage {
    justify-self: center;
  }
}

/* ── Phone mockups ──────────────────────────────────────────────────── */

.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 290 / 588;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2b3b37, #101b18 55%, #26332f);
  box-shadow:
    var(--shadow-floating),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  flex: 0 0 auto;
}

.phone::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: var(--r-full);
  background: #0b1210;
  z-index: 3;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 58px 16px 0;
  font-size: 13px;
  line-height: 1.35;
}

.phone--floating {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero__stage {
  display: flex;
  justify-content: center;
}

/* Sized to the phone, so the floating cards anchor to its edges. */
.stage-inner {
  position: relative;
  width: 290px;
}

/* Cards floating beside the hero phone. */
.orbit {
  position: absolute;
  width: max-content;
  /* Guard against a longer translation running past the viewport edge. */
  max-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--hairline);
  font-size: 0.82rem;
  font-weight: 600;
  animation: float 8s ease-in-out infinite;
  z-index: 3;
}

.orbit small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.orbit__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  flex: 0 0 auto;
}

.orbit--tl {
  top: -14px;
  right: calc(100% - 46px);
  animation-delay: -1.5s;
}

.orbit--br {
  bottom: 12%;
  left: calc(100% - 24px);
  animation-delay: -4s;
}

.orbit--br .orbit__icon {
  background: var(--accent-soft);
  color: var(--on-accent);
}

/* Not enough room to clear the review card's badge — one floating card is
   better than one sitting on top of the copy. */
@media (max-width: 1180px) {
  .orbit--tl {
    right: calc(100% - 96px);
  }
  .orbit--br {
    display: none;
  }
}

@media (max-width: 1040px) {
  .orbit {
    display: none;
  }
}

@media (max-width: 480px) {
  .phone,
  .stage-inner {
    width: min(290px, 82vw);
  }
}

/* App chrome inside a mockup */

.app-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.app-overline {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  padding: 11px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--cover-1);
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover--2 {
  background: var(--cover-2);
}
.cover--3 {
  background: var(--cover-3);
}
.cover--4 {
  background: var(--cover-4);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 12px;
}

.app-chips {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.app-chip {
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  font-size: 10.5px;
  font-weight: 500;
}

.app-chip--on {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-raised);
  border-color: transparent;
}

/* Floating tab bar — icon-only pill, detached from the edges. */
.tabbar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: var(--r-full);
  background: var(--card);
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--hairline);
  z-index: 2;
}

.tabbar span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  color: var(--text-muted);
}

.tabbar span.on {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}

.tabbar span.plus {
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-raised);
}

.phone__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero import demo */

.demo-source {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.demo-source__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background-image: var(--grad-spark);
  color: #fff;
  flex: 0 0 auto;
}

.demo-source__text {
  min-width: 0;
}

.demo-source__label {
  font-weight: 600;
  font-size: 12px;
}

.demo-source__value {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-progress {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface);
  overflow: hidden;
}

.demo-progress__fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background-image: var(--grad-brand);
  transition: width 1.9s cubic-bezier(0.35, 0.8, 0.3, 1);
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.35;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.demo-step.is-on {
  opacity: 1;
  color: var(--text);
}

.demo-step__dot {
  width: 16px;
  height: 16px;
  border-radius: var(--r-full);
  background: var(--surface);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text-muted);
}

.demo-step.is-on .demo-step__dot {
  background: var(--success);
  color: #fff;
}

.demo-result {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-result.is-in {
  opacity: 1;
  transform: none;
}

/* Once the import lands, the progress makes way for the review card. */
.phone__body.is-done .demo-progress,
.phone__body.is-done .demo-steps {
  display: none;
}

.demo-hero-cover {
  height: 96px;
  border-radius: var(--r-lg);
  background: var(--cover-1);
  display: grid;
  place-items: center;
  font-size: 34px;
  position: relative;
  overflow: hidden;
}

/* Sits over the gradient, under the ::after scrim — the glyph stays behind as
   the fallback when a dish has no photo. */
.demo-hero-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.35));
}

.ingredient {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.ingredient:last-child {
  border-bottom: 0;
}

.ingredient b {
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Marquee ────────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding-block: var(--s-sm);
}

.marquee__track {
  display: flex;
  gap: var(--s-md);
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.marquee .chip {
  font-size: 0.92rem;
  padding: 0.6rem 1.1rem;
}

.marquee .chip svg {
  color: var(--primary);
}

/* ── Problem section ────────────────────────────────────────────────── */

.problem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-lg);
}

.problem-card {
  padding: var(--s-xl);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.problem-card__num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-spark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.problem-card h3 {
  margin-block: var(--s-md) var(--s-sm);
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.turn {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: var(--r-xl);
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-raised);
  position: relative;
  overflow: hidden;
}

.turn::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 246, 255, 0.55), transparent 62%);
}

.turn p {
  position: relative;
  max-width: 36ch;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.turn span {
  color: var(--aqua);
}

/* ── How it works ───────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.step:nth-child(even) .step__visual {
  order: -1;
}

.step__index {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--s-lg);
}

.step h3 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.step p {
  color: var(--text-muted);
  margin-top: var(--s-md);
  max-width: 42ch;
}

.step__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-top: var(--s-lg);
}

.step__visual {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: var(--r-lg);
  background: var(--grad-soft);
  padding: var(--s-xl);
  position: relative;
  overflow: hidden;
}

@media (max-width: 820px) {
  .step {
    grid-template-columns: 1fr;
  }
  .step:nth-child(even) .step__visual {
    order: 0;
  }
}

/* Visual 1 — sources fanning into one card */
.fan {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.fan__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 0.88rem;
  font-weight: 500;
  transform-origin: left center;
}

.fan__item:nth-child(1) {
  rotate: -2.2deg;
}
.fan__item:nth-child(2) {
  rotate: 1.4deg;
  margin-left: 1.4rem;
}
.fan__item:nth-child(3) {
  rotate: -1deg;
  margin-left: 0.5rem;
}
.fan__item:nth-child(4) {
  rotate: 2deg;
  margin-left: 1.8rem;
}

.fan__item svg {
  color: var(--primary);
  flex: 0 0 auto;
}

/* Visual 2 — structured recipe fields */
.fields {
  width: 100%;
  max-width: 330px;
  display: grid;
  gap: 8px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
}

.field-row span:first-child {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.field-row b {
  font-weight: 600;
}

.field-row--warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.field-row--warn span:first-child {
  color: inherit;
  opacity: 0.8;
}

/* Visual 3 — week plan grid */
.week {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 340px;
}

.week__day {
  padding: 0.6rem 0.4rem;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.week__day b {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.week__day .dish {
  display: block;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--cover-2);
  margin-bottom: 5px;
  overflow: hidden;
}

.week__day .dish img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.week__day:nth-child(2) .dish {
  background: var(--cover-3);
}
.week__day:nth-child(3) .dish {
  background: var(--cover-4);
}
.week__day:nth-child(4) .dish {
  background: var(--cover-1);
}

.week__cart {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  font-weight: 600;
}

.week__cart svg {
  color: var(--primary);
}

.week__cart small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Feature bento ──────────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-lg);
}

.feature {
  grid-column: span 2;
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  margin-bottom: var(--s-lg);
}

.feature h3 {
  letter-spacing: -0.02em;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: var(--s-sm);
}

.feature--wide {
  grid-column: span 3;
}

/* The hero of the grid: brand gradient with an Electric Aqua glow, so white
   text keeps its contrast (the spark gradient alone is too light for it). */
.feature--spark {
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-raised);
  position: relative;
  overflow: hidden;
}

.feature--spark::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 246, 255, 0.45), transparent 62%);
}

.feature--spark > * {
  position: relative;
}

.feature--spark p {
  color: rgba(255, 255, 255, 0.86);
}

.feature--spark .feature__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.feature__demo {
  margin-top: var(--s-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.feature--spark .chip {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
  border-color: transparent;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature,
  .feature--wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

/* ── Screens showcase ───────────────────────────────────────────────── */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.tab {
  display: flex;
  gap: var(--s-lg);
  align-items: flex-start;
  text-align: left;
  padding: var(--s-lg);
  border-radius: var(--r-xl);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-spring);
  width: 100%;
}

.tab:hover {
  background: color-mix(in srgb, var(--card) 60%, transparent);
}

.tab[aria-selected='true'] {
  background: var(--card);
  box-shadow: var(--shadow-card);
  border-color: var(--hairline);
}

.tab__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-muted);
  flex: 0 0 auto;
  transition: background 0.3s ease, color 0.3s ease;
}

.tab[aria-selected='true'] .tab__icon {
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-raised);
}

.tab h3 {
  font-size: 1.05rem;
}

.tab p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  max-width: 40ch;
}

.showcase__stage {
  display: flex;
  justify-content: center;
}

.screen {
  display: none;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.screen.is-active {
  display: flex;
  animation: screen-in 0.5s var(--ease-spring) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
  }
  .showcase__stage {
    order: -1;
  }
  .tab p {
    max-width: none;
  }
}

/* Cooking mode screen */
.cook-step {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-full);
  background-image: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-raised);
}

.progress-dots {
  display: flex;
  gap: 4px;
}

.progress-dots i {
  height: 4px;
  flex: 1;
  border-radius: var(--r-full);
  background: var(--surface);
}

.progress-dots i.on {
  background: var(--primary);
}

/* Shopping list screen */
.aisle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.shop-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  font-size: 12px;
  margin-top: 5px;
}

.shop-row small {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

.tick {
  width: 17px;
  height: 17px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: transparent;
}

.shop-row.done {
  opacity: 0.5;
}

.shop-row.done .tick {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.shop-row.done span:nth-child(2) {
  text-decoration: line-through;
}

/* Nutrition screen */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.macro {
  padding: 9px 7px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  text-align: center;
}

.macro b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.macro span {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kcal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: var(--r-lg);
  background-image: var(--grad-spark);
  color: #fff;
  box-shadow: var(--shadow-raised);
}

.kcal-card b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.kcal-card small {
  display: block;
  margin-top: 3px;
  opacity: 0.85;
  font-size: 11px;
}

.bar {
  height: 6px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  margin-top: 7px;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: #fff;
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-xl);
  align-items: start;
  max-width: 1060px;
  margin-inline: auto;
}

.plan {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.plan--pro {
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-floating);
  position: relative;
  overflow: hidden;
}

.plan--pro::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 246, 255, 0.5), transparent 62%);
}

.plan > * {
  position: relative;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-block: var(--s-md) var(--s-xs);
}

.plan__price b {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__price span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan--pro .plan__price span,
.plan--pro .plan__note {
  color: rgba(255, 255, 255, 0.82);
}

.plan__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan ul {
  display: grid;
  gap: var(--s-md);
  margin-block: var(--s-xl);
}

.plan li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.plan li svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--success);
}

.plan--pro li svg {
  color: var(--aqua);
}

.plan .btn {
  width: 100%;
}

.plan--pro .btn {
  background: #fff;
  background-image: none;
  color: var(--spruce);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: var(--s-md);
}

.faq details {
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  rotate: 45deg;
  transition: rotate 0.3s var(--ease-spring);
  flex: 0 0 auto;
  margin-right: 4px;
}

.faq details[open] summary::after {
  rotate: -135deg;
}

.faq p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ── Final CTA & footer ─────────────────────────────────────────────── */

.cta {
  text-align: center;
  padding: clamp(2.5rem, 1.5rem + 5vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: var(--r-xl);
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-floating);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(135, 246, 255, 0.45), transparent 60%);
}

.cta > * {
  position: relative;
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  max-width: 46ch;
  margin: var(--s-lg) auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta .btn--primary {
  background: #fff;
  background-image: none;
  color: var(--spruce);
  margin-top: var(--s-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-md);
  margin-top: var(--s-xl);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

.store b {
  font-weight: 600;
}

.store small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer {
  padding-block: var(--s-3xl) var(--s-2xl);
  border-top: 1px solid var(--border);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  margin-inline: auto;
}

.footer a:hover {
  color: var(--text);
}

/* ── Entrance animation (the app's `Entrance`: fade + rise) ─────────── */

/* Hidden only once the observer is running, so the page is fully readable
   with JavaScript off. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s var(--ease-spring);
}

.reveal-ready [data-reveal].is-visible {
  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.01ms !important;
  }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── Legal documents ────────────────────────────────────────────────── */

.doc {
  padding: clamp(2rem, 1rem + 4vw, 3.5rem) 0 clamp(3rem, 1rem + 6vw, 5rem);
}

.doc__inner {
  max-width: 46rem;
}

.doc__back {
  margin-bottom: var(--s-lg);
  font-size: 0.94rem;
}

.doc__back a {
  color: var(--text-muted);
}

.doc__back a:hover {
  color: var(--primary);
}

.doc__updated {
  margin-top: var(--s-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.doc .lead {
  margin-top: var(--s-lg);
}

.doc__section {
  margin-top: var(--s-2xl);
}

.doc__section h2 {
  margin-bottom: var(--s-md);
}

.doc__section p,
.doc__list {
  margin-top: var(--s-md);
  color: var(--text-muted);
  line-height: 1.62;
}

.doc__section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc__list li {
  padding-left: 1.15rem;
  position: relative;
  margin-top: 0.45rem;
}

.doc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--primary);
}

/* Reading a table of subprocessors on a phone means scrolling it, not the page. */
.doc__scroll {
  margin-top: var(--s-lg);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.doc__table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.92rem;
}

.doc__table th,
.doc__table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc__table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
}

.doc__table td {
  color: var(--text-muted);
}

.doc__table tr:last-child td {
  border-bottom: 0;
}

/* Unfilled placeholders. Loud on purpose: they must not reach production. */
.todo {
  background: var(--warning-bg);
  color: var(--warning);
  border-radius: var(--r-sm);
  padding: 0.05em 0.4em;
  font-weight: 600;
}

.todo::before {
  content: '⚠ ';
}

.doc__others {
  margin-top: var(--s-3xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-sm);
}

.doc__others b {
  width: 100%;
  margin-bottom: var(--s-xs);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  font-size: 0.9rem;
}

.footer__legal a {
  color: var(--text-muted);
}

.footer__legal a:hover {
  color: var(--primary);
}
