/* =================================================================
   NEXUS — editorial-luxury design system
   Warm cream · deep ink · terracotta · sage · Instrument Serif · DM Sans · JetBrains Mono
   ================================================================= */

/* ═══ tokens ══════════════════════════════════════════════════════ */
:root {
  /* palette */
  --cream-50:  #FBF9F3;
  --cream:     #F7F4EC;
  --cream-200: #EFEBE0;
  --cream-300: #E4DDCC;
  --ink:       #0F1013;
  --ink-80:    #1A1C20;
  --ink-60:    #3A3D45;
  --ink-40:    #6B6E77;
  --ink-20:    #9C9FA6;
  --ink-10:    #C7C9D0;
  --terra:     #C35A3A;
  --terra-h:   #A94824;
  --terra-soft:#E5B69E;
  --sage:      #3E7868;
  --sage-h:    #2E6253;
  --sage-soft: #B6CFC5;
  --paper:     #FFFCF4;

  /* shadows — warm, never gray */
  --sh-sm:  0 1px  2px rgba(30,20,10,0.04), 0 2px 4px rgba(30,20,10,0.03);
  --sh-md:  0 2px  6px rgba(30,20,10,0.05), 0 8px 20px rgba(30,20,10,0.05);
  --sh-lg:  0 4px 12px rgba(30,20,10,0.06), 0 20px 40px rgba(30,20,10,0.07);
  --sh-xl:  0 8px 24px rgba(30,20,10,0.08), 0 32px 64px rgba(30,20,10,0.10);

  /* type */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", "Menlo", monospace;

  /* measures */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ═══ reset ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }

::selection { background: var(--terra); color: var(--cream-50); }

/* ═══ grain overlay ═══════════════════════════════════════════════ */
.grain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: multiply;
  opacity: .45;
}

/* ═══ utility ═════════════════════════════════════════════════════ */
.italic, em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* reveal: subtle rise on scroll-in. Hero has no data-reveal so it paints instantly. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ═══ buttons ═════════════════════════════════════════════════════ */
.btn {
  --bg: var(--ink);
  --fg: var(--cream-50);
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.55rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .97rem;
  letter-spacing: -0.005em;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { --bg: var(--terra); --fg: var(--cream-50); --bd: var(--terra); }
.btn--primary:hover { --bg: var(--terra-h); --bd: var(--terra-h); }

.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: var(--cream-50); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  padding: .8rem 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn--ghost:hover { transform: none; box-shadow: none; color: var(--terra); border-bottom-color: var(--terra); }

.btn--inline {
  --bg: var(--ink); --fg: var(--cream-50); --bd: var(--ink);
  padding: .72rem 1.1rem;
  font-size: .88rem;
}
.btn--block { width: 100%; justify-content: center; padding: 1.1rem 1.5rem; }

.cta-row { display: flex; justify-content: center; gap: 1rem; margin-top: 3.5rem; flex-wrap: wrap; }

/* ═══ nav ═════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--gutter);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(247, 244, 236, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(247, 244, 236, 0.92);
  border-bottom-color: rgba(30,20,10,0.06);
  box-shadow: 0 1px 0 rgba(30,20,10,0.02);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .9rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.wordmark__text { font-weight: 400; }
.wordmark__dot {
  color: var(--terra);
  font-style: normal;
  font-size: 1.6em;
  line-height: 0;
  margin-left: -0.05em;
  display: inline-block;
  transform: translateY(.1em);
}
.wordmark__rule {
  width: 1px; height: 1.2rem;
  background: var(--ink-20);
  display: inline-block;
  transform: translateY(.15em);
}
.wordmark__slogan {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-60);
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .94rem;
  color: var(--ink-80);
  font-weight: 400;
  position: relative;
  padding: .4rem 0;
}
.nav__num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--terra);
  letter-spacing: .08em;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: .1rem;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

@media (max-width: 920px) {
  .nav__links, .wordmark__rule, .wordmark__slogan { display: none; }
}

/* ═══ hero ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(4.5rem, 7vh, 6rem) var(--gutter) clamp(3rem, 6vh, 4.5rem);
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 2; }
.hero__orb { z-index: 0 !important; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  animation: orbit 22s ease-in-out infinite alternate;
}
.hero__orb--a { width: 520px; height: 520px; background: var(--terra-soft); top: 8%;  left: 12%; }
.hero__orb--b { width: 460px; height: 460px; background: var(--sage-soft);  top: 18%; right: 10%; animation-delay: -7s; animation-duration: 28s; }
@media (max-width: 760px) {
  .hero__orb--a { width: 320px; height: 320px; top: 14%; left: -10%; }
  .hero__orb--b { width: 300px; height: 300px; top: 30%; right: -10%; }
}

@keyframes orbit {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(30px, -20px, 0) scale(1.05); }
  100% { transform: translate3d(-20px, 25px, 0) scale(0.98); }
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-60);
  padding: .55rem 1rem;
  background: rgba(255,252,244,.7);
  border: 1px solid rgba(30,20,10,.08);
  border-radius: 999px;
  box-shadow: var(--sh-sm);
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 var(--sage);
  animation: pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(62,120,104,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(62,120,104,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,120,104,0); }
}

.hero__headline {
  position: relative;
  font-size: clamp(2.6rem, 7.5vw, 5.8rem);
  line-height: .98;
  letter-spacing: -0.035em;
  margin-bottom: 2.2rem;
  padding: 1.25rem 0 1.75rem;
}

/* editorial draw-in rules top & bottom */
.hero__rule {
  position: absolute;
  left: 50%;
  height: 1px;
  width: 0;
  background: var(--ink);
  transform: translateX(-50%);
  animation: ruleDraw 1.4s var(--ease-out) .15s forwards;
}
.hero__rule--top { top: 0; }
.hero__rule--bot { bottom: 0; animation-delay: .9s; background: var(--terra); height: 1.5px; }
@keyframes ruleDraw {
  to { width: min(480px, 72%); }
}

/* squiggle underline that draws in beneath the headline */
.hero__flourish-svg {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: clamp(200px, 36%, 320px);
  height: 28px;
  color: var(--terra);
  overflow: visible;
  pointer-events: none;
}
.hero__flourish-svg path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: strokeDraw 1.6s var(--ease-out) 1.4s forwards;
}
@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}
.hero__headline .line { display: block; }
.hero__headline .italic { color: var(--ink-60); }

