/* faq page only. Shared components live in styles.css (see src/SYSTEM.md). Never redefine shared classes here.
   One centered column, read top to bottom.
     .fq-seg         the Guests / Hosts / Rules segmented pill. It sticks under the nav; js/faq.js marks the group you are in.
     .fq-group       a group: .fq-group-head (H2 at .h3 size + a link), then .fq-list
     .fq-item        an answer row on hairlines: <details class="fq-item"><summary><span class="fq-q">Q</span><span class="fq-ic"></span></summary><div class="fq-a"><div class="fq-a-in"><p>A</p></div></div></details>
                     js/faq.js animates the open and close; without JS it is a plain <details>
     .fq-rules-list  the rules, always open
     .fq-split       the two closing cards; the one you point at grows */

/* ---------- head ---------- */
.fq-head { padding-bottom: 36px; text-align: center; }
.fq-head .display { max-width: none; }
.fq-head .lede { margin-left: auto; margin-right: auto; max-width: 30em; }

/* ---------- the segmented pill ---------- */
.fq-seg {
  position: sticky; top: calc(var(--nav-h) + 12px); z-index: 30;
  width: fit-content; margin: 0 auto; display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill);
  background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)), rgba(12,11,14,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 12px 32px -12px rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.fq-seg a {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--tx2);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.fq-seg a:hover { color: var(--tx); background: rgba(255,255,255,.08); }
.fq-seg a[aria-current="true"] { background: var(--tx); color: #0b0a0b; }

/* ---------- the column ---------- */
.fq-body { padding-bottom: 24px; }
.fq-body > .wrap { max-width: calc(760px + var(--gut) * 2); }
.fq-group { padding-top: 72px; }
.fq-group:first-child { padding-top: 48px; }
/* html already keeps var(--nav-h) + 16px clear; this adds the pill, so a deep link lands just below it */
.fq-item { scroll-margin-top: 60px; }
/* a group's own top padding already clears the pill */
.fq-group { scroll-margin-top: 8px; }
.fq-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.fq-group-head .link-arrow { flex: none; font-size: 15px; color: var(--tx2); }
.fq-group-head .link-arrow:hover { color: var(--tx); }

/* ---------- answer rows: hairlines, no boxes ---------- */
.fq-list { border-bottom: 1px solid var(--hair2); }
.fq-item { border-top: 1px solid var(--hair2); border-radius: 0; background: none; box-shadow: none; }
.fq-item summary {
  display: flex; align-items: center; gap: 24px; padding: 24px 0;
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
  font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.022em;
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline-offset: 4px; border-radius: 6px; }
.fq-q { flex: 1; min-width: 0; text-wrap: balance; }
/* a plain plus from two bars; open, the vertical bar folds away and it reads as a minus */
.fq-ic { position: relative; width: 18px; height: 18px; flex: none; color: var(--tx2); transition: color .2s var(--ease); }
.fq-ic::before, .fq-ic::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform .45s var(--expo); }
.fq-ic::after { transform: rotate(90deg); }
.fq-item summary:hover .fq-ic { color: var(--tx); }
.fq-item[open]:not(.closing) .fq-ic::after { transform: rotate(90deg) scaleX(0); }
.fq-a { overflow: hidden; }
.fq-a-in { padding: 0 56px 26px 0; font-size: 17px; line-height: 1.6; color: var(--tx2); }
.fq-a p { text-wrap: pretty; }
.fq-a a { color: var(--tx); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(244,241,234,.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s var(--ease); white-space: nowrap; }
.fq-a a:hover { text-decoration-color: var(--tx); }
/* a question opened from a link gets a brief gold wash */
.fq-item.flash { animation: fq-flash 2s var(--ease); }
@keyframes fq-flash { 0%, 45% { background: rgba(217,186,124,.08); } }

/* ---------- rules: always open ---------- */
.fq-rules-head { display: block; }
.fq-group-lede { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--tx2); }
.fq-rules-list { border-bottom: 1px solid var(--hair2); }
.fq-rules-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--hair2); }
.fq-rule-ic { width: 22px; height: 22px; margin-top: 1px; color: var(--gold); }
.fq-rules-list h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.022em; }
.fq-rules-list p { margin-top: 6px; font-size: 17px; line-height: 1.6; color: var(--tx2); text-wrap: pretty; }

/* ---------- closing split ---------- */
.fq-next { padding-top: 120px; }
.fq-split { display: flex; gap: 16px; height: 540px; }
.fq-card {
  position: relative; isolation: isolate; overflow: hidden; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-tile); padding: 44px; box-shadow: var(--sh-card);
  transition: flex-grow .7s var(--expo);
}
.fq-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,6,8,.18) 0%, rgba(7,6,8,.3) 40%, rgba(7,6,8,.9) 100%); }
.fq-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); pointer-events: none; }
.fq-card-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: transform 1.2s var(--expo); }
/* the bottom of the photo: the hand and phone sit above the headline, the dark crowd under the copy */
.fq-card-guest .fq-card-bg { filter: brightness(.7); object-position: 50% 100%; }
.fq-card-host .fq-card-bg { object-position: 50% 60%; }
.fq-card-in { width: min(100%, 420px); }
.fq-card h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.fq-card p { margin-top: 14px; font-size: 17px; line-height: 1.5; color: rgba(244,241,234,.78); text-wrap: pretty; }
.fq-card-cta { margin-top: 28px; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
@media (hover: hover) and (min-width: 901px) {
  .fq-card:hover { flex-grow: 1.35; }
  .fq-card:hover .fq-card-bg { transform: scale(1.03); }
}

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .fq-card { padding: 36px; }
}

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .fq-head { padding-bottom: 28px; }
  .fq-group { padding-top: 56px; }
  .fq-group:first-child { padding-top: 36px; }
  .fq-next { padding-top: 80px; }
  .fq-split { flex-direction: column; height: auto; gap: 12px; }
  .fq-card { flex: none; min-height: 460px; padding: 28px 24px 26px; border-radius: var(--r-panel); background: #0b0a0c; }
  /* the photo fills the top, the copy sits on dark below it */
  .fq-card-bg { height: 72%; }
  .fq-card::before { background: linear-gradient(180deg, rgba(11,10,12,0) 0%, rgba(11,10,12,.2) 34%, rgba(11,10,12,.92) 64%, #0b0a0c 74%); }
}
@media (max-width: 600px) {
  /* full-width bar under the nav: questions scroll under a solid band, not around a floating pill */
  .fq-seg { top: var(--nav-h); width: auto; justify-content: center; gap: 4px; padding: 10px var(--gut); border-radius: 0;
    background: rgba(9,8,10,.92); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  .fq-seg a { padding: 0 18px; height: 36px; }
  .fq-item summary { gap: 16px; padding: 20px 0; font-size: 17px; }
  .fq-a-in { padding: 0 0 22px; font-size: 17px; }
  .fq-rules-list li { padding: 20px 0; gap: 14px; }
  .fq-rules-list h3 { font-size: 17px; }
  .fq-card-in { width: 100%; }
  .fq-card-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .fq-card-cta .btn { width: 100%; }
  .fq-card-cta .link-arrow { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .fq-card, .fq-card-bg, .fq-ic, .fq-ic::before, .fq-ic::after { transition: none; }
}
