/* ============================================================
   Unicorn Money — Positioning & Comparison page styles
   Used by: whats-different.html, switching/*.html
   Extends the landing page design system in index.html.
   ============================================================ */

:root {
  --indigo-deep: #1E1B3A;
  --indigo-darker: #14122A;
  --indigo: #4f46e5;
  --indigo-50: rgba(79, 70, 229, 0.05);
  --indigo-300: #a5b4fc;
  --amber: #f59e0b;
  --amber-300: #fcd34d;
  --emerald: #059669;
  --emerald-300: #6ee7b7;
  --violet: #7c3aed;
  --violet-300: #c4b5fd;
  --red: #dc2626;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--stone-900);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- shared primitives ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 760px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--indigo);
}
.num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}

/* ---------- nav (matches index.html) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(250, 250, 249, 0.78);
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-text-link {
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  color: var(--stone-700);
  padding: 8px 12px; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-text-link:hover { color: var(--stone-900); background: var(--stone-100); }
.nav-text-link.active { color: var(--indigo); }
.nav-link {
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  background: var(--stone-900); color: var(--stone-50);
  transition: transform .15s ease, background .15s ease;
}
.nav-link:hover { background: var(--indigo-deep); transform: translateY(-1px); }
@media (max-width: 600px) {
  .nav-text-link { display: none; }
}

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  background: var(--stone-900); color: var(--stone-50);
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn-primary.indigo { background: var(--indigo); }
.btn-primary.indigo:hover { background: var(--indigo-deep); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  color: var(--stone-700); text-decoration: none;
}
.btn-ghost:hover { color: var(--stone-900); }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 84px 0 64px;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.07), transparent 38%),
    radial-gradient(circle at 88% 60%, rgba(79, 70, 229, 0.09), transparent 42%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: white;
  border: 1px solid var(--stone-200);
  font-size: 13px; color: var(--stone-700);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  margin-bottom: 22px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}
h1.page-h {
  font-size: clamp(40px, 5.4vw, 68px);
  margin: 0 0 22px;
  max-width: 14ch;
}
.page-hero.wide h1.page-h { max-width: 18ch; }
.hero-tension {
  font-size: 20px; line-height: 1.5;
  color: var(--stone-700);
  max-width: 620px;
  margin: 0;
}

/* ---------- generic section ---------- */
section { padding: 80px 0; }
.section-eyebrow { margin-bottom: 14px; }
h2.section-h {
  font-size: clamp(30px, 3.8vw, 46px);
  margin: 0 0 18px;
  max-width: 18ch;
}
h2.section-h.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-sub {
  font-size: 18px;
  color: var(--stone-700);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.55;
}
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-eyebrow.center { text-align: center; }

/* prose blocks inside sections */
.prose { max-width: 680px; }
.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone-700);
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--stone-900); font-weight: 600; }
.prose em { font-style: italic; }
.prose h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}
.prose h3 em { font-style: italic; color: var(--indigo);
  font-variation-settings: "opsz" 60, "SOFT" 100, "WONK" 1; }

.tinted { background: white; border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200); }
.tinted-100 { background: var(--stone-100); }

/* ---------- three load-bearing differences ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  background: var(--stone-100);
  border-radius: 18px;
  padding: 32px 28px;
}
.tinted .diff-card { background: var(--stone-50); border: 1px solid var(--stone-200); }
.diff-card .diff-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 46px;
  line-height: 1;
  color: var(--indigo);
  margin-bottom: 18px;
  display: block;
}
.diff-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.diff-card h3 em { font-style: italic; color: var(--indigo);
  font-variation-settings: "opsz" 60, "SOFT" 100, "WONK" 1; }
.diff-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--stone-700);
  margin: 0;
}
.diff-card p + p { margin-top: 12px; }
.diff-card p strong { color: var(--stone-900); font-weight: 600; }

/* ---------- "same as" list (coming-from pages) ---------- */
.same-list { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.same-list li {
  position: relative;
  padding: 16px 0 16px 38px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--stone-700);
  border-bottom: 1px solid var(--stone-200);
}
.same-list li:last-child { border-bottom: 0; }
.same-list li strong { color: var(--stone-900); font-weight: 600; }
.same-list li::before {
  content: "";
  position: absolute; left: 0; top: 19px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.10);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- comparison table (designed object) ---------- */
