/* POLUGA site styles v2 (taste-skill redesign)
   Design read: brand-preserving redesign of a B2B advisory site for owner-operated
   SMEs; sober, numbers-first financial language; native CSS, Geist + Geist Mono.
   Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 4 / VISUAL_DENSITY 4.

   Shape rule:   controls (buttons, inputs) 10px, containers 16px, tags 6px.
   Theme rule:   index + simulator are dark navy (brand); guide is light (reading page,
                 opt in with <body class="theme-light">). No section inverts mid-page.
   z-index scale: grain 1, content 2, nav 50, skip link 100.
   Filename is versioned on purpose: /assets/* is served with immutable caching. */

/* ── Fonts (self-hosted, Latin + Latin Extended for č ć š ž đ) ───────────── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --navy-950: #07111f;
  --navy-900: #0b1a2e;
  --navy-800: #11243d;
  --navy-700: #1a365d; /* brand navy */
  --navy-600: #244876;

  --bg: var(--navy-950);
  --bg-raised: var(--navy-900);
  --surface: var(--navy-800);
  --line: rgba(160, 188, 222, 0.12);
  --line-strong: rgba(160, 188, 222, 0.24);
  --ink: #edf1f6;
  --ink-2: #aebbcc;
  --ink-3: #8394aa;

  --gold: #f59e0b; /* brand gold */
  --gold-hover: #fbb13c;
  --gold-ink: #07111f;
  --gold-text: #f5a623;
  --gold-soft: rgba(245, 158, 11, 0.12);
  --gold-line: rgba(245, 158, 11, 0.36);

  --positive: #4ade80;
  --negative: #f87171;

  --r-control: 10px;
  --r-box: 16px;
  --r-tag: 6px;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 136px);
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lift: 0 30px 60px -30px rgba(1, 7, 18, 0.85), 0 2px 8px rgba(1, 7, 18, 0.35);

  color-scheme: dark;
}

