/* Questions (2026-11-16; simplified 2026-11-19 at Jeet's ask: "the glassy look... add a background and just make it
   simple and aesthetic", and only the questions that are needed). Our own Solenne render at dusk (its wine sky is the
   page's wine) lies behind the section, held still while the words scroll over it, dimmed so every word reads; the
   prices sit on three quiet dark panels, the three questions are a plain list split by hairlines. No WebGL, no glass.
   Layout, in one word: ledger. */

.faq {
  --faq-in: 200px;                            /* the fade from the page colour into dark wine, and out again */
  --soft: #C3D0DC;                            /* sky-tinted grey, a step lighter than work's: the band of light lifts the ground */
  --air: #D6E5F0;                             /* secondary words on the glass */
  position: relative;
  overflow: clip;
  padding: calc(var(--faq-in) - 48px) var(--pad) calc(var(--faq-in) + 8px);
  color: var(--cold);
  background: linear-gradient(in oklab to bottom, var(--cold) 0, var(--ink) var(--faq-in), var(--ink) calc(100% - var(--faq-in)), var(--cold) 100%);
  interpolate-size: allow-keywords;           /* lets an answer open from 0 to its height */
}
.faq :focus-visible { outline-color: var(--sky); }   /* the wine ring disappears on a dark ground */

/* the photo: as tall as the section between its two fades, the picture itself held at screen height (sticky) */
.faq-bg {
  position: absolute; left: 0; right: 0; top: calc(var(--faq-in) * 0.35); bottom: calc(var(--faq-in) * 0.35);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 calc(var(--faq-in) * 0.7), #000 calc(100% - var(--faq-in) * 0.7), transparent);
  mask-image: linear-gradient(transparent, #000 calc(var(--faq-in) * 0.7), #000 calc(100% - var(--faq-in) * 0.7), transparent);
}
.faq-bg-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.faq-bg-in img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.faq-bg-in::after {                           /* dimmed toward dark wine, darkest where the words are */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(42, 14, 22, 0.58), rgba(42, 14, 22, 0.74) 55%, rgba(42, 14, 22, 0.86));
}
.faq-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

/* ---------- the giant heading, half behind the price cards ---------- */
.faq-title {
  margin: 0; text-align: center;
  font: 500 clamp(40px, min(5vw, 9.4svh), 84px)/0.98 var(--sans);   /* the close's heading size */
  letter-spacing: -0.035em; color: var(--cold); text-wrap: balance;
}

/* ---------- the prices: three quiet panels ---------- */
.faq-prices {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 352px)); justify-content: center;
  gap: clamp(16px, 1.6vw, 24px);
  margin: clamp(40px, 4vw, 64px) 0 0;
}
.faq-card {                                   /* a plan: its name, price and what it includes */
  display: flex; flex-direction: column; gap: var(--s2);
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: 24px;
  background: rgba(30, 9, 15, 0.66); border: 1px solid rgba(214, 229, 240, 0.14);
}
.faq-card dt { font: 500 var(--t-body)/1.3 var(--sans); color: var(--cold); }
.faq-card dd { margin: 0; }
.faq-price {
  font: 500 clamp(36px, 3.6vw, 56px)/1 var(--sans);
  letter-spacing: -0.035em; color: var(--cold);
  white-space: nowrap;
}
.faq-price span {                             /* "from" reads with the number, a step quieter */
  font-size: var(--t-body); font-weight: 400; letter-spacing: 0; color: var(--air);
  margin-right: 0.3em;
}
.faq-gets {
  margin-top: var(--s4) !important; padding-top: var(--s4);
  border-top: 1px solid rgba(214, 229, 240, 0.16);
}
.faq-gets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.faq-gets li {
  position: relative; padding-left: 24px;
  font-size: var(--t-ui); line-height: 1.4; color: var(--air);
}
.faq-gets li::before {                        /* a small tick, drawn: no icon font, no emoji */
  content: ""; position: absolute; left: 3px; top: 0.36em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--sky); border-bottom: 1.5px solid var(--sky);
  transform: rotate(-45deg);
}

/* ---------- the questions: a plain list split by hairlines, one open at a time ---------- */
.faq-list { max-width: 820px; margin: clamp(56px, 6vw, 96px) auto 0; border-top: 1px solid rgba(214, 229, 240, 0.2); }
.faq-row { border-bottom: 1px solid rgba(214, 229, 240, 0.2); }
.faq-row summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 76px; padding: 12px 0;
  font: 500 var(--t-lead)/1.3 var(--sans); letter-spacing: -0.01em; color: var(--cold);
  -webkit-tap-highlight-color: transparent;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-x {                                      /* plus, turning into a cross when open; the square stays put */
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(214, 229, 240, 0.28);
  transition: background-color 150ms ease;
}
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px;
  border-radius: 1px; background: var(--cold);
  transition: transform 300ms var(--ease-out);
}
.faq-x::after { transform: rotate(90deg); }
.faq-row[open] .faq-x::before { transform: rotate(45deg); }
.faq-row[open] .faq-x::after { transform: rotate(135deg); }
@media (hover: hover) and (pointer: fine) { .faq-row summary:hover .faq-x { background: rgba(214, 229, 240, 0.1); } }
.faq-row summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.faq-row p {
  max-width: 44em; padding: 0 0 var(--s5);
  font-size: var(--t-body); line-height: 1.55; color: var(--soft);
  text-wrap: pretty;
}
/* the answer opens to its height and closes again (browsers without ::details-content simply open) */
.faq-row::details-content {
  block-size: 0; overflow-y: clip;
  transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete;
}
.faq-row[open]::details-content { block-size: auto; }

/* ---------- tablet and phone ---------- */
@media (max-width: 899px) {
  .faq { --faq-in: 150px; }
  .faq-title { font-size: clamp(30px, 9.4vw, 52px); line-height: 1.02; }
}
@media (max-width: 720px) {
  .faq { padding-bottom: calc(var(--faq-in) + 72px); }   /* clear of the phone's action bar */
  .faq-prices { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: var(--s6); }   /* one plan under another */
  .faq-card { border-radius: 20px; padding: 18px 20px 20px; }
  .faq-price { font-size: clamp(32px, 9.4vw, 40px); }
  .faq-list { margin-top: var(--s8); }
  .faq-row summary { min-height: 64px; padding: 8px 0; font-size: var(--t-body); }
}

/* ---------- reduced motion: answers open without moving ---------- */
@media (prefers-reduced-motion: reduce) {
  .faq-x, .faq-x::before, .faq-x::after { transition: none; }
  .faq-row::details-content { transition: none; }
}
