/* ============================================================================
   Home, Objections (Doubts) — ported from site.jsx <Objections>. 2-col grid
   (.lw-doubts -> 1-col at <=980 via base.css): intro + a single-open accordion.
   Open row: red help icon + rotated (×) toggle + the receipts answer + a
   red-bordered italic reframe. No-JS shows all answers (progressive enhancement).
   ============================================================================ */

.lwd { background: transparent; }
.lw-doubts { width: 100%; max-width: var(--container-xl); margin: 0 auto; padding: clamp(56px, 8vh, 80px) clamp(20px, 5vw, 32px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }

/* ---- Intro column ---- */
.lwd-title { font-family: var(--font-serif-display); font-weight: 600; font-size: clamp(34px, 3.8vw, 52px); color: var(--text-strong); line-height: 1.16; margin: 16px 0 14px; }
.lwd-lead { color: var(--text-body); font-size: var(--text-base); line-height: 1.65; max-width: 380px; margin: 0; }
.lwd-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; margin-top: 16px; }
.lwd-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lwd-link svg { width: 15px; height: 15px; flex: none; }

/* ---- Accordion ---- */
.lwd-item { border-bottom: 1px solid var(--border-hairline); }
.lwd-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; cursor: pointer; padding: 22px 2px; text-align: left; }
.lwd-q-main { display: flex; align-items: baseline; gap: 18px; flex: 1; min-width: 0; }
.lwd-q-icon { flex: none; line-height: 0; transform: translateY(3px); }
.lwd-q-icon svg { width: 19px; height: 19px; stroke: var(--text-muted); fill: none; }
.lwd-item.lwd-open .lwd-q-icon svg { stroke: var(--leadr-red); }
.lwd-q-text { flex: 1; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: var(--text-xl); color: var(--text-strong); line-height: 1.3; }
.lwd-toggle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--red-200); display: flex; align-items: center; justify-content: center; flex: none; background: transparent; transition: transform var(--dur-base) var(--ease-soft), background var(--dur-fast); }
.lwd-toggle svg { width: 13px; height: 13px; }
.lwd-item.lwd-open .lwd-toggle { transform: rotate(45deg); background: var(--red-100); }

.lwd-a { margin: 0 0 28px; padding: 0 2px 0 39px; max-width: 620px; }
.leadr-js .lwd-item:not(.lwd-open) .lwd-a { display: none; }
.lwd-receipts { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.lwd-receipts-label { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leadr-red); white-space: nowrap; flex: none; }
.lwd-receipts-rule { flex: 1; height: 1px; background: var(--border-hairline); }
.lwd-answer { margin: 0; font-size: var(--text-md); color: var(--text-body); line-height: 1.72; }
.lwd-reframe { margin: 18px 0 0; padding-left: 18px; border-left: 2px solid var(--leadr-red); font-family: var(--font-serif); font-style: italic; font-size: var(--text-md); color: var(--red-dark); line-height: 1.5; }

/* ---- Accordion ease (docs/motion-kit.md, same gate as .lw-acc in base.css) ----
   The answer panel eases open and shut (height, bottom margin, fade) instead of
   snapping. Chrome/Edge only; Safari and Firefox snap as before. No-JS is
   untouched (all answers show). Reduced motion = instant.
   A closed panel is visibility: hidden at 0 height (not display: none), so no
   @starting-style is needed: that rule also fires on first render and would
   grow the open item on page load (layout shift). visibility: hidden keeps the
   closed answer out of tab order, find-in-page and screen readers, as before. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .leadr-js .lwd-a {
    interpolate-size: allow-keywords;
    overflow: clip;
    transition:
      block-size var(--dur-slow) var(--ease-out),
      margin-bottom var(--dur-slow) var(--ease-out),
      opacity var(--dur-slow) var(--ease-out),
      visibility var(--dur-slow);
  }
  .leadr-js .lwd-item:not(.lwd-open) .lwd-a { display: block; block-size: 0; margin-bottom: 0; opacity: 0; visibility: hidden; }
  .leadr-js .lwd-list.lwd-init .lwd-a { transition: none; } /* module.js: phone load-time close snaps */
  @media (prefers-reduced-motion: reduce) {
    .leadr-js .lwd-a { transition: none; }
  }
}

/* ---- Mobile: compact rows so the accordion scans as a tight list ----
   Closed rows shrink (smaller serif question, tighter padding + icons); the
   open answer indents/spaces tighter too. JS (module.js) starts every row
   closed on phones, so the section reads short. */
@media (max-width: 640px) {
  .lwd-q { padding: 13px 2px; gap: 12px; }
  .lwd-q-main { gap: 12px; }
  .lwd-q-icon { transform: translateY(2px); }
  .lwd-q-icon svg { width: 16px; height: 16px; }
  .lwd-q-text { font-size: 20px; line-height: 1.25; }
  .lwd-toggle { width: 26px; height: 26px; }
  .lwd-toggle svg { width: 12px; height: 12px; }

  .lwd-a { margin-bottom: 20px; padding-left: 28px; }
  .lwd-receipts { margin-bottom: 10px; }
  .lwd-reframe { margin-top: 14px; padding-left: 14px; }
}
