/* EasyPantry homepage (October 30, 2026 overhaul). Brand tokens, nav, buttons, sparkles and the footer base live in
   ep-tokens.css; this file is the homepage only. Static HTML: no runtime, no icon font, no outside requests.
   Motion: only the hero words rise on load, sparkles twinkle, and the screen recordings play while they are on screen.
   Nothing fades in on scroll. prefers-reduced-motion turns all of it off (recordings show their still poster). */

.h-page {
  --h-sec: clamp(84px, 3.5rem + 6vw, 156px);
  --h-max: 1180px;
  --h-band-a: var(--ep-surface);          /* white bands */
  --h-band-b: var(--ep-canvas);           /* pale blue bands */
  --h-mute: var(--ep-ink-3);
  --h-seg-bg: #E9EEF8;
  --h-seg-on: #FFFFFF;
  --h-seg-edge: #7A879F;
  --h-screen: #F2F3F7;
  background: var(--ep-canvas);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .h-page { --h-band-a: var(--ep-canvas); --h-band-b: var(--ep-canvas-2); --h-seg-bg: #1A2540; --h-seg-on: #2B3858; --h-seg-edge: #8B96AD; --h-screen: #000; }
}
:root[data-theme="dark"] .h-page { --h-band-a: var(--ep-canvas); --h-band-b: var(--ep-canvas-2); --h-seg-bg: #1A2540; --h-seg-on: #2B3858; --h-seg-edge: #8B96AD; --h-screen: #000; }

.h-wrap { width: 100%; max-width: calc(var(--h-max) + 2 * var(--ep-gutter)); margin: 0 auto; padding: 0 var(--ep-gutter); box-sizing: border-box; }
.h-sec { padding: var(--h-sec) 0; background: var(--h-band-a); }
.h-center { text-align: center; }
.ep-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ep-font-display); font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--ep-ink); }
.h-eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--ep-blue-500)); }
.h-h2 { margin: 16px 0 0; font-family: var(--ep-font-display); font-weight: 900; font-size: clamp(34px, 1.1rem + 3.1vw, 62px); line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ep-ink); text-wrap: balance; }
.h-mute { color: var(--h-mute); }
.h-h2 .h-mute { display: block; }
.h-h3 { margin: 0; font-family: var(--ep-font-display); font-weight: 900; font-size: clamp(24px, 1rem + 1vw, 30px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ep-ink); }
.h-lead { margin: 22px 0 0; font-size: clamp(18px, 1rem + 0.3vw, 21px); line-height: 1.5; color: var(--ep-ink-2); text-wrap: pretty; max-width: 34em; }
.h-lead + .h-lead { margin-top: 14px; }
.h-head { text-align: center; max-width: 820px; margin: 0 auto; }
.h-head .h-lead { margin-left: auto; margin-right: auto; }
.h-pro { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin: 0 4px 0 0; border-radius: 999px; vertical-align: 2px;
  background: var(--ep-blue-600); color: #fff; font-family: var(--ep-font-display); font-weight: 900; font-size: 12.5px; letter-spacing: 0.02em; line-height: 1; }
.h-fine { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--ep-ink-3); }

/* ---------- The official App Store badge (Apple's artwork, unaltered: no hover, no motion, clear space kept) ---------- */
.h-page a.h-badge { display: inline-block; flex: none; margin: 14px; border-radius: 9px; line-height: 0; }
.h-badge img { display: block; height: 52px; width: auto; }
.h-badge--sm img { height: 48px; }
.h-page a.h-badge:focus-visible { outline-offset: 4px; }
@media (max-width: 600px) { .h-badge img { height: 50px; } }

/* QR for computers: phones can't scan their own screen, so it only appears with a mouse on a wide screen */
.h-qr { display: none; align-items: center; gap: 14px; margin: 14px; text-align: left; }
.h-qr__code { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,30,61,0.08); }
.h-qr__code svg { display: block; width: 78px; height: 78px; color: #0F1E3D; }
.h-qr__text { max-width: 9.5em; font-size: 14.5px; line-height: 1.4; font-weight: 600; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .h-qr { display: flex; } }

.h-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 8px -14px 0; }

