/* ChefBear home (/) and developers (/developers/) pages.
   Loaded after css/style.css and scoped to body.hp, so no other page changes.
   Tokens use the shared house names (core §7a) on top of the site palette in
   style.css; light values here, dark values in the two blocks below. */

.hp {
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  /* Darker than the site's --text-tertiary (#8a7e79, 3.7:1): small text here
     needs 4.5:1 on the page, cards and tiles in both themes. */
  --color-text-tertiary: #6f6460;
  --color-background-primary: var(--bg-page);
  --color-accent: var(--primary);
  --color-accent-text: #fbf9f4;
  --color-ring: var(--secondary);
  --color-border-primary: rgba(58, 45, 45, .16);
  --color-border-secondary: rgba(58, 45, 45, .10);
  --color-danger-text: #b3261e;
  --color-success-text: #2f6b4f;
  --hp-gold: #c49a6c;
  --hp-gold-light: #f0d49e;
  --hp-cta-glow: rgba(124, 87, 48, .32);
  --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
  --glass-edge: rgba(58, 45, 45, .10);
  --glass-light: inset 0 1px 0 rgba(255, 255, 255, .9);
  --glass-shadow: 0 18px 48px rgba(58, 45, 45, .10);
  --glass-shadow-hover: 0 24px 60px rgba(58, 45, 45, .16);
  --tile-fill: rgba(58, 45, 45, .035);
  --code-fill: #f3efe7;
  --aurora-a: rgba(183, 158, 220, .30);
  --aurora-b: rgba(255, 193, 182, .32);
  --aurora-c: rgba(255, 212, 140, .28);
  --aurora-d: rgba(167, 215, 197, .28);
  --hero-media-filter: none;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --ease-standard: cubic-bezier(.20, .80, .20, 1);
  --ease-emphasized: cubic-bezier(.16, 1, .30, 1);
  --ease-exit: cubic-bezier(.40, 0, 1, 1);
  --duration-quick: 180ms;
  --duration-standard: 320ms;
  --duration-emphasized: 420ms;
  --hp-gutter: 16px;
  --hp-max: 1120px;
  --hp-read: 680px;
  background: var(--bg-page);
  color: var(--color-text-primary);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hp {
    --color-accent-text: #1b1c19;
    --color-text-tertiary: #aba29c;
    --color-border-primary: rgba(255, 255, 255, .16);
    --color-border-secondary: rgba(255, 255, 255, .09);
    --color-danger-text: #ffb4ab;
    --color-success-text: #a7d7c5;
    --hp-gold: #d9b07f;
    --hp-gold-light: #f3dcb0;
    --hp-cta-glow: rgba(238, 189, 142, .22);
    --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
    --glass-edge: rgba(255, 255, 255, .13);
    --glass-light: inset 0 1px 0 rgba(255, 255, 255, .10);
    --glass-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    --glass-shadow-hover: 0 24px 60px rgba(0, 0, 0, .46);
    --tile-fill: rgba(255, 255, 255, .045);
    --code-fill: #262622;
    --aurora-a: rgba(140, 110, 190, .20);
    --aurora-b: rgba(220, 140, 120, .18);
    --aurora-c: rgba(200, 160, 110, .16);
    --aurora-d: rgba(100, 160, 140, .16);
    --hero-media-filter: brightness(.62) saturate(.9);
  }
}
:root[data-theme="dark"] .hp {
  --color-accent-text: #1b1c19;
  --color-text-tertiary: #aba29c;
  --color-border-primary: rgba(255, 255, 255, .16);
  --color-border-secondary: rgba(255, 255, 255, .09);
  --color-danger-text: #ffb4ab;
  --color-success-text: #a7d7c5;
  --hp-gold: #d9b07f;
  --hp-gold-light: #f3dcb0;
  --hp-cta-glow: rgba(238, 189, 142, .22);
  --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  --glass-edge: rgba(255, 255, 255, .13);
  --glass-light: inset 0 1px 0 rgba(255, 255, 255, .10);
  --glass-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  --glass-shadow-hover: 0 24px 60px rgba(0, 0, 0, .46);
  --tile-fill: rgba(255, 255, 255, .045);
  --code-fill: #262622;
  --aurora-a: rgba(140, 110, 190, .20);
  --aurora-b: rgba(220, 140, 120, .18);
  --aurora-c: rgba(200, 160, 110, .16);
  --aurora-d: rgba(100, 160, 140, .16);
  --hero-media-filter: brightness(.62) saturate(.9);
}
@media (min-width: 520px) { .hp { --hp-gutter: 24px; } }
@media (min-width: 1024px) { .hp { --hp-gutter: 32px; } }

