/* Landing page (22 Oct, local): the white hero with the sphere, the launch section's mint field, the FAQ dialog and the
   page's breakpoints. The journey (css/journey.css) and the launch card with the helper (css/assistant.css) carry their
   own rules. Flat grounds separated by tone, no shadows or rules on things at rest. */

/* ---------- hero: flat obsidian ground, the claim left, the sphere right ---------- */
.hero {
  --hero-ink: var(--text); --hero-dim: var(--text);
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  margin-top: -64px; padding: calc(64px + var(--s5)) 0 var(--s4); min-height: 0;
  color: var(--hero-ink); background: #d6e9e4;
}
/* width 100%: as a grid item with auto margins the wrap would shrink to its content and the sphere column would collapse */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--s6); align-items: center; width: 100%; }
.hero-copy { max-width: 600px; }
.hero h1 { color: var(--hero-ink); font-size: clamp(2.1rem, 3.5vw, 3.25rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 var(--s5); text-wrap: initial; }
/* the headline in the palette's teal to pink (Nabira, 22 Oct); the pink end is deepened so the display text keeps 3:1 on white */
.hero h1, .journey-belt h2, .launch-head h2, dialog.faq .faq-head h2 { background: linear-gradient(100deg, #029386 0%, #1fb2a2 40%, #c99aae 66%, #e2718c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; } /* taste-skill-ignore: the pinned teal to pink on every heading (Nabira, 22 Oct) */
.hero .lead { font-size: 1.0625rem; line-height: 1.55; color: var(--hero-ink); max-width: 50ch; margin: 0 0 var(--s5); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.link-plain { color: var(--text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--g-teal); text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .link-plain:hover { text-decoration-color: var(--g-pink); } }
/* the animation lives on the hero's own ground: no box, the canvas is transparent (js/sphere.js) */
/* the box is 1.4 times taller than wide, so the sphere (bigger since 22 Oct, js/hero.js sets the zoom) has headroom for its drop */
.hero-visual { position: relative; justify-self: end; width: min(100%, 620px); aspect-ratio: 1 / 1.2; margin-top: -10%; margin-bottom: -8%; }
/* the lower fifth of the box is empty (the sphere sits above its centre line), so it folds under the next section */
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
/* a real frame of the animation (img/sphere-poster.jpg), shown only where WebGL 2 is missing (js/hero.js marks the host) */
.hero-poster { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual.no-webgl .hero-poster { display: block; }
/* no entrance on the container: the sphere's own drop (after the intro has left) is the entrance */

/* ---------- mission: the journey section, css/journey.css ---------- */

/* ---------- the first step: the launch section (css/assistant.css owns the card and the helper) on a mint field ---------- */
section.launch { margin-top: 0; padding: 28px 0 72px; background: linear-gradient(180deg, #d6e9e4 0%, #d6e9e4 66%, #f2dde0 100%); } /* taste-skill-ignore: the green ground blending into the footer's pink, Nabira's ask */
.round { width: 46px; height: 46px; padding: 0 !important; border-radius: 50%; }
.round svg { width: 18px; height: 18px; }

/* ---------- FAQ: a button in the bottom right corner, a dialog of filled tiles ---------- */
.faq-fab { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60; padding: 12px 20px 12px 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 28px -8px rgba(0, 0, 0, .45); } /* taste-skill-ignore: a floating button */
.faq-fab svg { width: 18px; height: 18px; }
/* a popover in the bottom right corner above the FAQ button (Nabira, 22 Oct): the page stays usable behind it */
dialog.faq { position: fixed; inset: auto 22px calc(84px + env(safe-area-inset-bottom, 0px)) auto; z-index: 70; margin: 0; width: min(420px, calc(100vw - 32px)); max-height: min(68vh, 620px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35); overflow: hidden; transform-origin: 100% 100%; } /* taste-skill-ignore: a popover above the page */
dialog.faq[open] { display: flex; flex-direction: column; animation: faq-pop 240ms var(--ease-out); }
@keyframes faq-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 16px 14px 6px 20px; }
.faq-head h2 { font-size: 1.25rem; margin: 0; }
/* the list: hairline rows with an index number, no filled boxes (31 Oct 2026, Nabira: "instead of these solid colour rectangles") */
.faq-list { counter-reset: q; display: grid; padding: 4px 10px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
details.qa { counter-increment: q; border-top: 1px solid var(--line); }
details.qa:first-child { border-top-color: transparent; }
details.qa summary { list-style: none; display: grid; grid-template-columns: 26px 1fr 28px; align-items: center; column-gap: 12px; min-height: 58px; padding: 10px 10px; border-radius: 14px; cursor: pointer; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--text); transition: background-color 160ms ease; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: counter(q, decimal-leading-zero); font-size: .78rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--text-dim); transition: color 160ms ease; }
details.qa summary::after { content: ""; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong);
  background: linear-gradient(var(--text), var(--text)) center / 11px 1.75px no-repeat, linear-gradient(var(--text), var(--text)) center / 1.75px 11px no-repeat;
  transition: transform 260ms var(--ease-out), box-shadow 160ms ease; } /* taste-skill-ignore: two flat bars drawing a plus sign, not a gradient */
details.qa summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
details.qa[open] summary::before { color: var(--accent); }
details.qa[open] summary::after { transform: rotate(45deg); box-shadow: none;
  background: linear-gradient(#fff, #fff) center / 11px 1.75px no-repeat, linear-gradient(#fff, #fff) center / 1.75px 11px no-repeat, var(--grad); } /* taste-skill-ignore: the brand pill gradient, the one accent of an open row */
details.qa p { margin: 0; padding: 0 48px 16px 48px; color: var(--text-dim); font-size: .9375rem; line-height: 1.55; max-width: 60ch; }
details.qa[open] p { animation: qa-in 200ms var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }
details.qa p code { color: var(--text); font-size: .875em; }
@media (hover: hover) and (pointer: fine) {
  details.qa summary:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
  details.qa summary:hover::after { box-shadow: inset 0 0 0 1px var(--text-dim); }
  details.qa[open] summary:hover::after { box-shadow: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  dialog.faq[open] { animation: none; }
  details.qa[open] p { animation: none; }
  details.qa summary::after { transition: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .hero-visual { justify-self: center; width: min(100%, 460px); }
  section.launch { padding: 56px 0 64px; }
}

/* ---------- phones: horizontal panels instead of one long page ---------- */
@media (max-width: 760px) {
  .pane { position: relative; }
  .hero { margin-top: 0; padding: var(--s6) 0 var(--s6); }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero .lead { font-size: 1rem; }
  .hero-visual { width: min(100%, 340px); }
  section.launch { margin-top: 0; padding: 40px 0 36px; }
  dialog.faq { inset: auto 12px calc(136px + env(safe-area-inset-bottom, 0px)) 12px; width: auto; max-height: 56vh; }
  details.qa summary { min-height: 54px; padding: 10px 8px; column-gap: 10px; }
  details.qa p { padding: 0 8px 16px 44px; }
}
