/* NextSay site design system — mirrors the homepage tokens exactly.
   Loaded by marketing pages AFTER site-header.css. See WEB_DESIGN_SYSTEM.md. */

:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --panel: #ffffff;
  --panel-soft: #f8faff;
  --hair: #dde6ff;
  --hair-2: #c4d1ff;
  --text: #0f172a;
  --muted: #5b6a84;
  --dim: #566179;
  --accent: #4b5df6;
  --accent-2: #3b49d8;
  --violet: #7c5cff;
  --cyan: #09b8d8;
  --live: #10b981;
  --live-ink: #0c6b43;
  --amber: #f59e0b;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(35, 53, 94, 0.06);
  --shadow-l: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 64px rgba(23, 50, 168, 0.12);
  --r-s: 10px; --r-m: 16px; --r-l: 22px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --display: "New York", ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
::selection { background: rgba(75, 93, 246, 0.16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html { scroll-behavior: smooth; background: var(--bg) !important; }
body {
  margin: 0; font-family: var(--font) !important; background: var(--bg) !important;
  color: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* canvas atmosphere — identical to the homepage */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 480px at 74% -10%, rgba(75, 93, 246, 0.07), transparent 62%),
    radial-gradient(700px 380px at 4% 2%, rgba(9, 184, 216, 0.05), transparent 60%);
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-28px, 18px, 0); } }
main, footer, header { position: relative; z-index: 1; }

/* layout primitives */
.wrap, main.wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px 0; }
h1, h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.2vw, 47px); }
h2 { font-size: clamp(24px, 2.9vw, 32px); }
.label, .eyebrow {
  font-size: 11px; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 0;
}
.label::before, .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); opacity: 0.7; }
.lede { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 52ch; margin: 16px 0 0; }
.hero-actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* buttons — one look site-wide */
.btn, .primary-cta, .secondary-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-s); font-weight: 650; font-size: 15px;
  text-decoration: none; letter-spacing: -0.01em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn-primary, .primary-cta {
  background: linear-gradient(135deg, #4b5df6, #7c5cff);
  color: #fff !important; border: 0;
  box-shadow: 0 1px 2px rgba(75, 93, 246, 0.3), 0 8px 24px rgba(75, 93, 246, 0.28);
}
.btn-primary:hover, .primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(75, 93, 246, 0.3), 0 12px 32px rgba(75, 93, 246, 0.38);
}
.btn-ghost, .secondary-cta {
  color: var(--accent-2) !important; border: 1px solid var(--hair-2); background: var(--panel);
}
.btn-ghost:hover, .secondary-cta:hover { border-color: var(--accent); transform: translateY(-1px); }

/* section rhythm — ONE owner, so component margins can never stack on it */
main.wide > section { padding: 96px 0 0; margin: 0; }
main.wide > section:first-child { padding-top: 64px; }
main.wide > section > *:first-child { margin-top: 0; }
main.wide > section > *:last-child { margin-bottom: 0; }
main.wide > section.cta { padding: 96px 24px 56px; }
.hero-panel { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.hero-panel > h1, .hero-panel > h2 { max-width: 20ch; }
.hero-panel > h2 { max-width: 24ch; }

/* cards — ink-first, single accent family */
.practical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0 0; }
.practical-card, .step-card, .check-card {
  position: relative; border: 1px solid var(--hair); border-radius: var(--r-m);
  background: var(--panel); box-shadow: var(--shadow-s); padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.practical-card:hover, .step-card:hover, .check-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04), 0 16px 48px rgba(75, 93, 246, 0.12);
}
.practical-card::before, .step-card::before, .check-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px;
}
.practical-card h2, .practical-card h3, .step-card h3, .check-card h3 {
  margin: 0 0 6px; font-family: var(--font); font-size: 15px; font-weight: 650;
  letter-spacing: -0.01em; line-height: 1.3; border: 0; padding: 0;
}
.practical-card p, .step-card p, .check-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: 0.05em;
  text-transform: uppercase; color: #4a5670; background: #eceff8;
  border-radius: 999px; padding: 4px 8px; margin-bottom: 12px; border: 0;
}
.step-number {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  margin-bottom: 12px; border-radius: var(--r-s); background: #eef1ff;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.setup-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; max-width: 560px; }
.setup-pill {
  border: 1px solid var(--hair); border-radius: 999px; background: var(--panel);
  color: var(--text); font-weight: 650; padding: 9px 14px; text-align: center; font-size: 13.5px;
}
.seq-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.seq-strip span {
  font-size: 12px; color: var(--muted); border: 1px solid var(--hair);
  background: var(--panel-soft); border-radius: 999px; padding: 7px 14px;
}
.seq-strip strong { color: var(--text); font-weight: 650; margin-right: 4px; }
.note-band {
  margin-top: 32px; border: 1px dashed var(--hair-2); border-radius: var(--r-m);
  padding: 16px 24px; background: var(--panel-soft); color: var(--muted);
  font-size: 13.5px; line-height: 1.55;
}

/* closing cta band — mirrors the homepage final */
.cta {
  margin: 0; padding: 96px 24px 56px; text-align: center;
  background:
    radial-gradient(720px 320px at 50% 0%, rgba(75, 93, 246, 0.08), transparent 70%),
    linear-gradient(180deg, #f8faff, #f3f6ff);
  border-top: 1px solid var(--hair); border-bottom: 0; border-left: 0; border-right: 0;
  border-radius: 0; box-shadow: none;
}
.cta strong {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.015em; line-height: 1.1;
  text-wrap: balance;
}
.cta p { color: var(--muted); margin: 14px auto 0; max-width: 56ch; font-size: 14.5px; }
.cta .primary-cta, .cta .secondary-cta { margin-top: 12px; }

/* footer — same look as the homepage */
footer {
  max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--dim); font-size: 13.5px;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 16px; order: 2; }
.site-footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.site-footer-links a:hover { color: var(--accent-2); }
.site-footer-copy { order: 1; }

/* scroll reveal contract (script: /scroll-reveal.js) */
.reveal-ready .reveal-on-scroll {
  opacity: 0; transform: translateY(16px);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0ms),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-ready .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
@media (max-width: 900px) {
  .practical-grid, .setup-strip, .step-list, .check-grid { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  main.wide > section { padding-top: 64px; }
  main.wide > section.cta, .cta { padding: 64px 24px 48px; }
}
