/* ==========================================================================
   Reelish — marketing site styles
   Brand: docs/PRODUCT.md. Fonts are self-hosted (no third-party requests).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand palette (PRODUCT.md) */
  --paprika: #FF5A36;
  --paprika-deep: #E8431F;
  --saffron: #FFB627;
  --basil: #2E9E6A;
  --ink: #1C1917;
  --stone: #78716C;
  --cream: #FFF8F0;
  --grad: linear-gradient(135deg, #FF7A45 0%, #FF5A36 45%, #F43F5E 100%);

  /* Semantic (light) */
  --bg: var(--cream);
  --bg-2: #FBF0E3;
  --surface: #FFFFFF;
  --text: var(--ink);
  --text-2: #3B3531;
  --muted: #6B635E;          /* a hair darker than Stone so small text passes AA on cream */
  --line: #F0E6DA;
  --line-strong: #E4D5C3;
  --accent: var(--paprika-deep);   /* display-size accents (large text) */
  --accent-ink: #C2381B;           /* small accent text, AA on cream/white */
  --success: #1F7A50;
  --tint: #FFF0E8;
  --focus: #C2381B;
  --btn-ink-bg: var(--ink);
  --btn-ink-fg: #FFFFFF;
  --btn-ink-hover: #000000;
  --header-bg: rgba(255, 248, 240, 0.82);

  --shadow-xs: 0 1px 2px rgba(74, 38, 16, 0.06);
  --shadow-sm: 0 1px 2px rgba(74, 38, 16, 0.05), 0 8px 24px -12px rgba(74, 38, 16, 0.14);
  --shadow-md: 0 2px 6px rgba(74, 38, 16, 0.06), 0 18px 40px -18px rgba(74, 38, 16, 0.28);
  --shadow-lg: 0 4px 12px rgba(74, 38, 16, 0.06), 0 32px 64px -24px rgba(74, 38, 16, 0.32);

  --font-display: "Fraunces", ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-card: 28px;
  --radius-md: 20px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --bg-2: #1A1614;
    --surface: #1F1A17;
    --text: #F7F1EA;
    --text-2: #E4DCD3;
    --muted: #A8A29E;
    --line: #2C2622;
    --line-strong: #3A322D;
    --accent: #FF7A45;
    --accent-ink: #FF8B5E;
    --success: #4CC28A;
    --tint: #2C1C15;
    --focus: #FFB627;
    --btn-ink-bg: #F7F1EA;
    --btn-ink-fg: #1C1917;
    --btn-ink-hover: #FFFFFF;
    --header-bg: rgba(20, 17, 16, 0.8);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Paper grain: a whisper of texture under the cream. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .24 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

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

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1rem;
  font: 700 0.8125rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
.h2 em,
.hero-title em,
.doc-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}
.lede a { color: var(--accent-ink); font-weight: 600; }

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 650 1rem/1.15 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { min-height: 58px; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn-ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.btn-ink:hover { background: var(--btn-ink-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); }

.store-badge {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
.store-badge img { width: auto; height: 56px; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline-offset: 4px; }
.store-badge--sm img { height: 38px; }
.store-badge--lg img { height: 60px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
  color: var(--text);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateY(3px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.menu-open .site-header { background: var(--bg); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand img { width: 34px; height: 34px; }

.nav-primary { flex: 1; display: flex; justify-content: center; }
.nav-links { margin: 0; padding: 0; list-style: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
html:not(.js) .nav-toggle { display: none; }

@media (max-width: 899.98px) {
  :root { --header-h: 64px; }
  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 8px max(var(--gutter), env(safe-area-inset-left)) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 560;
    letter-spacing: -0.02em;
    text-decoration: none;
    font-variation-settings: "SOFT" 100;
  }
  html:not(.js) .nav-links { display: none; }
}

@media (max-width: 380px) {
  .brand { font-size: 1.3rem; }
  .brand img { width: 30px; height: 30px; }
  .store-badge--sm img { height: 34px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a {
    position: relative;
    padding: 8px 0;
    font-size: 0.9375rem;
    font-weight: 550;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  padding-top: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  background:
    radial-gradient(55% 45% at 88% 18%, rgba(255, 182, 39, 0.16), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(255, 90, 54, 0.07), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 0.875rem;
  font-weight: 600;
}
.pill-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.16);
}

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 1.6rem + 7.6vw, 6.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  word-spacing: 0.06em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.hero-title span { display: block; }
.hero-title em { word-spacing: 0.1em; letter-spacing: -0.02em; }
.hero-title span:nth-child(2) { padding-left: 0.42em; }
.hero-title span:nth-child(3) { padding-left: 0.84em; }
@media (max-width: 420px) {
  .hero-title span:nth-child(2) { padding-left: 0.3em; }
  .hero-title span:nth-child(3) { padding-left: 0.6em; }
}

.hero-sub {
  margin: 0 0 2rem;
  max-width: 33rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- Hero demo (phone) ---------- */
.hero-demo {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 12px;
}

.demo-backdrop {
  position: absolute;
  inset: 0 0 56px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.demo-glow {
  position: absolute;
  width: 600px;
  max-width: 160%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 69, 0.36), rgba(244, 63, 94, 0.1) 62%, transparent);
}
.demo-card {
  position: absolute;
  width: 340px;
  height: 480px;
  border-radius: 60px;
  background: var(--grad);
  transform: translate(-26px, 10px) rotate(-9deg);
  box-shadow: 0 40px 80px -40px rgba(232, 67, 31, 0.7);
}
.demo-card--paper {
  width: 300px;
  height: 400px;
  border-radius: 34px;
  background:
    linear-gradient(90deg, transparent 38px, rgba(232, 67, 31, 0.32) 38px, rgba(232, 67, 31, 0.32) 40px, transparent 40px),
    repeating-linear-gradient(180deg, transparent 0 31px, #EFE3D5 31px 32px),
    #FFFFFF;
  background-position: 0 0, 0 70px, 0 0;
  transform: translate(92px, -56px) rotate(8deg);
  box-shadow: var(--shadow-md);
}
@media (prefers-color-scheme: dark) {
  .demo-card--paper {
    background:
      linear-gradient(90deg, transparent 38px, rgba(255, 122, 69, 0.35) 38px, rgba(255, 122, 69, 0.35) 40px, transparent 40px),
      repeating-linear-gradient(180deg, transparent 0 31px, #322A25 31px 32px),
      #27201C;
    background-position: 0 0, 0 70px, 0 0;
  }
}
.demo-backdrop .demo-card--paper { z-index: 0; }
.demo-backdrop .demo-card:not(.demo-card--paper) { z-index: 1; }

.demo-status {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .demo-status {
    position: absolute;
    z-index: 3;
    top: 34%;
    left: calc(50% - 150px - 104px);
    display: grid;
    gap: 10px;
  }
}
.demo-status li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-14px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ds-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent-ink);
}
.ds-icon svg { width: 16px; height: 16px; }
.ds-tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--line);
  color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ds-tick svg { width: 12px; height: 12px; }

[data-stage="saving"] .demo-status li { opacity: 1; transform: none; transition-delay: calc(var(--d) * 0.7s + 0.1s); }
[data-stage="saving"] .ds-tick { background: var(--basil); color: #fff; transition-delay: calc(var(--d) * 0.7s + 0.55s); }
[data-stage="notify"] .demo-status li { opacity: 1; transform: none; }
[data-stage="notify"] .ds-tick { background: var(--basil); color: #fff; }
[data-stage="recipe"] .demo-status li { transition-delay: 0.15s; }

.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 640px;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2C2724, #0E0C0B);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 50px 90px -30px rgba(90, 35, 10, 0.55),
    0 24px 40px -24px rgba(90, 35, 10, 0.45);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2A2522;
}
.phone::before { left: -3px; top: 128px; height: 58px; box-shadow: 0 74px 0 #2A2522; }
.phone::after { right: -3px; top: 168px; height: 92px; }

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: #000;
  isolation: isolate;
  color: #fff;
  font-family: var(--font-sans);
  line-height: 1.35;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
@media (max-width: 352px) {
  .phone { transform: scale(0.88); margin-block: -38px; }
}

.ph-statusbar {
  position: absolute;
  z-index: 12;
  inset: 0 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 26px 0 32px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ph-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 90px;
  height: 27px;
  margin-left: -45px;
  border-radius: 20px;
  background: #000;
}
.ph-sys { display: flex; align-items: flex-end; gap: 2px; }
.ph-sys i { display: block; width: 3px; border-radius: 1px; background: #fff; }
.ph-sys i:nth-child(1) { height: 5px; }
.ph-sys i:nth-child(2) { height: 7px; }
.ph-sys i:nth-child(3) { height: 9px; }
.ph-sys b {
  position: relative;
  display: block;
  width: 23px;
  height: 11px;
  margin-left: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 3.5px;
}
.ph-sys b::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1.5px; background: #fff; }

.ph-media {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  overflow: hidden;
  transition: height 0.9s cubic-bezier(0.65, 0, 0.25, 1);
}
.ph-dish,
.ph-steam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ph-dish { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.13) rotate(-2deg); }
}
.ph-steam { filter: blur(5px); opacity: 0.6; }
.ph-steam path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 9;
  stroke-linecap: round;
  animation: steam 3.6s ease-in-out infinite;
}
.ph-steam path:nth-child(2) { animation-delay: 1.2s; }
.ph-steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(30px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-50px); }
}
.ph-shade-top {
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
}
.ph-shade-bottom {
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  transition: opacity 0.5s ease;
}

.ph-video-ui {
  position: absolute;
  z-index: 4;
  inset: 0;
  transition: opacity 0.4s ease;
}
.ph-sticker {
  position: absolute;
  top: 168px;
  left: 24px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff;
  color: #1C1917;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
[data-stage="video"] .ph-sticker { animation: pop 0.5s 0.8s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes pop {
  from { opacity: 0; transform: rotate(-4deg) scale(0.5); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}
.ph-rail {
  position: absolute;
  right: 10px;
  bottom: 128px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ph-rail li {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.ph-rail svg { width: 29px; height: 29px; transition: transform 0.15s ease; }
.ph-rail .is-share::after,
.ph-app--reelish::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.ph-rail .is-share::after { inset: -6px; background: rgba(255, 255, 255, 0.5); }
[data-stage="tap-share"] .ph-rail .is-share::after { animation: tap 0.6s ease-out both; }
[data-stage="tap-share"] .ph-rail .is-share svg { transform: scale(0.86); }
@keyframes tap {
  0% { opacity: 0.95; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.5); }
}
.ph-caption {
  position: absolute;
  left: 16px;
  right: 68px;
  bottom: 50px;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ph-caption strong { font-size: 14px; font-weight: 700; }
.ph-caption p { margin: 4px 0 0; }
.ph-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ph-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.ph-bar i { display: block; width: 64%; height: 100%; border-radius: inherit; background: #fff; }
[data-stage="video"] .ph-bar i { animation: scrub 2.6s linear both; }
@keyframes scrub { from { width: 50%; } to { width: 64%; } }

.ph-home {
  position: absolute;
  z-index: 15;
  bottom: 8px;
  left: 50%;
  width: 108px;
  height: 4.5px;
  margin-left: -54px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  transition: background-color 0.4s ease;
}

/* Bottom sheets */
.ph-sheet {
  position: absolute;
  z-index: 8;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 16px 14px 20px;
  border-radius: 34px;
  background: rgba(250, 247, 243, 0.98);
  color: #1C1917;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(calc(100% + 24px));
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.25, 1);
}
[data-stage="share"] .ph-share,
[data-stage="tap-reelish"] .ph-share,
[data-stage="saving"] .ph-saving { transform: none; }

.ph-share-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ph-thumb { flex: none; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: #3A2418; }
.ph-thumb svg { width: 100%; height: 100%; }
.ph-share-head strong { display: block; font-size: 13px; font-weight: 650; }
.ph-share-head small { display: block; font-size: 11px; color: #78716C; }
.ph-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 0 12px;
  font-size: 10.5px;
  color: #44403C;
  text-align: center;
}
.ph-app { position: relative; display: grid; justify-items: center; gap: 6px; }
.ph-app-icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.ph-app-icon img { width: 100%; height: 100%; }
.ph-app-icon--green { background: linear-gradient(#62E583, #2CBC4F); }
.ph-app-icon--green::after { content: ""; position: absolute; inset: 14px 11px 16px; border-radius: 50%; background: #fff; }
.ph-app-icon--blue { background: linear-gradient(#5DBBFF, #1C7AF0); }
.ph-app-icon--blue::after { content: ""; position: absolute; inset: 17px 11px; border-radius: 3px; background: #fff; }
.ph-app-icon--yellow { background: linear-gradient(#FFE27A 0 32%, #FFFFFF 32%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.ph-app--reelish::after { top: -6px; left: 50%; width: 64px; height: 64px; margin-left: -32px; background: rgba(255, 90, 54, 0.4); }
[data-stage="tap-reelish"] .ph-app--reelish::after { animation: tap 0.6s ease-out both; }
[data-stage="share"] .ph-app--reelish .ph-app-icon,
[data-stage="tap-reelish"] .ph-app--reelish .ph-app-icon { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #FF5A36; }
[data-stage="tap-reelish"] .ph-app--reelish .ph-app-icon { transform: scale(0.9); }
.ph-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 550;
}
.ph-share-row svg { width: 18px; height: 18px; color: #78716C; }

.ph-saving-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; }
.ph-saving-head img { width: 40px; height: 40px; }
.ph-saving-head strong { display: block; font-size: 15px; font-weight: 700; }
.ph-saving-head small { display: block; font-size: 11.5px; color: #78716C; }
.ph-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
  font-size: 12.5px;
  font-weight: 550;
  color: #A8A29E;
}
.ph-steps li { display: flex; align-items: center; gap: 10px; transition: color 0.3s ease; }
.ph-steps i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #E7DDD2;
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.ph-steps svg { width: 12px; height: 12px; }
[data-stage="saving"] .ph-steps li { color: #1C1917; transition-delay: calc(var(--d) * 0.6s + 0.45s); }
[data-stage="saving"] .ph-steps i { background: #2E9E6A; border-color: #2E9E6A; color: #fff; transition-delay: calc(var(--d) * 0.6s + 0.45s); }

/* Push notification */
.ph-push {
  position: absolute;
  z-index: 13;
  top: 50px;
  left: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 22px;
  background: rgba(246, 243, 239, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #1C1917;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transform: translateY(-190px);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
[data-stage="notify"] .ph-push { transform: none; }
[data-stage="recipe"] .ph-push { transition: transform 0.4s ease-in; }
.ph-push img { flex: none; width: 36px; height: 36px; }
.ph-push-body { display: grid; min-width: 0; font-size: 12px; line-height: 1.3; }
.ph-push-top { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.04em; color: #78716C; }
.ph-push-top b { font-weight: 650; }
.ph-push strong { font-size: 13px; font-weight: 650; line-height: 1.25; }
.ph-push small { color: #57534E; font-size: 11.5px; }

/* Recipe state */
.ph-hero-btn {
  position: absolute;
  z-index: 6;
  top: 52px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #1C1917;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ph-hero-btn svg { width: 17px; height: 17px; }
.ph-hero-btn--left { left: 16px; }
.ph-hero-btn--right { right: 16px; color: #FF5A36; }

.ph-recipe {
  position: absolute;
  z-index: 5;
  inset: 226px 0 0;
  padding: 20px 18px 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #FFF8F0;
  color: #1C1917;
  transform: translateY(102%);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.25, 1) 0.1s;
}
.ph-recipe::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(rgba(255, 248, 240, 0), #FFF8F0 58%);
  pointer-events: none;
}
.ph-r-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100;
}
.ph-r-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 550;
  color: #57534E;
}
.ph-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB627, #FF5A36);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.ph-r-watch { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: #C2381B; font-weight: 650; }
.ph-r-watch svg { width: 11px; height: 11px; }
.ph-r-meta { display: flex; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.ph-r-meta li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid #F0E6DA;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ph-r-meta svg { width: 12px; height: 12px; color: #E8431F; }
.ph-r-heading { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.ph-r-ings { margin: 0; padding: 0; list-style: none; }
.ph-r-ings li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #F0E6DA;
  font-size: 12.5px;
}
.ph-r-ings b { font-weight: 700; }
.ph-r-ings i {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.6px solid #E2D5C6;
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.ph-r-ings i svg { width: 11px; height: 11px; }
.ph-r-ings li span { position: relative; transition: color 0.3s ease; }
.ph-r-ings li span::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1.5px;
  background: #A8A29E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.ph-r-cook {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF7A45, #FF5A36 45%, #F43F5E);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(244, 63, 94, 0.6);
}
.ph-r-cook svg { width: 14px; height: 14px; }

.ph-r-title, .ph-r-credit, .ph-r-meta, .ph-r-heading, .ph-r-ings li, .ph-r-cook {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-stage="recipe"] .ph-media { height: 252px; }
[data-stage="recipe"] .ph-shade-bottom { opacity: 0; }
[data-stage="recipe"] .ph-video-ui { opacity: 0; }
[data-stage="recipe"] .ph-recipe { transform: none; }
[data-stage="recipe"] .ph-home { background: rgba(28, 25, 23, 0.85); }
[data-stage="recipe"] .ph-hero-btn { opacity: 1; transform: none; transition-delay: 0.9s; }
[data-stage="recipe"] :is(.ph-r-title, .ph-r-credit, .ph-r-meta, .ph-r-heading, .ph-r-ings li, .ph-r-cook) {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.6s + var(--i) * 75ms);
}
[data-stage="recipe"] .is-check-1 i { background: #FF5A36; border-color: #FF5A36; color: #fff; transition-delay: 2.7s; }
[data-stage="recipe"] .is-check-1 span { color: #A8A29E; transition-delay: 2.75s; }
[data-stage="recipe"] .is-check-1 span::after { transform: scaleX(1); transition-delay: 2.75s; }
[data-stage="recipe"] .is-check-2 i { background: #FF5A36; border-color: #FF5A36; color: #fff; transition-delay: 3.3s; }
[data-stage="recipe"] .is-check-2 span { color: #A8A29E; transition-delay: 3.35s; }
[data-stage="recipe"] .is-check-2 span::after { transform: scaleX(1); transition-delay: 3.35s; }

/* Loop reset: black curtain, then snap everything back underneath it */
.ph-curtain {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
[data-stage="outro"] .ph-curtain { opacity: 1; }
[data-stage="outro"] .phone-screen *:not(.ph-curtain),
[data-stage="outro"] .phone-screen *:not(.ph-curtain)::after {
  transition-duration: 0s !important;
  transition-delay: 0.36s !important;
}

.demo-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 600 0.8125rem/1 var(--font-sans);
  cursor: pointer;
}
.demo-toggle:hover { color: var(--text); }
.demo-toggle svg { width: 14px; height: 14px; }
.demo-toggle .ic-play,
.is-paused .demo-toggle .ic-pause { display: none; }
.is-paused .demo-toggle .ic-play { display: block; }
html:not(.js) .demo-toggle,
.is-static .demo-toggle { display: none; }

.is-paused *,
.is-paused *::after { animation-play-state: paused !important; }
.is-static *,
.is-static *::after { transition: none !important; animation: none !important; }

/* ---------- Works with ---------- */
.works { border-block: 1px solid var(--line); }
.works-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 28px;
}
.works-label {
  margin: 0;
  font: 700 0.8125rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.works-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.works-list li {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-2);
  font-variation-settings: "SOFT" 50;
}
.works-list .works-more {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .works-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- Why ---------- */
.why { background: var(--bg-2); }
.why-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}
.pains { display: grid; gap: 1.25rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.pains li {
  display: grid;
  gap: 2px;
  padding-left: 1.25rem;
  border-left: 2px solid var(--line-strong);
}
.pains strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100;
}
.pains span { color: var(--muted); }

.why-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: clamp(440px, 118vw, 470px);
  margin-inline: auto;
}
.shot {
  position: absolute;
  width: clamp(140px, 40vw, 190px);
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.shot-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: #3E2617;
}
.shot-img svg { width: 86%; height: 86%; }
.shot-img--tall { position: relative; aspect-ratio: 3 / 3.4; }
.shot-img--tall > svg { width: 100%; height: 100%; }
.shot-lines { display: grid; gap: 6px; padding: 10px 6px 4px; }
.shot-lines i, .sv-mini-lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.shot-lines .short, .sv-mini-lines .short { width: 58%; }
.shot-file {
  display: block;
  overflow: hidden;
  padding: 6px 6px 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shot--1 { top: 34px; left: 12px; transform: rotate(-9deg); }
.shot--2 { top: 0; right: 12px; transform: rotate(7deg); }
.shot--3 {
  z-index: 2;
  top: 64px;
  left: 50%;
  width: clamp(190px, 56vw, 230px);
  transform: translateX(-50%) rotate(-1.5deg);
}
.shot-paused {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.shot-paused svg { width: 24px; height: 24px; }
.shot-scrub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.shot-scrub .t:first-child { padding: 3px 7px; border-radius: 6px; background: #C2381B; color: #fff; }
.shot-scrub .bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.shot-scrub .bar i { position: absolute; inset: 0 auto 0 0; width: 64%; border-radius: inherit; background: var(--grad); }
.shot-scrub .bar i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--paprika-deep), var(--shadow-xs);
}
.why-note {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 4px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 6px 18px 18px 18px;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  transform: rotate(3deg);
  box-shadow: var(--shadow-md);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-num {
  order: 1;
  display: grid;
  margin: 0 0 0.85rem 0.5rem;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-ink-bg);
  color: var(--btn-ink-fg);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.step-visual {
  order: 0;
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-2);
}
.step h3 {
  order: 2;
  margin: 0 0 0.5rem;
  padding-inline: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100;
}
.step p { order: 3; margin: 0; padding-inline: 0.5rem; color: var(--muted); }

.sv-share { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.sv-apps { display: flex; align-items: center; gap: 12px; }
.sv-app { display: block; width: 50px; height: 50px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.sv-app--g { background: linear-gradient(#62E583, #2CBC4F); }
.sv-app--b { background: linear-gradient(#5DBBFF, #1C7AF0); }
.sv-app--y { background: linear-gradient(#FFE27A 0 32%, #FFFFFF 32%); }
.sv-app--reelish {
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5.5px var(--paprika), var(--shadow-md);
}
.sv-app--reelish img { width: 100%; height: 100%; }
.step.is-visible .sv-app--reelish { animation: nudge 2.4s ease-in-out 0.6s infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.sv-caption { font-size: 0.875rem; color: var(--muted); }
.sv-caption b { color: var(--text); }

.sv-passes { align-content: center; justify-items: stretch; gap: 10px; padding: 0 1.25rem; }
.sv-passes > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 0.875rem;
  font-weight: 600;
}
.sv-passes > span > svg { width: 18px; height: 18px; color: var(--accent-ink); }
.sv-passes i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--basil);
  color: #fff;
}
.sv-passes i svg { width: 12px; height: 12px; }
.step.is-visible .sv-passes > span { animation: passIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.step.is-visible .sv-passes > span:nth-child(1) { animation-delay: 0.35s; }
.step.is-visible .sv-passes > span:nth-child(2) { animation-delay: 0.6s; }
.step.is-visible .sv-passes > span:nth-child(3) { animation-delay: 0.85s; }
@keyframes passIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.sv-saved { align-content: center; justify-items: stretch; gap: 10px; padding: 0 1.25rem; }
.sv-push {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.sv-push img { flex: none; width: 34px; height: 34px; }
.sv-push b { display: block; font-weight: 650; }
.sv-push small { color: var(--muted); }
.sv-mini {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.sv-mini-img { flex: none; width: 58px; height: 58px; overflow: hidden; border-radius: 12px; background: #3A2418; }
.sv-mini-img svg { width: 100%; height: 100%; }
.sv-mini-lines { display: grid; flex: 1; align-content: center; gap: 7px; }

.steps > :nth-child(2) { transition-delay: 0.08s; }
.steps > :nth-child(3) { transition-delay: 0.16s; }

/* ---------- Features (bento) ---------- */
.bento { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "import import"
      "scale cook"
      "grocery cook"
      "collections nutrition"
      "sync sync";
  }
  .card--import { grid-area: import; }
  .card--cook { grid-area: cook; }
  .card--scale { grid-area: scale; }
  .card--grocery { grid-area: grocery; }
  .card--collections { grid-area: collections; }
  .card--nutrition { grid-area: nutrition; }
  .card--sync { grid-area: sync; }
}
@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "import import cook"
      "scale grocery cook"
      "collections nutrition sync";
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100;
}
.card-copy { max-width: 34rem; }
.card-copy p { margin: 0; color: var(--muted); }

.tag {
  position: relative;
  top: -0.2em;
  display: inline-block;
  margin-left: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--saffron);
  color: var(--ink);
  font: 700 0.6875rem/1.1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Smart import */
@media (min-width: 700px) {
  .card--import { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 2rem; }
}
.fx-import { display: grid; grid-template-columns: auto minmax(36px, 1fr) auto; align-items: center; }
.fx-sources { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fx-sources li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.fx-sources svg { width: 16px; height: 16px; color: var(--accent-ink); }
.fx-lines { width: 100%; height: 148px; overflow: visible; }
.fx-lines path {
  fill: none;
  stroke: var(--paprika);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -18; } }
.fx-card {
  width: 172px;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.fx-card-img { display: block; height: 100px; overflow: hidden; border-radius: 14px; background: #3A2418; }
.fx-card-img svg { width: 100%; height: 100%; }
.fx-card strong {
  display: block;
  margin: 10px 4px 2px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.15;
}
.fx-card small { display: block; margin: 0 4px; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 559.98px) {
  .fx-import { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .fx-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .fx-lines { display: none; }
}

/* Cook mode */
.card--cook { background: #1C1917; border-color: #1C1917; color: #F7F1EA; }
.card--cook .card-copy p { color: #CFC7BF; }
@media (prefers-color-scheme: dark) {
  .card--cook { background: linear-gradient(165deg, #2D1F18, #171210); border-color: #3A2C25; }
}
.fx-cook {
  display: grid;
  flex: 1;
  grid-template-rows: auto 1fr auto auto;
  gap: 1.1rem;
  margin-top: auto;
  padding: 1.25rem;
  border: 1px solid #3A322D;
  border-radius: 22px;
  background: #27211D;
}
.fx-cook-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B5AEA8;
}
.fx-awake { display: inline-flex; align-items: center; gap: 5px; color: var(--saffron); letter-spacing: 0; text-transform: none; }
.fx-awake svg { width: 14px; height: 14px; }
.fx-cook-step {
  align-self: center;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #FFF8F0;
  font-variation-settings: "SOFT" 100;
}
.fx-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: #1C1917;
}
.fx-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.fx-ring circle { fill: none; stroke: #3A322D; stroke-width: 4; }
.fx-ring .prog {
  stroke: var(--paprika);
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 30;
  animation: ring 8s linear infinite;
}
@keyframes ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 119.4; } }
.fx-timer b { display: block; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fx-timer small { font-size: 0.75rem; color: #B5AEA8; }
.fx-cook-nav { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; font-weight: 600; color: #B5AEA8; }
.fx-dots { display: flex; gap: 5px; }
.fx-dots i { display: block; width: 6px; height: 6px; border-radius: 3px; background: #4A403A; }
.fx-dots .on { width: 18px; background: var(--paprika); }

/* Servings scaler */
.fx-scale { display: grid; gap: 1rem; margin-top: auto; }
.fx-scale-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.stepper, .seg {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.stepper { gap: 2px; }
.stepper button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.stepper button:active { transform: scale(0.92); }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper svg { width: 16px; height: 16px; }
.stepper-value { min-width: 96px; font-size: 0.9375rem; font-weight: 600; text-align: center; }
.stepper-value output { font-weight: 800; font-variant-numeric: tabular-nums; }
.seg button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 650 0.875rem/1 var(--font-sans);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.fx-scale-list { display: grid; margin: 0; padding: 0; list-style: none; }
.fx-scale-list li { padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font-size: 0.9375rem; }
.fx-scale-list li:last-child { border-bottom: 0; }
.fx-scale-list strong { display: inline-block; min-width: 5.6em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* Grocery */
.fx-grocery { display: grid; gap: 10px; margin-top: auto; }
.aisle { padding: 12px 14px; border-radius: 18px; background: var(--bg-2); }
.aisle-name {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.aisle ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.aisle li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; }
.aisle li i { flex: none; width: 18px; height: 18px; border: 1.6px solid var(--line-strong); border-radius: 6px; }
.aisle li.done { color: var(--muted); text-decoration: line-through; }
.aisle li.done i {
  border-color: var(--basil);
  background: var(--basil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Collections */
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.fx-chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.fx-chips li:first-child { border-color: transparent; background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.fx-chips span { margin-right: 6px; }

/* Nutrition */
.fx-nutri { display: grid; gap: 10px; margin-top: auto; }
.fx-kcal { margin: 0 0 4px; font-size: 0.9375rem; color: var(--muted); }
.fx-kcal b {
  margin-right: 4px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.fx-kcal small { display: block; font-size: 0.75rem; }
.fx-macro { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 10px; font-size: 0.875rem; }
.fx-macro i { position: relative; height: 8px; overflow: hidden; border-radius: 8px; background: var(--bg-2); }
.fx-macro i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--grad); }
.fx-macro b { font-variant-numeric: tabular-nums; text-align: right; }

/* Sync */
.fx-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.fx-sync-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--btn-ink-bg);
  color: var(--btn-ink-fg);
}
.fx-sync-icon svg { width: 26px; height: 26px; }
.fx-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.fx-sync-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--basil); box-shadow: 0 0 0 4px rgba(46, 158, 106, 0.18); }
.fx-sync-pill svg { width: 16px; height: 16px; color: var(--muted); }

.bento > :nth-child(2), .plans > :nth-child(2) { transition-delay: 0.07s; }
.bento > :nth-child(3), .plans > :nth-child(3) { transition-delay: 0.14s; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-2); }
.plans { display: grid; gap: 1rem; max-width: 1040px; margin-inline: auto; }
@media (min-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .plan--yearly { grid-row: 1 / span 2; }
  .plan--monthly .plan-list,
  .plan--free .plan-list { grid-template-columns: 1fr 1fr; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-name {
  margin: 0 0 0.75rem;
  font: 750 0.8125rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }
.plan-price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 1.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100;
}
.plan-price .per { font-size: 1rem; font-weight: 550; color: var(--muted); }
.plan-sub { margin: 0.6rem 0 0; color: var(--muted); }
.plan-list { display: grid; gap: 0.6rem 1rem; margin: 1.35rem 0 1.6rem; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; }
.plan-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--success); }
.plan-cta { width: 100%; margin-top: auto; }

.plan--yearly {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  border: 0;
  background: var(--grad);
  color: #1C1917;
  box-shadow: 0 40px 80px -40px rgba(232, 67, 31, 0.75), 0 18px 36px -24px rgba(244, 63, 94, 0.55);
}
.plan--yearly::before,
.plan--yearly::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.16);
}
.plan--yearly::before { top: -70px; right: -60px; width: 250px; height: 310px; transform: rotate(16deg); }
.plan--yearly::after {
  top: 18px;
  right: 46px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-left: 46px solid rgba(255, 255, 255, 0.28);
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  transform: rotate(16deg);
}
.plan--yearly .plan-name,
.plan--yearly .per,
.plan--yearly .plan-sub,
.plan--yearly .plan-list svg { color: #1C1917; }
.plan--yearly .plan-price .amount { font-size: clamp(3.4rem, 2.5rem + 3.4vw, 5rem); }
.plan-flag {
  align-self: flex-start;
  margin: 0 0 1.5rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1C1917;
  color: #FFF8F0;
  font-size: 0.875rem;
  font-weight: 700;
}
.plan-trial {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin: 1.1rem 0 0;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1C1917;
  font-weight: 750;
}
.plan-trial svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--basil); color: #fff; }
.plan--yearly .plan-list { font-size: 1.0625rem; }
.plan--yearly .plan-cta { background: #1C1917; color: #FFF8F0; }
.plan--yearly .plan-cta:hover { background: #000; }
.plan--yearly .plan-cta:focus-visible { outline-color: #1C1917; }
.plan-after { margin: 0.8rem 0 0; font-size: 0.875rem; font-weight: 550; text-align: center; }

.fineprint {
  max-width: 54rem;
  margin: 2rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}
.fineprint a { color: inherit; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4.5rem; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item h3 { margin: 0; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  font-variation-settings: "SOFT" 100;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--accent-ink); }
.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { border-color: transparent; background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-a { display: grid; grid-template-rows: 1fr; }
.js .faq-a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s ease, visibility 0s linear 0.35s;
}
.js .faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s ease, visibility 0s;
}
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a-inner > :last-child { margin-bottom: 1.5rem; }
.faq-a p, .faq-a ol, .faq-a ul { max-width: 42rem; margin: 0 0 0.85rem; color: var(--muted); }
.faq-a ol, .faq-a ul { padding-left: 1.25rem; }
.faq-a li { margin: 0.25rem 0; }
.faq-a strong { color: var(--text); font-weight: 650; }
.faq-a a { color: var(--accent-ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.cta-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--grad);
  color: #1C1917;
  text-align: center;
}
.cta-deco {
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 290px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.16);
}
.cta-deco::after {
  content: "";
  position: absolute;
  top: 34%;
  left: 50%;
  border-left: 48px solid rgba(255, 255, 255, 0.32);
  border-top: 29px solid transparent;
  border-bottom: 29px solid transparent;
  transform: translate(-38%, -50%);
}
.cta-deco--1 { bottom: -110px; left: -60px; transform: rotate(-16deg); }
.cta-deco--2 { top: -120px; right: -50px; transform: rotate(18deg); }
@media (max-width: 640px) {
  .cta-deco { width: 150px; height: 190px; border-radius: 32px; }
  .cta-deco::after { border-left-width: 32px; border-top-width: 19px; border-bottom-width: 19px; }
  .cta-deco--1 { bottom: -90px; left: -56px; }
  .cta-deco--2 { top: -100px; right: -54px; }
}
.cta-title {
  max-width: 13ch;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 100;
}
.cta-title em { font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; }
.cta-sub { margin: 0 0 2rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 550; }
.cta-inner .store-badge:focus-visible { outline-color: #1C1917; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); }
}
.footer-brand p { max-width: 22rem; margin: 0.85rem 0 1.1rem; color: var(--muted); }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.footer-mail:hover { border-color: var(--text); }
.footer-mail svg { width: 18px; height: 18px; color: var(--accent-ink); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 560px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-h {
  margin: 0 0 1rem;
  font: 750 0.75rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-nav ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: grid;
  gap: 0.4rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-base p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages: legal docs, support, 404
   ========================================================================== */
.doc-hero {
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 80% at 90% 0%, rgba(255, 182, 39, 0.14), transparent 70%);
}
.doc-hero h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}
.doc-hero p:not(.eyebrow) { max-width: 40rem; margin: 0; color: var(--muted); font-size: 1.125rem; }
.doc-hero p.doc-meta { margin-top: 1rem; font-size: 0.9375rem; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(4rem, 3rem + 4vw, 7rem); }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 4.5rem; }
  .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}
.toc {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
@media (min-width: 1000px) {
  .toc { padding: 0; border: 0; background: none; }
}
.toc-title {
  margin: 0 0 0.75rem;
  font: 750 0.75rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.toc a { display: block; padding: 0.3rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); }

.prose { max-width: 72ch; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 3rem 0 0.85rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variation-settings: "SOFT" 100;
}
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--text); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--accent-ink); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--text); font-weight: 650; }
.prose code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--bg-2); font-size: 0.9em; }
.table-wrap {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--text); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.callout {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { margin: 0 0 0.5rem !important; font-weight: 700; color: var(--text); }
.callout ul { margin-bottom: 0; }

/* Support */
.support-cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .support-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .support-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.support-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.support-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.support-card .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.5rem;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent-ink);
}
.support-card .ic svg { width: 22px; height: 22px; }
.support-card strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }
.support-card span { color: var(--muted); font-size: 0.9375rem; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border-radius: var(--radius-card);
  background: #1C1917;
  color: #FFF8F0;
}
@media (prefers-color-scheme: dark) {
  .contact-card { background: linear-gradient(165deg, #2D1F18, #1A1411); border: 1px solid #3A2C25; }
}
.contact-card h2 { margin: 0 0 0.25rem !important; color: #FFF8F0 !important; }
.contact-card p { margin: 0 !important; color: #CFC7BF; }
.contact-card .btn { background: #FFF8F0; color: #1C1917; }
.contact-card .btn:hover { background: #fff; }

.howto { counter-reset: howto; margin: 0 0 1.25rem; padding: 0 !important; list-style: none; }
.howto li { position: relative; margin: 0.85rem 0; padding-left: 2.6rem; counter-increment: howto; }
.howto li::before {
  content: counter(howto);
  position: absolute;
  top: -0.05rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--btn-ink-bg);
  color: var(--btn-ink-fg);
  font-size: 0.875rem;
  font-weight: 700;
}

/* 404 */
.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 220px);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  text-align: center;
}
.nf-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 3.5rem + 12vw, 12rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.notfound h1 {
  max-width: 16ch;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}
.notfound p:not(.nf-code) { max-width: 32rem; margin: 0 auto; color: var(--muted); font-size: 1.125rem; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* Simple footer for inner pages */
.footer-simple .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-links a { color: var(--text); font-weight: 550; text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cta-band, .hero-demo, .nav-toggle, body::before { display: none !important; }
  body { background: #fff; color: #000; }
}