/* Language visibility before global-nav.js runs (the head script sets
   data-lang); the same rules global-nav.js injects later. */
[data-lang="en"] .hp :is(.i18n-zh, .i18n-zh-hans, .i18n-zh-hant, .i18n-es) { display: none !important; }
[data-lang="zh-hans"] .hp :is(.i18n-en, .i18n-zh-hant, .i18n-es) { display: none !important; }
[data-lang="zh-hant"] .hp :is(.i18n-en, .i18n-zh, .i18n-zh-hans, .i18n-es) { display: none !important; }
[data-lang="es"] .hp :is(.i18n-en, .i18n-zh, .i18n-zh-hans, .i18n-zh-hant) { display: none !important; }

html:has(body.hp) { background: var(--bg-page); }
.hp { overflow-x: clip; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── Layout ─────────────────────────────────────────────── */
.hp-wrap { max-width: calc(var(--hp-max) + 2 * var(--hp-gutter)); margin: 0 auto; padding: 0 var(--hp-gutter); }
.hp-read { max-width: var(--hp-read); }
.hp-section { position: relative; padding: 112px 0; }
@media (min-width: 760px) { .hp-section { padding: 176px 0; } }
.hp-section--tight { padding-top: 24px; }

.hp h1, .hp h2, .hp h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-text-primary);
  text-wrap: balance;
  letter-spacing: -.02em;
}
.hp p, .hp li, .hp dd { text-wrap: pretty; }
.hp-eyebrow {
  display: block;
  font: 600 13px/1.4 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.hp-h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; font-weight: 700; }
.hp-h2 em, .hp-h1 em { font-style: italic; color: var(--secondary); }
.hp-lede {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.hp-body { font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); }
.hp-body + .hp-body { margin-top: 12px; }
.hp-body strong { color: var(--color-text-primary); font-weight: 600; }
.hp-note { font-size: 13px; line-height: 1.5; color: var(--color-text-tertiary); }

/* Links inside running text underline; they never scale. */
.hp-text-link {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-border-primary);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--duration-quick) var(--ease-standard);
}
.hp-text-link:hover { opacity: 1; text-decoration-color: currentColor; }

/* ── Buttons ────────────────────────────────────────────── */
.hp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform var(--duration-quick) var(--ease-standard),
    box-shadow var(--duration-quick) var(--ease-standard), background-color var(--duration-quick) var(--ease-standard);
}
.hp-btn:hover { opacity: 1; }
.hp-btn:active { transform: scale(.97); transition-duration: 60ms; }
.hp-btn svg { flex: none; }
.hp-btn--primary {
  /* Dark ink on the gold sweep: white text failed contrast on the light
     middle of the gradient in both themes. */
  color: #2b2018;
  background: linear-gradient(100deg, var(--secondary) 0%, var(--hp-gold) 30%, var(--hp-gold-light) 50%,
    var(--hp-gold) 70%, var(--secondary) 100%);
  background-size: 240% 100%;
  animation: hp-sweep 7s linear infinite;
  box-shadow: 0 10px 28px var(--hp-cta-glow);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}
.hp-btn--primary::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid var(--hp-gold);
  opacity: 0;
  animation: hp-breathe 3.2s var(--ease-standard) infinite;
  pointer-events: none;
}
.hp-btn--secondary {
  color: var(--color-text-primary);
  background: var(--glass-fill);
  box-shadow: var(--glass-light), 0 0 0 1px var(--glass-edge), 0 6px 18px rgba(0, 0, 0, .06);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
}
.hp-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
@keyframes hp-sweep { from { background-position: 100% 0; } to { background-position: -140% 0; } }
@keyframes hp-breathe {
  0%, 100% { opacity: 0; transform: scale(.98); }
  50% { opacity: .55; transform: scale(1.02); }
}