.hero__sub {
  max-width: 640px;
  margin: 0 auto 2.8rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.5;
  color: var(--ink-60);
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto clamp(3rem, 6vh, 4rem);
  padding: 1.8rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(30,20,10,.1);
  border-bottom: 1px solid rgba(30,20,10,.1);
}
.hero__stats > div { text-align: center; }
.hero__stats dt {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ink-60);
  margin-bottom: .75rem;
}
.hero__stats dd {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.hero__stats .unit { font-size: .6em; color: var(--ink-40); margin-left: .1em; }

@media (max-width: 680px) {
  .hero__stats { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }
}

.hero__flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-60);
  letter-spacing: -0.01em;
}
.rule { width: clamp(40px, 10vw, 100px); height: 1px; background: rgba(30,20,10,.25); }

/* ═══ ticker ══════════════════════════════════════════════════════ */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,252,244,.08);
  border-bottom: 1px solid rgba(255,252,244,.08);
}
.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  padding-left: 2.5rem;
}
.ticker__track span {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.ticker__track i {
  font-style: normal;
  color: var(--terra);
  font-size: 1rem;
  align-self: center;
  opacity: .7;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══ section scaffolding ════════════════════════════════════════ */
section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--terra);
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.section-title .italic { color: var(--ink-60); }
.section-kicker {
  font-size: 1.12rem;
  color: var(--ink-60);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ═══ problem ═════════════════════════════════════════════════════ */
.problem {
  background: var(--ink);
  color: var(--cream);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}
.problem::before {
  /* subtle topo lines */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(195,90,58,.12), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(62,120,104,.1), transparent 55%);
  pointer-events: none;
}
.problem > * {
  position: relative;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.problem .section-num { color: var(--terra-soft); }
.problem .section-title { color: var(--cream); }
.problem .section-title .italic { color: var(--cream-300); }
.problem .section-kicker { color: var(--ink-10); }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .problem__grid { grid-template-columns: 1fr; } }

.pcard {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,252,244,.1);
  border-radius: var(--r-lg);
  background: rgba(255,252,244,.02);
  transition: transform .5s var(--ease-out), border-color .3s var(--ease), background .3s var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: rgba(195,90,58,.4);
  background: rgba(255,252,244,.04);
}
.pcard__icon {
  color: var(--terra-soft);
  margin-bottom: 2rem;
}
.pcard__stat {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: .5rem;
  font-feature-settings: "tnum";
}
.pcard__label {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-10);
  margin-bottom: 1.25rem;
}
.pcard__body {
  color: var(--cream-300);
  line-height: 1.55;
  font-size: .97rem;
}

