/* Lookt landing page. Composition modeled on an app-showcase page (two-tone headlines, phones on a
   tinted ground, stacked feature cards, a dark band, a photo close); every visual inside a phone is a
   real screenshot of the Lookt app. Light theme is locked on this page (html.theme-light). */

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}
.display .tone { display: block; color: var(--cobalt); }
.h-xl { font-size: clamp(3rem, 5.3vw, 4.875rem); }
.h-lg { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.h-md { font-size: clamp(2rem, 3.2vw, 2.875rem); line-height: 0.96; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.45; font-weight: 500; color: var(--ink2); max-width: 34ch; }
.body-lg { font-size: 1.125rem; line-height: 1.55; color: var(--ink2); max-width: 46ch; }

main.landing { max-width: none; padding: 0; }
.landing section { margin-bottom: 0; }
.site-footer nav { display: block; }

/* ---------- Phone frame around real screenshots ---------- */
figure.phone { margin: 0; }
.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 1179 / 2556;
  padding: calc(var(--w) * 0.033);
  border-radius: calc(var(--w) * 0.155);
  background: #0e1624;
  box-shadow:
    0 1px 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -24px rgba(8, 12, 20, 0.34),
    0 18px 36px -18px rgba(8, 12, 20, 0.26);
  flex: none;
}
.phone img,
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--w) * 0.125);
  background: var(--bg);
}

.phone-video { position: relative; }
.phone video { display: block; }

/* Pause/play control for every moving phone (WCAG 2.2.2). Icon swap from transitions.dev,
   play/pause glyphs from 21st.dev Animated State Icons. */
.media-toggle {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #f6f8fb;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--bg), 0 10px 20px -10px rgba(8, 12, 20, 0.5);
  cursor: pointer;
  z-index: 2;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.media-toggle:active { transform: scale(0.94); }
.media-toggle:focus-visible { border-radius: 50%; }
.answer-tab:focus-visible { border-radius: var(--radius-panel); }
@media (hover: hover) and (pointer: fine) {
  .media-toggle:hover { background: #26324a; }
}
.media-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.media-toggle--inline { position: static; flex: none; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .media-toggle--inline:hover { background: var(--tile); }
}
.js .media-toggle[hidden] { display: none; }

.t-icon-swap { --icon-swap-dur: 250ms; --icon-swap-blur: 2px; --icon-swap-start-scale: 0.25; --icon-swap-ease: ease-in-out; }
.t-icon-swap .t-icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition:
    opacity   var(--icon-swap-dur) var(--icon-swap-ease),
    filter    var(--icon-swap-dur) var(--icon-swap-ease),
    transform var(--icon-swap-dur) var(--icon-swap-ease);
  will-change: opacity, filter, transform;
}
.t-icon-swap[data-state="pause"] .t-icon[data-icon="pause"],
.t-icon-swap[data-state="play"] .t-icon[data-icon="play"] { opacity: 1; filter: blur(0); transform: scale(1); }
.t-icon-swap[data-state="pause"] .t-icon[data-icon="play"],
.t-icon-swap[data-state="play"] .t-icon[data-icon="pause"] { opacity: 0; filter: blur(var(--icon-swap-blur)); transform: scale(var(--icon-swap-start-scale)); }

/* ---------- Store badges (not live yet) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.badges li { margin: 0; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #f6f8fb;
}
.store-badge .icon { width: 30px; height: 30px; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge small { font-size: 12.5px; font-weight: 500; color: #c6ccd6; }
.store-badge strong { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; }
.on-dark .store-badge { background: #f6f8fb; color: var(--ink); }
.on-dark .store-badge small { color: #4b5361; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cobalt-soft);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: min(calc(100dvh - var(--header-h)), 760px);
  padding-top: 48px;
  padding-bottom: 0;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.reveal-line { display: block; }
.reveal-word { display: inline-block; white-space: pre; }
.js .reveal-word {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}
.js .reveal.is-shown .reveal-word { opacity: 1; transform: none; filter: blur(0); }

.t-stagger { --stagger-dur: 500ms; --stagger-distance: 12px; --stagger-stagger: 90ms; --stagger-blur: 3px; --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.js .t-stagger-line {
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  transition-delay: 420ms;
  will-change: transform, opacity, filter;
}
.js .t-stagger-line--2 { transition-delay: calc(420ms + var(--stagger-stagger)); }
.js .t-stagger.is-shown .t-stagger-line { opacity: 1; transform: translateY(0); filter: blur(0); }
.js .t-stagger-line, .js .reveal-word { animation: force-show 1ms linear 3s forwards; }
.js .t-stagger.is-shown .t-stagger-line, .js .reveal.is-shown .reveal-word { animation: none; }
@keyframes force-show { to { opacity: 1; transform: none; filter: none; } }
.hero-copy .lede { margin: 0; }
.hero-stage {
  position: relative;
  align-self: stretch;
  min-height: 600px;
}
.hero-stage .phone { position: absolute; }
.hero-stage .phone-back { --w: 270px; left: 4%; top: 64px; rotate: -5deg; }
.hero-stage .phone-front { --w: 300px; left: 40%; top: 220px; rotate: 4deg; }

/* ---------- Section rhythm ---------- */
.section { padding: 112px 0; }
.section-head { display: grid; gap: 20px; margin-bottom: 56px; max-width: 760px; }
.section-head p { margin: 0; }

/* ---------- How it works: stacking cards (adapted from 21st.dev Stacking Cards) ---------- */
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.stack-item { margin: 0; position: static; }
@media (min-width: 861px) and (min-height: 720px) {
  .stack-item { position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 14px); }
}
.stack-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px;
  min-height: 540px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(14, 22, 36, 0.06), 0 24px 48px -32px rgba(14, 22, 36, 0.28);
  transform-origin: 50% 0;
  will-change: transform;
}
.stack-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 28px 32px 40px;
}
.stack-text .body-lg { margin: 0; }
.stack-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 56px;
}
.stack-panel .phone { --w: 320px; }
.panel-cobalt { background: var(--cobalt); }
.panel-mist { background: var(--cobalt-mist); }
.panel-ink { background: var(--navy); }
.panel-photo { background: var(--tile) center / cover no-repeat; }

