/* /faq/: on top of site.css, landing.css and info.css. It lives in assets/faq/ so it stays closed until the launch
   (campaign/phases.mjs, LAUNCH_ONLY). A lower warm panel with the search, then the topics on the left and the
   questions on the right as calm rows (no cards), and a warm panel to reach us. */

/* ── hero ── */
.fq-hero { padding: 8px max(12px, env(safe-area-inset-left, 0px)) 0; }
.fq-panel { position: relative; overflow: hidden; max-width: 1680px; margin: 0 auto; border-radius: 44px;
  background:
    radial-gradient(55% 80% at 85% 100%, color-mix(in srgb, var(--butter) 50%, transparent) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #FFFFFF 0%, transparent 60%),
    linear-gradient(160deg, #FFF0E8 0%, var(--peach) 100%); }
.fq-hero-grid { max-width: 1240px; margin: 0 auto; padding-inline: clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(24px, 5vw, 72px); align-items: center; }
.fq-hero-copy { display: grid; gap: 20px; justify-items: start; padding-block: 64px 68px; }
.fq-hero h1 { font-size: clamp(46px, 6vw, 84px); letter-spacing: -0.045em; line-height: .95; }
.fq-hero .lead { max-width: 32em; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.fq-art { width: clamp(200px, 22vw, 320px); height: auto; }
.fq-search { position: relative; width: min(100%, 560px); margin-top: 4px; }
.fq-search[hidden] { display: none; }
.fq-search svg { position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.fq-search input { width: 100%; height: 60px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; padding: 0 22px 0 54px; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }
.fq-search input::placeholder { color: var(--muted); }
.fq-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent), var(--shadow); }

/* ── topics left, questions right ── */
.fq-layout { max-width: 1240px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-left, 0px)) 24px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.fq-side { position: sticky; top: 100px; }
.fq-topics { display: grid; gap: 4px; }
.fq-topics a { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px 9px 9px; border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; transition: background .2s, opacity .2s; }
.fq-topics a:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.fq-topics a.is-on { background: var(--surface); box-shadow: var(--shadow); }
.fq-topics a.is-empty { opacity: .4; }
.fq-topics .help-dot { width: 34px; height: 34px; }
.fq-topics .help-dot svg { width: 17px; height: 17px; }
.fq-topics small { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 22px; text-align: right; }
.fq-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; min-width: 0; }
.fq-none { color: var(--muted); font-size: 18px; }
.fq-none a { color: var(--ink); font-weight: 700; }
.fq-main .faq-group { gap: 8px; padding-block: 0; }
.fq-main .faq-group[hidden] { display: none; }
.fq-main .faq-group h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 8px; scroll-margin-top: 100px; }

/* the questions as calm rows with a line between them; an open one gets a soft background */
.fq-main .faq { gap: 0; }
.fq-main .faq details { background: none; box-shadow: none; border-radius: 0; padding: 0 18px; border-top: 1px solid var(--line); scroll-margin-top: 100px; transition: background .2s; }
.fq-main .faq details:last-child { border-bottom: 1px solid var(--line); }
.fq-main .faq details[hidden] { display: none; }
.fq-main .faq details[open] { background: var(--surface); border-radius: 22px; border-color: transparent; box-shadow: var(--shadow); }
.fq-main .faq details[open] + details { border-top-color: transparent; }
.fq-main .faq summary { padding: 20px 0; font-size: 17.5px; }
.fq-main .faq summary:hover { color: color-mix(in srgb, var(--ink) 75%, transparent); }
.fq-main .faq summary::after { width: 32px; height: 32px; font-size: 20px; background: var(--surface-2); }
.fq-main .faq details[open] summary::after { background: var(--ink); color: var(--on-ink); }
.fq-main .faq details p { font-size: 16.5px; max-width: 40em; }

/* ── still a question ── */
.fq-help { padding: 56px max(12px, env(safe-area-inset-left, 0px)) 8px; }
.fq-help-panel { max-width: 1240px; margin: 0 auto; border-radius: 44px; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px clamp(20px, 4vw, 48px); align-items: center;
  background: radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--butter) 55%, transparent), transparent 70%), linear-gradient(160deg, #FFF0E8, var(--peach)); }
.fq-help-art { width: clamp(72px, 8vw, 110px); height: auto; }
.fq-help-copy { display: grid; gap: 8px; }
.fq-help h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.fq-help p { color: var(--muted); }
.fq-help p a { color: var(--ink); font-weight: 700; }
.fq-help-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-color-scheme: dark) {
  .fq-panel { background:
    radial-gradient(55% 80% at 85% 100%, rgba(255,224,138,.14) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #3B2147 0%, transparent 60%),
    linear-gradient(160deg, #2A1A31 0%, #24142B 100%); }
  .fq-help-panel { background: radial-gradient(60% 120% at 100% 100%, rgba(255,224,138,.12), transparent 70%), linear-gradient(160deg, #3B2147, #2A1A31); }
}

/* ── smaller screens: the topics become a row of chips you can swipe ── */
@media (max-width: 900px) {
  .fq-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 28px; }
  .fq-side { position: sticky; top: 76px; z-index: 5; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding: 8px max(20px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .fq-topics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .fq-topics::-webkit-scrollbar { display: none; }
  .fq-topics a { flex: none; grid-template-columns: 26px auto auto; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; scroll-snap-align: start; }
  .fq-topics a.is-on { box-shadow: 0 0 0 2px var(--ink); }
  .fq-topics .help-dot { width: 26px; height: 26px; }
  .fq-topics .help-dot svg { width: 14px; height: 14px; }
  .fq-topics small { min-width: 0; }
  .fq-main .faq-group h2, .fq-main .faq details { scroll-margin-top: 150px; }
  .fq-help-panel { grid-template-columns: auto minmax(0, 1fr); }
  .fq-help-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fq-hero { padding-top: 4px; }
  .fq-panel { border-radius: 32px; }
  .fq-hero-grid { grid-template-columns: 1fr; }
  .fq-hero-copy { gap: 16px; padding: 36px 4px 8px; }
  .fq-art { width: 150px; justify-self: end; margin: -8px 0 16px; }
  .fq-search input { height: 54px; font-size: 16px; }
  .fq-main { gap: 40px; }
  .fq-main .faq details { padding: 0 14px; }
  .fq-main .faq summary { font-size: 16.5px; padding: 17px 0; }
  .fq-help-panel { border-radius: 32px; grid-template-columns: 1fr; padding: 28px 22px; }
  .fq-help-art { width: 64px; }
}
