/* ============================================================
   TORVO — design system
   The law: ORANGE IS THE ANSWER.
   Orange appears only where Torvo found something — an answer,
   a signal, a CTA. Never decorative. Everything else: midnight,
   white, and air.
   Motion: THE SNAP — elements enter soft and snap to focus.
   ============================================================ */

:root {
  --midnight: #0A1026;
  --midnight-2: #0D1430;          /* raised surfaces */
  --midnight-3: #111A3E;          /* hover surfaces */
  --orange: #FF6B35;              /* the answer */
  --orange-soft: rgba(255, 107, 53, 0.14);
  --white: #FFFFFF;
  --ink: rgba(255, 255, 255, 0.92);
  --ink-soft: rgba(255, 255, 255, 0.64);
  --ink-faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --chart-blue: #00AEEF;          /* utility only: context data inside charts */
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --snap: 240ms cubic-bezier(0.22, 0.9, 0.3, 1);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--midnight); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.06; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- THE SNAP ---------- */
.snap {
  opacity: 0;
  filter: blur(7px);
  transform: scale(0.985) translateY(10px);
  transition: opacity var(--snap), filter var(--snap), transform var(--snap);
}
.snap.in { opacity: 1; filter: blur(0); transform: none; }
.snap.d1 { transition-delay: 70ms; }
.snap.d2 { transition-delay: 140ms; }
.snap.d3 { transition-delay: 210ms; }

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

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background var(--snap), border-color var(--snap);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 16, 38, 0.86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--white); }
@media (max-width: 760px) { .nav-links .hide-m { display: none; } }

/* ---------- buttons: a CTA is an answer → orange ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--orange); color: var(--midnight);
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  padding: 13px 24px; border: none; border-radius: 999px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(255, 107, 53, 0.35); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 12px 22px; font-family: var(--font-head); font-weight: 500; font-size: 15px;
  transition: border-color 140ms ease, background 140ms ease;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }

/* ---------- hero ---------- */
.hero { padding: 168px 0 64px; position: relative; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  max-width: 13ch;
}
.hero h1 .found { color: var(--orange); }
.hero-sub {
  margin-top: 26px; font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft); max-width: 52ch;
}
.kbd-hint { color: var(--ink-faint); font-size: 13px; margin-top: 14px; }
.kbd-hint kbd {
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 7px;
  font-family: var(--font-head); font-size: 12px;
}

/* ---------- ask torvo ---------- */
.ask { margin-top: 44px; }
.ask-box {
  display: flex; gap: 10px; align-items: center;
  background: var(--midnight-2);
  border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 10px 10px 10px 22px;
  transition: border-color var(--snap), box-shadow var(--snap);
}
.ask-box:focus-within { border-color: rgba(255,255,255,0.45); box-shadow: 0 18px 60px rgba(0,0,0,0.45); }
.ask-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-size: 17.5px; font-family: var(--font-body);
  min-width: 0;
}
.ask-box input::placeholder { color: var(--ink-faint); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chip {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font-size: 13.5px; padding: 7px 15px;
  transition: border-color 140ms ease, color 140ms ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--white); }

/* the conversation — where orange lives */
.thread { display: grid; gap: 14px; margin-top: 8px; }
.thread:not(:empty) { margin-top: 24px; }

.turn { animation: turn-in var(--snap) both; }
@keyframes turn-in {
  from { opacity: 0; filter: blur(5px); transform: translateY(8px); }
  to   { opacity: 1; filter: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .turn { animation: none; } }

.turn.user { justify-self: end; max-width: 76%; }
.turn.user .bubble {
  background: var(--midnight-3); border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px; padding: 11px 17px;
  font-size: 15.5px; color: var(--ink);
}

.turn.torvo {
  border: 1px solid var(--line); border-left: 3px solid var(--orange);
  background: var(--midnight-2); border-radius: var(--radius);
  padding: 22px 26px; max-width: 92%;
}
.t-meta { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-head); }
.t-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.t-meta .dot.looking { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.8); } }
.t-body { font-size: 16.5px; white-space: pre-wrap; }
.t-body .sig { color: var(--orange); font-weight: 600; }

