/* FormAI marketing site — shared styles
   Design tokens locked to the app's design system:
   near-black canvas, cream text, Electric Lime functional accent. */

:root {
  --bg: #08090A;
  --bg-raised: #101112;
  --text: #F5F3EE;
  --text-muted: rgba(245, 243, 238, 0.64);
  --text-faint: rgba(245, 243, 238, 0.38);
  --lime: #CBFB45;
  --lime-ink: #0A1400;
  --blue: #5AA9E6;
  --amber: #F5B23D;
  --red: #FF2E2E;
  --rule: rgba(245, 243, 238, 0.10);
  --max: 1120px;
  --max-narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Clash Display', 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }
.wordmark {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.wordmark em { color: var(--lime); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.plain { color: var(--text-muted); font-size: 14px; }
.nav-links a.plain:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #dbff6f; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--text-muted); text-decoration: none; }

/* Hero */
.hero {
  padding: 96px 0 64px;
  position: relative;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lime);
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  max-width: 14ch;
  animation: rise 0.7s ease-out both;
}
.hero .tagline {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 46ch;
  animation: rise 0.7s ease-out 0.08s both;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.7s ease-out 0.16s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stat strip */
.stats {
  margin-top: 64px;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  flex: 1;
  padding: 22px 20px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: 'Clash Display', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--lime);
}
.stat .label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Data ticker — signature element evoking the app's biometric readouts */
.ticker-wrap {
  margin-top: 40px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 7px 14px;
  white-space: nowrap;
}
.chip strong { color: var(--lime); font-weight: 500; }
.chip.warn strong { color: var(--amber); }
.chip.calm strong { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .hero h1, .hero .tagline, .hero-actions { animation: none; }
}

/* Sections */
section.block { padding: 88px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 56ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s ease;
}
.card:hover { background: var(--bg-raised); }
.card .tag {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top: none; }
.step-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--lime-ink);
  background: var(--lime);
  border-radius: 6px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; margin: 0; max-width: 52ch; }

/* CTA band */
.cta-band {
  background: var(--bg-raised);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 32px); }
.cta-band p { color: var(--text-muted); margin-top: 12px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--lime); }
footer .copy { font-size: 13px; color: var(--text-faint); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 33%; border-bottom: 1px solid var(--rule); }
  .nav-links a.plain { display: none; }
}

@media (max-width: 520px) {
  .hero { padding: 64px 0 40px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .cta-band { padding: 40px 24px; margin: 0 16px; }
}

/* --- Legal page specific --- */
.legal-main { max-width: var(--max-narrow); margin: 0 auto; padding: 56px 24px 100px; }
.legal-main .meta { font-size: 14px; color: var(--text-faint); font-style: italic; margin: 8px 0 0; }
.legal-main .intro { font-size: 16px; color: var(--text-muted); max-width: 56ch; margin-top: 20px; }
.legal-main .divider {
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent 40%);
  margin: 40px 0 0;
  opacity: 0.6;
}
.legal-main section { padding-top: 44px; border-top: 1px solid var(--rule); margin-top: 44px; }
.legal-main section:first-of-type { border-top: none; margin-top: 48px; padding-top: 0; }
.legal-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.legal-section-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--lime-ink); background: var(--lime);
  border-radius: 4px; padding: 3px 7px; flex-shrink: 0;
}
.legal-main h2 { font-size: 20px; }
.legal-main section p, .legal-main section li { font-size: 15.5px; color: var(--text-muted); }
.legal-main section p { margin: 0 0 14px; }
.legal-main section p:last-child { margin-bottom: 0; }
.legal-main ul { margin: 0 0 14px; padding-left: 20px; }
.legal-main li { margin-bottom: 10px; }
.legal-main li:last-child { margin-bottom: 0; }
.legal-main li strong { color: var(--text); font-weight: 500; }
.callout {
  background: rgba(203, 251, 69, 0.06);
  border: 1px solid rgba(203, 251, 69, 0.25);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}
.callout strong { color: var(--lime); font-weight: 500; }