.theme-light {
  --bg: #f6f8fb;
  --bg-raised: #ffffff;
  --surface: #eef2f7;
  --line: rgba(26, 54, 93, 0.12);
  --line-strong: rgba(26, 54, 93, 0.22);
  --ink: #0d1b2e;
  --ink-2: #3c4d63;
  --ink-3: #5a6a80;
  --gold-text: #9a5b00;
  --gold-soft: rgba(245, 158, 11, 0.14);
  --positive: #15803d;
  --negative: #b91c1c;
  --shadow-lift: 0 24px 48px -28px rgba(26, 54, 93, 0.45), 0 1px 3px rgba(26, 54, 93, 0.12);
  color-scheme: light;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fixed grain overlay: never on scrolling containers (perf). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.theme-light::after { opacity: 0.035; }

main, header, footer, section { position: relative; z-index: 2; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* Figures: Geist with tabular numerals (mono spreads large figures apart). */
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--r-control);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ── Buttons & links ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -12px rgba(245, 158, 11, 0.55);
}
.btn-primary:hover { background: var(--gold-hover); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-quiet:hover { border-color: var(--ink-3); background: rgba(160, 188, 222, 0.06); }

.btn[disabled], .btn[aria-busy='true'] { opacity: 0.7; cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.text-link:hover { text-decoration-color: var(--gold); }
.text-link .icon { width: 16px; height: 16px; color: var(--gold-text); transition: transform 0.3s var(--ease-out); }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 17, 31, 0.9); }
.theme-light .nav { background: rgba(246, 248, 251, 0.8); }
.theme-light .nav.is-scrolled { background: rgba(246, 248, 251, 0.94); }
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; border-radius: var(--r-tag); }
.nav-logo img { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-control);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(160, 188, 222, 0.07); }
.nav-links a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-links .btn { min-height: 40px; padding: 0 16px; margin-left: 10px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: transparent;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a:not(.btn) { height: 48px; font-size: 17px; }
  .nav-links a[aria-current='page'] { box-shadow: inset 2px 0 0 var(--gold); }
  .nav-links .btn { margin: 8px 0 0; min-height: 48px; }
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 20ch;
}
.section-lede {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.3vw, 1.125rem);
  color: var(--ink-2);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 9vh, 96px) clamp(64px, 11vh, 120px);
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(36, 72, 118, 0.55), rgba(26, 54, 93, 0.18) 55%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 4.3vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
}
.hero-title span { display: block; color: var(--gold); }
.hero-sub {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(1.06rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .enter { opacity: 0; transform: translateY(18px); animation: enter 0.9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  @keyframes enter { to { opacity: 1; transform: none; } }
}

/* Runway widget: a real, working mini-simulator (same formulas as simulator.html) */
.runway {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 54, 93, 0.55), rgba(17, 36, 61, 0.9));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-box);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(22px, 2.6vw, 30px);
}
.runway-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.runway-head h2 { font-size: 17px; letter-spacing: -0.01em; }
.runway-head p { font-size: 13px; color: var(--ink-3); }
.runway-fields { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field-help { font-size: 13px; color: var(--ink-3); }
.field-error { font-size: 13.5px; color: var(--negative); }
.field-error:empty { display: none; }

.input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: rgba(7, 17, 31, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.input.num { font-size: 15.5px; }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
.input[aria-invalid='true'] { border-color: var(--negative); }
.theme-light .input { background: #fff; }

.runway-result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: end;
}
.runway-label { font-size: 13px; color: var(--ink-3); }
.runway-value { margin-top: 4px; font-size: clamp(2.2rem, 3.4vw, 2.8rem); font-weight: 500; line-height: 1; color: var(--gold); }
.runway-value small { font-size: 0.42em; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.runway-meta { display: grid; gap: 8px; font-size: 13px; color: var(--ink-3); }
.runway-meta strong { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.runway-meta .is-neg { color: var(--negative); }
.runway-meta .is-pos { color: var(--positive); }
.runway-foot { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.runway-foot small { font-size: 12.5px; color: var(--ink-3); }

/* ── Facts strip (directly under hero) ───────────────────────────────────── */
.facts { border-block: 1px solid var(--line); background: rgba(11, 26, 46, 0.6); }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 30px 28px 32px; display: grid; gap: 6px; align-content: start; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-value { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; color: var(--ink); line-height: 1.1; }
.fact-label { font-size: 14.5px; color: var(--ink-2); max-width: 30ch; }

/* ── Problem bento ───────────────────────────────────────────────────────── */
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--r-box);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  background: var(--bg-raised);
}
.tile h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; max-width: 22ch; }
.tile p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.tile > .icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 22px; }

.tile-feature {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245, 158, 11, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-700), var(--navy-800) 70%);
  border-color: var(--line-strong);
}
.tile-feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 16ch; }
.tile-gap { margin-top: 36px; }
.tile-gap-row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); }
.tile-gap-row + .tile-gap-row { margin-top: 12px; }
.tile-gap-bar { height: 10px; border-radius: 3px; background: var(--ink-2); transform-origin: left; }
.tile-gap-bar.is-gold { background: var(--gold); }
.tile-caption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.tile-outline { background: transparent; border-style: dashed; border-color: var(--line-strong); }