/* App Store badge: Apple's wording and rounded-rectangle shape. */
.hp-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 22px 8px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--color-accent-text);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  transition: transform var(--duration-quick) var(--ease-standard), box-shadow var(--duration-quick) var(--ease-standard);
}
.hp-store:hover { opacity: 1; }
.hp-store:active { transform: scale(.97); transition-duration: 60ms; }
.hp-store__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.hp-store__text small { font-size: 11px; letter-spacing: .02em; }
.hp-store__text strong { color: inherit; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

@media (hover: hover) and (pointer: fine) {
  .hp-btn:hover, .hp-store:hover { transform: scale(1.04); }
  .hp-btn--primary:hover { box-shadow: 0 14px 36px var(--hp-cta-glow); }
  .hp-btn--primary:hover::after { animation-play-state: paused; }
  .hp-btn:active, .hp-store:active { transform: scale(.97); }
}
.hp :focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; }

/* ── Hero ───────────────────────────────────────────────── */
.hp-hero { position: relative; padding-top: 128px; isolation: isolate; }
@media (min-width: 760px) { .hp-hero { padding-top: 184px; } }
.hp-hero__aurora {
  position: absolute;
  inset: 0 0 -20% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vw 28vw at 14% 12%, var(--aurora-a), transparent 70%),
    radial-gradient(36vw 26vw at 86% 18%, var(--aurora-b), transparent 70%),
    radial-gradient(42vw 30vw at 30% 70%, var(--aurora-c), transparent 70%),
    radial-gradient(40vw 30vw at 80% 72%, var(--aurora-d), transparent 70%);
  filter: blur(16px);
}
.hp-hero__copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hp-h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; }
.hp-hero__lede { max-width: 560px; margin: 32px auto 0; font-size: clamp(17px, 1.6vw, 19px); }
.hp-hero__cta { display: flex; justify-content: center; align-items: center; min-height: 56px; margin-top: 48px; }
/* Phones and tablets keep the App Store badge (the static default). The head
   script marks desktop browsers, which get the AI button instead. */
.hp-cta-ai { display: none; }
html.hp-desktop .hp-hero__cta .hp-cta-store { display: none; }
html.hp-desktop .hp-hero__cta .hp-cta-ai { display: inline-flex; }

/* Illustrated loop: the box is reserved by aspect ratio (no layout shift);
   the poster is an <img>, the video (desktop only, home.js) fades in over it. */
.hp-hero__media {
  position: relative;
  margin: 40px auto 0;
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  max-height: 440px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.hp-hero__media img, .hp-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  filter: var(--hero-media-filter);
}
.hp-hero__media video { opacity: 0; transition: opacity var(--duration-emphasized) var(--ease-standard); }
.hp-hero__media video.is-playing { opacity: 1; }
@media (min-width: 1024px) { .hp-hero__media { margin-top: 24px; } }

/* ── Proof tiles (static) ───────────────────────────────── */
.hp-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}
@media (min-width: 760px) { .hp-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hp-proof__tile {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--tile-fill);
  box-shadow: inset 0 0 0 1px var(--color-border-secondary);
}
.hp-proof__tile dt { font: 600 24px/1.15 var(--font-display); color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.hp-proof__tile dd { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--color-text-secondary); }

/* ── Cards ──────────────────────────────────────────────── */
.hp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--glass-fill);
  box-shadow: var(--glass-light), 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  color: var(--color-text-primary);
}
a.hp-card {
  text-decoration: none;
  transition: transform var(--duration-quick) var(--ease-standard), box-shadow var(--duration-quick) var(--ease-standard);
}
a.hp-card:hover { opacity: 1; }
a.hp-card:active { transform: scale(.97); transition-duration: 60ms; }
@media (hover: hover) and (pointer: fine) {
  a.hp-card:hover { transform: scale(1.02); box-shadow: var(--glass-light), 0 0 0 1px var(--glass-edge), var(--glass-shadow-hover); }
  a.hp-card:active { transform: scale(.97); }
}
.hp-card h3, .hp-card__title { font-size: 22px; line-height: 1.25; font-weight: 700; }
.hp-card p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--color-text-secondary); }
.hp-card__go {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
}
.hp-card__go svg { transition: transform var(--duration-quick) var(--ease-standard); }
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--tile-fill);
  box-shadow: inset 0 0 0 1px var(--color-border-secondary);
}
.hp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success-text); }
.hp-pill--after { margin: 16px 0 0; }
.hp-pill--next::before { background: var(--color-text-tertiary); }
.hp-pill--beta::before { background: var(--hp-gold); }