.problem .cta-row .btn--primary {
  --bg: var(--terra); --fg: var(--cream-50);
}

/* ═══ systems ═════════════════════════════════════════════════════ */
.systems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1080px) { .systems__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .systems__grid { grid-template-columns: 1fr; } }

.scard {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background: var(--paper);
  border: 1px solid rgba(30,20,10,.08);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s var(--ease);
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(195,90,58,.35);
}
.scard--lg { grid-column: span 1; }
@media (min-width: 1080px) {
  .scard--lg:first-of-type  { grid-row: span 2; }
  .scard--lg:nth-of-type(4) { grid-row: span 2; }
  .systems__grid { grid-auto-flow: dense; }
}

.scard__head {
  display: flex; align-items: baseline; gap: .85rem;
}
.scard__num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--terra);
  letter-spacing: .1em;
}
.scard__head h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.scard__icon {
  color: var(--ink-80);
  margin: .5rem 0 .5rem;
}
.scard--lg .scard__icon svg { width: 72px; height: 72px; }
.scard__body {
  color: var(--ink-60);
  line-height: 1.55;
  font-size: .97rem;
  flex: 1;
}
.scard__metric {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(30,20,10,.15);
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--sage-h);
  letter-spacing: -0.01em;
}
.scard__metric .arrow { margin-right: .4rem; color: var(--sage); }

/* ═══ process ═════════════════════════════════════════════════════ */
.process {
  position: relative;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process__steps::before {
  /* horizontal timeline */
  content: "";
  position: absolute;
  top: 30px;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,20,10,.25) 15%, rgba(30,20,10,.25) 85%, transparent);
  z-index: 0;
}
@media (max-width: 880px) {
  .process__steps { grid-template-columns: 1fr; gap: 2rem; }
  .process__steps::before { display: none; }
}

.step {
  padding: 0 1rem;
  text-align: left;
  position: relative;
  z-index: 1;
  animation: stepIn .7s var(--ease-out) both;
}
.step:nth-child(2) { animation-delay: .1s; }
.step:nth-child(3) { animation-delay: .2s; }
.step:nth-child(4) { animation-delay: .3s; }
@keyframes stepIn { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }

.step__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(30,20,10,.15);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--terra);
  letter-spacing: .05em;
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: .35rem; letter-spacing: -0.02em; }
.step__days {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--terra);
  margin-bottom: 1rem;
}
.step p:last-child { color: var(--ink-60); font-size: .96rem; line-height: 1.55; }

/* ═══ pricing ═════════════════════════════════════════════════════ */
.pricing { }

/* Part divider — editorial roman numeral + hairline rule + label */
.part-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0 1rem;
}
.part-header--mt { margin-top: 5rem; }
.part-header__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--terra);
  line-height: 1;
}
.part-header__rule {
  height: 1px;
  background: linear-gradient(to right, rgba(30,20,10,.18), rgba(30,20,10,.04));
}
.part-header__label {
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-60);
  white-space: nowrap;
}
.part-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-60);
  max-width: 62ch;
  line-height: 1.5;
  margin: 0 0 2rem;
}
@media (max-width: 680px) {
  .part-header { grid-template-columns: auto 1fr; gap: .9rem; }
  .part-header__label {
    grid-column: 1 / -1;
    white-space: normal;
    letter-spacing: .14em;
    padding-top: .25rem;
  }
}

.anchor-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.6rem 2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  margin-bottom: 3rem;
  box-shadow: var(--sh-md);
}
.anchor-bar > div { text-align: center; }
.anchor__label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-10);
  margin-bottom: .5rem;
}
.anchor__val {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.anchor__val--strike { color: var(--terra-soft); text-decoration: line-through; text-decoration-color: rgba(229,182,158,.5); }
.anchor__val--good { color: var(--sage-soft); }
@media (max-width: 680px) {
  .anchor-bar { grid-template-columns: 1fr; gap: 1rem; }
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1020px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(30,20,10,.08);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.tier--featured {
  background: var(--cream-50);
  border: 1px solid var(--terra);
  box-shadow: var(--sh-lg), 0 0 0 4px rgba(195,90,58,.08);
  transform: translateY(-12px);
}
.tier--featured:hover { transform: translateY(-16px); }
@media (max-width: 1020px) { .tier--featured { transform: none; } .tier--featured:hover { transform: translateY(-4px); } }

.tier__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: var(--cream-50);
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--sh-md);
}