/* ---------- Four answers (adapted from 21st.dev Feature Tab Switcher) ---------- */
.answers {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.answer-list { display: grid; gap: 4px; position: relative; }
.answer-indicator {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(8, 12, 20, 0.3);
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), height 300ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
html:not(.js) .answer-indicator { display: none; }
html:not(.js) .media-toggle { display: none; }
html:not(.js) .answer-tab .answer-desc { display: block; }
.answer-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  padding: 20px 22px 22px;
  border-radius: var(--radius-panel);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: background-color 200ms ease;
}
.answer-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  opacity: 0;
  overflow: hidden;
}
.answer-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
[data-answers].is-touring .answer-tab[aria-selected="true"] .answer-progress { opacity: 1; }
[data-answers].is-touring .answer-tab[aria-selected="true"] .answer-progress::after { animation: answer-progress var(--tour-ms, 4200ms) linear forwards; }
@keyframes answer-progress { to { transform: scaleX(1); } }
.answer-tab .icon { width: 32px; height: 32px; margin-top: 4px; }
.answer-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1;
}
.answer-desc {
  grid-column: 2;
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.5;
  max-width: 48ch;
  margin-top: 8px;
}
.answer-tab[aria-selected="false"] .answer-desc { display: none; }
html:not(.js) .answer-tab[aria-selected="true"] { background: var(--card); }
@media (hover: hover) and (pointer: fine) {
  .answer-tab[aria-selected="false"]:hover { background: color-mix(in srgb, var(--card) 55%, transparent); }
}
.v-recalled { color: var(--danger); }
.v-possible { color: var(--caution); }
.v-none, .v-unavailable { color: var(--ink); }
.answer-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 0 22px; }
.answer-note { margin: 0; color: var(--ink2); font-size: 15px; max-width: 52ch; }
.answer-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 600px;
  padding-top: 56px;
  border-radius: var(--radius-card);
  background: var(--cobalt-mist);
  overflow: hidden;
}
.answer-stage .phone { --w: 330px; }
.answer-stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-card); }
/* The app's own verdict motion: rise 24px and sharpen from blur, 420ms. */
.answer-stage .phone img { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), filter 420ms var(--ease-out); }
.answer-stage .phone img.is-swapping { opacity: 0; transform: translateY(24px); filter: blur(8px); transition-duration: 160ms; }

/* ---------- Pantry ---------- */
.pantry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.pantry-stage {
  position: relative;
  height: 700px;
  border-radius: var(--radius-card);
  background: var(--cobalt-mist);
  overflow: hidden;
}
.pantry-stage .phone { position: absolute; }
.pantry-stage .phone-a { --w: 290px; left: 9%; top: 60px; }
.pantry-stage .phone-b { --w: 260px; right: 7%; top: 230px; rotate: 3deg; }
.feature-rows { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
.feature-rows li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; margin: 0; }
.feature-rows h3 { font-family: var(--font-text); font-size: 1.1875rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 2px 0 4px; }
.feature-rows p { margin: 0; color: var(--ink2); max-width: 46ch; }
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-tile);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  display: grid;
  place-items: center;
}
.icon-tile .icon { width: 26px; height: 26px; }

