/* faq.css: the FAQ (plan.md, "FAQ"). Every color, size and corner from the tokens of system.css. */

/* ---------- hero: a tall framed photo at the left, the words, the search and the topics at the right ---------- */
.fqh { padding-block: clamp(2.5rem, 5vw, 4rem); }
.fqh__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.fqh__frame { position: relative; margin: 0; height: clamp(460px, 42vw, 600px); border-radius: var(--radius-l); overflow: clip; background: var(--c-ink-2); box-shadow: var(--shadow-l); }
/* the owner (her face at 53% across, 30% down) with her parcels; the clothing rail at the frame's right edge */
.fqh .fqh__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 40%; }
.fqh__title { max-width: 15ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.25rem + 2.6vw, 4rem); line-height: 1.04; color: var(--c-on-ink); }
.fqh__line { margin-top: var(--space-3); max-width: 30rem; font-size: 1.125rem; line-height: 1.6; color: var(--c-ink-soft-on-ink); }
.fqs { position: relative; max-width: 34rem; margin-top: var(--space-4); }
.fqs__icon { position: absolute; left: 18px; top: 29px; transform: translateY(-50%); color: var(--c-ink-soft-on-ink); pointer-events: none; }
.fqs__input { width: 100%; height: 58px; padding: 0 18px 0 50px; border-radius: var(--radius-m); border: 1px solid var(--c-line-ink); background: var(--c-ink-2); color: var(--c-on-ink); font: 500 1.0625rem/1 var(--font-ui); -webkit-appearance: none; appearance: none; }
.fqs__input::placeholder { color: var(--c-ink-soft-on-ink); opacity: 1; }
.fqs__input:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-color: var(--c-brand); }
.fqs__count { min-height: 1.5em; margin-top: 8px; font-size: 0.9375rem; color: var(--c-ink-soft-on-ink); }
.fqs__count a { color: var(--c-brand-on-ink); text-underline-offset: 3px; }
.fqh__topics { display: flex; flex-wrap: wrap; gap: 10px; max-width: 36rem; margin-top: var(--space-3); }
.fqh__topic { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--c-line-ink); color: var(--c-on-ink); font: 600 0.9375rem/1 var(--font-ui); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.fqh__topic:hover { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 12%, transparent); }
.fqh__topic:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
@media (max-width: 899px) {
  .fqh__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
  .fqh__frame { height: clamp(260px, 52vw, 420px); }
  .fqh .fqh__photo { object-position: 54% 30%; }
}

/* ---------- the questions, by topic: the topic's name at the left, its questions at the right ---------- */
.fq__topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--c-line); scroll-margin-top: 110px; }
.fq__topic:first-of-type { padding-top: 0; border-top: 0; }
.fq__topic[hidden] { display: none; }
.fq__name { position: sticky; top: 130px; align-self: start; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.15; }
.fq .faq__list { background: var(--c-paper); }
.fq details[hidden] { display: none; }
.fq__none { margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--c-paper-alt); font-size: 1.0625rem; }
.fq__none a { color: var(--c-brand-text); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .fq__topic { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); scroll-margin-top: 86px; }
  .fq__name { position: static; }
}

/* ---------- close: a framed photo (a phone in the evening) with two chat bubbles at the left, the words at the right ---------- */
.fqc__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.fqc__frame { position: relative; height: clamp(380px, 30vw, 440px); border-radius: var(--radius-l); overflow: clip; background: var(--c-ink-2); box-shadow: var(--shadow-l); }
/* the lit thumbs and the phone in the lower middle; the top, out of focus, cut a little */
.fqc .fqc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.fqc__chat { position: absolute; z-index: 2; left: var(--space-4); right: var(--space-4); top: var(--space-4); display: grid; gap: 10px; }
.fqc__msg { max-width: min(360px, 88%); margin: 0; padding: 12px 16px; border-radius: 16px; font: 500 1rem/1.4 var(--font-ui); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.fqc__msg--you { justify-self: end; border-bottom-right-radius: 4px; background: var(--c-violet); color: var(--c-on-ink); font-weight: 600; }
.fqc__msg--bot { justify-self: start; display: flex; align-items: flex-start; gap: 10px; border-bottom-left-radius: 4px; background: var(--c-paper); color: var(--c-ink); }
.fqc__av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-ink); overflow: hidden; }
.fqc__av img { width: 22px; height: 22px; }
.fqc__stop { position: absolute; z-index: 3; right: var(--space-3); bottom: var(--space-3); }
.fqc__sweep { display: block; width: 200px; }
.fqc__title { max-width: 14ch; margin-top: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.08; color: var(--c-on-ink); }
.fqc__line { margin-top: var(--space-3); font-size: 1.125rem; line-height: 1.6; color: var(--c-ink-soft-on-ink); }
.fqc__cta { margin-top: var(--space-4); }
.fqc__alt { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-3); color: var(--c-brand-on-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fqc__alt .btn__arrow { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .fqc__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .fqc__frame { height: clamp(360px, 70vw, 440px); }
}
@media (max-width: 699px) {
  .fqc__chat { left: var(--space-3); right: var(--space-3); top: var(--space-3); }
  .fqc__msg { font-size: 0.9375rem; }
}
