/* ==========================================================================
   Optimon — FAQ section (soft cards)
   --------------------------------------------------------------------------
   Homepage FAQ accordion. One-open-at-a-time, soft-card layout.
   Depends on brand tokens in colors_and_type.css.
   ========================================================================== */

.faq {
  padding: var(--section-pad, 96px) 0;
  background: var(--bg);
}
.faq-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter, 32px);
}

/* -----  Heading  ---------------------------------------------------------- */
.faq-head { text-align: center; margin-bottom: 56px; }
.faq-eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.faq-title {
  font-family: var(--font-display);
  font-size: var(--section-h, clamp(34px, 4.4vw, 64px));
  font-weight: var(--headline-w, 700);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.faq-title em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding: 0 0.08em;
}
.faq-sub {
  font-size: var(--deck-s, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 18px auto 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* -----  Accordion item  --------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card, 18px);
  padding: 4px 26px;
  transition: background var(--tx, 200ms) ease, border-color var(--tx, 200ms) ease;
}

.faq-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.faq-q {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: inherit;
}

/* plus / minus icon */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--tx, 200ms) cubic-bezier(.4,0,.2,1), opacity var(--tx, 200ms) ease;
}
.faq-icon::before { width: 16px; height: 2.4px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2.4px; height: 16px; transform: translate(-50%, -50%); }
.faq-item[data-open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* expand / collapse via grid-template-rows (no JS height measurement) */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(.4,0,.2,1);
}
.faq-item[data-open] .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-a {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
  margin: 0;
}
.faq-a strong { color: var(--ink); font-weight: 600; }

/* open state: one fixed neutral surface (no color cycling) */
.faq-item[data-open] {
  background: var(--bg);
  border-color: var(--ink);
}
.faq-item[data-open] .faq-icon::before,
.faq-item[data-open] .faq-icon::after { background: var(--ink); }
.faq-item[data-open] .faq-panel-inner { padding-bottom: 24px; }

/* -----  Responsive  ------------------------------------------------------- */
@media (max-width: 560px) {
  .faq-q { font-size: 17px; }
  .faq-item { padding: 4px 20px; }
}