/* ---------- Recalls feed (dark band) ---------- */
.band {
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
  padding: 112px 0 0;
}
.band .display .tone { color: var(--on-navy-2); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
}
.band-copy { padding-bottom: 112px; }
.band-copy .body-lg { color: var(--on-navy-2); margin: 24px 0 0; }
.facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.facts li { margin: 0; }
.facts .icon { width: 28px; height: 28px; color: var(--on-navy-2); margin-bottom: 14px; }
.facts h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 0 0 6px; color: var(--on-navy); }
.facts p { margin: 0; color: var(--on-navy-2); font-size: 15.5px; }
.band-stage { display: flex; justify-content: center; align-items: flex-start; }
.band-stage .phone { --w: 360px; margin-bottom: -180px; }
.panel-ink .phone, .band-stage .phone { background: #1d2740; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }

/* ---------- Sources: data flow (adapted from 21st.dev Animated Beam) ---------- */
.beam {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 72px;
  padding: 8px 0;
}
.beam-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.beam-track { fill: none; stroke: var(--line); stroke-width: 2; }
.beam-pulse { fill: none; stroke: var(--cobalt); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.16 1; stroke-dashoffset: 1.16; }
.beam.is-live .beam-pulse { animation: beam-flow 2.8s cubic-bezier(0.16, 1, 0.3, 1) 1 both; animation-delay: var(--d, 0s); }
@keyframes beam-flow { to { stroke-dashoffset: 0; } }
.beam-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.beam-node {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(14, 22, 36, 0.05), 0 0 0 1px var(--line);
}
.beam-node strong { font-weight: 600; font-size: 16px; line-height: 1.3; }
.beam-node span { grid-column: 1; color: var(--ink2); font-size: 14px; }
.beam-node .freq {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--cobalt);
}
.beam-hub {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 22px;
  border-radius: 28px;
  background: var(--cobalt);
  color: var(--cobalt-ink);
  box-shadow: 0 24px 40px -24px rgba(8, 12, 20, 0.5);
}
.beam-hub-mark { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.beam-hub-text { font-size: 14.5px; line-height: 1.4; color: color-mix(in srgb, var(--cobalt-ink) 86%, var(--cobalt)); max-width: 22ch; }
.beam-out {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(14, 22, 36, 0.05), 0 0 0 1px var(--line);
}
.beam-out-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.beam-out-icon .icon { width: 28px; height: 28px; }
.beam-out-text { display: grid; gap: 4px; }
.beam-out-text strong { font-weight: 600; font-size: 16px; }
.beam-out-text span { color: var(--ink2); font-size: 14px; line-height: 1.45; }
.sources-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 36px 0 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  max-width: 820px;
}
.sources-note .icon { width: 24px; height: 24px; color: var(--ink2); margin-top: 2px; }
.sources-note p { margin: 0; }