/* ── Services / pricing ──────────────────────────────────────────────────── */
.plans {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-box);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.plan-basic { grid-column: span 5; }
.plan-impl {
  grid-column: span 7;
  border-color: var(--gold-line);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(245, 158, 11, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow-lift);
}
.plan-consult {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px 56px;
  align-items: start;
}
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.plan-flag {
  padding: 5px 10px;
  border-radius: var(--r-tag);
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.plan h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.plan-price .num { font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 500; line-height: 1; color: var(--ink); }
.plan-price span:not(.num) { font-size: 14.5px; color: var(--ink-2); }
.plan-desc { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }
.plan-list { margin-top: 26px; list-style: none; display: grid; gap: 12px; }
.plan-impl .plan-list { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.plan-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.plan-terms { margin-top: auto; padding-top: 28px; font-size: 13.5px; color: var(--ink-3); }
.plan-consult .plan-terms { margin-top: 0; padding-top: 16px; }
.plan-consult .plan-list { margin-top: 0; }

.plans-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.plans-cta p { color: var(--ink-2); }

/* ── Process ─────────────────────────────────────────────────────────────── */
.process { background: var(--bg-raised); border-block: 1px solid var(--line); }
.steps {
  margin-top: 64px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  position: relative;
  counter-reset: step;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--line-strong);
}
.steps::after { background: var(--gold); transform-origin: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1081px) {
    .steps::after {
      animation: draw-line linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 50%;
    }
    @keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 14px;
  position: relative;
}
.step h3 { margin-top: 26px; font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
.step-time { margin-top: 6px; font-size: 13px; color: var(--gold-text); font-family: var(--font-mono); }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ── Manifesto + fit ─────────────────────────────────────────────────────── */
.manifesto-quote {
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: 30ch;
  text-wrap: balance;
}
.manifesto-quote em { font-style: normal; color: var(--gold); }
.manifesto-by { margin-top: 22px; font-size: 15px; color: var(--ink-3); }

.fit-title { margin-top: clamp(64px, 9vw, 112px); font-size: clamp(1.4rem, 2vw, 1.75rem); }
.fit {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.fit-item { padding: 28px 28px 0 0; }
.fit-item + .fit-item { padding-left: 28px; border-left: 1px solid var(--line); }
.fit-item .num { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; line-height: 1; color: var(--ink); }
.fit-item h4 { margin-top: 14px; font-size: 1.05rem; letter-spacing: -0.01em; }
.fit-item p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 36ch; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-panel {
  border-radius: calc(var(--r-box) + 8px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(245, 158, 11, 0.13), transparent 60%),
    linear-gradient(165deg, var(--navy-700), var(--navy-900) 75%);
  padding: clamp(28px, 6vw, 80px);
  box-shadow: var(--shadow-lift);
}
.contact-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.04em; max-width: 14ch; }
.contact-title span { color: var(--gold); }
.contact-lede { margin-top: 20px; max-width: 52ch; font-size: 1.08rem; color: var(--ink-2); }

.lead-form { margin-top: 40px; max-width: 640px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.lead-form .input { min-height: 52px; background: rgba(7, 17, 31, 0.6); }
.lead-form .btn { min-height: 52px; }
.lead-form .cf-turnstile { margin-top: 16px; }
.form-help { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.form-status { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-status.is-error { color: #fecaca; }
.theme-light .form-status.is-error { color: var(--negative); }
.form-status a { color: var(--gold-text); }
.form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-control);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--ink);
}
.form-success .icon { width: 22px; height: 22px; color: var(--positive); margin-top: 1px; }

.contact-direct {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: var(--ink-2);
  font-size: 15px;
}
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.contact-direct a:hover { color: var(--gold); }
.contact-direct .icon { width: 20px; height: 20px; color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 40ch; font-size: 14.5px; color: var(--ink-3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; }
.footer-nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Scroll reveal (IntersectionObserver adds .is-visible) ───────────────── */
.tile-gap-bar { transform: scaleX(var(--w, 1)); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .tile-gap-bar { transform: scaleX(0); transition: transform 1.1s var(--ease-out) 0.3s; }
  .js .is-visible .tile-gap-bar { transform: scaleX(var(--w, 1)); }
}

/* ── Responsive collapse ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .steps::before, .steps::after { top: 20px; bottom: 20px; left: 19px; right: auto; width: 1px; height: auto; }
  .steps::after { display: none; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 22px; padding-bottom: 36px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { grid-row: span 3; }
  .step h3 { margin-top: 8px; }
  .plan-impl .plan-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-feature { grid-row: auto; min-height: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan-basic, .plan-impl, .plan-consult { grid-column: auto; }
  .plan-impl { order: -1; }
  .plan-consult { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .fit-item, .fit-item + .fit-item { padding: 24px 0; border-left: 0; }
  .fit-item + .fit-item { border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child { padding: 22px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .runway-result { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 1fr; }
  .lead-form .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .runway-fields { grid-template-columns: 1fr; }
}

/* ── Utilities ───────────────────────────────────────────────────────────── */
[hidden], .hidden { display: none !important; }
.is-pos { color: var(--positive); }
.is-neg { color: var(--negative); }

/* ── Simulator (tool page) ───────────────────────────────────────────────── */
.tool-head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.tool-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; max-width: 20ch; }
.tool { padding-bottom: clamp(56px, 8vw, 96px); }
.tool-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tool-inputs { position: sticky; top: calc(var(--nav-h) + 16px); }
.tool-results { display: grid; gap: 16px; min-width: 0; }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: clamp(20px, 2.4vw, 28px);
  min-width: 0;
}
.panel-title { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.panel-title-gap { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.panel-fields { margin-top: 18px; display: grid; gap: 16px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-block { width: 100%; margin-top: 24px; }
.tool-note { margin-top: 14px; }

.range-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.range-label output { color: var(--gold); font-size: 15px; }
.range { width: 100%; height: 28px; accent-color: var(--gold); cursor: pointer; }

.empty-state {
  min-height: 420px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-box);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  background: radial-gradient(90% 80% at 100% 0%, rgba(36, 72, 118, 0.35), transparent 70%);
}
.empty-state .icon { width: 34px; height: 34px; color: var(--gold); }
.empty-state h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.empty-state p { color: var(--ink-2); max-width: 46ch; }

.metrics { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 16px 18px; border-radius: var(--r-control); background: rgba(160, 188, 222, 0.05); border: 1px solid var(--line); min-width: 0; }
.metric-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(17, 36, 61, 0.6));
  border-color: var(--line-strong);
}
.metric-label { font-size: 13px; color: var(--ink-3); }
.metric-value { margin-top: 6px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.metric-feature .metric-value { font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold); line-height: 1; }

.risk-badge {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: var(--r-tag);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.risk-stable, .risk-low { color: var(--positive); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); }
.risk-medium { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }
.risk-high { color: var(--negative); background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }

.risk-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--r-box);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.07);
}
.risk-cta > .icon { width: 26px; height: 26px; color: var(--negative); }
.risk-cta-title { font-weight: 600; }
.risk-cta p:not(.risk-cta-title) { font-size: 14.5px; color: var(--ink-2); }