.hp-entry { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 760px) { .hp-entry { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ── App steps with real screenshots ────────────────────── */
.hp-head { max-width: var(--hp-read); }
.hp-head--center { margin: 0 auto; text-align: center; }
.hp-steps { display: grid; gap: 40px; margin-top: 48px; counter-reset: hp-step; }
@media (min-width: 760px) { .hp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.hp-step { text-align: center; }
.hp-shot {
  width: min(240px, 64vw);
  margin: 0 auto 24px;
  aspect-ratio: 600 / 1301;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-components);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-shadow);
}
.hp-shot img { width: 100%; height: 100%; object-fit: cover; }
.hp-step h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.hp-step p { margin: 8px auto 0; max-width: 320px; font-size: 16px; line-height: 1.55; color: var(--color-text-secondary); }

/* ── Two-column feature (taste, developers) ─────────────── */
.hp-split { display: grid; gap: 32px; align-items: start; }
.hp-split > * { min-width: 0; }
@media (min-width: 1024px) { .hp-split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.hp-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.hp-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.hp-list li strong { color: var(--color-text-primary); font-weight: 600; }
.hp-list svg { margin-top: 3px; color: var(--secondary); }

/* Example prompt: plainly text, never styled as a host screenshot. */
.hp-prompt {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--tile-fill);
  box-shadow: inset 0 0 0 1px var(--color-border-secondary);
}
.hp-prompt figcaption { font-size: 13px; font-weight: 600; color: var(--color-text-tertiary); letter-spacing: .02em; }
.hp-prompt blockquote { margin-top: 8px; font: italic 400 19px/1.5 var(--font-display); color: var(--color-text-primary); }

.hp-numbered { list-style: none; counter-reset: hp-n; display: grid; gap: 12px; margin-top: 24px; }
.hp-numbered li {
  counter-increment: hp-n;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.hp-numbered li::before {
  content: counter(hp-n);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: 600 14px/1 var(--font-body);
  color: var(--color-text-primary);
  background: var(--tile-fill);
  box-shadow: inset 0 0 0 1px var(--color-border-primary);
}
.hp-numbered li strong { color: var(--color-text-primary); font-weight: 600; }

.hp-hosts { display: grid; gap: 12px; }
@media (min-width: 520px) { .hp-hosts { grid-template-columns: 1fr 1fr; } }

/* Developer teaser band */
.hp-dev-band {
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--glass-fill);
  box-shadow: var(--glass-light), 0 0 0 1px var(--glass-edge), var(--glass-shadow);
}
@media (min-width: 760px) { .hp-dev-band { padding: 48px; } }
.hp-quote { margin-top: 20px; font: italic 400 20px/1.45 var(--font-display); color: var(--color-text-primary); }
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* Code sample */
.hp-code {
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--code-fill);
  box-shadow: inset 0 0 0 1px var(--color-border-secondary);
  overflow-x: auto;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--color-text-primary);
  tab-size: 2;
}
.hp-code-cap { margin-top: 8px; }

/* ── Company ────────────────────────────────────────────── */
.hp-company { text-align: center; }
.hp-company .hp-body { max-width: 560px; margin: 16px auto 0; }

/* ── FAQ ────────────────────────────────────────────────── */
.hp-faq { max-width: 760px; margin: 72px auto 0; border-top: 1px solid var(--color-border-secondary); }
.hp-faq details { border-bottom: 1px solid var(--color-border-secondary); }
.hp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font: 600 17px/1.4 var(--font-body);
  color: var(--color-text-primary);
  transition: color var(--duration-quick) var(--ease-standard);
}
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary svg { flex: none; color: var(--color-text-tertiary); transition: transform var(--duration-standard) var(--ease-standard); }
.hp-faq details[open] summary svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .hp-faq summary:hover svg { color: var(--color-text-primary); } }
.hp-faq__a { max-width: 640px; padding: 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--color-text-secondary); }
.hp-faq__a p + p { margin-top: 8px; }