/* inline Clarity CTA card the model can summon ([[clarity]]) */
.t-cta {
  margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; background: var(--midnight);
}
.t-cta p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* follow-up chips under the latest Torvo turn */
.followups { display: flex; flex-wrap: wrap; gap: 9px; }
.followups .chip { border-color: var(--line-strong); }

.demo-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); display: inline; }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.eyebrow {
  font-family: var(--font-head); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px;
}
.h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; }
.lede { margin-top: 18px; color: var(--ink-soft); font-size: 18px; max-width: 56ch; }
.rule { border: none; border-top: 1px solid var(--line); }

/* ---------- manifesto ---------- */
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto .big {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 5vw, 60px); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 21ch;
}
.manifesto p.m { font-size: clamp(18px, 2.2vw, 24px); color: var(--ink-soft); margin-top: 34px; max-width: 44ch; line-height: 1.55; }
.manifesto p.m strong { color: var(--ink); font-weight: 600; }
.manifesto .found { color: var(--orange); }
.dict {
  margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; max-width: 560px; background: var(--midnight-2);
}
.dict .term { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.dict .pos { color: var(--ink-faint); font-style: italic; font-size: 14px; }
.dict .def { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- caught this / receipts ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 880px) { .grid3 { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--midnight-2); padding: 28px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--midnight-3); }
/* the Caught-This receipt cards — markup paused in index.html until real
   installs produce permissioned numbers; kept so restoring is markup only */
.card .num { font-family: var(--font-head); font-weight: 700; font-size: 38px; color: var(--orange); letter-spacing: -0.02em; }
.card .what { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); }
.card .tag { margin-top: 18px; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-head); }
.sample-flag { margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- demo companies ---------- */
.co-card { cursor: pointer; }
.co-card .co-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.co-card .co-line { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.co-card .co-cta { margin-top: 18px; font-size: 14px; color: var(--orange); font-weight: 600; font-family: var(--font-head); }
.co-detail {
  display: none; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px;
  font-size: 15px; color: var(--ink-soft); white-space: pre-line;
}
.co-detail .sig { color: var(--orange); font-weight: 600; }
.co-card.open .co-detail { display: block; }

/* ---------- product ---------- */
.prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.prod.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .prod, .prod.four { grid-template-columns: 1fr; } }
.prod .p-verb { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.prod h3 { font-size: 24px; margin-top: 10px; }
.prod p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- clarity score ---------- */
#clarity { border-top: 1px solid var(--line); }
.quiz-shell {
  margin-top: 46px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--midnight-2); padding: 40px; max-width: 760px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
@media (max-width: 640px) { .quiz-shell { padding: 26px 20px; } }

.q-progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 30px; }
.q-progress .fill { height: 100%; width: 0%; background: var(--orange); border-radius: 999px; transition: width var(--snap); }

.q-step { }
.q-count { font-family: var(--font-head); font-size: 12.5px; letter-spacing: 0.18em; color: var(--ink-faint); text-transform: uppercase; }
.q-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(21px, 3vw, 28px); margin-top: 12px; line-height: 1.2; }
.q-opts { display: grid; gap: 10px; margin-top: 26px; }
.q-opt {
  text-align: left; background: var(--midnight); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px; color: var(--ink); font-size: 16px;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.q-opt:hover { border-color: var(--orange); background: var(--midnight-3); transform: translateX(3px); }
.q-back { margin-top: 22px; background: none; border: none; color: var(--ink-faint); font-size: 13.5px; }
.q-back:hover { color: var(--ink-soft); }

/* score reveal */
.score-reveal { text-align: center; padding: 18px 0; }
.score-label { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.score-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(84px, 14vw, 148px); line-height: 1; color: var(--orange);
  letter-spacing: -0.03em; margin-top: 10px;
}
.score-line { font-size: 19px; color: var(--ink-soft); margin-top: 14px; max-width: 40ch; margin-inline: auto; }
.blind { display: grid; gap: 10px; margin-top: 34px; text-align: left; }
.blind-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--midnight); }
.blind-item .b-tag { color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.blind-item .b-line { color: var(--ink-soft); font-size: 14.5px; margin-top: 5px; }
.gate { margin-top: 34px; }
.gate-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.gate input[type="email"], .gate input[type="text"] {
  flex: 1; min-width: 220px; background: var(--midnight); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 13px 20px; color: var(--ink); font-size: 15.5px; outline: none;
}
.gate input:focus { border-color: rgba(255,255,255,0.5); }

/* the gate's refusal. Deliberately not orange — orange is the answer,
   and being turned away is not one. */
.gate-error {
  margin-top: 12px; font-size: 14px; color: var(--ink);
  max-width: 44ch; margin-inline: auto;
}
.gate-error[hidden] { display: none; }
.tiny { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }
.linklike { background: none; border: none; color: var(--ink-faint); font-size: 13px; text-decoration: underline; }
.linklike:hover { color: var(--ink-soft); }

/* the scope (the self-serve proposal) */
.scope { text-align: left; }
.scope-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.scope-head .s-eyebrow { font-family: var(--font-head); font-size: 12.5px; letter-spacing: 0.22em; color: var(--orange); text-transform: uppercase; }
.scope-head h3 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 10px; }
.scope-head .s-sub { color: var(--ink-soft); margin-top: 8px; font-size: 15.5px; }
.phase { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .phase { grid-template-columns: 1fr; gap: 6px; } }
.phase .ph-when { font-family: var(--font-head); color: var(--ink-faint); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.phase h4 { font-size: 18.5px; }
.phase h4 span { color: var(--ink-faint); font-weight: 500; }
.phase p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.phase .ph-target { color: var(--orange); font-weight: 600; }
.invest { display: flex; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.invest .i-label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--font-head); }
.invest .i-num { font-family: var(--font-head); font-weight: 700; font-size: 30px; margin-top: 6px; }
.invest .i-sub { font-size: 13px; color: var(--ink-faint); margin-top: 3px; }
.guarantee { margin-top: 20px; font-size: 15px; color: var(--ink-soft); border-left: 3px solid var(--orange); padding-left: 16px; }
.scope-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.first-hunt { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }

/* ---------- the scoping brain: follow-ups, read, verdict ---------- */

/* "or answer in your own words" — the free-text lane beside the options */
.q-free { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.q-free input {
  flex: 1 1 220px; background: var(--midnight); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; color: var(--ink);
  font-family: var(--font-body); font-size: 14.5px;
}
.q-free input:focus { border-color: var(--line-strong); outline: none; }

/* Torvo is thinking — the one place the site admits to a wait */
.ai-wait { color: var(--ink-faint); font-size: 15px; margin-top: 30px; font-family: var(--font-head); }
.ai-wait .dots { animation: aiDots 1.4s steps(4, end) infinite; }
@keyframes aiDots { 0% { opacity: 0.25; } 50% { opacity: 1; } 100% { opacity: 0.25; } }

.ai-read { margin-top: 30px; }
.ai-read-line {
  color: var(--orange); font-family: var(--font-head); font-weight: 500;
  font-size: clamp(17px, 2.3vw, 21px); line-height: 1.35;
  max-width: 34ch; margin: 0 auto 16px;
}
.ai-read .btn { margin-top: 18px; }

/* the qualification verdict — orange only when the answer is yes */
.verdict { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 16px; margin-top: 26px; }
.verdict .v-label {
  font-family: var(--font-head); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.verdict .v-line { font-size: 17px; color: var(--ink); margin-top: 7px; line-height: 1.45; max-width: 46ch; }
.verdict.v-now { border-left-color: var(--orange); }
.verdict.v-now .v-label { color: var(--orange); }
.verdict.v-not_yet .v-line { color: var(--ink-soft); }

/* ---------- booking modal (the Luubu scheduler, in-page) ---------- */

.book-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 8, 20, 0.82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex;              /* the panel stretches to fill */
  padding: 16px;              /* a gutter, so the page still frames it */
}
.book-overlay[hidden] { display: none; }

/* full-size on purpose: the scheduler needs room to show a month and a
   day's slots side by side. Cap it with a max-width here if it ever
   looks stretched on a very wide screen. */
.book-panel {
  position: relative;
  flex: 1 1 auto;
  display: flex; flex-direction: column; min-height: 0;
  background: var(--midnight-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 44px 10px 10px;
  animation: bookIn var(--snap) both;
}
@keyframes bookIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .book-panel { animation: none; } }

.book-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: none; color: var(--ink-faint);
  font-family: var(--font-head); font-size: 30px; line-height: 1;
  padding: 2px 10px 6px;
}
.book-close:hover { color: var(--ink); }