.table-wrap { margin-top: 14px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; white-space: nowrap; }
.data-table thead th:first-child, .data-table tbody th { text-align: left; padding-left: 0; }
.data-table thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); }
.data-table tbody th { font-weight: 500; color: var(--ink-2); }
.data-table tbody tr + tr > * { border-top: 1px solid var(--line); }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-container { position: relative; height: 260px; margin-top: 16px; }

.gate {
  border-color: var(--gold-line);
  background: radial-gradient(80% 100% at 100% 0%, rgba(245, 158, 11, 0.1), transparent 60%), var(--bg-raised);
}
.gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: center; }
.gate-title { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.gate-sub { margin-top: 8px; color: var(--ink-2); max-width: 50ch; }
.gate form { margin-top: 20px; }
.gate .cf-turnstile { margin-top: 14px; }
.gate-preview { padding: 20px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: rgba(7, 17, 31, 0.5); }
.gate-value { margin-top: 6px; font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--gold); }

.priority { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-control); background: var(--gold); color: var(--gold-ink); font-weight: 500; }
.priority-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.insights { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.insight { padding: 18px 20px; border-radius: var(--r-control); border: 1px solid var(--line); background: rgba(160, 188, 222, 0.04); }
.insight h3 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.insight p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.insight strong { color: var(--ink); font-weight: 600; }
.insight strong.is-neg { color: var(--negative); }
.insight strong.is-pos { color: var(--positive); }
.insight-next { margin-top: 20px; }

.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-submit { margin-top: 18px; }

@media (max-width: 1080px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-inputs { position: static; }
  .panel-fields { grid-template-columns: 1fr 1fr; }
  .empty-state { min-height: 0; }
}
@media (max-width: 767px) {
  .panel-fields, .metrics, .charts, .insights, .lead-fields { grid-template-columns: 1fr; }
  .gate-grid { grid-template-columns: 1fr; }
  .gate-preview { order: -1; }
  .risk-cta { grid-template-columns: auto minmax(0, 1fr); }
  .risk-cta .btn { grid-column: 1 / -1; }
  .lead-submit { width: 100%; }
}

/* ── Guide (long-form reading page, light theme) ─────────────────────────── */
.guide-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.guide-title { font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 20ch; }
.guide-title mark {
  color: inherit;
  background: linear-gradient(transparent 60%, rgba(245, 158, 11, 0.38) 60%);
  padding-inline: 0.06em;
}
.guide-lede { margin-top: 22px; max-width: 56ch; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); }
.guide-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; font-size: 14.5px; color: var(--ink-3); }
.guide-meta strong { color: var(--ink); font-weight: 600; }

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  gap: clamp(40px, 7vw, 112px);
  padding-block: 64px clamp(72px, 10vw, 120px);
}
.guide-toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.guide-toc-title { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.guide-toc ol { list-style: none; border-left: 1px solid var(--line-strong); }
.guide-toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.guide-toc a:hover { color: var(--ink); }
.guide-toc a.is-active { color: var(--ink); border-left-color: var(--gold); font-weight: 500; }

.prose { font-size: 17.5px; line-height: 1.72; color: var(--ink); min-width: 0; }
.prose > section + section { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 22px; }
.prose h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }
.prose > section > h3 { margin-top: 36px; margin-bottom: 14px; }
.prose p { max-width: 65ch; }
.prose p + p { margin-top: 18px; }
.prose strong { font-weight: 600; }