.tier__head { display: flex; flex-direction: column; gap: .25rem; }
.tier__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.tier__for {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-60);
}
.tier__outcome {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-60);
  line-height: 1.35;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  padding: 1rem 0 .25rem;
  border-top: 1px solid rgba(30,20,10,.1);
  border-bottom: 1px solid rgba(30,20,10,.1);
  font-family: var(--serif);
}
.tier__dollar { font-size: 1.6rem; color: var(--ink-60); }
.tier__amt { font-size: clamp(3rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.tier__mo {
  font-family: var(--mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-60);
  margin-left: .3rem;
  padding-bottom: .6rem;
}
.tier__replaces {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sage-h);
}
.tier__features { display: flex; flex-direction: column; gap: .65rem; margin: .5rem 0; }
.tier__features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .65rem;
  align-items: start;
  font-size: .94rem;
  color: var(--ink-80);
  line-height: 1.4;
}
.tier__features svg {
  margin-top: 6px;
  color: var(--sage);
}
.tier__result {
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sage-h);
  padding: .9rem 1rem;
  border: 1px dashed rgba(62,120,104,.3);
  border-radius: var(--r-md);
  background: rgba(182,207,197,.15);
}
.tier__roi {
  padding: 1.1rem 1.1rem;
  background: linear-gradient(135deg, rgba(195,90,58,.08), rgba(62,120,104,.06));
  border-radius: var(--r-md);
  border: 1px solid rgba(195,90,58,.15);
}
.tier__roi-label {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-60);
}
.tier__roi-val {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin: .35rem 0 .35rem;
  letter-spacing: -0.02em;
}
.tier__roi-note {
  font-size: .82rem;
  color: var(--ink-60);
  line-height: 1.4;
}
.tier__cta { width: 100%; justify-content: center; margin-top: .5rem; }
.tier__guarantee {
  text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-60);
  padding-top: .5rem;
}

/* Bundle note — editorial "pair them" callout */
.bundle-note {
  position: relative;
  margin-top: 3.5rem;
  padding: 2rem 2.2rem;
  background:
    linear-gradient(135deg, rgba(195,90,58,.08) 0%, rgba(62,120,104,.07) 100%),
    var(--paper);
  border: 1px solid rgba(195,90,58,.18);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--sh-sm);
}
.bundle-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.4);
  pointer-events: none;
}
.bundle-note__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--terra);
  padding: .35rem .75rem;
  background: rgba(195,90,58,.1);
  border-radius: 999px;
  margin-bottom: .6rem;
  margin-right: .5rem;
}
.bundle-note__body {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink-80);
  margin: 0;
  max-width: 62ch;
}
.bundle-note__body em {
  color: var(--terra);
  font-style: italic;
}
.bundle-note__cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .bundle-note {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.6rem;
  }
  .bundle-note__cta { width: 100%; justify-content: center; }
}

/* ═══ results ═════════════════════════════════════════════════════ */
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1020px) { .results__grid { grid-template-columns: 1fr; } }

.rcard {
  background: var(--paper);
  border: 1px solid rgba(30,20,10,.08);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.rcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.rcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(30,20,10,.08);
}
.rcard__kind {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--terra);
}
.rcard__loc {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--ink-60);
  letter-spacing: .08em;
}
.rcard__metric { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.rcard__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.rcard__unit {
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-60);
}
.rcard__body {
  color: var(--ink-80);
  line-height: 1.5;
  font-size: .95rem;
  font-style: italic;
  font-family: var(--serif);
}
.rcard__detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(30,20,10,.12);
}
.rcard__detail > div { display: flex; flex-direction: column; gap: .2rem; }
.rcard__detail dt {
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-60);
}
.rcard__detail dd {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}

/* ═══ faq ═════════════════════════════════════════════════════════ */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.faq__item {
  border-bottom: 1px solid rgba(30,20,10,.1);
  padding: .25rem 0;
  transition: border-color .2s var(--ease);
}
.faq__item[open] { border-bottom-color: rgba(30,20,10,.25); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  gap: 1.5rem;
  transition: color .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--terra); }
.faq__q {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.015em;
}
.faq__chev {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(30,20,10,.15);
  border-radius: 50%;
  transition: transform .4s var(--ease), background .2s var(--ease), color .2s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--ink); color: var(--cream); border-color: var(--ink); }
