/* ============================================================
   V2 Violet Design System — 1nicorn.com
   Tokens, typography, reusable component classes.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --alt: #FAF9FB;
  --alt2: #F5F3FA;
  --ink: #0A0A14;
  --violet: #7C3AED;
  --violet-deep: #5B21B6;
  --violet-soft: #EDE9FE;
  --violet-pastel: #F5F3FF;
  --border: #E9E6F0;
  --muted: #6B7280;
  --green-dollar: #059669;
}

/* ── Reset + Base ──────────────────────────────────────────── */
[x-cloak] { display: none !important; }
html, body { overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01", "cv11";
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── Container ─────────────────────────────────────────────── */
.c { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── Header ────────────────────────────────────────────────── */
.v2-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.v2-nav {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.v2-logo {
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.025em; text-decoration: none;
  color: var(--ink); display: flex;
  align-items: center; gap: 10px;
}
.v2-logo-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(124,58,237,.3);
}
.v2-wordmark {
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.025em;
}
.v2-nav-links {
  display: flex; gap: 28px; align-items: center;
}
.v2-nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.v2-nav-links a:hover { color: var(--violet); }
.v2-nav-links a.active { color: var(--violet); }
.v2-nav-links a.btn-violet { color: #fff; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-violet {
  background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 500; font-size: 14px;
  text-decoration: none; transition: all .15s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 1px 2px rgba(0,0,0,.1);
  border: none; cursor: pointer;
}
.btn-violet:hover { background: var(--violet); }
.btn-violet.btn-lg { padding: 12px 24px; font-size: 15px; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 8px;
  font-weight: 500; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.btn-lg { padding: 12px 24px; font-size: 15px; }

/* ── Eyebrow pill ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--violet);
  background: var(--violet-soft);
  padding: 6px 14px; border-radius: 9999px;
  border: 1px solid rgba(124,58,237,.2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px;
  background: var(--violet); border-radius: 50%;
  box-shadow: 0 0 8px var(--violet);
}

/* ── Hero animation ────────────────────────────────────────── */
.hero-anim {
  position: relative;
  min-height: 430px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  max-width: 900px; margin-left: auto; margin-right: auto;
  text-align: center;
}
.hero-anim-set {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.hero-anim-set.active { opacity: 1; pointer-events: auto; }
.hero-anim-line {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.0;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hero-anim-set.active .hero-anim-line {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim-set { transition: none; }
  .hero-anim-line { transition: none; }
  .hero-anim-set:first-child { opacity: 1; pointer-events: auto; }
  .hero-anim-set:not(:first-child) { display: none; }
}

/* ── Gradient text ─────────────────────────────────────────── */
.grad {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ── Stats card ────────────────────────────────────────────── */
.stat-card {
  background: var(--alt); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px;
  transition: all .25s ease;
}
.stat-card:hover {
  background: #fff; border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(124,58,237,.08);
}
.stat-num {
  font-size: 64px; font-weight: 800;
  letter-spacing: -0.045em; line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lbl {
  font-size: 14px; color: var(--ink);
  font-weight: 500; margin-bottom: 6px; line-height: 1.45;
}
.stat-src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Proof hero (split-hero with photo) ────────────────────── */
.proof-hero { background: var(--ink); }
.proof-hero-grid {
  display: grid; grid-template-columns: 1fr 2fr;
}
.proof-hero-photo {
  position: relative; overflow: hidden;
  max-height: 380px;
  align-self: center;
}
.proof-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  display: block;
}
.proof-hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 100%);
  opacity: 0.4;
}
.proof-hero-story {
  padding: 48px 48px;
  display: flex; flex-direction: column; justify-content: flex-start;
  color: #fff;
}
.proof-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 24px;
}
.proof-hero-quote {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.025em; margin-bottom: 32px;
}
.grad-light {
  background: linear-gradient(135deg, #C4B5FD 0%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof-hero-attribution {
  padding-left: 16px; border-left: 3px solid var(--violet);
  margin-bottom: 40px;
}
.proof-hero-name {
  font-size: 18px; font-weight: 700; color: #fff;
}
.proof-hero-role {
  font-size: 14px; color: rgba(255,255,255,0.6);
}
.proof-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.proof-hero-stat {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
}
.proof-hero-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px; font-weight: 700;
  color: #C4B5FD; letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.proof-hero-stat-lbl {
  font-size: 12px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 880px) {
  .proof-hero-grid { grid-template-columns: 1fr; }
  .proof-hero-photo { min-height: 320px; }
  .proof-hero-story { padding: 48px 32px; }
  .proof-hero-quote { font-size: 24px; }
  .proof-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Proof card ────────────────────────────────────────────── */
.proof-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all .2s ease;
}
.proof-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,58,237,.06);
}
.proof-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  color: var(--violet); background: var(--violet-soft);
  padding: 5px 10px; border-radius: 6px;
  margin-bottom: 14px; letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Pricing card ──────────────────────────────────────────── */
.pcard {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  display: flex; flex-direction: column;
  position: relative; transition: all .25s ease;
}
.pcard:hover { transform: translateY(-2px); }
.pcard.popular {
  background: linear-gradient(180deg, var(--violet-pastel) 0%, #fff 80%);
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 6px rgba(124,58,237,.04), 0 24px 64px rgba(124,58,237,.16);
}
.popular-pill {
  position: absolute; top: -14px; right: 24px;
  background: var(--violet); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.pcard .ptag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.pcard .ptitle {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 4px;
}
.pcard .ptagline {
  font-size: 14px; color: var(--ink); line-height: 1.5;
  min-height: 4.5em; padding-left: 14px;
  border-left: 2px solid var(--border);
  margin: 16px 0 24px;
}
.pcard.popular .ptagline { border-left-color: var(--violet); }
.pprice-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pprice { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pper { font-size: 16px; color: var(--muted); }
.pstruct {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  min-height: 5.4em; display: flex; flex-direction: column;
  gap: 4px; margin-bottom: 28px;
}
.pcta {
  display: block;
  background: var(--ink); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 500; font-size: 14px;
  text-decoration: none; text-align: center;
  margin-top: auto; transition: all .15s ease;
  border: none; cursor: pointer;
}
.pcta:hover { background: var(--violet); }
.pcard.popular .pcta {
  background: var(--violet);
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.pcard.popular .pcta:hover { background: var(--violet-deep); }

/* ── Manifesto band ────────────────────────────────────────── */
.manifesto-band {
  padding: 96px 0; background: var(--ink); color: #fff;
  text-align: center; position: relative; overflow: hidden;
}
.manifesto-band::before {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.25) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Marquee placeholder ───────────────────────────────────── */
.marquee-disabled {
  padding: 56px 0; background: var(--alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-placeholder {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; padding: 20px;
  border: 1px dashed var(--border); border-radius: 12px;
  max-width: 600px; margin: 0 auto;
  background: rgba(255,255,255,.6);
}

/* ── Final CTA ─────────────────────────────────────────────── */
.v2-final-form {
  display: flex; gap: 8px;
  max-width: 480px; margin: 0 auto;
}
.v2-final-form input {
  flex: 1; padding: 12px 18px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
  background: var(--bg); color: var(--ink);
}
.v2-final-form input:focus { border-color: var(--violet); }
.v2-final-form input::placeholder { color: var(--muted); }

/* ── Footer ────────────────────────────────────────────────── */
.v2-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.v2-foot {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.v2-foot h6 {
  font-size: 12px; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.v2-foot ul { list-style: none; padding: 0; margin: 0; }
.v2-foot li { margin-bottom: 8px; }
.v2-foot a {
  font-size: 14px; color: var(--ink); text-decoration: none;
}
.v2-foot a:hover { color: var(--violet); }
.v2-copy {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* ── Hero section ──────────────────────────────────────────── */
.hero {
  padding: 96px 0 64px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,.08) 0%, transparent 60%);
  pointer-events: none; z-index: -1;
}
.hero h1 {
  font-size: clamp(56px, 8vw, 96px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.0;
  margin-bottom: 28px; max-width: 14ch;
  margin-left: auto; margin-right: auto;
}
.hero p {
  font-size: 19px; color: var(--muted);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.55;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; align-items: center;
}

/* ── Stats section ─────────────────────────────────────────── */
.stats { padding: 96px 0; }
.stats-head { text-align: center; margin-bottom: 64px; }
.stats-head h2 {
  font-size: clamp(36px, 5vw, 52px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px;
}
.stats-head p {
  font-size: 17px; color: var(--muted);
  max-width: 540px; margin: 0 auto;
}
.stats3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; max-width: 1080px; margin: 0 auto;
}

/* ── Proof section ─────────────────────────────────────────── */
.proof { padding: 96px 0; background: var(--alt2); }
.proof-head { text-align: center; margin-bottom: 56px; }
.proof-head h2 {
  font-size: clamp(36px, 5vw, 52px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px;
}
.proof-head p {
  font-size: 17px; color: var(--muted);
  max-width: 560px; margin: 0 auto;
}
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 1180px; margin: 0 auto;
}
.proof-card h5 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.3;
}
.proof-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Pricing section ───────────────────────────────────────── */
.pricing { padding: 96px 0; }
.pricing-head { text-align: center; margin-bottom: 56px; }
.pricing-head h2 {
  font-size: clamp(36px, 5vw, 52px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px;
}
.pricing-head p {
  font-size: 17px; color: var(--muted);
  max-width: 560px; margin: 0 auto;
}
.pgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 1180px; margin: 0 auto;
}

/* ── Final CTA section ─────────────────────────────────────── */
.final { padding: 96px 0; text-align: center; }
.final h2 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 20px; max-width: 14ch;
  margin-left: auto; margin-right: auto;
}
.final p {
  font-size: 17px; color: var(--muted);
  max-width: 480px; margin: 0 auto 28px;
}

/* ── Compare link pill ─────────────────────────────────────── */
.pcompare-link { text-align: center; margin-top: 32px; }
.pcompare-link a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 9999px;
}
.pcompare-link a:hover { border-color: var(--ink); color: var(--ink); }

/* ── Long-form reading (for guide pages) ───────────────────── */
.v2-reading {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; line-height: 1.7;
  color: var(--ink);
}
.v2-reading h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 1em;
  line-height: 1.1;
}
.v2-reading h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800;
  letter-spacing: -0.025em; margin: 2em 0 0.5em;
  line-height: 1.15;
}
.v2-reading h3 {
  font-size: clamp(20px, 2.5vw, 24px); font-weight: 700;
  letter-spacing: -0.02em; margin: 1.5em 0 0.4em;
  line-height: 1.2;
}
.v2-reading p { margin-bottom: 1em; }
.v2-reading a { color: var(--violet); text-decoration: none; }
.v2-reading a:hover { text-decoration: underline; }
.v2-reading ul, .v2-reading ol {
  padding-left: 1.5em; margin-bottom: 1em;
}
.v2-reading li { margin-bottom: 0.4em; }
.v2-reading strong { color: var(--ink); font-weight: 600; }
.v2-reading blockquote {
  background: var(--violet-soft); border-left: 4px solid var(--violet);
  padding: 16px 20px; border-radius: 0 8px 8px 0;
  margin: 1.5em 0; font-style: italic;
}
.v2-reading code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em; background: var(--alt);
  padding: 2px 6px; border-radius: 4px;
}
.v2-reading pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; background: var(--alt);
  padding: 16px; border-radius: 8px;
  overflow-x: auto; margin: 1.5em 0;
}

/* ── Mobile responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
  .stats3 { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: 1fr; }
  .v2-foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .proof-grid, .v2-foot { grid-template-columns: 1fr; }
  .v2-nav-links a:not(.btn-violet) { display: none; }
  .c { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { text-align: center; }
  .v2-final-form { flex-direction: column; }
  .stats, .proof, .pricing, .final { padding: 64px 0; }
  .manifesto-band { padding: 64px 0; }
}
