/* =========================================================
   The Pack Marketing — design system
   Light, quiet, Apple-inspired. One accent: brand lime.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --lime: #a3e635;
  --lime-soft: #ecfccb;
  --lime-ink: #4d7c0f;      /* lime readable on white (AA) */
  --dark: #000000;
  --dark-2: #161617;
  --dark-3: #1d1d1f;
  --dark-ink-2: #a1a1a6;
  --danger: #d70015;
  --ok: #248a3d;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-h: 56px;
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--dark); color: #f5f5f7; }
.center { text-align: center; }
@media (max-width: 734px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
  .wrap { padding: 0 18px; }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lime-ink);
  margin: 0 0 12px;
}
.bg-dark .eyebrow { color: var(--lime); }

.display {
  font-size: clamp(44px, 8.4vw, 96px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}
.h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0;
}
.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink-2);
  margin: 0;
}
.bg-dark .lead { color: var(--dark-ink-2); }
.muted { color: var(--ink-2); }
.bg-dark .muted { color: var(--dark-ink-2); }
.small { font-size: 14px; line-height: 1.43; }
.tiny { font-size: 12px; line-height: 1.33; color: var(--ink-3); }
.ink-gradient {
  background: linear-gradient(100deg, #65a30d 0%, #a3e635 55%, #22c55e 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.head-block { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.head-block .lead { margin-top: 18px; }
@media (max-width: 734px) { .head-block { margin-bottom: 44px; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 980px;
  border: 0;
  font-size: 17px; font-weight: 500;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-lime { background: var(--lime); color: #0b0b0b; }
.btn-lime:hover { background: #b5f04a; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(0,0,0,.04); }
.bg-dark .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-sm { min-height: 32px; padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

.link {
  color: var(--lime-ink);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 2px;
}
.link::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover::after { transform: translate(2px, -1px); }
.bg-dark .link { color: var(--lime); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 17px;
  background: currentColor;
  -webkit-mask: url(/assets/img/fox-mask.png) center / contain no-repeat;
  mask: url(/assets/img/fox-mask.png) center / contain no-repeat;
}
.brand { white-space: nowrap; }
.brand b { font-weight: 800; }
@media (max-width: 400px) { .brand span span { display: none; } }
.brand span { font-weight: 400; color: var(--ink-2); }
.brand .brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; margin-left: -4px; transform: translateY(4px); }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: rgba(0,0,0,.8); }
.nav-links a:hover { color: #000; }
.nav-links a[aria-current="page"] { color: #000; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; padding: 2px; border-radius: 980px; background: rgba(0,0,0,.06);
  font-size: 12px; font-weight: 600;
}
.lang-switch button {
  border: 0; background: transparent; padding: 4px 10px; border-radius: 980px; cursor: pointer; color: var(--ink-2);
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.nav-open .menu-btn span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 20px 28px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-menu a { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; }
.mobile-menu .btn { margin-top: 24px; width: 100%; font-size: 17px; padding: 14px; }
.nav-open { overflow: hidden; }

@media (max-width: 1023px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* Language suggestion bar */
.lang-bar {
  background: var(--bg-alt); border-bottom: 1px solid var(--hair);
  font-size: 14px; color: var(--ink-2);
}
.lang-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.lang-bar button { border: 0; background: transparent; cursor: pointer; }
.lang-bar .x { color: var(--ink-3); font-size: 20px; line-height: 1; padding: 4px 8px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; text-align: center; overflow: hidden; }
.hero .lead { max-width: 720px; margin: 24px auto 36px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 14px; border-radius: 980px; background: var(--bg-alt);
  margin-bottom: 28px;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(163,230,53,.25); }
@media (max-width: 734px) { .hero { padding-top: 64px; } }

/* Report preview (hero visual) */
.report {
  position: relative;
  margin: 80px auto 0;
  max-width: 980px;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(180deg, #111112 0%, #000 100%);
  color: #f5f5f7;
  padding: 28px 28px 0;
  text-align: left;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06) inset, 0 40px 120px -40px rgba(101,163,13,.45);
}
.report::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(163,230,53,.18), transparent 70%);
}
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; position: relative; }
.report-top .dots { display: flex; gap: 7px; }
.report-top .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3c; }
.report-title { font-size: 13px; color: var(--dark-ink-2); font-weight: 500; }
.report-tag { white-space: nowrap; font-size: 11px; color: #0b0b0b; background: var(--lime); padding: 3px 9px; border-radius: 980px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.kpi { background: #1c1c1e; border-radius: 16px; padding: 16px 18px; }
.kpi p { margin: 0; font-size: 12px; color: var(--dark-ink-2); }
.kpi strong { display: block; font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.kpi .up { font-size: 12px; color: var(--lime); font-weight: 500; }
.chart { position: relative; margin-top: 12px; background: #1c1c1e; border-radius: 16px 16px 0 0; padding: 18px 18px 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 18px; font-size: 12px; color: var(--dark-ink-2); margin-bottom: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
@media (max-width: 734px) {
  .report { margin-top: 56px; padding: 18px 14px 0; border-radius: 24px 24px 0 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 12px 14px; }
  .report-title { display: none; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.stat p { margin: 8px auto 0; max-width: 200px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 834px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; }
}

/* ---------- Statement / manifesto ---------- */
.statement {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 940px;
  margin: 0 auto;
  color: var(--ink-3);
}
.statement em { font-style: normal; color: var(--ink); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; }
.compare-card { border-radius: var(--radius-lg); padding: 40px; background: var(--bg-alt); }
.compare-card.is-pack { background: var(--dark); color: #f5f5f7; }
.compare-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 24px; }
.compare-card.is-pack h3 { color: #fff; }
.compare-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.compare-card li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.compare-card:not(.is-pack) li { color: var(--ink-2); }
.ico-x, .ico-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ico-x { background: rgba(0,0,0,.07); color: var(--ink-3); }
.ico-check { background: var(--lime); color: #0b0b0b; }
.ico-x svg, .ico-check svg { width: 12px; height: 12px; }
@media (max-width: 834px) {
  .compare { grid-template-columns: 1fr; margin-top: 48px; }
  .compare-card { padding: 28px; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 36px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.18); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--lime-soft); color: var(--lime-ink); margin-bottom: 28px;
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; }
.service > p { color: var(--ink-2); margin: 0 0 28px; }
.service ul { list-style: none; margin: auto 0 0; padding: 24px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 10px; font-size: 15px; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; transform: translateY(-2px); }
@media (max-width: 1023px) { .services { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } .service { padding: 32px 28px; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.calc-panel { background: var(--dark-2); border-radius: var(--radius-lg); padding: 36px; border: 1px solid rgba(255,255,255,.06); }
.field-dark + .field-dark { margin-top: 28px; }
.field-dark .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.field-dark label, .field-dark .label { font-size: 15px; color: var(--dark-ink-2); }
.field-dark output { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --fill: 7%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--lime) var(--fill), #3a3a3c var(--fill));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #3a3a3c; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lime); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 .5px rgba(0,0,0,.1);
}
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #2c2c2e; border-radius: 12px; padding: 3px; gap: 2px;
}
.segmented button {
  border: 0; background: transparent; color: #d1d1d6; cursor: pointer;
  border-radius: 9px; padding: 9px 6px; font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s;
}
.segmented button small { display: block; font-size: 11px; color: var(--dark-ink-2); font-weight: 400; margin-top: 2px; }
.segmented button[aria-pressed="true"] { background: #636366; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.segmented button[aria-pressed="true"] small { color: #e5e5ea; }

.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.calc-results div { background: #1c1c1e; border-radius: 14px; padding: 14px 16px; }
.calc-results p { margin: 0; font-size: 12px; color: var(--dark-ink-2); }
.calc-results strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-results .total { grid-column: 1 / -1; text-align: center; padding: 22px 16px; background: linear-gradient(180deg, rgba(163,230,53,.14), rgba(163,230,53,.04)); border: 1px solid rgba(163,230,53,.25); }
.calc-results .total strong { font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; color: var(--lime); }
.calc-note { margin-top: 28px; font-size: 13px; color: var(--dark-ink-2); line-height: 1.5; }
@media (max-width: 1023px) { .calc { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 734px) { .calc-panel { padding: 24px 18px; } }

/* ---------- Method ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step:not(:first-child) { border-top-color: var(--line); }
.step .num { font-size: 14px; font-weight: 600; color: var(--lime-ink); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { background: #fff; border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; }
.case .metric { font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.case .metric-label { font-size: 15px; color: var(--ink-2); margin: 8px 0 28px; }
.case blockquote { margin: 0 0 28px; font-size: 19px; line-height: 1.42; letter-spacing: -0.015em; color: var(--ink); }
.case footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.case footer b { font-size: 17px; font-weight: 600; }
.case footer span { font-size: 13px; color: var(--ink-2); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--lime-ink); background: var(--lime-soft); padding: 4px 10px; border-radius: 980px; }
@media (max-width: 834px) { .cases { grid-template-columns: 1fr; } .case { padding: 28px; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.founder-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: #ddd; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder blockquote { margin: 0 0 28px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.founder p { color: var(--ink-2); margin: 0 0 16px; }
.founder .eyebrow { color: var(--lime-ink); margin-bottom: 16px; }
.founder p strong { color: var(--ink); font-weight: 600; }
.founder .name { font-size: 19px; font-weight: 600; color: var(--ink); margin: 32px 0 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges span { font-size: 13px; padding: 6px 12px; border-radius: 980px; background: var(--bg-alt); color: var(--ink); }
@media (max-width: 1023px) { .founder { grid-template-columns: 1fr; gap: 40px; } .founder-photo { max-width: 420px; } }

/* ---------- Article cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; min-height: 280px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bg-alt .card { background: #fff; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.18); }
.card .kicker { font-size: 13px; font-weight: 600; color: var(--lime-ink); margin: 0 0 10px; }
.card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; margin: 0 0 12px; }
.card p { color: var(--ink-2); margin: 0 0 20px; font-size: 15px; }
.card .meta { margin-top: auto; font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.card.is-feature { grid-column: span 2; background: var(--dark); color: #f5f5f7; }
.card.is-feature h3 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; }
.card.is-feature .kicker { color: var(--lime); }
.card.is-feature p { color: var(--dark-ink-2); font-size: 17px; max-width: 560px; }
@media (max-width: 1023px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } .card.is-feature { grid-column: auto; } .card { min-height: 0; padding: 28px; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 48px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 7px 4px; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff;
  font-size: 17px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a1a1a6; }
.input:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.input:user-invalid { border-color: var(--danger); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.4; }
select.input:invalid { color: #a1a1a6; }
select.input option { color: var(--ink); }
select.input {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-foot .btn { width: 100%; min-height: 54px; }
.consent { font-size: 12px; color: var(--ink-3); line-height: 1.5; text-align: center; margin: 0; }
.consent a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; line-height: 1.45; }
.form-status.is-ok { display: block; background: #eaf7ee; color: #1d5f2e; }
.form-status.is-err { display: block; background: #fdecee; color: #8a0b16; }
.form-status a { text-decoration: underline; font-weight: 600; }
.form-success { text-align: center; padding: 32px 0; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .check svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; }
.form-success p { color: var(--ink-2); margin: 0 auto; max-width: 420px; }
@media (max-width: 734px) {
  .form-card { padding: 28px 20px; border-radius: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

.inline-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.inline-form .input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.5; padding: 48px 0 28px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-cta p { margin: 0; font-size: 14px; color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { text-decoration: underline; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 734px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 980px;
  background: rgba(29,29,31,.86); color: #fff;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(140%); transition: transform .45s var(--ease);
  font-size: 14px;
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 734px) { .sticky-cta { display: flex; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* =========================================================
   Blog
   ========================================================= */
.blog-hero { padding: 96px 0 56px; text-align: center; }
.blog-hero .lead { max-width: 640px; margin: 20px auto 0; }
@media (max-width: 734px) { .blog-hero { padding: 64px 0 40px; } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--lime); z-index: 120; }

.article-head { padding: 88px 0 48px; }
.article-head .crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.article-head .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-head .h1 { margin: 10px 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--ink-2); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 734px) { .article-head { padding: 56px 0 32px; } }

.toc { background: var(--bg-alt); border-radius: var(--radius-md); padding: 24px 28px; margin: 0 0 56px; }
.toc p { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.prose { font-size: 19px; line-height: 1.6; letter-spacing: -0.014em; color: #333336; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -0.028em; color: var(--ink); margin: 2.4em 0 0; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 1.8em 0 0; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--lime-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose .intro { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -0.018em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: var(--bg-alt); padding: .15em .45em; border-radius: 6px; }

.prose .box { background: var(--bg-alt); border-radius: var(--radius-md); padding: 26px 28px; font-size: 17px; line-height: 1.55; }
.prose .box > * + * { margin-top: .8em; }
.prose .box h3 { margin-top: 0; font-size: 19px; }
.prose .box.dark { background: var(--dark); color: #d1d1d6; }
.prose .box.dark h3, .prose .box.dark strong { color: #fff; }
.prose .box.note { background: #fff8e6; color: #5c4400; }
.prose .box.note strong { color: #3d2d00; }
.prose .formula { background: var(--dark); color: #fff; border-radius: var(--radius-sm); padding: 18px 22px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.5; overflow-x: auto; }
.prose .formula b { color: var(--lime); font-weight: 600; }

.prose .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prose .tiles.two { grid-template-columns: 1fr 1fr; }
.prose .tile { background: var(--bg-alt); border-radius: var(--radius-md); padding: 22px; font-size: 15px; line-height: 1.45; }
.prose .tile .k { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.prose .tile .v { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 4px 0 6px; line-height: 1.05; }
.prose .tile.is-accent { background: var(--dark); color: #d1d1d6; }
.prose .tile.is-accent .k { color: var(--dark-ink-2); }
.prose .tile.is-accent .v { color: var(--lime); }
.prose .tile h3 { margin: 0 0 8px; font-size: 17px; }
.prose .tile ul { padding-left: 1.1em; }
@media (max-width: 680px) { .prose .tiles, .prose .tiles.two { grid-template-columns: 1fr; } }

.prose .steps-list { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.prose .steps-list li { counter-increment: s; position: relative; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 18px 16px 58px; margin: 0; font-size: 17px; line-height: 1.5; }
.prose .steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; }

.prose .checks, .prose .crosses { list-style: none; padding: 0; }
.prose .checks li, .prose .crosses li { position: relative; padding-left: 34px; }
.prose .checks li::before, .prose .crosses li::before { position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.prose .checks li::before { content: "✓"; background: var(--lime); color: #0b0b0b; }
.prose .crosses li::before { content: "✕"; background: rgba(0,0,0,.07); color: var(--ink-2); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.prose th { text-align: left; font-weight: 600; color: var(--ink); background: var(--bg-alt); padding: 12px 16px; white-space: nowrap; }
.prose td { padding: 12px 16px; border-top: 1px solid var(--hair); }
.prose td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }

.journey { list-style: none; padding: 0; display: grid; gap: 10px; }
.journey li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 18px 20px; margin: 0; font-size: 16px; }
.journey li b { color: var(--ink); }
.journey .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.journey .pills span { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 980px; padding: 3px 10px; color: var(--ink); }
@media (max-width: 600px) { .journey li { grid-template-columns: 1fr; gap: 8px; } }

.cta-panel { margin-top: 72px; background: var(--dark); color: #f5f5f7; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; }
.cta-panel h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.028em; margin: 0 0 12px; line-height: 1.1; }
.cta-panel p { color: var(--dark-ink-2); margin: 0 auto 28px; max-width: 480px; font-size: 17px; }

.author { display: flex; gap: 20px; align-items: center; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author b { display: block; font-size: 17px; }
.author p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

.related { margin-top: 72px; }
.related h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; }
.related .cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .related .cards { grid-template-columns: 1fr; } }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-simple { padding: 88px 0 120px; }
.page-simple .prose h2 { font-size: 26px; }
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }

/* prose spacing fixes */
.prose .journey { padding: 0; }
.prose .box > :first-child, .prose .tile > :first-child, .prose > :first-child { margin-top: 0; }
.prose .box p, .prose .tile p { margin-top: 0; }
.prose .box > * + * { margin-top: .8em; }
