/* ==========================================================
   Clever Traction — styles
   ========================================================== */
:root {
  --ink: #0B1410;
  --ink-2: #14231C;
  --moss: #1F3A2E;
  --paper: #F4F1EA;
  --paper-2: #EBE6DA;
  --line: #D8D2C3;
  --muted: #56645C;
  --lime: #C8F03C;
  --lime-deep: #A9D61B;
  --white: #FFFFFF;

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r: 14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 24px;
  font: 600 16px/1 var(--f-body);
  color: var(--ink); background: var(--lime);
  border: 2px solid var(--lime); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(169, 214, 27, .8); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(244,241,234,.35); }
.btn-ghost-light:hover { border-color: var(--lime); color: var(--lime); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.logo svg { width: 32px; height: 32px; color: var(--ink); }
.logo b { font-weight: 800; color: var(--moss); }
.logo-light { color: var(--paper); }
.logo-light b { color: var(--lime); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1.3 var(--f-mono); letter-spacing: .02em; text-transform: uppercase;
  color: var(--moss); background: var(--paper-2); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(200,240,60,.35); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(200,240,60,0); } }

.hero h1 { font-size: clamp(48px, 7.2vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .34em;
  background: var(--lime); z-index: -1; border-radius: 4px;
  transform-origin: left; animation: swipe .9s .3s var(--ease) both;
}
@keyframes swipe { from { transform: scaleX(0); } }
.hero-sub { font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--f-display); color: var(--moss); margin-top: 18px; letter-spacing: -0.02em; }
.lede { font-size: 19px; color: var(--muted); max-width: 33em; margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-chart {
  margin: 0; background: var(--ink); border-radius: var(--r-lg); padding: 22px 22px 18px;
  box-shadow: 0 40px 80px -40px rgba(11,20,16,.6);
  position: relative;
}
.hero-chart svg { width: 100%; height: auto; }
.hero-chart .grid line { stroke: rgba(244,241,234,.07); stroke-width: 1; }
.hero-chart .axis { stroke: rgba(244,241,234,.25); stroke-width: 1.5; }
.hero-chart .flat { stroke: rgba(244,241,234,.35); stroke-width: 2.5; stroke-dasharray: 6 8; fill: none; }
.hero-chart .curve {
  stroke: var(--lime); stroke-width: 5; fill: none; stroke-linecap: round;
  stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2s .4s var(--ease) forwards;
}
.hero-chart .area { opacity: 0; animation: fade 1s 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.hero-chart .marker { opacity: 0; animation: fade .5s var(--d) forwards; }
.hero-chart .marker circle { fill: var(--ink); stroke: var(--lime); stroke-width: 3.5; }
.hero-chart text { font: 500 13px var(--f-mono); fill: var(--paper); letter-spacing: .08em; }
.hero-chart .label-flat { fill: rgba(244,241,234,.45); font-size: 12px; letter-spacing: .02em; }
.hero-chart figcaption { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 8px 0; font-size: 13px; color: rgba(244,241,234,.65); }
.sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.sw-lime { background: var(--lime); }
.sw-grey { background: rgba(244,241,234,.4); }

.pillars-strip {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 72px; padding: 28px 0;
  border-top: 1px solid var(--line);
  font: 700 clamp(22px, 3vw, 34px)/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--ink);
}
.pillars-strip .plus { color: var(--lime-deep); }
.hl-text { background: var(--ink); color: var(--lime); padding: 0 .3em; border-radius: 8px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 96px 0 80px; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.section-head-row .section-lede { max-width: 360px; margin: 0; }
.kicker { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--moss); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--lime-deep); }
.section-dark .kicker { color: var(--lime); }
.section-dark .kicker::before { background: var(--lime); }
h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.035em; }
.section-lede { font-size: 19px; color: var(--muted); margin-top: 22px; }
.section-dark .section-lede { color: rgba(244,241,234,.7); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(11,20,16,.35); }
.pillar .num { font: 500 13px var(--f-mono); color: var(--muted); }
.pillar h3 { font-size: 30px; margin: 44px 0 12px; }
.pillar p { color: var(--muted); }

