/* Creative Cortex marketing — shared design system.
   Source of truth for every page except index.html, which predates this
   file and carries the same tokens inline. Change tokens in both places. */

:root {
  --ink:        oklch(0.165 0.016 48);
  --ink-raised: oklch(0.205 0.019 48);
  --ink-line:   oklch(0.30 0.02 48);
  --ink-line-soft: oklch(0.26 0.018 48);

  --paper:      oklch(0.967 0.011 78);
  --paper-deep: oklch(0.928 0.015 76);
  --paper-line: oklch(0.30 0.02 48 / 0.14);

  --on-dark:        oklch(0.955 0.008 82);
  --on-dark-dim:    oklch(0.74 0.014 72);
  --on-dark-faint:  oklch(0.60 0.014 66);
  --on-light:       oklch(0.235 0.02 46);
  --on-light-dim:   oklch(0.46 0.018 50);

  --orange:        oklch(0.66 0.185 42);
  --orange-bright: oklch(0.74 0.185 48);
  --orange-deep:   oklch(0.565 0.16 40);

  --good: oklch(0.78 0.15 152);
  --warn: oklch(0.82 0.14 82);
  --skip: oklch(0.70 0.17 28);

  --maxw: 1240px;
  --maxw-prose: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--on-dark-dim);
  font-family: 'Switzer', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: oklch(0.16 0.016 48); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(24px, 5vw, 72px); }
.wrap-prose { max-width: var(--maxw-prose); margin: 0 auto; padding-inline: clamp(24px, 5vw, 72px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--orange);
  display: inline-block;
}

.display {
  font-family: 'Clash Display', 'Switzer', sans-serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}
.accent { color: var(--orange-bright); }

/* ===================================================== NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.165 0.016 48 / 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--ink-line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px clamp(24px, 5vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.01em; color: var(--on-dark);
}
.logo b { color: var(--orange); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 32px); }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--on-dark-dim);
  transition: color .25s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-cta {
  color: oklch(0.16 0.016 48) !important;
  background: var(--orange);
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600 !important;
  transition: background .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1);
}
.nav-cta:hover { background: var(--orange-bright); transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ===================================================== PAGE HERO (subpages) */
.page-hero { padding-block: clamp(64px, 9vw, 128px) clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 62px); max-width: 18ch; }
.page-lede {
  margin-top: 24px; max-width: 58ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--on-dark-dim);
}
.page-lede b, .page-lede strong { color: var(--on-dark); font-weight: 600; }

/* ===================================================== BANDS */
.band-dark  { background: var(--ink); color: var(--on-dark-dim); }
.band-raised{ background: var(--ink-raised); color: var(--on-dark-dim); border-block: 1px solid var(--ink-line-soft); }
.band-light { background: var(--paper); color: var(--on-light-dim); }
.band-light .display { color: var(--on-light); }
.band-light b, .band-light strong { color: var(--on-light); }
.pad { padding-block: clamp(56px, 8vw, 112px); }

.sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-title { font-size: clamp(28px, 3.8vw, 46px); max-width: 22ch; }
.sec-sub { margin-top: 18px; max-width: 62ch; font-size: 17px; }

/* ===================================================== PROSE */
.prose { max-width: var(--maxw-prose); }
.prose h2 {
  font-family: 'Clash Display', 'Switzer', sans-serif;
  font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(24px, 2.8vw, 34px);
  color: var(--on-dark);
  margin: clamp(36px, 5vw, 56px) 0 14px;
  line-height: 1.15;
}
.prose h3 {
  font-weight: 600; font-size: 19px; color: var(--on-dark);
  margin: 28px 0 10px;
}
.prose p { margin: 0 0 18px; font-size: 17px; }
.prose b, .prose strong { color: var(--on-dark); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; font-size: 17px; }
.prose a { color: var(--orange-bright); border-bottom: 1px solid oklch(0.74 0.185 48 / 0.35); }
.prose a:hover { border-bottom-color: var(--orange-bright); }
.band-light .prose h2, .band-light .prose h3 { color: var(--on-light); }
.band-light .prose a { color: var(--orange-deep); border-bottom-color: oklch(0.565 0.16 40 / 0.4); }

/* ===================================================== CARDS */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line-soft);
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 32px);
}
.card h3 { color: var(--on-dark); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15.5px; }
.card .card-k {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
  display: block; margin-bottom: 12px;
}
.band-light .card { background: oklch(1 0 0 / 0.6); border-color: var(--paper-line); }
.band-light .card h3 { color: var(--on-light); }

/* ===================================================== COMPARISON TABLE */
.cmp-scroll { overflow-x: auto; }
.cmp {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: 15.5px;
}
.cmp th, .cmp td {
  text-align: left; vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-line-soft);
}
.cmp th {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-faint);
}
.cmp td:first-child { color: var(--on-dark); font-weight: 500; width: 30%; }
.cmp td b { color: var(--orange-bright); font-weight: 600; }

/* ===================================================== FAQ */
.faq-item {
  border-bottom: 1px solid var(--ink-line-soft);
  padding: 22px 0;
}
.faq-item h3 { color: var(--on-dark); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 16px; max-width: 70ch; }
.faq-item p + p { margin-top: 10px; }

/* ===================================================== CTA CAPTURE */
.capture { margin-top: 28px; }
.capture-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 560px;
}
.capture input[type="email"] {
  flex: 1 1 260px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 14px 18px;
  font: inherit; font-size: 16px;
  outline: none;
  transition: border-color .25s;
}
.capture input[type="email"]::placeholder { color: var(--on-dark-faint); }
.capture input[type="email"]:focus { border-color: var(--orange); }
.btn {
  background: var(--orange);
  color: oklch(0.16 0.016 48);
  border: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 12px;
  transition: background .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1);
}
.btn:hover { background: var(--orange-bright); transform: translateY(-1px); }
.capture-note { margin-top: 12px; font-size: 13.5px; color: var(--on-dark-faint); }
.capture-note b { color: var(--on-dark-dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Final CTA band */
.final {
  background:
    radial-gradient(70% 90% at 50% 110%, oklch(0.32 0.09 42 / 0.55), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--ink-line-soft);
  text-align: center;
}
.final-inner { max-width: 720px; margin: 0 auto; }
.final h2 { font-size: clamp(30px, 4vw, 48px); }
.final p { margin-top: 16px; }
.final .capture { display: flex; flex-direction: column; align-items: center; }
.final .capture-row { justify-content: center; }

/* ===================================================== FOOTER */
footer { border-top: 1px solid var(--ink-line-soft); background: var(--ink); }
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 72px) 28px;
  display: grid; gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand .logo { font-size: 17px; }
.foot-brand p { margin-top: 10px; font-size: 13.5px; color: var(--on-dark-faint); max-width: 30ch; }
.foot-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-dark-faint);
  margin-bottom: 12px;
}
.foot-col a {
  display: block; font-size: 14.5px; color: var(--on-dark-dim);
  padding: 4px 0;
}
.foot-col a:hover { color: var(--on-dark); }
.foot-base {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px clamp(24px, 5vw, 72px) 32px;
  border-top: 1px solid var(--ink-line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--on-dark-faint);
}

/* ===================================================== REVEAL MOTION */
.reveal { opacity: 1; transform: none; }
.motion .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.motion .reveal.in { opacity: 1; transform: none; }
.motion .d1 { transition-delay: .08s; }
.motion .d2 { transition-delay: .16s; }
.motion .d3 { transition-delay: .24s; }