/* form_embed.js sets an inline height from the widget's own content, which
   can exceed the panel — so the wrapper scrolls rather than clipping it */
.book-frame { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; border-radius: 8px; }
.book-frame iframe {
  display: block; width: 100%; height: 100%; min-height: 540px;
  /* the Luubu widget is dark-themed, so match the panel — a white
     backing flashes behind it, and shows at the edges whenever the
     widget's own page is shorter than the frame */
  border: 0; background: var(--midnight-2);
  opacity: 0; transition: opacity var(--snap);
}
/* held back until the widget says it has arrived, so nothing half-drawn
   is ever shown — see the lens below */
.book-frame.ready iframe { opacity: 1; }
.book-frame.ready .book-loading { display: none; }

/* ---------- the lens, finding focus ---------- */

.book-loading {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  background: var(--midnight-2); border-radius: 8px;
  color: rgba(255, 255, 255, 0.16);   /* the lens body inherits this */
  padding: 24px; text-align: center;
}
.book-loading-line {
  font-family: var(--font-head); font-size: 15px; color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* the mark itself: a lens that never stops being a lens, a sweep that
   circles it, and the orange focal point drawing in — one orange thing,
   as the law says */
.lens-sweep { stroke: rgba(255, 255, 255, 0.5); transform-origin: 32px 32px; animation: lensSweep 1.6s linear infinite; }
.lens-pupil { fill: var(--orange); transform-origin: 32px 32px; animation: lensFocus 1.6s ease-in-out infinite; }
@keyframes lensSweep { to { transform: rotate(360deg); } }
@keyframes lensFocus {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.72); opacity: 0.75; }
}

.book-escape { font-size: 13.5px; color: var(--ink-faint); text-decoration: underline; }
.book-escape:hover { color: var(--ink-soft); }

/* no spinning for anyone who asked for stillness — the mark just sits
   there, focused, which is the resting state anyway */
@media (prefers-reduced-motion: reduce) {
  .lens-sweep, .lens-pupil { animation: none; }
}

/* edge to edge on a phone — a gutter just wastes the only space there is */
@media (max-width: 640px) {
  .book-overlay { padding: 0; }
  .book-panel { border: 0; border-radius: 0; padding: 40px 6px 6px; }
}

/* the page behind must not scroll while the scheduler is open */
html.book-open, html.book-open body { overflow: hidden; }

