/* Pantry Time — landing page. Motion is opt-out via prefers-reduced-motion (see the end). */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-nav { display: flex; gap: 4px 22px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 2px; opacity: .85; }
.site-nav a:hover { opacity: 1; color: var(--accent); }
.site-nav .btn { padding: 8px 16px; min-height: 38px; }
@media (max-width: 720px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: color-mix(in srgb, var(--tint, var(--accent)) 45%, var(--text)); margin-bottom: 14px; }  /* 4.9:1+ on bg and bg-2 for every tint, light and dark; the dot keeps the raw tint */
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tint, var(--accent)); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 44ch; margin: 20px 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-promise { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; max-width: 46ch; font-size: .95rem; color: var(--muted); }
.hero-promise svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.hero-promise b { color: var(--text); font-weight: 600; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 24px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.platforms span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.platforms svg { width: 18px; height: 18px; flex: none; }

/* The stage: the Duo, the iPhone and the Watch side by side along one baseline, each whole and apart:
   Apple's marketing guidelines ask for official bezels shown flat, untilted, unobstructed and still, so
   nothing overlaps and nothing moves (App Store review J5). The motion is around them ("Hero drift"). */
.hero-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding-bottom: 8px; }
.hero-stage .device { position: relative; z-index: 1; margin: 0; flex: none; }
.hero-stage .duo { width: 58%; }
.hero-stage .phone { width: 20%; }
.hero-stage .watch { width: 13%; }
.hero-glow { position: absolute; inset: -10% -10% 0; z-index: 0; pointer-events: none; }
/* Soft glows drawn as radial gradients, not blurred circles: iOS Safari stopped painting a
   `filter: blur()` layer under the (animated, composited) device images, leaving a darker box
   behind each device. */
.hero-glow::before, .hero-glow::after { content: ""; position: absolute; border-radius: 50%; }
.hero-glow::before { width: 70%; aspect-ratio: 1; left: 0; top: -5%; background: radial-gradient(closest-side, color-mix(in srgb, var(--leaf) 30%, transparent), transparent); }
.hero-glow::after { width: 55%; aspect-ratio: 1; right: -5%; bottom: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--honey) 30%, transparent), transparent); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: none; }
  .hero-stage { margin-top: 8px; }
}
@media (max-width: 480px) { .hero { padding-top: 32px; } }

/* ---------- Device images ----------
   Each slot is a plain <img> of a screenshot already composited into Apple's official product bezel
   (assets/devices/*.png, transparent). No CSS frame, shadow, tilt or reflection is added, per Apple's
   marketing guidelines; only the layout positions them. */
.device { position: relative; margin: 0; }
.device img { width: 100%; height: auto; }
.device figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Promise strip (no accounts, no servers …) ---------- */
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.promise .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }
.promise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.promise li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 9px; }
.promise li svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.promise p { margin: 0; color: var(--muted); font-size: .95rem; text-align: center; max-width: 60ch; }
.promise p b { color: var(--text); font-weight: 600; }