/* ── Closing CTA ────────────────────────────────────────── */
.hp-close { text-align: center; }
.hp-close .hp-actions { justify-content: center; margin-top: 48px; }

/* ── Footer ─────────────────────────────────────────────── */
.hp-footer { padding: 56px 0 40px; border-top: 1px solid var(--color-border-secondary); font-size: 14px; }
.hp-footer__top { display: grid; gap: 32px; }
@media (min-width: 760px) { .hp-footer__top { grid-template-columns: 1.2fr repeat(3, 1fr); } }
.hp-footer .navbar-brand { font-size: 22px; color: var(--color-text-primary); }
.hp-footer__by { margin-top: 8px; color: var(--color-text-tertiary); }
.hp-footer__by a { color: inherit; }
.hp-footer h2 { font: 600 13px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-tertiary); }
.hp-footer ul { list-style: none; margin-top: 8px; }
.hp-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: transform var(--duration-quick) var(--ease-standard), color var(--duration-quick) var(--ease-standard);
  transform-origin: left center;
}
.hp-footer li a:hover { opacity: 1; color: var(--color-text-primary); }
@media (hover: hover) and (pointer: fine) { .hp-footer li a:hover { transform: scale(1.04); } }
@media (pointer: coarse) { .hp-footer li a { min-height: 44px; } }
.hp-footer__legal { margin-top: 40px; font-size: 12px; color: var(--color-text-tertiary); }

