/* FAQ: plan.md "FAQ". A still photo of an owner at ease (a bike shop's, before opening) with the headline, the search
   and the five topics on a cream card over its open left part; every question by topic, each topic's name at the left; the wide close (components.css).
   Tokens only. */

/* ---------- hero: the photo in a wide frame, the card over its left part, clear of her face ---------- */
.faq-hero { position: relative; padding-block: clamp(1.25rem, 2.5vw, 2.25rem) clamp(2.5rem, 5vw, 4rem); }
.faq-hero__stage { position: relative; display: grid; align-items: center; min-height: clamp(560px, 46vw, 660px); }
.faq-hero__frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
.faq-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
/* one still grade: a little deeper at the left, under the card */
.faq-hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night) 24%, transparent) 0%, transparent 55%); }
.faq-hero__card { position: relative; z-index: 2; width: min(520px, 46%); margin-left: clamp(1.25rem, 3.5vw, 3rem); padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-card); box-shadow: var(--shadow-l); }
.faq-hero__title { margin: 0; font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: var(--c-ink); text-wrap: balance; }
.faq-hero__lead { margin: .9rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--c-ink-soft); }
/* the search: one wide field, the lens in the brand */
.faq-search { position: relative; margin-top: 1.5rem; }
.faq-search__lens { position: absolute; left: 1.05rem; top: 50%; width: 20px; height: 20px; translate: 0 -50%; fill: none; stroke: var(--c-brand); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.faq-search__input { width: 100%; min-height: 56px; padding: 0 1.1rem 0 2.95rem; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-paper); font: 500 1.0625rem/1.2 var(--font-ui); color: var(--c-ink); }
.faq-search__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-search__input:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-color: var(--c-brand); }
/* the five topics: chips that jump to their group, each with the site's ring */
.faq-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.faq-topic { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .95rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); font: 650 .9375rem/1.1 var(--font-ui); color: var(--c-ink); text-decoration: none; }
.faq-topic::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-brand); }
.faq-topic:hover { border-color: var(--c-brand); color: var(--c-brand-text); }
.faq-topic:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

/* ---------- faq: every question by topic, the topic's name at the left, kept in sight while its answers pass ---------- */
.faq-all { padding-block: clamp(.5rem, 2vw, 1.5rem) var(--section-y); }
.faq-all__count { min-height: 1.5em; margin: 0 0 .75rem; font-weight: 650; color: var(--c-brand-text); }
.faq-all__none { margin: 0 0 2rem; font-size: 1.125rem; color: var(--c-ink-soft); }
.faq-all__none a { font-weight: 700; color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-brand); text-underline-offset: .18em; }
.faq-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 1px solid var(--c-line); }
.faq-group[hidden] { display: none; }
.faq-group__title { position: sticky; top: 100px; align-self: start; margin: 0; padding-top: 1.1rem; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.015em; color: var(--c-ink); text-wrap: balance; scroll-margin-top: 110px; }
.faq-group__list .qa:first-child { border-top: 0; }

/* ---------- close: the wide close over a reply being written; the main button and a way to write to us ---------- */
.faq-close .close__bg { object-position: 50% 25%; }
.faq-close__go { display: grid; justify-items: center; gap: .9rem; }
.faq-close__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.faq-close__write { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.5rem; border: 1.5px solid color-mix(in srgb, var(--c-on-ink) 55%, transparent); border-radius: 999px; font: 700 1rem/1 var(--font-ui); color: var(--c-on-ink); text-decoration: none; }
.faq-close__write:hover { border-color: var(--c-accent); color: var(--c-accent); }
.faq-close__write:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.faq-close__note { justify-content: center; color: var(--c-on-night-soft); }
.faq-close__note span::before { background: var(--c-accent); }

/* ---------- below 800 px: the photo on top, the card over its lower edge; the topics above their answers ---------- */
@media (max-width: 799.98px) {
  .faq-hero__stage { display: block; min-height: 0; }
  .faq-hero__frame { position: relative; aspect-ratio: 4 / 3; }
  .faq-hero__img { object-position: 76% 30%; }
  .faq-hero__card { width: auto; margin: -3.5rem .75rem 0; padding: 1.5rem 1.25rem; }
  .faq-topic { min-height: 38px; padding: 0 .8rem; font-size: .875rem; }
  .faq-group { grid-template-columns: 1fr; gap: .25rem; }
  .faq-group__title { position: static; padding-top: 0; }
}
