/* FAQ (plan.md): every doubt answered straight. The hero centered on the drafting grid (the headline, the search of
   the questions, the topics as chips) over a wide framed photo of an owner reading on her porch; the questions by
   topic, each topic's name beside its questions; the close offset left over an owner laughing on a call. Tokens only. */

/* ---------- hero ---------- */
.fqh { position: relative; isolation: isolate; padding: clamp(3rem, 2.2rem + 3vw, 5rem) 0 0; text-align: center; }
.fqh__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; background-position: center -1px; -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 16%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 75% 80% at 50% 16%, #000 30%, transparent 85%); }
.fqh__in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; } /* member fix, 13 Nov: one column the width of the page, so the search box's larger type never widens it on the phone */
.fqh__title { font-size: var(--fs-display); }
.fqh__line { max-width: 34em; margin: 16px 0 28px; font-size: 1.125rem; line-height: 1.55; color: var(--c-ink-soft); }
/* the search of the questions */
.fqs { position: relative; display: flex; align-items: center; width: min(640px, 100%); height: 58px; padding: 0 6px 0 48px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-paper); box-shadow: var(--shadow-m); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.fqs:focus-within { border-color: var(--c-brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 22%, transparent), var(--shadow-m); }
.fqs__icon { position: absolute; left: 17px; top: 50%; width: 19px; height: 19px; color: var(--c-ink-soft); transform: translateY(-50%); }
.fqs__input { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 0; border: 0; background: none; font: 400 1.0625rem/1.2 var(--font-ui); color: var(--c-ink); outline: none; }
.fqs__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.fqs__go { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--c-ink); color: #FFFFFF; font: 500 0.9375rem/1 var(--font-ui); cursor: pointer; }
.fqs__go:hover { background: #1E2430; }
.fqs__go:focus-visible { outline: 2px solid var(--c-brand-text); outline-offset: 2px; }
.fqs__status { min-height: 1.4em; margin: 10px 0 0; font: 400 0.9375rem/1.4 var(--font-ui); color: var(--c-ink-soft); }
.fqh__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; }
.fqh__chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); font: 500 0.9375rem/1 var(--font-ui); color: var(--c-ink); text-decoration: none; transition: border-color var(--dur-fast); }
.fqh__chip:hover { border-color: var(--c-ink); }
.fqh__chip:focus-visible { outline: 2px solid var(--c-brand-text); outline-offset: 2px; }
/* the wide framed photo under them */
.fqh__media { margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.fqh__frame { position: relative; height: clamp(320px, 30vw, 420px); margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-l); }
.fqh__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; }

/* ---------- the questions by topic ---------- */
.fqa { padding-top: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); background: var(--c-paper); }
.fqa__topic { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(20px, 4vw, 64px); padding: clamp(24px, 2.4vw, 36px) 0; border-top: 1px solid var(--c-line); scroll-margin-top: 90px; }
.fqa__topic:first-of-type { padding-top: 0; border-top: 0; }
.fqa__topic[hidden], .fqa__none[hidden] { display: none; }
.fqa__name { position: sticky; top: 96px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; }
.fqa__none { padding: 28px; border: 1px dashed #C3C9D2; border-radius: var(--radius-l); background: var(--c-paper-alt); text-align: center; color: var(--c-ink-soft); scroll-margin-top: 90px; }
.fqa__none p { margin: 0; }
.fqa__none b { font-weight: 600; color: var(--c-ink); }
.fqa__none-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 10px !important; }

/* ---------- close: the words on the left, the owner on her call to the right ---------- */
.fqx { display: grid; align-items: center; min-height: clamp(520px, 44vw, 640px); text-align: start; }
.fqx .close__video { object-position: 50% 40%; transform: scale(1.25); transform-origin: 0% 45%; }
.fqx .close__media::after { background: linear-gradient(90deg, rgba(11, 13, 18, 0.92) 0%, rgba(11, 13, 18, 0.76) 38%, rgba(11, 13, 18, 0.24) 66%, rgba(11, 13, 18, 0.06) 100%); }
.fqx .close__in { width: 100%; justify-items: start; }
.fqx .close__in h2 { max-width: 560px; }
.fqx .close__line { max-width: 460px; }
.fqx__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fqx__contact { font: 500 1rem/1.2 var(--font-ui); color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 4px; }
.fqx__contact:hover { text-decoration-color: #FFFFFF; }
.fqx__contact:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 4px; }
.fqx .ease { justify-content: flex-start; }

@media (max-width: 860px) {
  .fqa__topic { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fqa__name { position: static; }
}
@media (max-width: 760px) {
  .fqh__line { margin: 14px 0 22px; font-size: 1.0625rem; }
  .fqs { height: 54px; padding-left: 44px; }
  .fqs__icon { left: 15px; }
  .fqs__go { height: 40px; padding: 0 14px; }
  .fqh__frame { height: 320px; }
  .fqh__frame img { object-position: 76% 35%; }
  .fqx { align-items: end; min-height: 640px; }
  .fqx .close__video { object-position: 54% 30%; transform: none; }
  .fqx .close__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, 0.1) 0%, rgba(11, 13, 18, 0.5) 40%, rgba(11, 13, 18, 0.92) 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .fqs, .fqh__chip { transition: none; }
}