.contrast { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.contrast > div { padding: 34px 34px 36px; }
.contrast-us { background: var(--ink); color: var(--paper); }
.contrast-label { font: 700 24px/1.2 var(--f-display); margin-bottom: 20px; letter-spacing: -0.02em; }
.contrast > div:first-child .contrast-label { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(86,100,92,.5); }
.contrast-us .contrast-label { color: var(--lime); }

/* Lists */
.check-list li, .x-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before, .x-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%230B1410' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.x-list li { color: var(--muted); }
.x-list li::before {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='none' stroke='%2356645C' stroke-width='1.3'/%3E%3Cpath d='M6.3 6.3l5.4 5.4M11.7 6.3l-5.4 5.4' stroke='%2356645C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid rgba(244,241,234,.1); border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: transform .3s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-4px); border-color: rgba(200,240,60,.4); }
.tier header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.tier-letter { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(200,240,60,.12); color: var(--lime); font: 800 24px var(--f-display); }
.chip { font: 500 12px/1 var(--f-mono); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(244,241,234,.2); color: rgba(244,241,234,.8); }
.tier h3 { font-size: 28px; letter-spacing: -0.025em; }
.tier-intro { color: rgba(244,241,234,.7); margin: 14px 0 26px; }
.tier h4 { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: rgba(244,241,234,.5); margin-bottom: 14px; }
.tier .check-list { margin-bottom: 26px; font-size: 16px; }
.tier .check-list li::before { background-color: rgba(200,240,60,.9); }
.outcome { margin-top: auto; padding: 18px 18px; border-radius: var(--r); background: rgba(244,241,234,.05); border-left: 3px solid var(--lime); font-size: 15px; color: var(--paper); margin-bottom: 24px; }
.outcome span { display: block; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--lime); margin-bottom: 6px; }
.tier-featured { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-12px); }
.tier-featured:hover { transform: translateY(-16px); border-color: var(--lime); }
.tier-featured .tier-letter { background: var(--ink); }
.tier-featured .chip { border-color: var(--line); color: var(--muted); }
.tier-featured .tier-intro { color: var(--muted); }
.tier-featured h4 { color: var(--muted); }
.tier-featured .outcome { background: var(--paper-2); color: var(--ink); }
.tier-featured .outcome span { color: var(--moss); }
.ribbon { position: absolute; top: -13px; left: 30px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 999px; }

/* ---------- Add-ons ---------- */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.addon { padding: 34px 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); transition: background .3s, transform .3s var(--ease); }
.addon:hover { background: var(--lime); transform: translateY(-4px); }
.addon svg { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 30px; }
.addon h3 { font-size: 24px; margin-bottom: 12px; }
.addon p { color: var(--muted); }
.addon:hover p { color: var(--ink); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--lime); padding: 120px 0; }
.manifesto .kicker { color: var(--ink); }
.manifesto .kicker::before { background: var(--ink); }
.manifesto blockquote { margin: 0; font: 700 clamp(34px, 5vw, 68px)/1.04 var(--f-display); letter-spacing: -0.035em; max-width: 18ch; }
.manifesto mark { background: var(--ink); color: var(--lime); padding: 0 .12em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.manifesto-body { font-size: 21px; max-width: 40em; margin-top: 34px; color: var(--ink-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.stat { padding: 32px 26px 10px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat-num { font: 800 clamp(48px, 5.4vw, 72px)/1 var(--f-display); letter-spacing: -0.04em; }
.stat-label { color: var(--muted); margin-top: 14px; font-size: 16px; }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 40px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--ink) 0 60%, var(--lime-deep)); }
.timeline li { position: relative; padding-top: 70px; counter-increment: step; }
.timeline li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); border: 2px solid var(--ink); font: 500 14px var(--f-mono);
}
.timeline li:last-child::before { background: var(--lime); border-color: var(--lime-deep); }
.t-when { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--moss); }
.timeline h3 { font-size: 24px; margin: 8px 0 10px; }
.timeline p { color: var(--muted); font-size: 16px; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.fit-col { padding: 36px 34px; border-radius: var(--r-lg); }
.fit-yes { background: var(--ink); color: var(--paper); }
.fit-no { border: 1px dashed var(--line); }
.fit-col h3 { font-size: 26px; margin-bottom: 22px; }
.fit-yes h3 { color: var(--lime); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin: 0; position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 700 21px/1.3 var(--f-display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font: 400 22px/1 var(--f-body); transition: transform .3s var(--ease), background .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lime); border-color: var(--lime); }
.faq details p { color: var(--muted); padding: 0 48px 26px 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-direct { margin-top: 30px; color: rgba(244,241,234,.7); }
.contact-direct a { color: var(--lime); font-weight: 600; }
.form { background: var(--ink-2); border: 1px solid rgba(244,241,234,.1); padding: 32px; border-radius: var(--r-lg); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(244,241,234,.75); }
.form input, .form select, .form textarea {
  font: 400 16px var(--f-body); color: var(--paper);
  background: var(--ink); border: 1px solid rgba(244,241,234,.18); border-radius: 10px;
  padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C8F03C' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200,240,60,.18); }
.form .invalid { border-color: #FF8A7A; }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--lime); }
.form-status.error { color: #FF8A7A; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(244,241,234,.08); padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; align-items: start; gap: 32px; flex-wrap: wrap; }
.footer-tag { color: rgba(244,241,234,.6); margin-top: 14px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: rgba(244,241,234,.75); font-size: 15px; }
.footer-nav a:hover { color: var(--lime); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244,241,234,.08); font-size: 13px; color: rgba(244,241,234,.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tiers { grid-template-columns: 1fr; max-width: 620px; }
  .tier-featured, .tier-featured:hover { transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .timeline::before { display: none; }
  .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-wrap .section-head { position: static; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 18px; }
  .pillars, .addons, .contrast, .fit { grid-template-columns: 1fr; }
  .section-head-row { display: block; }
  .section-head-row .section-lede { margin-top: 18px; }
  .section { padding: 84px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .stats, .timeline, .field-row { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .form { padding: 22px; }
  .eyebrow { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