/* ── Scroll reveal (only once JS adds html.hp-js) ───────── */
html.hp-js .hp-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity var(--duration-emphasized) var(--ease-standard),
    transform var(--duration-emphasized) var(--ease-emphasized), filter var(--duration-emphasized) var(--ease-standard);
  transition-delay: var(--hp-delay, 0ms);
}
html.hp-js .hp-reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ── Fallbacks ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hp-btn--primary, .hp-btn--primary::after { animation: none; }
  .hp-btn--primary::after { opacity: 0; }
  .hp-btn, .hp-store, a.hp-card, .hp-footer li a, .hp-faq summary svg { transition: none; }
  .hp-btn:hover, .hp-store:hover, a.hp-card:hover, .hp-footer li a:hover,
  .hp-btn:active, .hp-store:active, a.hp-card:active { transform: none !important; }
  html.hp-js .hp-reveal { transform: none; filter: none; transition: opacity 150ms var(--ease-standard); }
}
@media (prefers-reduced-transparency: reduce) {
  .hp { --glass-fill: var(--bg-card); }
  .hp-btn--secondary { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hp-hero__aurora { display: none; }
}
@media (prefers-contrast: more) {
  .hp { --glass-edge: var(--color-text-secondary); --color-border-secondary: var(--color-text-tertiary); }
}

/* ── Home hero, split (2026-11 redesign) ─────────────────── */
/* The brand mark lines up with the page column. */
.hp .navbar-brand-bar .container-wide { max-width: calc(var(--hp-max) + 2 * var(--hp-gutter)); padding: 0 var(--hp-gutter); }

/* ── Phone stage ─────────────────────────────────────────── */
.st {
  --dm-paper: #fbfaf7;
  --dm-ink: #26231f;
  --dm-find: rgba(240, 212, 158, .34);
  --dm-find-edge: #d9a85f;
  --dm-bezel: #1b1c19;
  --dm-sheet: rgba(251, 249, 244, .88);
  --dm-phone-shadow: 0 40px 80px rgba(58, 45, 45, .22), 0 12px 24px rgba(58, 45, 45, .10);
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  display: grid;
  justify-items: center;
  gap: 40px;
  margin-top: 96px;
}
/* Phones: chips, the phone, then the two links; the chat card is desktop
   decoration only. */
.st-card--taste { order: 1; text-align: center; }
.st-card--taste .dm-chips { justify-content: center; }
.st .dm-device { order: 2; }
.st-foot { order: 3; }
.st-card--dev { order: 4; }
.st-card--work { order: 5; }

.st-card__label { font-size: 13px; font-weight: 600; color: var(--color-text-tertiary); }
a.st-card, .st-card--ai, .st-card--taste {
  display: grid;
  gap: 8px;
  width: min(100%, 300px);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 12px 32px rgba(58, 45, 45, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: transform var(--duration-quick) var(--ease-standard);
}
/* Only the chat mock is a surface; the rest is text on the page. */
a.st-card, .st-card--taste { padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
a.st-card { text-align: center; justify-items: center; }
a.st-card:active { transform: scale(.98); transition-duration: 60ms; }
@media (hover: hover) and (pointer: fine) { a.st-card:hover { transform: scale(1.03); } a.st-card:active { transform: scale(.98); } }
.st-card__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.st-code { font: 13px/1.4 var(--font-mono); color: var(--color-text-secondary); }
.st-bubble { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.st-bubble img { flex: none; border-radius: 5px; margin-top: 2px; }
.st-bubble--me { justify-self: end; max-width: 90%; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--bg-components); }
.st-foot { display: grid; justify-items: center; gap: 12px; max-width: 520px; text-align: center; }
.st-foot .hp-note { margin: 0; }

.st > .st-card--ai { display: none; }
@media (max-width: 1179px) {
  .st-card--taste { width: 100%; }
}

/* Desktop: cards float beside the phone, Flighty-style. */
@media (min-width: 1180px) {
  .st {
    grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
    grid-template-areas: "ai phone taste" "work phone dev" "foot foot foot";
    column-gap: 104px;
    row-gap: 88px;
    margin-top: 120px;
  }
  .st .dm-device { grid-area: phone; }
  .st > .st-card--ai { display: grid; grid-area: ai; justify-self: end; align-self: end; transform: rotate(-1.5deg); }
  a.st-card--work { grid-area: work; justify-self: end; align-self: start; text-align: right; justify-items: end; }
  .st-card--taste { grid-area: taste; justify-self: start; align-self: end; text-align: left; width: min(100%, 380px); }
  .st-card--taste .dm-chips { justify-content: flex-start; }
  a.st-card--dev { grid-area: dev; justify-self: start; align-self: start; text-align: left; justify-items: start; }
  .st-foot { grid-area: foot; margin-top: 0; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st { --dm-sheet: rgba(48, 49, 46, .88); --dm-phone-shadow: 0 40px 80px rgba(0, 0, 0, .5); --dm-bezel: #0e0e0d; }
}
:root[data-theme="dark"] .st { --dm-sheet: rgba(48, 49, 46, .88); --dm-phone-shadow: 0 40px 80px rgba(0, 0, 0, .5); --dm-bezel: #0e0e0d; }
.dm-chips { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 2px; }
.dm-chip {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-tertiary);
  font: 500 16px/1 var(--font-body);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 8px;
  cursor: pointer;
  transition: color var(--duration-quick) var(--ease-standard), text-decoration-color var(--duration-quick) var(--ease-standard);
}
.dm-chip[aria-pressed="true"] { color: var(--color-text-primary); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .dm-chip:hover { color: var(--color-text-primary); } }
/* The phone: camera view first, results after the scan. */
.dm-device { display: flex; justify-content: center; }
.dm-phone {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 300 / 620;
  padding: 10px;
  border-radius: 50px;
  background: var(--dm-bezel);
  box-shadow: var(--dm-phone-shadow), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.dm-phone::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 50%;
  width: 86px;
  height: 24px;
  margin-left: -43px;
  border-radius: 14px;
  background: #000;
}
.dm-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: var(--bg-page); isolation: isolate; }

.dm-cam {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, #3a332c 0%, #171513 70%);
  transition: opacity 180ms var(--ease-exit);
}
.dm-cam__hint {
  position: absolute;
  z-index: 3;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--duration-quick) var(--ease-standard);
}
.dm-menu {
  position: absolute;
  top: 84px;
  left: 10%;
  right: 10%;
  padding: 12px 12px 8px;
  border-radius: 3px;
  background: var(--dm-paper);
  color: var(--dm-ink);
  font: 300 7.4px/1.3 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transform: perspective(700px) rotateX(7deg) rotate(-2.2deg);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
}
.dm-menu__sec { font-size: 13px; line-height: 1; margin: 2px 0 6px; letter-spacing: .01em; }
.dm-menu__item + .dm-menu__sec { margin-top: 8px; }
.dm-menu__sec + .dm-menu__item { margin-top: 0; }
.dm-menu__item { position: relative; margin: 0 0 4px; padding-right: 18px; }
.dm-menu__item b { display: block; font-weight: 400; font-size: 8.6px; }
.dm-menu__item i { display: block; font-style: italic; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-menu__item em { position: absolute; top: 1px; right: 0; font-style: normal; font-size: 8px; }
[data-demo-again].is-off { visibility: hidden; opacity: 0; }
[data-demo-again] { transition: opacity var(--duration-quick) var(--ease-standard), transform var(--duration-quick) var(--ease-standard); }
.dm-menu__item::after {
  content: "";
  position: absolute;
  inset: -2px -5px;
  border-radius: 4px;
  border: 1.2px solid var(--dm-find-edge);
  background: var(--dm-find);
  opacity: 0;
  transform: scale(.94);
  transition: opacity 180ms var(--ease-standard), transform var(--duration-standard) var(--ease-emphasized);
}
.dm-menu__item.is-found::after { opacity: 1; transform: none; }
.dm-frame {
  position: absolute;
  inset: 72px 14px 128px;
  pointer-events: none;
  --c: rgba(255, 255, 255, .85);
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 22px no-repeat;
}
.dm-scanline {
  position: absolute;
  z-index: 2;
  top: 74px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f3dcb0 20%, #fff 50%, #f3dcb0 80%, transparent);
  box-shadow: 0 0 16px 4px rgba(240, 212, 158, .55);
  opacity: 0;
}
.dm-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.dm-cam__bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity var(--duration-quick) var(--ease-standard), transform var(--duration-standard) var(--ease-standard);
}
.dm-shutter {
  position: relative;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform var(--duration-quick) var(--ease-standard);
}
.dm-shutter::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.dm-shutter::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  animation: dm-breathe 2.4s var(--ease-standard) infinite;
}
.dm-shutter:active { transform: scale(.92); transition-duration: 60ms; }
@media (hover: hover) and (pointer: fine) { .dm-shutter:hover { transform: scale(1.06); } .dm-shutter:hover::after { animation-play-state: paused; } .dm-shutter:active { transform: scale(.92); } }
.dm-shutter:focus-visible { outline: 2px solid #f0d49e; outline-offset: 12px; }
.dm-cam__tap { color: rgba(255, 255, 255, .86); font-size: 11px; font-weight: 600; }
.dm-sheet {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 28px;
  background: var(--dm-sheet);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 12px 30px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-quick) var(--ease-standard), transform var(--duration-emphasized) var(--ease-emphasized);
}
.dm-nibble { width: 64px; height: 64px; flex: none; }
.dm-sheet__t { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.dm-count { margin-top: 2px; font-size: 12px; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; min-height: 1.4em; }

.dm-phone[data-state="reading"] .dm-cam__hint,
.dm-phone[data-state="reading"] .dm-cam__bar { opacity: 0; pointer-events: none; }
.dm-phone[data-state="reading"] .dm-cam__bar { transform: translateY(12px); }
.dm-phone[data-state="reading"] .dm-sheet { opacity: 1; transform: none; }
.dm-phone[data-state="reading"] .dm-scanline { opacity: 1; animation: dm-scan 1.5s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.dm-phone[data-state="reading"] .dm-flash { animation: dm-flash 420ms var(--ease-standard); }
.dm-phone[data-state="results"] .dm-cam { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 180ms var(--ease-exit), visibility 0s 180ms; }

/* Results: the app's "Discovered items" screen. */
.dm-res {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 50px 12px 20px;
  color: var(--color-text-primary);
  opacity: 0;
  visibility: hidden;
  scrollbar-width: none;
}
.dm-res::-webkit-scrollbar { display: none; }
.dm-phone[data-state="results"] .dm-res { opacity: 1; visibility: visible; transition: opacity var(--duration-standard) var(--ease-standard) 180ms; }
.dm-res__bar { display: flex; justify-content: space-between; padding: 0 4px; color: var(--color-text-primary); }
.dm-eyebrow { margin: 14px 4px 0; font-size: 8.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--secondary); }
.dm-title { margin: 2px 4px 0; font: italic 700 28px/1.1 var(--font-display); letter-spacing: -.01em; }
.dm-toggle { display: flex; align-items: center; justify-content: space-between; margin: 12px 4px 0; font-size: 10.5px; color: var(--color-text-secondary); }
.dm-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.dm-toggle i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--primary); }
.dm-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-page); }
.dm-label { display: flex; align-items: center; gap: 5px; margin: 16px 4px 8px; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-primary); }
.dm-favs { display: grid; gap: 8px; }
.dm-card {
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--color-border-secondary), 0 4px 14px rgba(0, 0, 0, .05);
}
.dm-card__top { display: flex; gap: 10px; }
.dm-card__body { flex: 1; min-width: 0; }
.dm-thumb { position: relative; flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--bg-components); }
.dm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-thumb--sm { width: 34px; height: 34px; border-radius: 9px; }
.dm-ai { position: absolute; left: 3px; bottom: 3px; padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 6.5px; font-weight: 600; line-height: 1.4; }
.dm-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.dm-card h4 { margin: 0; font: 700 10.5px/1.25 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.dm-price { flex: none; padding: 2px 6px; border-radius: 6px; background: var(--bg-components); font: italic 600 10px/1.3 var(--font-display); }
.dm-card__orig { display: block; margin-top: 1px; font-size: 8.5px; font-style: italic; color: var(--color-text-tertiary); }
.dm-card__desc { margin-top: 3px; font-size: 9.5px; line-height: 1.35; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-tag { display: inline-block; margin-top: 5px; padding: 2px 6px; border-radius: 5px; background: var(--bg-components); font-size: 8.5px; color: var(--color-text-secondary); }
.dm-card__why { display: flex; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--color-border-secondary); font: italic 400 9.5px/1.4 var(--font-body); color: var(--color-text-secondary); }
.dm-card__why svg { flex: none; margin-top: 1px; color: var(--secondary); width: 10px; height: 10px; }
.dm-label svg { width: 10px; height: 10px; }
.dm-rows { list-style: none; padding: 0; }
.dm-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--color-border-secondary); }
.dm-row:last-child { border-bottom: 0; }
.dm-row__name { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 600; line-height: 1.25; }
.dm-row__name small { display: block; font-size: 8.5px; font-weight: 400; font-style: italic; color: var(--color-text-tertiary); }
.dm-row__price { font: italic 600 10.5px/1 var(--font-display); color: var(--color-text-secondary); }
.dm-rise { opacity: 0; animation: dm-rise var(--duration-emphasized) var(--ease-emphasized) forwards; animation-delay: calc(var(--i, 0) * 30ms + 200ms); }
.dm-favs.is-out .dm-rise { animation: dm-out 160ms var(--ease-exit) forwards; }