.formula {
  margin-block: 28px;
  padding: 22px 24px;
  border-radius: var(--r-control);
  background: var(--navy-800);
  color: #e3ebf5;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.9;
  overflow-x: auto;
}
.formula-title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.formula b { color: #fff; font-weight: 600; }

.note {
  margin-block: 28px;
  padding: 20px 22px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--bg-raised);
  font-size: 16px;
  line-height: 1.65;
}
.note-label { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.note-danger { border-left-color: var(--negative); }
.note-danger .note-label { color: var(--negative); }
.note-success { border-left-color: var(--positive); }
.note-success .note-label { color: var(--positive); }

.causes { margin-block: 28px; list-style: none; counter-reset: cause; display: grid; gap: 12px; }
.causes li {
  counter-increment: cause;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 22px 22px 18px;
  border-radius: var(--r-box);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.causes li::before {
  content: counter(cause);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 15px;
}
.causes p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zone { padding: 18px 18px 20px; border-radius: var(--r-control); background: var(--bg-raised); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); }
.zone-danger { border-top-color: var(--negative); }
.zone-warn { border-top-color: var(--gold); }
.zone-ok { border-top-color: var(--positive); }
.zone .num { font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.zone p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.zone p + p { margin-top: 8px; color: var(--ink); font-weight: 500; }

.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.def { padding: 20px; border-radius: var(--r-control); background: var(--surface); }
.def h4 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.35; }
.def p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.def p + p { margin-top: 10px; color: var(--ink); }

.weeks { margin-block: 32px; list-style: none; position: relative; }
.weeks::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.week { position: relative; padding-left: 40px; }
.week + .week { margin-top: 44px; }
.week::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
}
.week-when { font-family: var(--font-mono); font-size: 13px; color: var(--gold-text); }
.week h3 { margin-top: 4px; margin-bottom: 12px; }
.week p { font-size: 16.5px; color: var(--ink-2); }
.week-goal {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: var(--r-tag);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.case { margin-block: 32px; border-radius: var(--r-box); border: 1px solid var(--line); background: var(--bg-raised); overflow: hidden; }
.case-head { padding: 20px 24px; background: var(--navy-700); color: #fff; }
.case-head p { font-size: 13px; color: #c7d4e4; }
.case-head h3 { margin-top: 2px; color: #fff; font-size: 1.1rem; }
.case-body { padding: 24px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.case-metric { padding: 14px 16px; border-radius: var(--r-control); background: var(--surface); }
.case-metric span { display: block; font-size: 13px; color: var(--ink-3); }
.case-metric strong { display: block; margin-top: 2px; font-family: var(--font-mono); font-weight: 500; font-size: 1.1rem; }
.case-body > p { margin-top: 20px; font-size: 16px; color: var(--ink-2); }
.case-log { margin-top: 24px; list-style: none; display: grid; gap: 14px; }
.case-log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.case-log li span { font-family: var(--font-mono); font-size: 13px; color: var(--gold-text); padding-top: 3px; }
.case-result { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-control); background: rgba(21, 128, 61, 0.08); border: 1px solid rgba(21, 128, 61, 0.25); font-size: 16px; line-height: 1.6; }
.case-result strong { display: block; margin-bottom: 4px; color: var(--positive); }

.guide-cta {
  margin-top: 80px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: calc(var(--r-box) + 8px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: radial-gradient(80% 100% at 100% 0%, rgba(245, 158, 11, 0.16), transparent 60%), var(--bg-raised);
  box-shadow: var(--shadow-lift);
}
.guide-cta h2 { margin-bottom: 12px; }
.guide-cta p { color: var(--ink-2); }
.guide-cta-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .guide-toc { display: none; }
}
@media (max-width: 767px) {
  .prose { font-size: 17px; }
  .zones, .defs { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .case-log li { grid-template-columns: 1fr; gap: 2px; }
  .guide-cta-actions .btn { width: 100%; }
}