.compare-wrap {
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  max-width: 920px;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 17px 22px;
  vertical-align: top;
  line-height: 1.45;
}
table.compare thead th {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--stone-900);
  background: var(--stone-50);
  border-bottom: 1px solid var(--stone-200);
}
table.compare thead th.dim { color: var(--stone-500); font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
table.compare tbody th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone-900);
  width: 26%;
}
table.compare tbody td { color: var(--stone-700); }
table.compare tbody tr { border-bottom: 1px solid var(--stone-200); }
table.compare tbody tr:last-child { border-bottom: 0; }
table.compare tbody tr:nth-child(even) { background: var(--stone-50); }
/* Unicorn Money column highlight */
table.compare .um {
  background: var(--indigo-50);
  color: var(--stone-900);
  font-weight: 500;
  box-shadow: inset 1px 0 0 rgba(79,70,229,0.12), inset -1px 0 0 rgba(79,70,229,0.12);
}
table.compare thead th.um {
  background: rgba(79, 70, 229, 0.09);
  color: var(--indigo);
}
table.compare thead th.um .brandline {
  display: inline-flex; align-items: center; gap: 7px;
}
table.compare thead th.um .brandline img { width: 20px; height: 20px; }

.compare-cards { display: none; }

@media (max-width: 720px) {
  .compare-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  table.compare { display: none; }
  .compare-cards { display: grid; gap: 16px; }
  .cmp-card {
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    background: white;
    overflow: hidden;
  }
  .cmp-card .dim {
    font-family: var(--sans);
    font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--stone-500);
    padding: 14px 18px 0;
  }
  .cmp-card .row {
    padding: 10px 18px 14px;
    display: grid; gap: 3px;
  }
  .cmp-card .row .who {
    font-size: 12px; font-weight: 600; color: var(--stone-500);
  }
  .cmp-card .row .val { font-size: 15.5px; line-height: 1.45; color: var(--stone-700); }
  .cmp-card .row.um { background: var(--indigo-50); }
  .cmp-card .row.um .who { color: var(--indigo); display: inline-flex; align-items: center; gap: 6px; }
  .cmp-card .row.um .who img { width: 16px; height: 16px; }
  .cmp-card .row.um .val { color: var(--stone-900); font-weight: 500; }
}

/* ---------- deliberately don't do ---------- */
.dont-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-width: 760px; }
.dont-list li {
  position: relative;
  padding: 18px 0 18px 44px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--stone-700);
  border-bottom: 1px solid var(--stone-200);
}
.dont-list li:last-child { border-bottom: 0; }
.dont-list li strong { color: var(--stone-900); font-weight: 700; }
.dont-list li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.16);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- three pillars (Give / Save / Spend) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-block {
  background: white;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  padding: 30px 26px;
}
.tinted-100 .pillar-block { background: var(--stone-50); }
.pillar-block .picon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.pillar-block .picon svg { width: 24px; height: 24px; }
.pillar-block.give .picon { background: rgba(5, 150, 105, 0.10); color: var(--emerald); }
.pillar-block.save .picon { background: rgba(79, 70, 229, 0.10); color: var(--indigo); }
.pillar-block.spend .picon { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.pillar-block h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pillar-block.give h3 { color: var(--emerald); }
.pillar-block.save h3 { color: var(--indigo); }
.pillar-block.spend h3 { color: #b45309; }
.pillar-block p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--stone-700);
}