/* ---------- Privacy and price ---------- */
.trust { background: var(--card); border-block: 1px solid var(--line); }
.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "ads ads photo"
    "acct gps photo"
    "data data photo";
  gap: 18px;
}
.bento-cell {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-cell:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(8, 12, 20, 0.35); }
}
.bento-cell h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.625rem, 2.2vw, 2rem); letter-spacing: -0.01em; line-height: 1; margin: 6px 0 0; }
.bento-cell p { margin: 0; color: var(--ink2); max-width: 42ch; }
.bento-cell .bento-icon { position: absolute; top: 26px; right: 26px; color: var(--cobalt); }
.bento-cell .bento-icon .a-icon { width: 44px; height: 44px; }
.bento-acct, .bento-gps { justify-content: flex-end; min-height: 230px; }
.bento-acct p, .bento-gps p { max-width: 30ch; }
.bento-ads { grid-area: ads; background: var(--cobalt); color: var(--cobalt-ink); justify-content: flex-end; min-height: 280px; }
.bento-ads h3 { font-size: clamp(2.5rem, 5vw, 4.25rem); margin-bottom: 10px; }
.bento-ads p { color: color-mix(in srgb, var(--cobalt-ink) 86%, var(--cobalt)); font-size: 1.125rem; }
.bento-acct { grid-area: acct; }
.bento-gps { grid-area: gps; }
.bento-photo { grid-area: photo; padding-bottom: 0; }
.bento-data { grid-area: data; padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.bento-data .bento-copy { padding-bottom: 30px; }
.bento-data .bento-shot { align-self: end; }
.bento-copy { display: grid; gap: 10px; }
.bento-shot { margin-top: auto; width: 100%; height: auto; border-radius: 18px 18px 0 0; box-shadow: 0 0 0 1px var(--line); transform: translateY(6px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-weight: 600;
  min-height: 44px;
}
.t-learn { --learn-shift: 3px; --learn-spread: 8deg; --learn-in: 350ms; --learn-out: 350ms; --learn-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-learn-chevron { display: inline-flex; width: 18px; height: 18px; transform: translateX(0); transition: transform var(--learn-out) var(--learn-ease); }
.t-learn-chevron svg { width: 100%; height: 100%; overflow: visible; }
.t-learn-arm { transform-box: view-box; transform-origin: 10px 8px; vector-effect: non-scaling-stroke; transition: transform var(--learn-out) var(--learn-ease); }
@media (hover: hover) and (pointer: fine) {
  .t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
  .t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
  .t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
  .t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }
}

/* ---------- FAQ (adapted from 21st.dev Accordion) ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 8px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { width: 22px; height: 22px; color: var(--ink2); transition: transform 240ms var(--ease-out); }
.qa details[open] summary .icon { transform: rotate(45deg); }
.qa .answer { padding: 0 4px 26px; color: var(--ink2); max-width: 62ch; }
.qa .answer p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete;
  }
  .qa details[open]::details-content { block-size: auto; }
}

/* ---------- Close ---------- */
.close { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--cobalt-soft); }
.close-photo { position: relative; overflow: hidden; }
.close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 80px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 80px 72px;
}
.close-copy .body-lg { margin: 0; }

/* ---------- Footer (landing) ---------- */
.site-footer { background: var(--bg); padding: 72px 0 40px; border-top: 0; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.site-footer .wordmark { font-size: 34px; }
.site-footer .tagline { color: var(--ink2); margin: 10px 0 20px; max-width: 30ch; }
.site-footer h2 { font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink2); margin: 10px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li { margin: 0; }
.site-footer ul a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .site-footer ul a:hover { text-decoration: underline; text-decoration-color: var(--line); }
}
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--ink2); font-size: 13.5px; }
.footer-base p { margin: 0; }
.footer-base a { color: inherit; }

