/* Marketing sections shared by the home and service landing pages: section rhythm, FAQ, closing CTA, approval seal. */

/* Sections */
.section { padding-block: clamp(48px, 5.5vw, 80px); scroll-margin-top: var(--header-h); }
.section + .section { padding-top: 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 20px 48px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-heading > p { justify-self: end; max-width: 40ch; color: var(--muted); font-size: 1.0625rem; }
.section-pill .num { color: var(--ink); font-variant-numeric: tabular-nums; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 72px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro > p:not(.section-pill) { margin: 16px 0 20px; color: var(--muted); font-size: 1.0625rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 700 1.125rem/1.35 var(--font-display); letter-spacing: -.02em; transition: color .15s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--violet-text); }
.faq-sign { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); transition: background-color .2s, border-color .2s; }
.faq-sign::before, .faq-sign::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.faq-sign::after { transform: rotate(90deg); }
.faq-list details[open] .faq-sign { border-color: var(--violet); background: var(--violet); }
.faq-list details[open] .faq-sign::before, .faq-list details[open] .faq-sign::after { background: #fff; }
.faq-list details[open] .faq-sign::after { transform: rotate(0deg); }
.faq-list details p { max-width: 62ch; padding: 0 56px 24px 0; color: var(--ink-2); line-height: 1.7; }
@supports selector(::details-content) {
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* Closing CTA */
.closing-wrap { padding-bottom: clamp(64px, 8vw, 112px); }
.closing-cta {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #7A6FFF 0%, transparent 55%), linear-gradient(135deg, #5B4FE9 0%, #4033CC 55%, #2A1F92 100%);
  box-shadow: 0 32px 64px -32px rgba(70, 55, 210, .65), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.closing-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%); mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
}
.closing-cta .eyebrow { color: var(--lime); }
.closing-cta h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.875rem); }
.closing-copy > p:not(.eyebrow) { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 1.0625rem; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-on-dark { --btn-bg: rgba(255, 255, 255, .1); --btn-ink: #fff; --btn-line: rgba(255, 255, 255, .24); --btn-hover: rgba(255, 255, 255, .18); box-shadow: none; }
.closing-mark { width: clamp(140px, 18vw, 240px); height: auto; color: rgba(255, 255, 255, .92); overflow: visible; }
.closing-mark path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.closing-mark-arrow { stroke: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .closing-mark path { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

/* Approval seal */
.seal { width: 100%; height: 100%; overflow: visible; }
.seal-disc { fill: var(--lime); }
.seal text { font: 800 14px/1 var(--font-display); fill: var(--lime-ink); letter-spacing: .02em; }
.seal-ring { transform-box: view-box; transform-origin: 50% 50%; animation: seal-spin 28s linear infinite; }
.seal-orbit { fill: none; stroke: var(--lime-ink); stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 2 5; }
.seal-core { fill: var(--lime-ink); }
.seal-check { fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .section-heading, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .section-heading > p { justify-self: start; }
  .faq-intro { position: static; }
  .closing-cta { grid-template-columns: minmax(0, 1fr); }
  .closing-mark { position: absolute; right: -16px; bottom: -24px; z-index: -1; width: 200px; opacity: .25; }
}
@media (max-width: 560px) {
  .faq-list summary { padding: 18px 0; font-size: 1.0625rem; }
  .faq-list details p { padding-right: 0; }
}