@keyframes dm-breathe { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes dm-scan { from { transform: translateY(0); } to { transform: translateY(330px); } }
@keyframes dm-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes dm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dm-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .dm-shutter::after { animation: none; opacity: 0; }
  .dm-phone[data-state="reading"] .dm-scanline, .dm-phone[data-state="reading"] .dm-flash { animation: none; opacity: 0; }
  .dm-sheet { transform: none; }
  .dm-rise { animation: dm-fade 150ms var(--ease-standard) forwards; animation-delay: 0ms; }
  .dm-favs.is-out .dm-rise { animation: none; opacity: 0; }
  .dm-chip, .dm-shutter, a.st-card { transition: none; }
  a.st-card:hover, .st-card--ai { transform: none !important; }
  .dm-chip:hover, .dm-shutter:hover { transform: none !important; }
}
@keyframes dm-fade { to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .dm-sheet { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dm-cam__hint { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  a.st-card, .st-card--ai, .st-card--taste { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Hero (2026-11, phone as the hero) */
.hp-hero__cta { flex-wrap: wrap; column-gap: 32px; row-gap: 16px; }
.hp-hero__proof { display: flex; justify-content: center; align-items: baseline; gap: 6px; max-width: 100%; margin-top: 32px; text-align: center; font-size: 14px; color: var(--color-text-secondary); }
.hp-hero__proof svg { flex: none; color: var(--hp-gold, var(--secondary)); }

/* Secondary actions are text with an arrow, not buttons. */
.hp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-primary);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.hp-link:hover { opacity: 1; }
.hp-link--ai > svg:first-child { color: var(--secondary); }
.hp-link__arrow { transition: transform var(--duration-quick) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .hp-link:hover .hp-link__arrow { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .hp-link__arrow { transition: none; } }