.faq__a {
  padding: 0 0 1.5rem;
  color: var(--ink-60);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 680px;
  animation: faqIn .5s var(--ease-out);
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ final cta ═══════════════════════════════════════════════════ */
.final {
  background: var(--ink);
  color: var(--cream);
  max-width: none;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(195,90,58,.15), transparent 45%),
    radial-gradient(circle at 82% 80%, rgba(62,120,104,.12), transparent 45%);
  pointer-events: none;
}
.final__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.final__eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--terra-soft);
  margin-bottom: 1.75rem;
}
.final__headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.final__headline .italic { color: var(--cream-300); }
.final__sub {
  font-size: 1.08rem;
  color: var(--ink-10);
  line-height: 1.55;
  margin-bottom: 3rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.final__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  background: rgba(255,252,244,.04);
  border: 1px solid rgba(255,252,244,.1);
  border-radius: var(--r-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-10);
}
.field input, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,252,244,.2);
  padding: .75rem 0;
  color: var(--cream);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s var(--ease);
}
.field input::placeholder { color: rgba(255,252,244,.3); }
.field input:focus, .field select:focus { border-bottom-color: var(--terra); }
.field select { color: var(--cream); }
.field select option { background: var(--ink); color: var(--cream); }

.final__form .btn--block { grid-column: 1 / -1; margin-top: 1rem; }
.final__status {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  margin: 0;
}
.final__status[data-kind="pending"] {
  color: var(--cream-300);
  border-color: rgba(251,249,243,.15);
  background: rgba(251,249,243,.04);
}
.final__status[data-kind="ok"] {
  color: var(--sage-soft);
  border-color: rgba(182,207,197,.35);
  background: rgba(62,120,104,.15);
}
.final__status[data-kind="err"] {
  color: var(--terra-soft);
  border-color: rgba(229,182,158,.35);
  background: rgba(195,90,58,.12);
}
.final__foot {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-10);
}

.final__slogan {
  margin-top: 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--cream-300);
  opacity: .7;
}
@media (max-width: 680px) {
  .final__form { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* ═══ footer ══════════════════════════════════════════════════════ */
.foot {
  padding: 3rem var(--gutter) 2rem;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid rgba(30,20,10,.08);
}
.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.foot__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.foot__links a {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-60);
}
.foot__links a:hover { color: var(--terra); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(30,20,10,.06);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-60);
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot__slogan {
  text-transform: none;
  letter-spacing: -0.01em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-40);
}

/* ═══ stage · scroll-tilt command deck ═══════════════════════════ */
.stage {
  max-width: var(--container);
  padding: clamp(2rem, 4vh, 4rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}
.stage__head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}
.stage__eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--terra);
  margin-bottom: 1rem;
}
.stage__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.stage__title .italic { color: var(--ink-60); display: block; }

.stage__scene {
  position: relative;
  height: 170vh;
}
.stage__frame {
  position: sticky;
  top: 12vh;
  height: 78vh;
  display: grid;
  place-items: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.stage__card {
  --rx: 24deg;
  --sc: 0.86;
  --ty: 40px;
  width: min(1120px, 96%);
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: translateY(var(--ty)) rotateX(var(--rx)) scale(var(--sc));
  transform-origin: 50% 100%;
  border-radius: 22px;
  box-shadow:
    0 30px 60px -20px rgba(30,20,10,.28),
    0 80px 140px -40px rgba(195,90,58,.2),
    inset 0 1px 0 rgba(255,255,255,.5);
  background: var(--ink);
  overflow: hidden;
  will-change: transform;
}
.stage__caption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-40);
  margin-top: 1.5rem;
}
.stage__caption em { color: var(--terra); font-style: italic; }

@media (max-width: 880px) {
  .stage__scene { height: 120vh; }
  .stage__frame { top: 14vh; height: 68vh; }
  .stage__card { --sc: 0.94; --rx: 16deg; border-radius: 14px; }
}

/* dashboard chrome */
.dash {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #16181D 0%, #0F1013 100%);
  color: var(--cream);
  font-size: clamp(10px, 1.1vw, 13px);
}
.dash__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,252,244,.06);
  background: rgba(0,0,0,.25);
}
.dash__dot { width: 10px; height: 10px; border-radius: 50%; }
.dash__dot:nth-child(1) { background: #E06C5A; }
.dash__dot:nth-child(2) { background: #E5B69E; }
.dash__dot:nth-child(3) { background: #B6CFC5; }
.dash__url {
  margin-left: 1rem;
  color: var(--ink-20);
  font-family: var(--mono);
  font-size: .72em;
  letter-spacing: .08em;
  flex: 1;
  text-align: center;
}
.dash__live {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono);
  font-size: .66em;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage-soft);
}
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2.2s ease infinite; }

