/* ============================================================================
   marketing.css — public-site-only styles. Not loaded by the app.
   ========================================================================== */

/* --- Scroll reveal (CSS-only fallback if IO never fires: content is visible
       by default once JS is absent, because we opt in with the attribute) --- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --- Hero card ------------------------------------------------------------ */
.hero__card { box-shadow: var(--shadow-lg); }

/* --- Numbered flow -------------------------------------------------------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); counter-reset: flow; }
.flow__step { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-5); margin: 0; }
.flow__num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: grid; place-items: center; font-family: var(--brand-font-heading); font-weight: 660; font-size: var(--fs-base); }
.flow__step h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.flow__step p { margin: 0; color: var(--text-muted); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow__step:first-child { grid-column: 1 / -1; }
}

/* --- ROI output ----------------------------------------------------------- */
.roi-out { display: grid; gap: var(--space-3); margin: 0; }
.roi-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.roi-out dt { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.roi-out dd { margin: 0; font-family: var(--brand-font-heading); font-weight: 660; font-size: var(--fs-lg); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.roi-out .roi-net { color: var(--risk-strong); font-size: var(--fs-xl); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: var(--space-3); }
.faq__item { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 600;
  color: var(--text-strong); font-family: var(--brand-font-heading); font-size: var(--fs-md);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: var(--fs-xl); color: var(--text-faint); font-weight: 400; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:hover { background: var(--surface-hover); }
.faq__body { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); }
.faq__body p { margin: 0; }

/* --- Pricing -------------------------------------------------------------- */
.price-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0,1fr)); align-items: stretch; }
.price-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1050px) { .price-grid, .price-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .price-grid, .price-grid--3 { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; }
.price--featured { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft), var(--shadow-md); position: relative; }
.price__flag { position: absolute; top: -11px; left: var(--space-5); background: var(--brand-primary); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }
.price__name { font-family: var(--brand-font-heading); font-weight: 660; font-size: var(--fs-lg); color: var(--text-strong); margin-bottom: var(--space-2); }
.price__amount { font-family: var(--brand-font-heading); font-size: var(--fs-3xl); font-weight: 680; color: var(--text-strong); line-height: 1; letter-spacing: -.03em; }
.price__period { font-size: var(--fs-sm); color: var(--text-muted); }
.price__meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); min-height: 2.6em; }
.price__list { list-style: none; padding: 0; margin: var(--space-5) 0; font-size: var(--fs-sm); flex: 1; }
.price__list li { padding-left: 20px; position: relative; margin-bottom: var(--space-3); color: var(--text-default); }
.price__list li::before { content: '✓'; position: absolute; left: 0; color: var(--risk-strong); font-weight: 700; }
.price__list li.is-off { color: var(--text-faint); }
.price__list li.is-off::before { content: '—'; color: var(--text-faint); }

/* --- Comparison / spec tables --------------------------------------------- */
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-base); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.spec th, .spec td { padding: var(--space-4); text-align: left; border-bottom: 1px solid var(--border-faint); }
.spec thead th { background: var(--surface-sunken); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.spec tbody tr:last-child td { border-bottom: 0; }

/* --- Studio wizard -------------------------------------------------------- */
.wizard { max-width: 720px; margin-inline: auto; }
.wizard__rail { display: flex; gap: 6px; margin-bottom: var(--space-6); }
.wizard__tick { flex: 1; height: 3px; border-radius: var(--radius-pill); background: var(--border-default); transition: background var(--dur-base) var(--ease); }
.wizard__tick--done { background: var(--brand-primary); }
.wizard__tick--now { background: var(--brand-accent); }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; animation: stepIn var(--dur-base) var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard__q { font-family: var(--brand-font-heading); font-size: var(--fs-2xl); font-weight: 640; color: var(--text-strong); letter-spacing: -.02em; margin-bottom: var(--space-2); }
.wizard__hint { color: var(--text-muted); margin-bottom: var(--space-5); }
.wizard__nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border-faint); }

.swatch-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: var(--text-strong); box-shadow: 0 0 0 2px #fff inset; }

/* --- Generating animation ------------------------------------------------- */
.gen-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.gen-list li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-base); color: var(--text-faint); transition: color var(--dur-base) var(--ease); }
.gen-list li.is-active { color: var(--text-strong); font-weight: 560; }
.gen-list li.is-done { color: var(--text-muted); }
.gen-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; flex: none; display: grid; place-items: center; font-size: 10px; }
.gen-list li.is-done .gen-dot { background: var(--risk-strong); border-color: var(--risk-strong); color: #fff; }
.gen-list li.is-active .gen-dot { border-color: var(--brand-primary); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Article / solution pages --------------------------------------------- */
.article { max-width: 72ch; }
.article h2 { margin-top: var(--space-7); }
.article h3 { margin-top: var(--space-6); font-size: var(--fs-lg); }
.article ul, .article ol { margin-bottom: var(--space-4); }
.article li { color: var(--text-default); }
.article blockquote {
  margin: var(--space-5) 0; padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--brand-accent); background: var(--surface-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--fs-md);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article blockquote cite { display: block; margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--text-muted); font-style: normal; }

.breadcrumb { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-2); color: var(--text-faint); }

.toc { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-5); }
.toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-top: 0; margin-bottom: var(--space-3); }
.toc ol { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