/* ---------- iPhone frame with a live screen (video or still) ---------- */
.phone { position: relative; flex: none; width: var(--w, 280px); aspect-ratio: 490 / 1000; }
.phone__screen { position: absolute; left: 4.898%; top: 2.1%; width: 90.204%; height: 95.8%; border-radius: 14.7% / 6.8%; overflow: hidden; background: var(--h-screen); }
.phone__media { position: absolute; inset: 0; display: none; width: 100%; height: 100%; }
/* A recording is a still poster (lazy-loaded) with the video on top; until the video plays it is transparent */
.phone__media img, .phone__media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__media.is-on { display: block; }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* Play/pause for each recording (WCAG 2.2.2): beside the phone, never on its screen */
.h-pp { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--h-seg-bg); color: var(--ep-ink); transition: background var(--ep-dur-1) var(--ep-ease); }
.h-pp:hover { background: var(--ep-surface-3); }
.h-pp svg { width: 15px; height: 15px; fill: currentColor; }
.h-pp[hidden] { display: none; }

/* ---------- Hero: the blue stage, the promise, the badge, the app running ---------- */
.h-hero { padding: 10px 10px 0; }
.h-hero__panel { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(28px, 2.4vw, 44px); background: var(--ep-grad-hero); color: #fff;
  text-align: center; padding: clamp(36px, 1.6rem + 2vw, 56px) var(--ep-gutter) clamp(36px, 1.5rem + 2.4vw, 64px); }
