/* faq.css: the FAQ: a good real photo with a clear structure, then the answers on type. */

/* ---------- #hero ---------- */
.faq-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(470px, 58svh, 570px); background: var(--c-night); color: var(--c-on-night); }
.faq-hero__media { position: absolute; inset: 0; margin: 0; }
.faq-hero__media img { position: absolute; left: 0; top: 0; width: 132%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 22%; }
.faq-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--c-shade) / 0.94) 0%, rgb(var(--c-shade) / 0.84) 36%, rgb(var(--c-shade) / 0) 58%); }
.faq-hero__in { position: relative; display: grid; justify-items: start; gap: 22px; padding-block: 44px; }
.faq-hero__title { max-width: 560px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(2.15rem, 1.25rem + 2.3vw, 3.3rem); line-height: 1.05; letter-spacing: -0.024em; text-wrap: balance; color: var(--c-paper); }
.faq-hero__title .em { color: var(--c-accent); }
.faq-search { position: relative; width: min(520px, 100%); color: var(--c-ink-soft); }
.faq-search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; pointer-events: none; }
.faq-search input { width: 100%; height: 58px; padding: 0 18px 0 50px; border: 0; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font: 500 1.0625rem/1.2 var(--font-ui); box-shadow: var(--shadow-l); }
.faq-search input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.faq-topics a { display: inline-block; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--c-paper) 34%, transparent); border-radius: 999px; font: 600 0.9375rem/1.2 var(--font-ui); color: var(--c-on-night); text-decoration: none; }
.faq-topics a:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- #faq: the answers, by topic ---------- */
.faq-all__in { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 1120px; }
.faq-topic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); scroll-margin-top: 100px; }
.faq-topic[hidden] { display: none; }
.faq-topic__name { position: sticky; top: 104px; align-self: start; font: 800 clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem)/1.15 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.015em; color: var(--c-brand-text); }
.faq-topic details[hidden] { display: none; }
.qa__a a, .faq-none a { color: var(--c-brand-text); font-weight: 700; }
.faq-none { font-size: 1.125rem; text-align: center; }

/* ---------- #close ---------- */
.faq-close { padding-bottom: clamp(56px, 6vw, 88px); }
.faq-wide { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.faq-close__frame { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(440px, 38vw, 540px); border-radius: var(--radius-l); background: var(--c-night-2); color: var(--c-on-night); }
.faq-close__clip { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.faq-close__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(var(--c-shade) / 0.92) 0%, rgb(var(--c-shade) / 0.8) 34%, rgb(var(--c-shade) / 0) 54%); }
.faq-close__copy { padding: clamp(28px, 4vw, 56px); max-width: 620px; }
.faq-close__line { margin-top: 14px; font-size: 1.125rem; line-height: 1.55; color: var(--c-on-night-soft); }
.faq-close__line a { color: var(--c-on-night); font-weight: 700; }
.faq-close__copy .cta-row { margin-top: 22px; }
.faq-close__copy .cta-row__note { color: var(--c-on-night-soft); }
.faq-close__copy .cta-row__note span::before { background: var(--c-accent); }
.faq-close__stop { position: absolute; top: 14px; right: 14px; }

/* ---------- the phone ---------- */
@media (max-width: 899px) {
  .faq-hero { display: block; min-height: 0; }
  .faq-hero__media { position: relative; inset: auto; height: 280px; }
  .faq-hero__media img { width: 100%; object-position: 50% 22%; }
  .faq-hero__shade { display: none; }
  .faq-hero__in { padding-block: 26px 34px; }
  .faq-topic { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .faq-topic__name { position: static; }
  .faq-close__frame { display: block; padding-top: 300px; background: var(--c-night); }
  .faq-close__clip { inset: -1px -1px auto -1px; width: calc(100% + 2px); height: 320px; object-position: 66% 30%; }
  .faq-close__shade { background: linear-gradient(180deg, rgb(var(--c-shade) / 0) 0, rgb(var(--c-shade) / 0) 240px, var(--c-night) 320px); }
  .faq-close__copy { padding: 0 20px 26px; }
}