/* ---------- Feature sections ---------- */
.tint-leaf { --tint: var(--leaf); } .tint-tomato { --tint: var(--tomato); } .tint-copper { --tint: var(--copper); }
.tint-honey { --tint: var(--honey); } .tint-accent { --tint: var(--accent); } .tint-cocoa { --tint: var(--cocoa); } .tint-glass { --tint: var(--glass); }
.duo-solo { max-width: 900px; margin-inline: auto; }
.duo-solo.duo-portrait { max-width: 400px; }  /* tabletop: the Duo is held in portrait */
.section { padding: 76px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature.flip .media { order: -1; }
.feature h2, .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.025em; font-weight: 800; }
.feature .lede, .section-head .lede { font-size: 1.1rem; color: var(--muted); margin-top: 14px; max-width: 48ch; }
.feature .tagline { font-size: 1.25rem; font-weight: 600; margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.checks li span { min-width: 0; overflow-wrap: anywhere; }
.checks .gl { flex: none; width: 30px; height: 30px; color: var(--tint, var(--accent)); padding: 4px; background: color-mix(in srgb, var(--tint, var(--accent)) 14%, transparent); border-radius: 9px; }
.checks b { font-weight: 600; }
.media { position: relative; min-width: 0; }
.shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.shots .phone { width: min(240px, 44%); }
.shots .phone:nth-child(2) { margin-top: 56px; }
.shots .duo { width: 100%; }
/* Cook Mode: the Duo is the subject; the celebration iPhone sits by its lower-right corner, mostly outside it. */
.media.stack { display: flex; align-items: flex-end; gap: 4%; }
.media.stack .duo { width: 73%; flex: none; }
.media.stack .phone { width: 23%; flex: none; }  /* beside the Duo, never over its controls */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .lede { margin-inline: auto; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trio .card { padding: 24px 24px 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trio .card h3 { font-size: 1.25rem; }
.trio .card p { color: var(--muted); }
.trio .card .phone { width: 72%; margin: 12px auto 24px; }  /* whole, never cropped by the card */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .media { order: 0; }
  .trio { grid-template-columns: 1fr; }
  .trio .card .phone { width: 60%; max-width: 260px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) { .shots { gap: 12px; } .shots .phone { width: 46%; } .shots .phone:nth-child(2) { margin-top: 36px; } .media.stack .duo { width: 70%; } .media.stack .phone { width: 26%; } }

/* Reminders flow illustration: three cards stacked with arrows. Always one column, so the cards are as wide as
   the media column (never narrower than ~260px inside at 320px), and the pills can never leave the card. */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; max-width: 420px; margin-inline: auto; }
.flow .step { width: 100%; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.flow .step small { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.flow .row { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.flow .row .name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.flow .gl { width: 26px; height: 26px; color: var(--text); flex: none; }
.pill { flex: none; margin-left: auto; font-size: .78rem; font-weight: 700; line-height: 1.3; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.out { background: #fde4e1; color: #b3261e; }
.pill.in { background: #dff3e4; color: #1f6b3d; }
@media (prefers-color-scheme: dark) { .pill.out { background: #4a2320; color: #f6b8b3; } .pill.in { background: #1f3a29; color: #9ee0b3; } }
.flow .arrow { color: var(--muted); width: 22px; height: 22px; transform: rotate(90deg); }
.flow .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; }
.flow .check.done { border-color: #2f7d4f; background: #2f7d4f; color: #fff; }
.flow .check svg { width: 14px; height: 14px; }
.flow .list-name { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.flow .list-name svg { width: 16px; height: 16px; color: #ff9f0a; flex: none; }

/* Recipe link illustration */
.linkcard { color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; max-width: 460px; margin-inline: auto; min-width: 0; }
.linkcard .url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.linkcard .url b { color: var(--accent); font-weight: 600; }
.linkcard .hero-mini { height: 110px; border-radius: 14px; position: relative; overflow: hidden; background: linear-gradient(135deg, hsl(96 55% 62%), hsl(128 62% 44%)); display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: 1.3rem; text-shadow: 0 2px 6px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.linkcard .hero-mini svg { position: absolute; width: 44px; height: 44px; color: rgba(255,255,255,.35); top: 12px; }
.linkcard .hero-mini .a { right: 16px; transform: rotate(-10deg); } .linkcard .hero-mini .b { right: 70px; top: 26px; transform: rotate(8deg); }
.linkcard .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.linkcard .chip { font-size: .8rem; font-weight: 600; background: var(--bg-2); border-radius: 999px; padding: 5px 10px; color: var(--muted); white-space: nowrap; }
.linkcard .lock { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.linkcard .lock svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Everything at a glance: a keynote-style summary slide (right under the hero) ----------
   A bento grid: tiles of different sizes (.w2 = two columns, .h2 = two rows) around a central hero tile, each with
   a big statement and a self-drawn visual (CSS/SVG), a real Pantry Time screenshot or an official-bezel device image.
   No Apple app icons, logos or Siri/Health artwork. Desktop is 4 columns with the hero pinned to the middle two
   columns of rows 3-4; the other tiles auto-place around it in source order (8 full rows). 2 columns below 960px;
   below 640px a compact 2-column summary: small tiles keep only their label and statement, wide tiles stay whole. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile {
  --t: var(--tint, var(--accent));
  --ink: color-mix(in srgb, var(--t) 62%, var(--text));    /* big statements: large text, 3:1+ on the tile */
  --ink-2: color-mix(in srgb, var(--t) 46%, var(--text));  /* small labels: 4.5:1+ */
  position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-radius: 28px;
  background: color-mix(in srgb, var(--t) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--t) 22%, var(--line));
}
.tile.w2 { grid-column: span 2; }
.tile.h2 { grid-row: span 2; }
.tile p { margin: 0; }
.tile h3 { display: grid; gap: 6px; margin: 0; }
.t-label { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.t-big { display: block; font-size: clamp(1.4rem, 2.1vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; color: var(--ink); overflow-wrap: break-word; }
.t-dim { color: var(--muted); }
.t-copy { color: color-mix(in srgb, var(--muted) 82%, var(--text)); font-size: .92rem; line-height: 1.45; }  /* 4.5:1+ on every tint, light and dark */
.t-art { margin-block: auto; min-width: 0; max-width: 100%; }
.t-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Wide tiles and the hero are size containers: the words sit beside the visual when the tile is wide enough and
   stack above it otherwise (queried on the tile itself, since the same tile is 2 of 4 columns, all of 2, or 1 of 1). */
.tile.w2, .t-hero { container-type: inline-size; }
.split { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.split .t-art { margin: 0; }

/* The hero: the app on iPhone, in its official bezel, whole (never cropped). */
.t-hero {
  grid-column: 2 / span 2; grid-row: 3 / span 2; padding: 30px;
  background:
    radial-gradient(110% 80% at 100% 100%, color-mix(in srgb, var(--leaf) 32%, transparent), transparent 62%),
    radial-gradient(80% 60% at 0% 0%, color-mix(in srgb, var(--honey) 20%, transparent), transparent 60%),
    color-mix(in srgb, var(--leaf) 9%, var(--card));
}
.t-hero .t-text { gap: 14px; }
.t-hero .t-big { font-size: clamp(2rem, 3.3vw, 2.9rem); }
.t-hero .t-copy { font-size: 1rem; color: color-mix(in srgb, var(--text) 80%, var(--muted)); }
.t-hero .t-device { width: min(190px, 62%); align-self: center; }
.t-chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-chips li { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid color-mix(in srgb, var(--t) 25%, var(--line)); }

/* Siri: the spoken question, then Pantry Time's real answer card (a transparent-cornered screenshot). */
.siri-art { display: grid; gap: 10px; justify-items: start; }
.say-bubble { justify-self: start; max-width: 100%; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 9px 15px; font-weight: 700; line-height: 1.35; box-shadow: var(--shadow); overflow-wrap: break-word; }
.siri-art .say-bubble, .siri-demo .say-bubble { justify-self: end; border-radius: 20px 20px 6px 20px; font-size: .9rem; }
.siri-art img, .siri-demo img { width: 100%; max-width: 290px; height: auto; border-radius: 5.6% / 11.8%; box-shadow: var(--shadow); }

/* Reminders: a drawn list (generic checkmarks, not the Reminders icon). */
.rem-art { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; display: grid; gap: 7px; box-shadow: var(--shadow); }
.rem-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .95rem; }
.rem-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff9f0a; flex: none; }
.rem-row { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem; }
.rem-ck { width: 19px; height: 19px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 70%, transparent); display: grid; place-items: center; flex: none; }
.rem-ck svg { width: 11px; height: 11px; }
.rem-row.done .rem-ck { border-color: #ff9f0a; background: #ff9f0a; color: #fff; }
.rem-row.done s { color: var(--muted); }

.cloud-art { width: 118px; height: auto; color: var(--ink); align-self: center; }

/* Visual Intelligence: a camera frame around a lemon, and the rows it turns into. */
.vi-art { display: flex; align-items: center; gap: 14px; }
.vf { position: relative; flex: none; width: 92px; height: 92px; color: var(--ink); }
.vf-frame, .vf-glyph { position: absolute; }
.vf-frame { inset: 0; width: 100%; height: 100%; }
.vf-glyph { inset: 24%; width: 52%; height: 52%; color: color-mix(in srgb, var(--honey) 78%, var(--text)); }
.vi-results { display: grid; gap: 8px; min-width: 0; flex: 1 1 auto; max-width: 240px; }
.vi-row { display: flex; align-items: center; gap: 10px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; box-shadow: var(--shadow); }
.vi-row .gl { width: 26px; height: 26px; flex: none; }
.vi-row span { display: grid; min-width: 0; }
.vi-row b { font-size: .88rem; line-height: 1.2; overflow-wrap: break-word; }
.vi-row small { font-size: .76rem; color: var(--muted); }

/* Live Activities: a Dynamic Island-style pill with a countdown. */
.island { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; align-self: center; background: #000; color: #fff; border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow); }
.isl-ring { width: 32px; height: 32px; flex: none; transform: rotate(-90deg); }
.isl-ring circle { fill: none; stroke-width: 4; }
.isl-ring .trk { stroke: rgba(255, 159, 10, .28); }
.isl-ring .arc { stroke: #ff9f0a; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 30; }
.isl-name { font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.isl-time { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #ff9f0a; margin-left: 8px; }

/* Apple Health: a generic heart and pulse line (not the Health app icon). */
.heart-art { width: 150px; max-width: 100%; height: auto; color: var(--ink); align-self: center; }
.heart-art .pulse { stroke: var(--tomato); }

.t-watch .t-device { width: min(170px, 80%); align-self: center; }

.t-grad { font-size: clamp(2rem, 3vw, 2.6rem); padding-bottom: .06em; background: linear-gradient(100deg, var(--accent), var(--copper) 55%, var(--tomato)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .t-grad { background: none; color: CanvasText; } }

/* Widgets & Control Center: a drawn Running Low widget and a round control. */
.wg-art { display: flex; align-items: center; gap: 12px; }
.wg { flex: 1 1 auto; max-width: 250px; min-width: 0; display: grid; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 12px 14px; box-shadow: var(--shadow); }
.wg-title { font-size: .8rem; font-weight: 800; color: var(--ink); }
.wg-row { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .85rem; font-weight: 600; }
.wg-row .gl { width: 20px; height: 20px; flex: none; }
.wg-row .nm { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; line-height: 1.25; }
.pill.low { background: #fdebd3; color: #8f5100; }
@media (prefers-color-scheme: dark) { .pill.low { background: #4a3413; color: #f6cd8f; } }
.cc { display: grid; justify-items: center; gap: 6px; flex: none; }
.cc-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1c1c1e; color: #ff6b5b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow); }
.cc-btn svg { width: 28px; height: 28px; }
.cc small { font-size: .72rem; font-weight: 700; color: var(--muted); }

/* Spotlight: a search field and two results. */
.sp-art { display: grid; gap: 6px; }
.sp-field { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.sp-field svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.sp-field::after { content: ""; width: 2px; height: 1.05em; margin-left: -6px; background: var(--accent); }
.sp-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px; border-radius: 10px; font-size: .85rem; font-weight: 600; background: color-mix(in srgb, var(--card) 70%, transparent); overflow-wrap: break-word; }
.sp-row .gl { width: 20px; height: 20px; flex: none; color: var(--ink); }

/* Action Button: the side of a phone, the button lit, a press. */
.act-art { width: 140px; max-width: 100%; height: auto; color: var(--ink); align-self: center; }
.act-art .fill { fill: currentColor; stroke: none; }
.act-art .hot { fill: var(--t); stroke: none; }
.act-art .wave { stroke: var(--t); }

/* Ask Pantry Time: two chat bubbles. */
.chat-art { display: grid; gap: 8px; }
.chat-art p { max-width: 92%; padding: 8px 12px; border-radius: 16px; font-size: .84rem; line-height: 1.35; overflow-wrap: break-word; }
.chat-art .me { justify-self: end; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 5px; }
.chat-art .it { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }

/* Shortcuts: a few of the app's actions as action tiles (not the Shortcuts icon). */
.sc-art { list-style: none; padding: 0; display: grid; gap: 6px; }
.sc-art li { padding: 8px 12px; border-radius: 12px; font-size: .84rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4a7c6d, #2e5e50); overflow-wrap: break-word; }

/* iPhone Duo: two panes and a hinge (a recipe spread). */
.duo-art { display: flex; justify-content: center; padding: 4px 0; }
.duo-art .pane { width: 70px; height: 92px; display: grid; align-content: start; gap: 6px; padding: 9px 8px; background: var(--card); border: 3px solid var(--ink); }
.duo-art .pane.l { border-radius: 12px 3px 3px 12px; border-right-width: 1.5px; }
.duo-art .pane.r { border-radius: 3px 12px 12px 3px; border-left-width: 1.5px; }
.duo-art .pane span { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.duo-art .pane.l span:first-child { height: 22px; background: color-mix(in srgb, var(--leaf) 60%, transparent); }
.duo-art .pane span:last-child { width: 70%; }

/* Universal Links: a recipe link. */
.ln-art { display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--muted); box-shadow: var(--shadow); }
.ln-art svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.ln-art span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-art b { color: var(--accent); font-weight: 600; }

/* Scanning: a barcode in the camera frame (the Visual Intelligence frame and rows). */
.vf-glyph.bc { inset: 26%; width: 48%; height: 48%; color: var(--ink); }

/* Recipe import: where recipes come from. */
.src-art { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.src-art li { font-size: .8rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }

/* Ready to Cook: a recipe row and how much of it you have. */
.rtc-art { display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.rtc-art b { font-size: .9rem; line-height: 1.25; overflow-wrap: break-word; }
.rtc-bar { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--leaf) 18%, var(--bg-2)); overflow: hidden; }
.rtc-bar span { display: block; width: 83%; height: 100%; border-radius: inherit; background: var(--leaf); }
.rtc-art small { font-size: .78rem; font-weight: 700; color: var(--muted); }

/* Cook Mode: a step card with its timer. */
.step-art { display: grid; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.step-art small { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step-art p { font-size: .9rem; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.step-art .chip { justify-self: start; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #ff9f0a; color: #1c1c1e; }

/* Meal plan: the week, with planned days marked. */
.week-art { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-art span { display: grid; justify-items: center; gap: 6px; padding: 8px 0 9px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-size: .72rem; font-weight: 800; color: var(--muted); }
.week-art span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 22%, transparent); }
.week-art span.m { color: var(--ink); }
.week-art span.m::after { background: var(--t); }

/* Use It Up: two things about to expire. */
.exp-art { display: grid; gap: 6px; }
.exp-row { display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); }
.exp-row .gl { width: 20px; height: 20px; flex: none; }
.exp-row .nm { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; line-height: 1.25; }

/* Write your own: the New Recipe steps, three done. */
.steps-art { display: flex; align-items: center; }
.steps-art span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 800; background: var(--card); color: var(--ink); border: 2px solid color-mix(in srgb, var(--t) 45%, var(--line)); }
.steps-art span.done { background: var(--ink); border-color: var(--ink); color: var(--card); }
.steps-art i { flex: 1 1 auto; min-width: 4px; height: 2px; background: color-mix(in srgb, var(--t) 45%, var(--line)); }

/* Side by side once the tile has room (see .split above). After every base rule, so it wins. */
@container (min-width: 460px) {
  .split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 16px 22px; }
  .t-hero .split { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: 20px; }
  .t-hero .t-device { width: 100%; max-width: 200px; justify-self: center; }
  .siri-art { justify-items: end; }
  .vi-art, .wg-art { justify-content: flex-end; }
}
@media (max-width: 959px) {
  /* Dense, so a two-row tile never leaves a hole; the hero closes the grid rather than opening it. */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .t-hero { grid-column: 1 / -1; grid-row: auto; order: 1; }
}
@media (max-width: 640px) {
  /* A compact summary: two columns of statements, the wide tiles whole between them. */
  .bento { grid-auto-rows: auto; gap: 10px; }
  /* Statements are 1.12rem here, under the large-text size, so they need 4.5:1: the 62% mix above is 3.65 to 3.99 on
     the honey and glass tiles in light mode. */
  .tile { --ink: color-mix(in srgb, var(--t) 50%, var(--text)); }
  .tile { padding: 16px; border-radius: 22px; gap: 8px; }
  .tile.h2 { grid-row: auto; }
  /* An odd number of small tiles: this one takes the full row (and keeps its copy), so no cell is left empty. */
  .tile.phone-w2 { grid-column: 1 / -1; }
  .tile:not(.w2):not(.t-hero):not(.phone-w2) > .t-art, .tile:not(.w2):not(.t-hero):not(.phone-w2) > .t-copy { display: none; }
  .tile:not(.w2):not(.t-hero):not(.phone-w2) .t-big { font-size: 1.12rem; letter-spacing: -.02em; }
  .tile:not(.w2):not(.t-hero):not(.phone-w2) .t-grad { font-size: 1.5rem; }
  .t-label { font-size: .68rem; }
  .t-hero { padding: 20px; }
}
@media (max-width: 380px) { .vf { width: 84px; height: 84px; } .vi-art, .wg-art { gap: 10px; } .cc-btn { width: 52px; height: 52px; } }

/* Apple's official badges (App Store, Works with Apple Health), as supplied: 40 px tall (Apple's minimums are 40 px and
   30 px) with at least a quarter of that, 10 px, clear around each, so the gap is 20 px. No shadow, radius or filter. */
.eco-badges { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; margin-top: 28px; padding: 10px; }
.eco-badges[hidden] { display: none; }
.eco-badges a { display: block; line-height: 0; border-radius: 6px; }
.eco-badges a:focus-visible { outline: none; box-shadow: var(--focus); }
.eco-badges img { display: block; height: 40px; width: auto; }

/* Speech bubbles and small print beside feature copy (Shopping list, Ask Pantry Time, Nutrition). */
.say { margin-top: 22px; display: grid; gap: 10px; max-width: 48ch; }
.say-note { color: var(--muted); font-size: .98rem; }
.fine { color: var(--muted); font-size: .9rem; margin: 18px 0 0; max-width: 52ch; }

/* Widgets section: the widgets iPhone beside Siri's answer card. */
.shots.combo { align-items: center; }
.siri-demo { margin: 0; width: min(290px, 50%); display: grid; gap: 10px; }
@media (max-width: 560px) {
  .shots.combo { flex-direction: column; align-items: center; }
  .shots.combo .phone { width: min(240px, 70%); }
  .siri-demo { width: min(300px, 100%); }
}

/* What sets it apart: each row a card, the usual way beside Pantry Time's (stacked on phones) */
.section-head h2 .t-grad { font-size: inherit; }
.compare { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1080px; }
.compare li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-rows: auto 1fr; gap: 10px 14px; min-width: 0; }
.compare h3 { grid-column: 1 / -1; font-size: 1.1rem; letter-spacing: -.01em; }
.compare p { margin: 0; font-size: .95rem; line-height: 1.45; border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; }
.compare .who { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.compare .usually { background: var(--bg-2); color: var(--muted); }
.compare .ours { background: var(--accent-soft); color: var(--text); }
.compare .ours .who { color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.compare .ours b { font-weight: 700; }
@media (max-width: 1000px) { .compare { grid-template-columns: 1fr; max-width: 720px; } }
@media (max-width: 560px) { .compare li { grid-template-columns: 1fr; padding: 16px; } }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.privacy-grid .card { display: grid; gap: 8px; min-width: 0; }
.privacy-grid svg { width: 32px; height: 32px; color: var(--accent); }
.privacy-grid h3 { font-size: 1.1rem; }
.privacy-grid p { color: var(--muted); margin: 0; font-size: .97rem; }
.privacy-list { list-style: none; padding: 0; margin: 28px auto 0; display: grid; gap: 10px; max-width: 560px; }  /* one column, every row the same shape */
.privacy-list li { display: flex; align-items: flex-start; gap: 7px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 7px 13px 7px 10px; font-weight: 600; font-size: .92rem; text-align: left; overflow-wrap: anywhere; }
.privacy-list li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
@media (max-width: 800px) { .privacy-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Final CTA */
.cta-band { text-align: center; padding: 72px 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--leaf) 12%, transparent)); }
.cta-band .icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 22px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.025em; font-weight: 800; }
.cta-band .lede { color: var(--muted); margin: 12px auto 24px; max-width: 46ch; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; }
/* Hero drift: as the two-column hero scrolls away (index.js sets --hero-p from 0 to 1), the glow sinks
   slower than the page and the copy lifts a little faster. The one-column (phone) layout, under 901px,
   has no drift (owner's call, 2026-10-30). The device images never move (Apple's marketing guidelines:
   no animating, tilting or obstructing product images); on load they only fade in where they stand,
   one after another, at every width. */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .hero-drift .hero-glow { transform: translate3d(0, calc(var(--hero-p, 0) * 160px), 0); will-change: transform; }
  .hero-drift .hero-copy { transform: translate3d(0, calc(var(--hero-p, 0) * -70px), 0); opacity: calc(1 - var(--hero-p, 0) * .6); will-change: transform, opacity; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-drift .hero-stage .device { animation: device-in .7s ease-out both; }
  .hero-drift .hero-stage .phone { animation-delay: .15s; }
  .hero-drift .hero-stage .watch { animation-delay: .3s; }
}
@keyframes device-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
/* Bento tiles: a few short, finite flourishes once a tile scrolls into view (each under five seconds, never looping),
   only when motion is welcome. Without JS or with Reduce Motion the drawings are simply still. */
@media (prefers-reduced-motion: no-preference) {
  .js .tile.in .vf-frame { animation: vf-focus 1.5s .5s ease-in-out 3; }
  .js .tile.in .heart-art .pulse { stroke-dasharray: 150; animation: pulse-draw 2.2s .4s ease-in-out 2 both; }
  .js .tile.in .sp-field::after { animation: caret 1s .3s steps(1) 4; }
  .js .tile.in .act-art .wave { animation: press 1.2s .5s ease-out 3; }
}
/* Reminders flow: index.js shows the steps one at a time, in order, each with the arrow leading to it,
   once it is in view and the one before has finished (its hold times there cover these animations plus
   a pause). Each step's own change plays once, unhurried: Lemon goes Out; Lemon joins the Shopping list,
   then chicken broth is checked off and struck through; the broth is back In stock. Drawn cards, not
   product images. Without JS or with Reduce Motion it is simply all there. */
@media (prefers-reduced-motion: no-preference) {
  .flow-seq .flow > .step { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
  .flow-seq .flow > .arrow { opacity: 0; transform: rotate(90deg) translateX(-10px); transition: opacity .7s ease, transform .7s ease; }
  .flow-seq .flow > .step.shown { opacity: 1; transform: none; }
  .flow-seq .flow > .arrow.shown { opacity: 1; transform: rotate(90deg); }
  .flow-seq .flow > .step.shown .pill { animation: pill-pop .7s .6s cubic-bezier(.2, .9, .3, 1.4) both; }
  .flow-seq .flow > .step.shown .just-added { animation: list-add .7s .6s cubic-bezier(.2, .7, .2, 1) both; }
  .flow-seq .flow > .step.shown .bought .check { animation: check-fill .5s 1.3s ease both; }
  .flow-seq .flow > .step.shown .bought .check svg { animation: check-mark .4s 1.55s ease both; }
  .flow-seq .flow .bought s { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 100% 2px; }
  .flow-seq .flow > .step.shown .bought s { animation: strike .6s 1.7s ease-out both; }
}
@keyframes pill-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes list-add { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes check-fill { from { background: transparent; border-color: var(--muted); } }
@keyframes check-mark { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes strike { from { background-size: 0 2px; } }
@keyframes vf-focus { 0%, 100% { transform: scale(1); } 50% { transform: scale(.9); } }
@keyframes pulse-draw { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes press { 0% { opacity: 0; transform: translateX(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(-4px); } }

/* Flow card source labels: our app icon for Pantry Time; a generic list glyph for Apple Reminders
   (Apple's app icons may not be used in third-party marketing). */
.flow .step small.src { display: flex; align-items: center; gap: 8px; }
.flow .app-mark { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.flow .app-mark.generic { color: var(--muted); border-radius: 0; }

/* Siri phrases card (Apple Intelligence section). Plain speech-bubble styling; no Apple artwork. */
.siri-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); max-width: 460px; margin-inline: auto; display: grid; gap: 14px; }
.siri-head { font-weight: 800; font-size: 1.1rem; margin: 0; }
.siri-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.siri-lines li { background: var(--accent-soft); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-weight: 600; overflow-wrap: anywhere; }
.siri-foot { color: var(--muted); font-size: .9rem; margin: 0; }

/* iPad section: a portrait iPad, capped so it doesn't dwarf the copy. */
.device.ipad { max-width: 440px; margin-inline: auto; }