/* ---------- patterns ---------- */
.pattern-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--midnight-2); padding: 32px; margin-top: 40px; }
.pattern-id { font-family: var(--font-head); color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
.pattern-body { font-family: var(--font-head); font-weight: 500; font-size: clamp(19px, 2.6vw, 26px); line-height: 1.35; margin-top: 14px; max-width: 34ch; }
.pattern-body .found { color: var(--orange); }
.pattern-locked { opacity: 0.55; }
.pattern-locked .pattern-body { filter: blur(5px); user-select: none; }
.pattern-foot { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--midnight-2); display: flex; flex-direction: column; }
.price.hot { border-color: var(--orange); }
.price .pl-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.price .pl-amount { font-family: var(--font-head); font-weight: 700; font-size: 38px; margin-top: 14px; letter-spacing: -0.02em; }
.price .pl-amount span { font-size: 15px; color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }
.price ul { margin: 18px 0 26px; padding-left: 0; list-style: none; color: var(--ink-soft); font-size: 14.5px; display: grid; gap: 9px; flex: 1; }
.price li::before { content: "·"; color: var(--orange); font-weight: 700; margin-right: 9px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 80px; color: var(--ink-faint); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-dict .term { color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.foot-dict .def { margin-top: 5px; max-width: 36ch; }
.foot-line { margin-top: 44px; font-size: 13px; }

/* ---------- toast: torvo noticed ---------- */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  max-width: 330px; background: var(--midnight-3);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--snap), transform var(--snap);
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast .t-head { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; }
.toast .t-body { font-size: 14px; color: var(--ink-soft); margin-top: 7px; }
.toast .t-row { display: flex; gap: 14px; margin-top: 12px; align-items: center; }

/* ---------- helpers ---------- */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* focus visibility */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- the exit-value calculator (value.html) ---------- */

.calc { margin-top: 44px; max-width: 760px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .calc-grid { grid-template-columns: 1fr; } }
.field { display: block; }
.field-label { display: block; font-family: var(--font-head); font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.field-note { color: var(--ink-faint); font-weight: 400; }
.field select, .field input[type="text"], .field input[type="email"] {
  width: 100%; background: var(--midnight); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; color: var(--ink);
  font-family: var(--font-body); font-size: 15px;
}
.field select:focus, .field input:focus { border-color: var(--line-strong); outline: none; }
.field-money { position: relative; }
.field-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.field-money input { padding-left: 28px !important; }
.calc .btn { margin-top: 26px; }
.calc-error { margin-top: 18px; font-size: 14px; color: var(--ink); max-width: 52ch; }
.calc-error[hidden] { display: none; }

/* the three tiers */
/* the nav is fixed, so scrolling the result to the top would park it
   underneath — land it clear of the bar instead */
.calc-result { scroll-margin-top: 110px; }
.vres { margin-top: 64px; }
.vres-eyebrow { font-family: var(--font-head); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.vtiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 860px) { .vtiers { grid-template-columns: 1fr; } }
.vtier { border: 1px solid var(--line); border-radius: var(--radius); background: var(--midnight-2); padding: 26px; }
.vtier.hot { border-color: var(--orange); background: var(--orange-soft); }
.vt-label { font-family: var(--font-head); font-size: 13.5px; color: var(--ink-soft); min-height: 2.6em; }
.vt-mult { font-family: var(--font-head); font-weight: 700; font-size: 42px; margin-top: 10px; letter-spacing: -0.02em; }
.vt-ev { font-family: var(--font-head); font-size: 20px; color: var(--ink-soft); margin-top: 2px; }
.vt-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }

/* the headline sum */
.vheadline { margin-top: 36px; border-left: 3px solid var(--orange); padding-left: 20px; }
.vh-label { font-family: var(--font-head); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.vh-line { font-family: var(--font-head); font-weight: 500; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.35; margin-top: 10px; max-width: 30ch; }
.vh-sub { font-size: 15px; color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }

.vsecond { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--midnight-2); }
.vs-label { font-family: var(--font-head); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.vs-line { margin-top: 10px; font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }

/* assumptions — published, not buried: open it and every number is there */
.vassume { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.vassume summary { font-family: var(--font-head); font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.vassume summary:hover { color: var(--ink); }
.vassume ul { margin: 16px 0 0 18px; display: grid; gap: 12px; }
.vassume li { font-size: 14.5px; color: var(--ink-faint); line-height: 1.6; max-width: 72ch; }
.vassume strong { color: var(--ink-soft); }

.vgate { margin-top: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; }
.vg-line { font-size: 16.5px; color: var(--ink); max-width: 50ch; }
.vgate .gate-row { margin-top: 16px; }
.vgate input { background: var(--midnight); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); font-family: var(--font-body); font-size: 15px; flex: 1 1 200px; }
.vgate input:focus { border-color: var(--line-strong); outline: none; }
