/* ==========================================================================
   Orama HQ — design tokens
   Midnight + Cobalt + Lime: one base, one supporting color, one loud accent.
   ========================================================================== */

:root,
[data-palette="cobalt"] {
  --bg: #08080c;
  --surface: #121218;
  --line: rgba(244, 243, 238, 0.12);
  --text: #f4f3ee;
  --muted: #8d8d97;
  --brand: #0447cc;          /* supporting color: full-bleed blocks */
  --on-brand: #ffffff;
  --brand-muted: rgba(255, 255, 255, 0.72);
  --accent: #d5f61d;         /* the one loud color: CTAs + proof numbers */
  --on-accent: #08080c;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.045em;
  --display-case: none;
  --em-font: "Instrument Serif", Georgia, serif;
  --em-style: italic;
  --em-weight: 400;
  --em-tracking: -0.02em;
  color-scheme: dark;
}

:root {
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --section: clamp(88px, 12vw, 168px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
[id] { scroll-margin-top: 76px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-family: var(--em-font);
  font-style: var(--em-style);
  font-weight: var(--em-weight);
  letter-spacing: var(--em-tracking);
  color: var(--accent);
}
.h1 { font-size: clamp(52px, 10vw, 148px); }
.h2 { font-size: clamp(40px, 6.4vw, 92px); }
.h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 56ch; margin: 0; }
.lede strong { color: var(--text); font-weight: 500; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; color: var(--text); }
.logo__mark { height: 22px; width: auto; aspect-ratio: 300.64 / 49.42; }
.footer .logo__mark { height: 18px; }
.nav__links { display: flex; gap: 34px; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- hero ---------- */

.hero { padding-top: clamp(140px, 18vw, 200px); padding-bottom: 0; }
.hero__grid { display: grid; gap: 40px; }
.hero__foot {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero__foot { grid-template-columns: 1fr; }
}

/* VSL */
.vsl {
  position: relative; margin-top: clamp(56px, 7vw, 88px);
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: calc(var(--radius) + 6px);
  background: var(--brand); color: var(--on-brand);
  overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: left;
  isolation: isolate;
}
.vsl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vsl__word {
  position: absolute; left: 4%; bottom: -0.16em; z-index: -1;
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-case); letter-spacing: var(--display-tracking);
  font-size: clamp(64px, 15vw, 220px); line-height: 1;
  color: var(--on-brand); opacity: 0.1; white-space: nowrap;
}
.vsl__meta {
  position: absolute; left: clamp(18px, 3vw, 36px); top: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-muted);
}
.vsl__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(76px, 10vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease);
}
.vsl__play svg { width: 32%; margin-left: 6%; }
.vsl__play::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.5;
  animation: ring 2.4s var(--ease) infinite;
}
.vsl:hover .vsl__play { transform: scale(1.07); }
.vsl__caption {
  position: absolute; left: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 36px);
  max-width: 30ch; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; line-height: 1.3;
}
.vsl.is-playing .vsl__play,
.vsl.is-playing .vsl__meta,
.vsl.is-playing .vsl__caption,
.vsl.is-playing .vsl__word { display: none; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 600px) { .vsl__caption { display: none; } .vsl__meta span:last-child { display: none; } }

/* proof bar */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px);
}
.proof__item { padding: 28px 24px 8px 0; }
.proof__item + .proof__item { padding-left: 24px; border-left: 1px solid var(--line); }
.proof__num {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case);
  font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.proof__label { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 22ch; }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- problem ---------- */

.problem__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pains li {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px;
}
.pains li span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .problem__grid { grid-template-columns: 1fr; } }

/* ---------- system (keep / avoid) ---------- */

.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger__col { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.ledger__col--keep { background: var(--accent); color: var(--on-accent); }
.ledger__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 24px; opacity: 0.75; }
.ledger dl { margin: 0; }
.ledger dt { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.ledger dd { margin: 4px 0 22px; opacity: 0.72; font-size: 15px; }
.ledger dd:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }

/* ---------- ROI (brand block) ---------- */

.roi { background: var(--brand); color: var(--on-brand); }
.roi .eyebrow { color: var(--brand-muted); }
.roi .eyebrow::before { background: var(--on-brand); }
.roi .lede { color: var(--brand-muted); }
.roi__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.roi__controls { display: grid; gap: 34px; margin-top: 40px; }
.field label { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; }
.field output { font-family: var(--font-mono); font-weight: 500; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(var(--on-brand), var(--on-brand)) 0 / var(--fill, 50%) 100% no-repeat,
              color-mix(in srgb, var(--on-brand) 25%, transparent);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--on-brand);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--on-brand);
}
.roi__card { background: var(--bg); color: var(--text); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3vw, 40px); }
.roi__rows { display: grid; gap: 0; margin: 0 0 28px; }
.roi__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.roi__row dt { color: var(--muted); }
.roi__row dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.roi__row--head dt { color: var(--text); font-weight: 600; }
.roi__total { display: grid; gap: 6px; }
.roi__total .eyebrow { margin: 0; }
.roi__big {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case);
  font-size: clamp(52px, 7vw, 96px); line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.roi__note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
@media (max-width: 900px) { .roi__grid { grid-template-columns: 1fr; } }

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.3s var(--ease); }
.service:hover { background: var(--surface); }
.service__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.service h3 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- case study ---------- */

.case { background: var(--surface); border-radius: calc(var(--radius) + 10px); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.case__flow { display: grid; gap: 12px; }
.case__step { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.case__step:last-child { border-bottom: 0; }
.case__step dt { color: var(--muted); font-size: 15px; }
.case__step dd { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }
.case__step--win dd { color: var(--accent); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* ---------- process ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 22px; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.steps h3 { margin: 28px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- guarantee (accent block) ---------- */

.guarantee { background: var(--accent); color: var(--on-accent); text-align: center; }
.guarantee .eyebrow { color: inherit; opacity: 0.7; }
.guarantee .eyebrow::before { background: var(--on-accent); }
.guarantee .display em { color: inherit; }
.guarantee p { max-width: 52ch; margin: 28px auto 0; font-size: 18px; opacity: 0.8; }
.guarantee__terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.guarantee__terms span { border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; font-size: 14px; opacity: 0.85; }

/* ---------- fit ---------- */

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit__col { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.fit__col h3 { margin: 0 0 20px; font-size: 20px; font-weight: 600; }
.fit__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit__col li { display: flex; gap: 14px; align-items: baseline; }
.fit__col li::before { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.fit__col--no li { color: var(--muted); }
.fit__col--no li::before { content: "–"; color: var(--muted); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); }
.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; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- final CTA + qualifying form ---------- */

.book { border-top: 1px solid var(--line); }
.book__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.book__list li { display: flex; gap: 14px; }
.book__list li::before { content: "→"; color: var(--accent); }
.form { background: var(--surface); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; gap: 8px; }
.form__row label { font-size: 14px; color: var(--muted); }
.form input, .form select {
  height: 52px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); padding: 0 16px; width: 100%;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-content: center; width: 100%; margin-top: 6px; }
.form__fine { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.form__done { display: none; text-align: center; padding: 24px 0; }
.form.is-done > :not(.form__done) { display: none; }
.form.is-done .form__done { display: grid; gap: 18px; justify-items: center; }
@media (max-width: 860px) { .book__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.footer { padding-block: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer nav { display: flex; gap: 24px; }

/* ---------- motion ---------- */

/* Hero: CSS-only entrance so it never waits on JS. */
.rise { animation: rise 1s var(--ease) both; }
.rise-d1 { animation-delay: 0.08s; }
.rise-d2 { animation-delay: 0.18s; }
.rise-d3 { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* Below the fold: revealed on scroll, only hidden when JS is running. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
