/* faq.css: the questions page (src\pages\faq.mjs; plan.md, "FAQ (Part 2)"). Tokens only. */

/* ---------- hero: the owner at his laptop, still, full-bleed; a white card over the left third ---------- */
.faq-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 640px; display: grid; align-items: center; padding-block: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); background: var(--c-paper-alt); }
.faq-hero__bg { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 62% 40%; z-index: -1; }
.faq-hero__card { width: min(100%, 480px); display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.faq-hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.04em; text-wrap: balance; }
.faq-hero__line { font-size: var(--fs-lede); line-height: 1.45; color: var(--c-ink-soft); }
.faq-search { position: relative; margin-top: .25rem; }
.faq-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-ink-soft); pointer-events: none; }
.faq-search__input { width: 100%; min-height: 54px; padding: .8rem 1rem .8rem 3rem; border: 1.5px solid var(--c-line); border-radius: 999px; font: 500 var(--fs-body)/1.3 var(--font-ui); color: var(--c-ink); background: var(--c-paper); }
.faq-search__input::placeholder { color: var(--c-ink-soft); }
.faq-search__input:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-color: var(--c-ink); }
.faq-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.faq-topics__chip { display: inline-flex; align-items: center; min-height: 40px; padding: .5rem .95rem; border-radius: 999px; font: 650 var(--fs-small)/1.2 var(--font-display); color: var(--c-ink); text-decoration: none; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); }
.faq-topics__chip:hover { background: var(--c-ink); color: var(--c-on-ink); box-shadow: none; }
.faq-hero__go { display: grid; justify-items: start; gap: .1rem; margin-top: .4rem; }
.faq-hero__go .assure { margin-top: .6rem; }

/* ---------- the questions, by topic ---------- */
.faq-all__in { display: grid; gap: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); }
.faq-topic { display: grid; gap: 1.25rem; }
.faq-topic > .faq-list { width: 100%; } /* a grid item with auto side margins would shrink to its longest question */
.faq-topic__title { max-width: 880px; width: 100%; margin-inline: auto; font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: 110px; }
.faq-none { max-width: 880px; width: 100%; margin-inline: auto; font-size: var(--fs-lede); color: var(--c-ink-soft); }
.faq-none a { color: var(--c-ink); border-bottom: 2px solid var(--c-brand); text-decoration: none; }

/* ---------- close: a person picking up, framed, on the navy band ---------- */
.faq-close__in { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 901px) { .faq-close__in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.faq-close__tile { height: 440px; }
.faq-close__tile > video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 50% 45%; }
.faq-close__stop { top: 14px; right: 14px; }
.faq-close__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.035em; text-wrap: balance; }
.faq-close__line { margin: 1.1rem 0 1.75rem; font-size: var(--fs-lede); line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 82%, var(--c-ink)); }
.faq-close__line a { color: var(--c-on-ink); font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--c-accent); }
.faq-close__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* ---------- the phone: the photo on top, the card under it over the desk ---------- */
@media (max-width: 760px) {
  .faq-hero { display: block; min-height: 0; padding-top: 0; }
  .faq-hero__bg { position: relative; inset: auto; display: block; width: 100%; height: 300px; object-position: 58% 35%; }
  .faq-hero__in { margin-top: -48px; }
  .faq-hero__card { width: 100%; }
  .faq-close__tile { height: 320px; }
}