.dash__body {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(140px, 18%, 200px) 1fr;
  min-height: 0;
}
.dash__side {
  padding: 1.2rem 1rem;
  border-right: 1px solid rgba(255,252,244,.06);
  display: flex; flex-direction: column;
  gap: 1rem;
  background: rgba(0,0,0,.15);
}
.dash__brand { font-family: var(--serif); font-size: 1.4em; line-height: 1; }
.dash__brand em { color: var(--terra); font-style: normal; }
.dash__nav {
  display: flex; flex-direction: column; gap: .55rem;
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: .06em;
  color: var(--ink-20);
}
.dash__nav li.is-active { color: var(--cream); }
.dash__side-foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: .7em;
  letter-spacing: .1em;
  color: var(--ink-40);
  text-transform: uppercase;
}

.dash__main {
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column;
  gap: .7rem;
  overflow: hidden;
  min-width: 0;
}
.dash__row { display: grid; gap: .7rem; }
.dash__row--2 { grid-template-columns: 1.5fr 1fr; }
.dash__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.dash__tile {
  border: 1px solid rgba(255,252,244,.07);
  background: rgba(255,252,244,.02);
  border-radius: 12px;
  padding: .85rem 1rem;
  display: flex; flex-direction: column;
  gap: .3rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.dash__tile--hero {
  background: linear-gradient(135deg, rgba(195,90,58,.16), rgba(62,120,104,.08));
  border-color: rgba(195,90,58,.3);
}
.dash__k {
  font-family: var(--mono);
  font-size: .72em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-20);
}
.dash__v {
  font-family: var(--serif);
  font-size: 2.1em;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: .05em;
  color: var(--cream);
}
.dash__prefix, .dash__suffix { font-size: .55em; color: var(--ink-20); }
.dash__num { font-feature-settings: "tnum"; transition: color .5s var(--ease), transform .5s var(--ease); display: inline-block; }
.dash__num.is-pulse { color: var(--terra-soft); transform: translateY(-2px); }
.dash__delta {
  font-family: var(--mono);
  font-size: .7em;
  letter-spacing: .06em;
  color: var(--sage-soft);
}
.dash__spark {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 40%;
  color: var(--terra-soft);
  opacity: .85;
}

.dash__feed {
  flex: 1;
  border: 1px solid rgba(255,252,244,.07);
  border-radius: 12px;
  padding: .8rem 1rem;
  background: rgba(0,0,0,.2);
  min-height: 0;
  overflow: hidden;
}
.feed {
  display: flex; flex-direction: column;
  gap: 0;
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .82em;
  color: var(--ink-10);
}
.feed li {
  display: grid;
  grid-template-columns: 58px 20px 1fr;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  border-top: 1px dashed rgba(255,252,244,.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed li:first-child { border-top: 0; }
.feed li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.feed__t { color: var(--ink-40); }
.feed__i { color: var(--terra); text-align: center; }

@media (max-width: 760px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__row--2 { grid-template-columns: 1fr; }
  .dash__row--3 { grid-template-columns: 1fr 1fr; }
  .dash__feed { display: none; }
}

/* ═══ magnetic primary CTA ═══════════════════════════════════════ */
.btn--primary {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  will-change: transform;
}
.btn--primary:hover { transform: translate3d(var(--mx, 0), var(--my, 0), 0) translateY(-2px); }

/* ═══ spotlight on dark sections ═════════════════════════════════ */
.problem, .final { --mx: 50%; --my: 50%; }
.problem::after, .final::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px circle at var(--mx) var(--my), rgba(195,90,58,.14), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
  mix-blend-mode: screen;
  z-index: 0;
}
.problem:hover::after, .final:hover::after { opacity: 1; }
.problem > *, .final > * { position: relative; z-index: 1; }

/* ═══ hero line stagger — slides in, never blank (starts visible) ═ */
.hero__headline .line {
  display: block;
  animation: lineIn .8s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
@keyframes lineIn {
  from { opacity: .0; transform: translateY(14px); }
  to   { opacity: 1;  transform: translateY(0); }
}

/* ═══ reduced motion ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