/* ---------- "the real difference" pull quote ---------- */
.real-diff {
  text-align: center;
  padding: 72px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.05), transparent 55%),
    var(--stone-50);
}
.real-diff .label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 18px;
}
.real-diff .quote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto;
  color: var(--stone-900);
}
.real-diff .quote em {
  font-style: italic;
  color: var(--indigo);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.real-diff.dark {
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 181, 253, 0.10), transparent 55%),
    var(--indigo-deep);
}
.real-diff.dark .label { color: rgba(255,255,255,0.55); }
.real-diff.dark .quote { color: white; }
.real-diff.dark .quote em { color: var(--amber-300); }

/* ---------- closing line under a comparison ---------- */
.closing-line {
  max-width: 680px;
  margin: 36px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone-700);
}
.closing-line strong { color: var(--stone-900); font-weight: 600; }

/* ---------- guide CTA (end of coming-from pages) ---------- */
.guide-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.07), transparent 55%),
    var(--stone-100);
}
.guide-cta .eyebrow { display: block; margin-bottom: 14px; }
.guide-cta h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 16ch;
}
.guide-cta h2 em { font-style: italic; color: var(--indigo);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.guide-cta .cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* ---------- switching hub ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hub-card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--stone-300);
  box-shadow: 0 14px 28px -16px rgba(30, 27, 58, 0.14);
}
.hub-card .from {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 8px;
}
.hub-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hub-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--stone-700);
  flex-grow: 1;
}
.hub-card .go {
  font-size: 14px; font-weight: 600; color: var(--indigo);
}

/* ---------- note band ---------- */
.note-band {
  background: var(--indigo-deep);
  color: white;
  position: relative;
  overflow: hidden;
}
.note-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 181, 253, 0.10), transparent 42%),
    radial-gradient(circle at 84% 88%, rgba(245, 158, 11, 0.07), transparent 42%);
  pointer-events: none;
}
.note-band .wrap { position: relative; }
.note-band .eyebrow { color: rgba(255,255,255,0.55); }
.note-band h2.section-h { color: white; }
.note-band h2.section-h em { color: var(--amber-300); }
.note-band .prose p { color: rgba(255,255,255,0.78); }
.note-band .prose p strong { color: white; }

/* ---------- footer (matches index.html) ---------- */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--stone-200);
  text-align: center;
  color: var(--stone-500);
  font-size: 13px;
}
footer .brand { justify-content: center; margin-bottom: 8px; font-size: 16px; }
footer .legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--stone-500);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
footer .footer-links {
  margin-top: 12px;
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px;
}
footer .footer-links a { color: var(--stone-500); text-decoration: none; }
footer .footer-links a:hover { color: var(--stone-900); }

/* ---------- about page ---------- */
.about-hero { text-align: center; padding: 96px 0 56px; }
.about-hero .inner { max-width: 660px; margin: 0 auto; }
.about-hero .eyebrow { margin-bottom: 18px; }
.about-hero h1.page-h { max-width: none; margin: 0 auto 22px; }
.about-hero .hero-tension { margin: 0 auto; }

.about-section { padding: 60px 0; }
.about-section .prose { max-width: 900px; margin: 0 auto; }
.about-measure { max-width: 900px; margin: 0 auto; }
.about-section .prose > .eyebrow { display: block; margin-bottom: 18px; }
.about-section .prose .beat {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "SOFT" 60;
  font-style: italic;
  font-size: 20px;
  color: var(--stone-700);
  margin: 0 0 18px;
}
.about-section .prose a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}
.about-section .prose a:hover { border-bottom-color: var(--indigo); }
.about-section .prose .closer {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-style: italic;
  font-size: 22px;
  color: var(--stone-900);
  margin: 22px 0 0;
}
/* wider wrap for narrative pull quotes than the poster-style ones */
.real-diff.story .quote { max-width: 22ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .diff-grid, .pillars-grid, .hub-grid { grid-template-columns: 1fr; gap: 18px; }
  section { padding: 64px 0; }
  .real-diff { padding: 56px 0; }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