.h-hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.h-hero__copy { position: relative; max-width: 980px; margin: 0 auto; }
.h-hero__icon { display: block; width: 60px; height: 60px; margin: 0 auto; border-radius: 22.5%; box-shadow: 0 2px 4px rgba(3,18,60,0.16), 0 12px 28px rgba(3,18,60,0.28); }
.h-hero__eyebrow { margin: 16px 0 0; font-family: var(--ep-font-display); font-weight: 800; font-size: clamp(19px, 1rem + 0.25vw, 20px); line-height: 1.3; color: #fff; }   /* large text: 3:1 on the light corner of the blue */
.h-hero__h1 { margin: 12px 0 0; font-family: var(--ep-font-display); font-weight: 900; font-size: clamp(44px, 1.2rem + 4.6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.h-hero__h1 .ep-hl { white-space: nowrap; margin-top: 0.06em; }
.h-hero__lead { max-width: 31em; margin: 18px auto 0; font-size: clamp(18px, 1rem + 0.45vw, 22px); line-height: 1.45; color: #fff; text-wrap: pretty; }
.h-hero__foot { max-width: 46em; margin: 0 auto;  font-size: 15px; line-height: 1.5; color: #fff; text-wrap: balance; }
.h-page .h-hero__foot a, .h-page .h-get__foot a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.7); text-underline-offset: 0.2em; white-space: nowrap; }
.h-hero__devices { display: flex; justify-content: center; margin-top: 32px; }
.h-hero__player { display: flex; flex-direction: column; align-items: center; }
.h-hero__phone { --w: min(276px, 72vw); }
/* the play/pause button sits under the phone, never on a device */
.h-hero .h-pp { background: rgba(6,30,90,0.28); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
/* The hero tours the app in its own tab order: Kitchen, Recipes, Meal Prep, Meal Plan. Each recording plays once,
   then the next tab's starts; a thin line under each label shows how far along it is. Tap a label to jump. */
.h-hero__player:has(input[value="0"]:checked) .phone__media:nth-child(1), .h-hero__player:has(input[value="1"]:checked) .phone__media:nth-child(2),
.h-hero__player:has(input[value="2"]:checked) .phone__media:nth-child(3), .h-hero__player:has(input[value="3"]:checked) .phone__media:nth-child(4) { display: block; }
@supports not selector(:has(*)) { .h-hero__player .phone__media:first-child { display: block; } }
/* equal, fixed label widths and no bold switch, so moving to the next tab never shifts the page */
.h-tour-row { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.h-tour { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: min(324px, 100%); margin: 0; padding: 0; border: 0; min-width: 0; }
.h-tour label { position: relative; display: grid; }
.h-tour input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.h-tour input:focus { outline: none; }
.h-tour span { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 0 4px 8px; box-sizing: border-box; border-radius: 12px;
  font-family: var(--ep-font-text); font-size: 14px; font-weight: 700; line-height: 1.1; color: #fff; text-align: center; white-space: nowrap; pointer-events: none;
  transition: background var(--ep-dur-2) var(--ep-ease); }
.h-tour span::before, .h-tour span::after { content: ""; position: absolute; left: 7px; bottom: 7px; height: 3px; border-radius: 2px; }
.h-tour span::before { right: 7px; background: rgba(255,255,255,0.32); }
.h-tour span::after { width: calc((100% - 14px) * var(--p, 0)); background: #fff; }
.h-tour input:checked + span { background: rgba(6,30,90,0.30); }   /* a darker tint keeps the white words above 4.5:1 */
.h-tour input:focus-visible + span { outline: 3px solid #fff; outline-offset: 1px; }
@media (forced-colors: active) { .h-tour span::after { background: Highlight; } .h-tour input:checked + span { outline: 2px solid Highlight; } }
@media (max-width: 360px) { .h-tour span { padding: 0 2px 8px; font-size: 12.5px; } }
.h-hero .h-pp:hover { background: rgba(6,30,90,0.42); }
@media (min-width: 768px) { .h-hero__phone { --w: 290px; } }
/* Computers: words on the left, the app running on the right, all of it in the first screen */
@media (min-width: 1024px) {
  .h-hero__panel { --h-pad: max(clamp(48px, 6vw, 104px), calc((100% - var(--h-max)) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: clamp(40px, 5vw, 96px); text-align: left; padding: clamp(44px, 3vw, 60px) var(--h-pad) clamp(28px, 2vw, 36px); }
  /* sparkles in the empty corners, never on the words or a device */
  .h-hero__fx .ep-spark:nth-child(1) { left: auto !important; right: 2.4% !important; top: 7% !important; }
  .h-hero__fx .ep-spark:nth-child(2) { left: 47% !important; top: 7% !important; }
  .h-hero__fx .ep-spark:nth-child(3) { left: auto !important; right: 2.6% !important; top: auto !important; bottom: 10% !important; }
  .h-hero__fx .ep-spark:nth-child(4) { display: none; }
  .h-hero__copy { margin: 0; max-width: 620px; padding-bottom: 22px; }
  .h-hero__icon { margin: 0; }
  .h-hero__h1 { font-size: clamp(56px, 1.5rem + 3.6vw, 82px); }
  .h-hero__h1 .ep-hl { display: block; width: fit-content; }
  .h-hero__lead, .h-hero__foot { margin-left: 0; margin-right: 0; }
  .h-hero__foot { max-width: 30em; }
  .h-hero .h-cta { justify-content: flex-start; }
  .h-hero__devices { margin-top: 0; }
  .h-hero__phone { --w: clamp(270px, 9rem + 10vw, 300px); }
}
@media (min-width: 1024px) and (max-height: 820px) { .h-hero__phone { --w: 262px; } .h-hero__panel { padding-top: 36px; } }
@media (max-width: 600px) {
  .h-hero { padding: 8px 8px 0; }
  .h-hero__icon { width: 56px; height: 56px; }
  .h-hero__fx .ep-spark:nth-child(n+3) { display: none; }
  /* "what you have." stays one block on one line down to 320 px */
  .h-hero__h1 { font-size: min(46px, calc((100vw - 72px) / 6.9)); }
}

/* Dark mode keeps the brand blue on the two big panels, one step deeper (as on every page since October 20) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.h-hero__panel, .h-get__panel) { background: var(--ep-grad-hero-deep); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); } }
:root[data-theme="dark"] :is(.h-hero__panel, .h-get__panel) { background: var(--ep-grad-hero-deep); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }

/* ---------- The three acts: copy beside one iPhone you can switch ---------- */
.h-act--alt { background: var(--h-band-b); }
.h-act__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(48px, 7vw, 120px); align-items: center; }
.h-act__grid--flip { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.h-act__grid--flip .h-stage { order: -1; }
.h-act__copy { max-width: 600px; }
.h-act .h-h2, .h-craft .h-h2 { font-size: clamp(34px, 1.1rem + 2.5vw, 54px); }
.h-act__more { margin: 22px 0 0; font-size: 17px; }
.h-anchor { display: block; height: 0; }
.h-stage { --w: clamp(250px, 13rem + 6vw, 310px); position: relative; display: flex; flex-direction: column; align-items: center; }
.h-stage > .h-seg-row .h-pp { position: absolute; left: calc(50% + var(--w) / 2 + 12px); top: calc(var(--w) * 2.0408 - 44px); }
.h-seg-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; width: 100%; }
.h-seg-row--solo { min-height: 0; margin-top: 0; }
.h-caps { display: grid; width: 100%; max-width: 400px; margin-top: 16px; text-align: center; font-size: 16px; line-height: 1.55; color: var(--ep-ink-2); }
.h-caps p { grid-area: 1 / 1; margin: 0; visibility: hidden; text-wrap: pretty; }   /* all stacked in one cell: the box is as tall as the longest */
.h-caps .h-pro { vertical-align: 1px; }
.h-stage:has(input[value="0"]:checked) .phone__media:nth-child(1), .h-stage:has(input[value="1"]:checked) .phone__media:nth-child(2),
.h-stage:has(input[value="2"]:checked) .phone__media:nth-child(3) { display: block; }
.h-stage:has(input[value="0"]:checked) .h-caps p:nth-child(1), .h-stage:has(input[value="1"]:checked) .h-caps p:nth-child(2),
.h-stage:has(input[value="2"]:checked) .h-caps p:nth-child(3) { visibility: visible; }
/* Browsers without :has() show each stage's first view */
@supports not selector(:has(*)) { .h-stage .phone__media:first-child { display: block; } .h-stage .h-caps p:first-child { visibility: visible; } [data-duo="open-recipes"] { display: grid; } }

/* Segmented control, drawn like iOS: a track with a raised thumb on the chosen option */
.h-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 2px; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: var(--h-seg-bg); min-width: 0; }
.h-seg label { position: relative; display: grid; min-width: 0; }
.h-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; }   /* an invisible tap target over the label (no opacity tricks) */
.h-seg input:focus { outline: none; }
.h-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-sizing: border-box;
  font-size: 15px; line-height: 1.15; font-weight: 600; color: var(--ep-ink-2); text-align: center; pointer-events: none;
  transition: background var(--ep-dur-2) var(--ep-ease), color var(--ep-dur-2) var(--ep-ease), box-shadow var(--ep-dur-2) var(--ep-ease); }
.h-seg label:hover span { color: var(--ep-ink); }
.h-seg input:checked + span { background: var(--h-seg-on); color: var(--ep-ink); font-weight: 700; box-shadow: 0 0 0 1px var(--h-seg-edge), 0 1px 2px rgba(15,30,61,0.10), 0 4px 12px rgba(15,30,61,0.10); }
.h-seg input:focus-visible + span { outline: 3px solid var(--ep-focus); outline-offset: 1px; }
@media (forced-colors: active) {
  .h-seg input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .h-plan, .h-duo__stage, .h-privacy__trio li { border: 1px solid CanvasText; } .h-plan--best { border: 3px solid Highlight; } .h-pp { border: 1px solid ButtonText; }
}
@media (max-width: 900px) {
  .h-act__grid, .h-act__grid--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .h-act__grid--flip .h-stage { order: 0; }
  .h-act__copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .h-act__copy .h-lead { margin-left: auto; margin-right: auto; }
}
.h-act .h-seg { width: 100%; max-width: 420px; }
.h-seg span { text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .h-stage { --w: min(272px, 66vw); }
  .h-seg span { padding: 0 8px; font-size: 14px; }
}
@media (max-width: 360px) { .h-stage { --w: 60vw; } .h-stage > .h-seg-row .h-pp { left: calc(50% + var(--w) / 2 + 8px); } .h-seg span { font-size: 13.5px; } }

/* ---------- iPhone Duo: one device at a time, straight-on, in Apple's frame; you choose closed or open ---------- */
.h-duo { background: var(--h-band-b); }
.h-duo__stage { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1080px; border-radius: clamp(28px, 3vw, 44px); background: var(--ep-surface);
  box-shadow: inset 0 0 0 1px var(--ep-line); padding: clamp(24px, 3vw, 44px) clamp(16px, 3vw, 44px) clamp(28px, 3vw, 40px); }
.h-duo__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.h-duo__view { --duo-h: min(520px, calc((min(100vw, 1180px) - 2 * var(--ep-gutter) - 2 * clamp(16px, 3vw, 44px)) / 1.41)); position: relative; height: calc(var(--duo-h) + 6.2em); margin-top: clamp(24px, 3vw, 36px); }
.h-duo__fig { position: absolute; inset: 0; margin: 0; display: none; grid-template-rows: var(--duo-h) auto; align-content: start; justify-items: center; gap: 20px; }
.h-duo__fig picture { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.h-duo__fig img { display: block; width: auto; height: var(--duo-h); max-width: 100%; object-fit: contain; }
.h-duo__fig figcaption { max-width: 34em; padding: 0 8px; text-align: center; font-size: 16px; line-height: 1.5; color: var(--ep-ink-2); text-wrap: balance; }
.h-duo:has([value="closed"]:checked):has([value="kitchen"]:checked) [data-duo="closed-kitchen"],
.h-duo:has([value="open"]:checked):has([value="kitchen"]:checked) [data-duo="open-kitchen"],
.h-duo:has([value="closed"]:checked):has([value="recipes"]:checked) [data-duo="closed-recipes"],
.h-duo:has([value="open"]:checked):has([value="recipes"]:checked) [data-duo="open-recipes"],
.h-duo:has([value="closed"]:checked):has([value="plan"]:checked) [data-duo="closed-plan"],
.h-duo:has([value="open"]:checked):has([value="plan"]:checked) [data-duo="open-plan"] { display: grid; }

.h-ipad { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); max-width: 860px; margin: clamp(40px, 4vw, 64px) auto 0; }
.h-ipad__img img { display: block; width: clamp(240px, 26vw, 340px); height: auto; }
@media (max-width: 600px) { .h-ipad__img img { width: min(200px, 52vw); } }
.h-ipad__text p { margin: 14px 0 0; font-size: clamp(17px, 1rem + 0.2vw, 19px); line-height: 1.55; color: var(--ep-ink-2); max-width: 30em; }
@media (max-width: 700px) {
  .h-seg--duo span { padding: 0 14px; }
  .h-ipad { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .h-ipad__text p { margin-left: auto; margin-right: auto; }
}

/* ---------- Craft Recipe: the one dark band ---------- */
.h-craft { position: relative; isolation: isolate; overflow: hidden; padding: var(--h-sec) 0; background: #000; color: #fff; }
.h-craft::before { content: ""; position: absolute; z-index: -1; right: max(-10vw, calc(50% - 760px)); top: 50%; width: min(980px, 120vw); aspect-ratio: 1; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(23,103,241,0.55), rgba(23,103,241,0.18) 55%, rgba(23,103,241,0) 100%); pointer-events: none; }
.h-craft__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(48px, 7vw, 120px); align-items: center; }
.h-craft__copy { max-width: 560px; }
.h-craft__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ep-font-display); font-weight: 800; font-size: 17px; color: #8FB8FF; }
.h-craft__pro { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #8FB8FF; color: #04122E; font-weight: 900; font-size: 12.5px; letter-spacing: 0.02em; }
.h-craft .h-h2 { color: #fff; }
.h-craft .h-mute { color: #9DA9C2; }
.h-craft .h-lead { color: #C9D1E0; }
.h-craft__fine { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 15px; line-height: 1.55; color: #AEB8CC; max-width: 34em; }
.h-page .h-craft a { color: #8FB8FF; text-decoration: underline; text-decoration-color: rgba(143,184,255,0.5); text-underline-offset: 0.2em; }
.h-page .h-craft a:hover { color: #fff; }
.h-craft .h-stage__phone { --h-screen: #000; }
.h-craft .h-pp { background: rgba(255,255,255,0.12); color: #fff; }
.h-craft .h-pp:hover { background: rgba(255,255,255,0.22); }
.h-craft :focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .h-craft__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .h-craft__copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .h-craft .h-lead, .h-craft__fine { margin-left: auto; margin-right: auto; }
  .h-craft::before { right: 50%; top: auto; bottom: -10%; transform: translateX(50%); }
}

/* ---------- And so much more ---------- */
.h-more__h2 { text-align: center; margin-top: 0; }
.h-more__grid { list-style: none; margin: clamp(48px, 5vw, 72px) auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 56px; }
.h-more__grid li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 16px; align-content: start; }
.h-more__ico { grid-row: span 2; width: 28px; height: 28px; margin-top: 1px; fill: var(--ic, var(--ep-blue-500)); }
.h-more__grid li:nth-child(1) { --ic: var(--ep-all-ink); }   .h-more__grid li:nth-child(2) { --ic: var(--ep-buy-ink); }
.h-more__grid li:nth-child(3) { --ic: var(--ep-freezer-ink); } .h-more__grid li:nth-child(4) { --ic: var(--ep-blue-500); }
.h-more__grid li:nth-child(5) { --ic: var(--ep-countertop-ink); } .h-more__grid li:nth-child(6) { --ic: #7A4FD6; }
.h-more__grid li:nth-child(7) { --ic: var(--ep-fridge-ink); } .h-more__grid li:nth-child(8) { --ic: var(--ep-pantry-ink); }
.h-more__grid li:nth-child(9) { --ic: var(--ep-all-ink); } .h-more__grid li:nth-child(10) { --ic: var(--ep-in-ink); }
.h-more__grid li:nth-child(11) { --ic: var(--ep-ink-2); } .h-more__grid li:nth-child(12) { --ic: #4B4FC4; }
.h-more__grid h3 { margin: 0; font-family: var(--ep-font-display); font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--ep-ink); }
.h-more__grid h3 .h-pro { margin: 0 0 0 6px; vertical-align: 2px; }
.h-more__grid p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ep-ink-2); }
@media (max-width: 960px) { .h-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; } }
@media (max-width: 600px) { .h-more__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* ---------- Privacy ---------- */
.h-privacy { background: var(--h-band-b); }
.h-privacy__trio { list-style: none; margin: clamp(44px, 5vw, 64px) auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.h-privacy__trio li { padding: 30px 28px 32px; border-radius: 28px; background: var(--ep-surface); box-shadow: inset 0 0 0 1px var(--ep-line); }
.h-privacy__ico { display: block; width: 30px; height: 30px; fill: var(--ep-blue-500); }
.h-privacy__trio h3 { margin: 18px 0 0; font-family: var(--ep-font-display); font-weight: 900; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ep-ink); }
.h-privacy__trio p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ep-ink-2); }
.h-privacy .h-center { margin: 36px 0 0; }
@media (max-width: 1000px) { .h-privacy__trio li { padding: 26px 22px 28px; } }
@media (max-width: 759px) { .h-privacy__trio { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }

/* ---------- Pricing: three plans, the chart, one badge ---------- */
.h-plans { list-style: none; margin: clamp(44px, 5vw, 64px) auto 0; padding: 0; max-width: 1020px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.h-plan { position: relative; padding: 30px 28px 30px; border-radius: 28px; background: var(--h-band-b); box-shadow: inset 0 0 0 1px var(--ep-line); }
.h-plan--best { background: var(--ep-surface); box-shadow: inset 0 0 0 2px var(--ep-blue-500), 0 24px 50px -18px rgba(15,91,232,0.40); }
.h-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-family: var(--ep-font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; color: var(--ep-ink); }
.h-plan__tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--ep-blue-600); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.h-plan__price { margin: 14px 0 0; font-family: var(--ep-font-display); font-weight: 900; font-size: clamp(40px, 1.6rem + 1.4vw, 50px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ep-ink); }
.h-plan__per { font-family: var(--ep-font-text); font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ep-ink-2); }
.h-plan__sub { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ep-ink-2); }
.h-plan__trial { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--ep-in-soft); color: var(--ep-in-ink);
  font-family: var(--ep-font-display); font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.h-plan__trial svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.h-nw { white-space: nowrap; }
.h-compare { max-width: 760px; margin: clamp(56px, 6vw, 80px) auto 0; }
.h-compare__h { margin: 0 0 14px; text-align: center; font-family: var(--ep-font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; color: var(--ep-ink); }
.h-ct { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.4; }
.h-ct th, .h-ct td { padding: 14px 12px; border-bottom: 1px solid var(--ep-line); text-align: center; vertical-align: middle; }
.h-ct thead th { padding-top: 16px; padding-bottom: 16px; font-family: var(--ep-font-display); font-weight: 900; font-size: 17px; color: var(--ep-ink); border-bottom: 1px solid var(--ep-line-2); }
.h-ct tbody th { text-align: left; font-weight: 500; color: var(--ep-ink); padding-left: 4px; }
.h-ct td { width: 22%; }
.h-ct .h-ct__pro { background: var(--ep-blue-100); }
.h-ct thead .h-ct__pro { border-radius: 18px 18px 0 0; }
.h-ct tbody tr:last-child .h-ct__pro { border-radius: 0 0 18px 18px; }
.h-ct tbody tr:last-child th, .h-ct tbody tr:last-child td { border-bottom: 0; }
.h-ct__sub { display: block; margin-top: 2px; font-family: var(--ep-font-text); font-weight: 500; font-size: 12.5px; color: var(--ep-ink-2); }
.h-ct__split th, .h-ct__split td { border-top: 1px solid var(--ep-line-2); }
.h-ct__lim { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ep-surface-2); box-shadow: inset 0 0 0 1px var(--ep-line); font-weight: 600; font-size: 14px; color: var(--ep-ink); white-space: nowrap; }
.h-ct__lim--pro { background: var(--ep-blue-600); color: #fff; box-shadow: none; }
.h-ct__yes, .h-ct__no { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.h-ct__yes { fill: var(--ep-in-ink); }
.h-ct__no { fill: var(--ep-ink-3); }
.h-pricing__cta { display: flex; flex-direction: column; align-items: center; margin-top: 28px; text-align: center; }
.h-pricing__cta .h-fine { margin-top: 2px; max-width: 34em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h-plan--best { box-shadow: inset 0 0 0 2px var(--ep-blue-500), 0 24px 50px -18px rgba(23,103,241,0.55); } }
@media (max-width: 1000px) { .h-plan { padding: 26px 22px; } .h-plan__price { font-size: clamp(34px, 1rem + 2.4vw, 44px); } }
@media (max-width: 759px) { .h-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .h-plan__price { font-size: 42px; } }
@media (max-width: 600px) {
  .h-plan { padding: 26px 22px; }
  .h-ct { font-size: 15px; }
  .h-ct th, .h-ct td { padding: 13px 6px; }
  .h-ct td { width: 25%; }
  .h-ct__lim { padding: 3px 7px; font-size: 13px; }
}

/* ---------- A note from the maker ---------- */
.h-maker { background: var(--h-band-b); }
.h-maker__in { max-width: 820px; text-align: center; }
.h-maker__icon { display: block; width: 56px; height: 56px; margin: 0 auto; border-radius: 22.5%; }
.h-maker__quote { margin: 26px 0 0; }
.h-maker__quote p { margin: 0; font-family: var(--ep-font-display); font-weight: 800; font-size: clamp(26px, 1rem + 1.7vw, 40px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ep-ink); text-wrap: balance; }
.h-maker__mail { margin: 22px 0 0; font-size: 16px; line-height: 1.5; color: var(--ep-ink-2); }

/* ---------- FAQ ---------- */
.h-faq__in { max-width: 860px; }
.h-faq .h-h2 { margin: 0; text-align: center; }
.h-faq__list { margin-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--ep-line-2); }
.h-faq details { border-bottom: 1px solid var(--ep-line-2); }
.h-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 22px 4px; list-style: none; cursor: pointer;
  font-family: var(--ep-font-display); font-weight: 800; font-size: clamp(18px, 1rem + 0.25vw, 20px); line-height: 1.35; color: var(--ep-ink); border-radius: 12px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary svg { flex: none; width: 16px; height: 16px; fill: var(--ep-ink-3); transition: transform var(--ep-dur-2) var(--ep-ease); }
.h-faq details[open] summary svg { transform: rotate(180deg); }
.h-faq summary:hover svg { fill: var(--ep-ink); }
.h-faq details > p { margin: -6px 0 0; padding: 0 44px 24px 4px; font-size: 17px; line-height: 1.6; color: var(--ep-ink-2); }
.h-faq__more { margin: 32px 0 0; text-align: center; }

/* ---------- The close ---------- */
.h-get { padding: 0 10px clamp(56px, 6vw, 96px); background: var(--h-band-a); }
.h-get__panel { position: relative; isolation: isolate; overflow: hidden; max-width: calc(var(--h-max) + 2 * var(--ep-gutter)); margin: 0 auto; border-radius: clamp(28px, 2.4vw, 44px);
  background: var(--ep-grad-hero); color: #fff; text-align: center; padding: clamp(56px, 2.5rem + 3vw, 104px) var(--ep-gutter); box-sizing: border-box; }
.h-get__icon { display: block; width: 80px; height: 80px; margin: 0 auto; border-radius: 22.5%; box-shadow: 0 2px 4px rgba(3,18,60,0.16), 0 14px 30px rgba(3,18,60,0.30); }
.h-get__h2 { max-width: 14em; margin: 26px auto 0; font-family: var(--ep-font-display); font-weight: 900; font-size: clamp(36px, 1rem + 3.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.h-get__h2 .ep-hl { display: block; width: fit-content; margin: 0.12em auto 0; white-space: nowrap; }
.h-get__lead { max-width: 32em; margin: 22px auto 0; font-size: clamp(18px, 1rem + 0.35vw, 21px); line-height: 1.5; color: #fff; text-wrap: pretty; }
.h-get__foot { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #fff; }
.h-get .h-cta { margin-top: 18px; }

/* ---------- Load-time motion only ---------- */
@keyframes h-rise { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .h-rise { animation: h-rise 0.7s var(--ep-ease) both; animation-delay: var(--d, 0s); }
}