/* ---------- Animated icons (adapted from 21st.dev Animated State Icons) ---------- */
.a-icon { width: 28px; height: 28px; overflow: visible; }
.bento .a-icon { width: 32px; height: 32px; }
.a-bell-body { transform-origin: 20px 6px; }
.a-bell-dot { fill: var(--danger); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.is-in .a-bell-body { animation: bell-ring 700ms ease-in-out 200ms both; }
.is-in .a-bell-dot { animation: dot-pop 420ms cubic-bezier(0.32, 0.72, 0, 1) 820ms both; }
@keyframes bell-ring { 0% { transform: rotate(0); } 20% { transform: rotate(10deg); } 40% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes dot-pop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.a-check-ring { stroke-dasharray: 94.3; stroke-dashoffset: 0; transform-origin: 20px 20px; }
.a-check-tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js [data-icons]:not(.is-in) .a-check-tick { stroke-dashoffset: 1; }
.js [data-icons]:not(.is-in) .a-check-ring { stroke-dashoffset: 66; }
.is-in .a-check-ring { animation: ring-close 700ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both; }
.is-in .a-check-tick { animation: tick-draw 400ms cubic-bezier(0.22, 1, 0.36, 1) 760ms both; }
@keyframes ring-close { from { stroke-dashoffset: 66; transform: rotate(-120deg); } to { stroke-dashoffset: 0; transform: rotate(0); } }
@keyframes tick-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.a-lock-shackle { transform-box: view-box; }
.is-in .a-lock-shackle { animation: shackle-lift 520ms cubic-bezier(0.32, 0.72, 0, 1) 300ms both; }
@keyframes shackle-lift { to { transform: translateY(-3.5px); } }
.a-eye-pupil { transform-box: fill-box; transform-origin: center; }
.a-eye-slash { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .a-eye-slash { animation: tick-draw 380ms cubic-bezier(0.22, 1, 0.36, 1) 500ms both; }
.is-in .a-eye-pupil { animation: pupil-dim 380ms ease 500ms both; }
@keyframes pupil-dim { to { transform: scale(0.6); opacity: 0.35; } }

/* ---------- Motion ---------- */
@keyframes rise-in {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .phone-back { animation: rise-in 900ms var(--ease-out) 140ms both; }
  .hero-stage .phone-front { animation: rise-in 900ms var(--ease-out) 240ms both; }
}

@media (prefers-reduced-motion: reduce) {
  .answer-tab, .qa summary .icon, .qa details::details-content, .answer-stage .phone img,
  .answer-indicator, .bento-cell, .media-toggle, .t-icon-swap .t-icon, .t-learn-chevron, .t-learn-arm,
  .js .reveal-word, .js .t-stagger-line { transition: none !important; }
  .js .reveal-word, .js .t-stagger-line { opacity: 1 !important; transform: none !important; filter: none !important; }
  .is-in .a-bell-body, .is-in .a-bell-dot, .is-in .a-check-ring, .is-in .a-check-tick, .is-in .a-lock-shackle, .is-in .a-eye-slash, .is-in .a-eye-pupil {
    animation-duration: 1ms !important; animation-delay: 0ms !important;
  }
  .beam.is-live .beam-pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-stage .phone-back { --w: 230px; }
  .hero-stage .phone-front { --w: 256px; }
  .hero-stage { min-height: 540px; }
  .stack-panel .phone { --w: 280px; }
  .answers, .pantry { gap: 40px; }
  .band-stage .phone { --w: 300px; }
  .close-copy { padding-left: 48px; }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 0; gap: 12px; }
  .hero-stage { min-height: 0; height: 400px; margin-top: 16px; }
  .hero-stage .phone-back { --w: 200px; left: calc(50% - 190px); top: 24px; }
  .hero-stage .phone-front { --w: 222px; left: calc(50% - 30px); top: 80px; }

  .stack { gap: 20px; }
  .stack-item { position: static; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; padding: 10px; transform: none !important; }
  .stack-text { padding: 24px 18px 8px; gap: 16px; }
  .stack-panel { height: 420px; padding-top: 36px; }
  .stack-panel .phone { --w: 250px; }

  .answers { grid-template-columns: 1fr; }
  .answer-stage { height: 440px; padding-top: 36px; }
  .answer-stage .phone { --w: 260px; }
  .answer-tab { padding: 16px; grid-template-columns: 32px 1fr; column-gap: 12px; }
  .answer-tab .icon { width: 26px; height: 26px; margin-top: 2px; }
  .answer-note { margin-left: 16px; }

  .pantry { grid-template-columns: 1fr; }
  .pantry-stage { height: 520px; order: 2; }
  .pantry-stage .phone-a { --w: 220px; left: 6%; top: 40px; }
  .pantry-stage .phone-b { --w: 196px; right: 5%; top: 150px; }

  .band { padding-top: 80px; }
  .band-grid { grid-template-columns: 1fr; gap: 0; }
  .band-copy { padding-bottom: 56px; }
  .facts { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .band-stage .phone { --w: 280px; margin-bottom: -150px; }

  .media-toggle { right: 8px; top: 8px; width: 40px; height: 40px; }
  .beam { grid-template-columns: 1fr; gap: 44px; padding: 0; }
  .beam-hub { justify-self: center; width: min(100%, 320px); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "ads" "acct" "gps" "photo" "data"; }
  .bento-data { grid-template-columns: 1fr; gap: 16px; }
  .bento-data .bento-copy { padding-bottom: 0; }
  .bento-photo .bento-shot { max-height: 420px; object-fit: cover; object-position: top; }
  .bento-ads { min-height: 220px; }
  .answer-foot { margin-left: 16px; }

  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { position: static; }

  .close { grid-template-columns: 1fr; min-height: 0; }
  .close-photo { height: 320px; }
  .close-copy { padding: 56px var(--gutter) 64px; }

  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .section-head { margin-bottom: 40px; }
  .hero-stage { height: 360px; }
  .hero-stage .phone-back { --w: 180px; left: calc(50% - 172px); }
  .hero-stage .phone-front { --w: 200px; left: calc(50% - 22px); top: 72px; }
  .badges { gap: 8px; }
  .store-badge { min-height: 52px; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px; }
  .store-badge .icon { width: 24px; height: 24px; }
  .store-badge small { font-size: 11px; }
  .store-badge strong { font-size: 16px; }
  .beam-node .freq { font-size: 19px; }
  .pantry-stage { height: 460px; }
  .pantry-stage .phone-a { --w: 190px; left: 4%; }
  .pantry-stage .phone-b { --w: 172px; right: 3%; top: 130px; }
}
