/* Self hosted fonts (no third party requests) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ================= Keanan · kea brand =================
   Carbon at rest, bone for light, olive for labels.
   Underwing orange appears only where something moves. */
:root {
  --carbon: #0C0F0C;
  --carbon-2: #161A16;
  --bone: #F4F3EE;
  --bone-2: #ECEBE4;
  --olive: #7E8C6A;
  --olive-ink: #5F6B4E;
  --underwing: #FF7A2F;
  --ash: #77776F;
  --smoke: #55554E;
  --hair: rgba(12, 15, 12, 0.12);
  --hair-light: rgba(255, 255, 255, 0.08);
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand-accent: #FF7A2F;
  --brand-name: "Keanan";
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--carbon);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
::selection { background: var(--underwing); color: var(--carbon); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

h1, h2, h3, .wordmark, .price strong {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 12px 0 22px; }
h3 { font-size: 1.14rem; letter-spacing: -0.02em; }

.uw { position: relative; white-space: nowrap; }
.uw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.14em; background: var(--underwing);
  transform: scaleX(0); transform-origin: left;
  animation: uw-sweep 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.9s forwards;
  z-index: -1;
}
@keyframes uw-sweep { to { transform: scaleX(1); } }

.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}
.mono-label.small { font-size: 0.66rem; display: block; margin-bottom: 10px; }
.mono-label.on-carbon { color: var(--olive); }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.btn:focus-visible { outline: 3px solid var(--underwing); outline-offset: 2px; }
.btn-solid { background: var(--carbon); color: var(--bone); }
.btn-solid:hover { background: var(--underwing); color: var(--carbon); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--carbon); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--underwing); color: var(--carbon); }
.btn-line-light { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(244,243,238,0.3); }
.btn-line-light:hover { box-shadow: inset 0 0 0 1.5px var(--underwing); }
.btn-underwing { background: var(--underwing); color: var(--carbon); }
.btn-underwing:hover { background: var(--bone); transform: translateY(-1px); }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }

/* ================= nav ================= */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; gap: 34px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark .kea-body { fill: var(--carbon); transition: fill 0.25s ease; }
.brand-mark .kea-eye { fill: var(--bone); }
.brand:hover .kea-body { fill: var(--underwing); }
.wordmark { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.045em; color: var(--carbon); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--smoke);
  position: relative; transition: color 0.18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 2px; background: var(--underwing); transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--carbon); }
.nav-links a:hover::after { right: 0; }
.nav-cta { padding: 11px 22px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex: none; order: 1;
  width: 44px; height: 44px; margin-left: -20px; padding: 0;
  background: transparent; color: var(--carbon); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--hair); cursor: pointer;
}
.nav-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--underwing); }
.nav-toggle:focus-visible { outline: 3px solid var(--underwing); outline-offset: 2px; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ================= hero ================= */
.hero { padding: 92px 0 76px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 60px; align-items: center;
}
.hero-copy h1 { margin: 16px 0 22px; }
.hero-sub { font-size: 1.13rem; color: var(--smoke); max-width: 34rem; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.brand-switch { margin-top: 46px; }
.brand-switch-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--hair);
  background: #fff; font: 600 0.86rem var(--sans); letter-spacing: -0.01em; color: var(--carbon);
  cursor: pointer; transition: border-color 0.18s ease, transform 0.18s ease;
}
.chip:hover { border-color: var(--underwing); transform: translateY(-1px); }
.chip.is-active { border-color: var(--carbon); }
.chip:focus-visible { outline: 3px solid var(--underwing); outline-offset: 2px; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ================= product mock ================= */
.hero-visual { position: relative; }
.mock {
  background: var(--carbon-2);
  border: 1px solid var(--hair-light);
  border-radius: 16px; overflow: hidden;
  font-size: 0.74rem; color: var(--bone);
  box-shadow: 0 40px 80px -32px rgba(12, 15, 12, 0.55);
}
.mock-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--hair-light);
}
.mock-brand { display: flex; align-items: center; gap: 9px; }
.mock-kea { width: 22px; height: 22px; }
.mock-name { font-weight: 600; letter-spacing: -0.03em; font-size: 0.9rem; }
.mock-tabs { display: flex; gap: 16px; color: #9A9A90; }
.mock-tabs .is-on { color: var(--bone); }
.mock-actions { display: flex; align-items: center; gap: 10px; }
.mock-kbd { font-family: var(--mono); font-size: 0.72rem; color: var(--ash); }
.mock-run {
  background: var(--brand-accent); color: var(--carbon);
  font-weight: 600; padding: 7px 13px; border-radius: 7px;
  transition: background 0.35s ease;
}
.mock-body { padding: 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mock-stat {
  background: rgba(244, 243, 238, 0.05); border: 1px solid var(--hair-light);
  border-radius: 10px; padding: 11px 12px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.mock-stat-label {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--ash);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-stat-value { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; }
.uw-live { color: var(--brand-accent); transition: color 0.35s ease; }
.mock-chart {
  background: rgba(244, 243, 238, 0.05); border: 1px solid var(--hair-light);
  border-radius: 10px; padding: 13px 13px 9px; margin-top: 9px;
}
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 58px; }
.mock-bars span {
  flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px;
  background: rgba(244, 243, 238, 0.28);
  transition: background 0.3s ease;
}
.mock-bars span:last-child { background: var(--brand-accent); }
.mock:hover .mock-bars span { background: var(--brand-accent); }
.mock-chart-label { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--ash); display: block; margin-top: 7px; }
.mock-rows { margin-top: 9px; }
.mock-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 3px;
  border-top: 1px solid var(--hair-light); color: #C9C8C0;
  white-space: nowrap; overflow: hidden;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,243,238,0.25); flex: none; }
.dot.live { background: var(--brand-accent); box-shadow: 0 0 0 0 rgba(255,122,47,0.5); animation: pulse 2.4s ease infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,122,47,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255,122,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,47,0); }
}
.mock-time { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; color: var(--ash); }
.mock-caption { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--ash); }
.mock-caption em { font-style: normal; font-weight: 600; color: var(--carbon); }

/* ================= marquee ================= */
.marquee {
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  overflow: hidden; padding: 15px 0; background: var(--bone);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--ash);
}
.marquee-track i {
  width: 8px; height: 8px; flex: none;
  background: var(--olive); border-radius: 50%; opacity: 0.5;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover .marquee-track i { background: var(--underwing); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= sections ================= */
.section { padding: 100px 0; }
.section-bone { background: #FBFAF7; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section h2 { max-width: 46rem; }

.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.module {
  background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.module::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--underwing); transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s ease;
}
.module:hover { transform: translateY(-4px); border-color: rgba(12,15,12,0.22); outline: none; }
.module:hover::before { transform: scaleY(1); }
.module-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.module-index { font-family: var(--mono); font-size: 0.7rem; color: var(--olive); letter-spacing: 0.08em; }
.module:hover .module-index { color: var(--underwing); }
.module p { color: var(--smoke); font-size: 0.94rem; text-wrap: pretty; }
.module-dark { background: var(--carbon); border-color: var(--carbon); }
.module-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.module-wide .module-code { margin-top: 0; flex: none; font-size: 0.95rem; }
.module-dark h3 { color: var(--bone); }
.module-dark p { color: #9A9A90; }
.module-code {
  margin-top: 16px; font-family: var(--mono); font-size: 0.82rem;
  color: var(--bone) !important; display: flex; align-items: center; gap: 12px;
}
.toggle { width: 34px; height: 19px; border-radius: 999px; background: var(--underwing); position: relative; display: inline-block; }
.toggle-knob { position: absolute; right: 2.5px; top: 2.5px; width: 14px; height: 14px; border-radius: 50%; background: var(--carbon); }

/* ================= steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 46px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  font: 600 1rem var(--sans); color: var(--bone); background: var(--carbon);
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.step:hover .step-num { background: var(--underwing); color: var(--carbon); }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--smoke); font-size: 0.94rem; text-wrap: pretty; }

/* ================= self host ================= */
.section-carbon { background: var(--carbon); }
.section-carbon h2.on-carbon { color: var(--bone); }
.selfhost-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: center; }
.selfhost-sub { color: #9A9A90; margin-top: 6px; max-width: 32rem; text-wrap: pretty; }
.selfhost-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 11px; }
.selfhost-points li { color: #C9C8C0; font-size: 0.95rem; padding-left: 26px; position: relative; }
.selfhost-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px;
  border-radius: 3px; background: var(--olive); transition: background 0.25s ease;
}
.selfhost-points li:hover::before { background: var(--underwing); }
.selfhost-points code { font-family: var(--mono); font-size: 0.85em; background: rgba(244,243,238,0.1); padding: 2px 7px; border-radius: 6px; }

.terminal {
  background: #090C09; border: 1px solid var(--hair-light); border-radius: 14px;
  overflow: hidden; box-shadow: 0 36px 72px -28px rgba(0,0,0,0.6);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hair-light); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(244,243,238,0.12); }
.terminal-bar em { margin-left: auto; font: 400 0.72rem var(--mono); color: var(--ash); }
.terminal pre { padding: 20px; overflow-x: auto; font: 400 0.8rem/1.8 var(--mono); color: #C9C8C0; }
.t-comment { color: var(--ash); }
.t-prompt { color: var(--underwing); }
.t-out { color: var(--olive); }
.t-accent { color: var(--underwing); }
.t-cursor {
  display: inline-block; width: 8px; height: 1em; margin-left: 4px;
  background: var(--underwing); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ================= pricing ================= */
.section-sub { color: var(--smoke); font-size: 1.05rem; margin-top: 14px; max-width: 36rem; text-wrap: pretty; }
.pilot-strip {
  margin-top: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bone-2); border: 1px solid var(--hair); border-radius: 14px; padding: 20px 24px;
  font-size: 0.98rem; color: var(--smoke);
}
.pilot-strip strong { color: var(--carbon); margin-right: 6px; }
.pilot-strip .btn { flex: none; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--hair); border-radius: 18px;
  padding: 32px 28px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(12,15,12,0.25); outline: none; }
.price-card.is-featured { border: 2px solid var(--carbon); box-shadow: 0 28px 56px -32px rgba(12,15,12,0.45); }
.price-card.is-featured:hover { border-color: var(--underwing); }
.price-card h3 { font-size: 1.15rem; }
.price-tag {
  position: absolute; top: -13px; left: 28px;
  background: var(--underwing); color: var(--carbon);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.price { margin: 16px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.price strong { font-size: 2.7rem; line-height: 1; letter-spacing: -0.03em; }
.price span { color: var(--ash); font-size: 0.9rem; }
.price-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--olive); margin: 10px 0 14px; }
.price-blurb { color: var(--smoke); font-size: 0.93rem; text-wrap: pretty; }
.price-card ul { list-style: none; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: 0.92rem; padding-left: 24px; position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--olive);
}
.price-card:hover li::before { background: var(--underwing); transition: background 0.4s ease; }
.price-card .btn { width: 100%; text-align: center; justify-content: center; }
.agency-panel {
  margin-top: 20px; background: var(--carbon); border-radius: 18px; padding: 36px 40px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; color: #C9C8C0;
}
.agency-panel h3 { color: var(--bone); font-size: 1.45rem; margin: 10px 0 10px; letter-spacing: -0.02em; }
.agency-panel p { font-size: 0.95rem; text-wrap: pretty; }
.agency-price { border-left: 1px solid var(--hair-light); padding-left: 40px; display: flex; flex-direction: column; }
.agency-price .price { margin-top: 0; }
.agency-price .price strong { color: var(--bone); }
.agency-price .price-meta { color: #9A9A90; margin-bottom: 18px; }
.agency-price .btn { align-self: flex-start; }
.agency-more { margin-top: 14px; color: var(--bone); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.agency-more:hover { color: var(--underwing); }

/* ================= proof ================= */
.section-proof { padding-bottom: 60px; }
.proof-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.shot {
  margin-top: 40px; border-radius: 16px; overflow: hidden; border: 1px solid var(--hair);
  box-shadow: 0 40px 80px -40px rgba(12,15,12,0.45); background: #fff;
}
.shot img { display: block; width: 100%; height: auto; }

/* ================= FAQ ================= */
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 0 20px; transition: border-color 0.2s ease; }
.faq-list details:hover { border-color: rgba(12,15,12,0.25); }
.faq-list details[open] { border-color: var(--carbon); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; letter-spacing: -0.015em; padding: 18px 0; font-size: 1rem; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font: 500 1.4rem var(--sans); color: var(--olive);
  transition: transform 0.22s ease, color 0.22s ease; flex: none;
}
.faq-list details:hover summary::after { color: var(--underwing); }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--underwing); }
.faq-list details p { padding: 0 0 18px; color: var(--smoke); font-size: 0.95rem; max-width: 42em; text-wrap: pretty; }

/* ================= CTA ================= */
.cta { background: var(--carbon); overflow: hidden; }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 24px 0; }
.cta h2 { color: var(--bone); margin: 0; }
.cta-kea { position: relative; width: 96px; height: 96px; }
.cta-bird { position: absolute; inset: 0; width: 96px; height: 96px; }
.cta-wing {
  position: absolute; left: -46px; top: 26px; width: 110px; height: 64px;
  fill: var(--underwing); opacity: 0;
  transform: rotate(-8deg) translateX(12px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.cta-inner:hover .cta-wing { opacity: 1; transform: rotate(-8deg) translateX(0) scale(1); }

/* ================= footer ================= */
.footer { background: var(--carbon); color: #9A9A90; padding: 84px 0 22px; border-top: 1px solid var(--hair-light); position: relative; overflow: hidden; }
.footer .wordmark { color: var(--bone); }
.footer .kea-body { fill: var(--bone); }
.footer .brand:hover .kea-body { fill: var(--underwing); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer-brand p { margin-top: 14px; font-size: 0.92rem; max-width: 22rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.footer-cols h4 { color: var(--olive); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 500; margin-bottom: 14px; }
.footer-cols a { display: block; text-decoration: none; font-size: 0.93rem; padding: 5px 0; color: #9A9A90; transition: color 0.18s ease, padding-left 0.18s ease; }
.footer-cols a:hover { color: var(--underwing); padding-left: 5px; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--hair-light); padding-top: 24px;
  font-size: 0.82rem; color: var(--ash);
  position: relative;
}
.footer-tag { line-height: 1.6; }
.footer-status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9A9A90; text-decoration: none;
  border: 1px solid var(--hair-light); border-radius: 999px; padding: 9px 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-status:hover { color: var(--bone); border-color: var(--underwing); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5FBF77; flex-shrink: 0;
  animation: pulse 2.4s ease-out infinite;
}
.footer-mail { margin-top: 24px; display: flex; flex-direction: column; }
.footer-mail a {
  color: #9A9A90; text-decoration: none; font-size: 0.9rem; padding: 3px 0; width: fit-content;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.footer-mail a:hover { color: var(--underwing); padding-left: 5px; }
.footer-word {
  font-size: clamp(5.5rem, 19vw, 18rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.74;
  color: rgba(244,243,238,0.045); text-align: center; user-select: none; pointer-events: none;
  margin: 54px 0 -0.13em; white-space: nowrap;
  transition: color 0.5s ease;
}
.footer:hover .footer-word { color: rgba(244,243,238,0.075); }
.footer-mini { display: flex; gap: 18px; }
.footer-mini a { color: var(--ash); text-decoration: none; transition: color 0.18s ease; }
.footer-mini a:hover { color: var(--underwing); }
.footer-legal .mono-label { margin: 0; }

/* ================= reveal ================= */
.reveal { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .uw::after { animation: none; transform: scaleX(1); }
  .marquee-track { animation: none; }
  .dot.live, .t-cursor { animation: none; }
  .btn, .module, .price-card, .step-num, .chip { transition: none; }
}

/* ================= responsive ================= */
@media (max-width: 980px) {
  .hero-grid, .selfhost-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .modules-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .agency-panel, .proof-head { grid-template-columns: minmax(0, 1fr); }
  .agency-price { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair-light); padding-top: 24px; }
  .pilot-strip { flex-direction: column; align-items: flex-start; }
  .module-wide { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 8px 24px 16px; background: var(--bone);
    border-bottom: 1px solid var(--hair); box-shadow: 0 18px 30px -24px rgba(12, 15, 12, 0.35);
  }
  .nav.is-open .nav-links a { padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--hair); }
  .nav.is-open .nav-links a:last-child { border-bottom: 0; }
  .nav.is-open .nav-links a::after { display: none; }
  .nav.is-open .nav-links a:focus-visible { outline: 3px solid var(--underwing); outline-offset: 2px; border-radius: 4px; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { margin-left: 0; }
  .nav-cta { padding: 10px 14px; font-size: 0.88rem; }
  .section { padding: 66px 0; }
  .hero { padding: 58px 0 50px; }
  .modules-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .price-card.is-featured { order: -1; }
  .mock-tabs { display: none; }
}

@media (max-width: 360px) {
  .nav .wordmark { display: none; }
}

/* ================= Subpages (legal, company) ================= */
.subpage .nav { position: sticky; top: 0; }
.page { padding: 96px 0 130px; }
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 14px 0 10px;
}
.page-updated { color: var(--ink-soft, #5a5f58); font-size: 0.92rem; margin-bottom: 40px; }
.page-updated a { color: inherit; }
.prose { max-width: 720px; }
.prose .lead { font-size: 1.14rem; line-height: 1.65; color: var(--carbon); margin-bottom: 8px; }
.prose h2 {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.prose h3 { font-size: 1.02rem; letter-spacing: -0.01em; margin: 26px 0 8px; }
.prose p, .prose li { line-height: 1.7; color: #3a3f38; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--carbon); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.prose a:hover { text-decoration-color: var(--underwing); }
.prose strong { color: var(--carbon); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 0.95rem; }
.prose th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  padding: 0 14px 10px 0;
  border-bottom: 1.5px solid var(--carbon);
}
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; line-height: 1.55; }
.log-entry { margin-bottom: 56px; }
.log-entry h2 { border-top: 0; padding-top: 0; margin-top: 6px; }
.notfound { padding: 140px 0 160px; }
.notfound-copy { max-width: 460px; line-height: 1.7; color: #3a3f38; margin: 0 0 30px; }
.notfound-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .page { padding: 64px 0 90px; }
  .prose table { display: block; overflow-x: auto; }
}

/* ================= Contact form ================= */
.contact-form { max-width: 640px; margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--olive-ink); margin-bottom: 8px;
}
.form-field .optional { color: var(--ash); text-transform: none; letter-spacing: 0.04em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--carbon);
  background: #FFFFFF; border: 1.5px solid var(--hair); border-radius: 10px;
  transition: border-color 0.15s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--underwing);
}
.form-submit { margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 0.85rem; color: #5a5f58; max-width: 46ch; line-height: 1.6; }
.form-note a { color: inherit; }
.address-field {
  display: flex; align-items: stretch; background: #FFFFFF; border: 1.5px solid var(--hair);
  border-radius: 10px; overflow: hidden; transition: border-color 0.15s ease;
}
.address-field:focus-within { border-color: var(--underwing); }
.form-field .address-field input { border: 0; border-radius: 0; min-width: 0; flex: 1 1 auto; }
.address-field span {
  display: flex; align-items: center; padding: 0 15px; font-family: var(--mono); font-size: 0.85rem;
  color: var(--olive-ink); background: #F6F5F0; border-left: 1.5px solid var(--hair); white-space: nowrap;
}
.pilot-page [tabindex="-1"]:focus { outline: none; }
.setup-email { display: block; font-family: var(--mono); font-size: 0.9rem; color: var(--carbon); padding: 13px 0 0; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0,1fr); } }


/* ---- Pricing page ---- */
.page .pricing-grid { margin-top: 28px; }
.page .pilot-strip { margin: 28px 0 0; }
.pricing-section { margin-top: 72px; }
.pricing-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 22px; letter-spacing: -0.02em; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -36px rgba(12,15,12,0.35); }
.compare { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); line-height: 1.45; }
.compare thead th { vertical-align: bottom; padding: 22px 18px 18px; background: #fff; position: sticky; top: 0; z-index: 2; border-bottom: 2px solid var(--carbon); }
.compare thead th:first-child, .compare tbody th { position: sticky; left: 0; z-index: 1; background: #FBFAF7; }
.compare thead th:first-child { z-index: 3; }
.compare-corner { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft, #5d6461); }
.tier-name { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--carbon); }
.tier-cost { display: block; font-family: var(--mono, ui-monospace, monospace); font-size: 0.74rem; color: var(--ink-soft, #5d6461); margin-top: 4px; }
.tier-flag { display: inline-block; font-family: var(--mono, ui-monospace, monospace); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--underwing); color: #fff; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; }
.tier-link { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--carbon); text-decoration: underline; text-underline-offset: 3px; }
.tier-link:hover { color: var(--underwing); }
.compare tbody th { font-weight: 600; color: var(--carbon); width: 200px; }
.compare tbody tr.group th { background: #F4F3EE; color: var(--ink-soft, #5d6461); font-family: var(--mono, ui-monospace, monospace); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 18px; position: static; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:not(.group):hover td, .compare tbody tr:not(.group):hover th { background: #FCFBF8; }
.compare tbody tr:not(.group):hover td.is-featured { background: rgba(245,110,40,0.1); }
.compare .is-featured { background: rgba(245,110,40,0.06); }
.compare thead th.is-featured { background: rgba(245,110,40,0.08); border-top: 3px solid var(--underwing); border-radius: 12px 12px 0 0; }
.compare .yes, .compare .no { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.compare .yes::before, .compare .no::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background-position: center; background-repeat: no-repeat; background-size: 10px; }
.compare .yes::before { background-color: rgba(46,125,50,0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.compare .no { color: var(--ink-soft, #5d6461); }
.compare .no::before { background-color: rgba(12,15,12,0.08); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6461' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.compare .muted { color: var(--ink-soft, #5d6461); }
.compare td a { text-decoration: underline; text-underline-offset: 3px; font-size: 0.82rem; }
.compare td strong { font-weight: 700; color: var(--carbon); }
.tier { padding-top: 48px; border-top: 1px solid var(--hair); }
.tier-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.tier-head h2 { margin-bottom: 8px; }
.tier-lede { color: var(--ink-soft, #5d6461); font-size: 1.05rem; max-width: 56ch; margin: 0; }
.tier-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tier-price .price { margin: 0; }
.tier-price .price strong { font-size: 2.4rem; }
.tier-price .price-meta { margin: 0; }
.tier-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 28px; }
.tier-grid h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft, #5d6461); margin: 0 0 12px; }
.tier-grid h3 + * + h3 { margin-top: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--underwing); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat, linear-gradient(#000 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ticks a, .fine a { text-decoration: underline; text-underline-offset: 3px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
table.mini td, table.mini th { padding: 10px 14px; border-bottom: 1px solid var(--hair); text-align: left; }
table.mini td:last-child, table.mini th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mini tr:last-child td, table.mini tr:last-child th { border-bottom: none; }
table.mini th { font-weight: 700; background: #FBFAF7; }
table.mini .muted { color: var(--ink-soft, #5d6461); font-size: 0.85rem; }
.fine { margin: 0; padding-left: 18px; color: var(--ink-soft, #5d6461); font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) {
  .tier-head, .tier-grid { grid-template-columns: 1fr; }
  .tier-price { text-align: left; align-items: flex-start; }
}

/* ================= app page ================= */
.app-hero { max-width: 760px; margin: 0 auto 12px; text-align: center; }
.app-lead { margin: 0 auto; max-width: 620px; }

.store-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin: 34px 0 14px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 12px;
  background: var(--carbon); color: var(--bone);
  text-decoration: none; min-width: 208px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.store-btn:hover { background: var(--underwing); color: var(--carbon); transform: translateY(-1px); }
.store-glyph { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-kicker { font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.75; }
.store-name { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.store-note { text-align: center; color: var(--ash); font-size: 0.9rem; margin: 0; }

.app-section { max-width: 760px; margin: 62px auto 0; }
.app-h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 18px; }

.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.app-list li {
  padding: 16px 18px; border-radius: 12px;
  background: var(--bone-2); color: var(--smoke);
  font-size: 0.97rem; line-height: 1.55;
}
.app-list strong { color: var(--carbon); font-weight: 600; }

.app-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.app-steps li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--smoke); font-size: 0.97rem; line-height: 1.55;
}
.app-step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--carbon); color: var(--bone);
  font-family: var(--mono); font-size: 0.8rem;
}
.app-aside { margin: 18px 0 0; color: var(--ash); font-size: 0.92rem; line-height: 1.6; }

.app-cta {
  max-width: 760px; margin: 72px auto 0; padding: 34px;
  border-radius: 16px; background: var(--carbon); color: var(--bone);
  text-align: center;
}
.app-cta .app-h2 { color: var(--bone); }
.app-cta p { color: rgba(244, 243, 238, 0.72); margin: 0 0 22px; }
.app-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.app-cta .btn-line { color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(244,243,238,0.3); }
.app-cta .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--underwing); }
.app-cta .btn-solid { background: var(--bone); color: var(--carbon); }
.app-cta .btn-solid:hover { background: var(--underwing); }

@media (max-width: 560px) {
  .store-btn { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .app-cta { padding: 26px 20px; }
}

/* ================= affiliates ================= */
.aff-hero { max-width: 720px; }
.aff-lead { max-width: 600px; }
.aff-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.aff-numbers {
  display: grid; gap: 18px; margin: 64px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.aff-number {
  padding: 26px 24px; border-radius: 16px;
  background: var(--carbon); color: var(--bone);
}
.aff-figure {
  font-family: var(--mono); font-size: 3rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
}
.aff-unit { font-family: var(--mono); font-size: 1.6rem; color: var(--underwing); }
.aff-caption {
  margin: 12px 0 0; font-size: 0.92rem; line-height: 1.5;
  color: rgba(244, 243, 238, 0.66);
}

.aff-section { max-width: 760px; margin: 64px 0 0; }
.aff-h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 18px; }

.aff-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aff-list li {
  padding: 16px 18px; border-radius: 12px; background: var(--bone-2);
  color: var(--smoke); font-size: 0.97rem; line-height: 1.55;
}
.aff-list strong { color: var(--carbon); font-weight: 600; }
.aff-aside { margin: 18px 0 0; color: var(--ash); font-size: 0.92rem; line-height: 1.6; }
.aff-form { max-width: 720px; margin-top: 8px; }

.aff-board-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-start; justify-content: space-between;
}
.aff-linkbox {
  margin-top: 8px; padding: 22px 24px; border-radius: 16px;
  background: var(--bone-2);
}
.aff-linkrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.aff-linkrow code {
  flex: 1 1 320px; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 0.95rem; color: var(--carbon);
  padding: 12px 14px; border-radius: 10px; background: var(--bone);
}

.aff-stats {
  display: grid; gap: 14px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.aff-stat {
  padding: 20px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--hair);
  display: flex; flex-direction: column; gap: 6px;
}
.aff-stat-value {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--carbon);
}
.aff-stat-label {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash);
}

.aff-tablewrap { overflow-x: auto; }
.aff-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.aff-table th, .aff-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.aff-table th {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash); font-weight: 600;
}
.aff-table td { color: var(--smoke); }
.aff-empty {
  padding: 22px; border-radius: 12px; background: var(--bone-2);
  color: var(--ash); font-size: 0.93rem; line-height: 1.6; margin: 0;
}

@media (max-width: 560px) {
  .aff-figure { font-size: 2.4rem; }
}

/* ---- partner dashboard ---- */
.aff-terms {
  margin: 10px 0 0; max-width: 620px;
  color: var(--smoke); font-size: 0.96rem; line-height: 1.55;
}
.aff-linkbuild {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px;
}
.aff-linkbuild label {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash);
}
.aff-linkbuild select {
  padding: 9px 12px; border-radius: 10px; background: var(--bone);
  border: 1px solid var(--hair); color: var(--carbon); font: inherit; font-size: 0.92rem;
}
.aff-stats-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.aff-stat-note {
  margin-top: 4px; font-size: 0.8rem; line-height: 1.45; color: var(--ash);
}
.aff-counts {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px;
  color: var(--ash); font-size: 0.92rem;
}
.aff-counts strong {
  font-family: var(--mono); color: var(--carbon); font-size: 1.05rem; margin-right: 4px;
}
.aff-payform { max-width: 720px; margin-top: 18px; }
.aff-payform select {
  width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--bone);
  border: 1px solid var(--hair); color: var(--carbon); font: inherit;
}
.aff-table td:nth-child(5) { font-family: var(--mono); color: var(--carbon); }

/* ================= checkout ================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.checkout-page [hidden], .thanks-page [hidden], .pilot-page [hidden] { display: none !important; }
.checkout-page { padding-top: 40px; min-height: calc(100vh - 70px); }
.checkout-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px;
  font-size: 0.9rem; font-weight: 500; color: var(--smoke); text-decoration: none;
}
.checkout-back::before { content: "\2190"; transition: transform 0.2s ease; }
.checkout-back:hover { color: var(--carbon); }
.checkout-back:hover::before { transform: translateX(-3px); }
.checkout-page a:not(.btn):focus-visible { outline: 3px solid var(--underwing); outline-offset: 3px; border-radius: 4px; }
.checkout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px; align-items: start;
}
.checkout-summary { position: sticky; top: 100px; }
.checkout-name { font-size: clamp(2.2rem, 4.4vw, 3.1rem); letter-spacing: -0.04em; margin: 12px 0; }
.checkout-summary .price { margin-top: 22px; }
.checkout-summary .price-meta { margin-bottom: 20px; }
.checkout-lines { margin-bottom: 30px; }
.checkout-jump { display: none; width: 100%; margin: -10px 0 34px; }
.checkout-pay { scroll-margin-top: 90px; }
.checkout-lines tfoot th { border-bottom: none; border-top: 1.5px solid var(--carbon); }
.checkout-h {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--smoke); margin: 0 0 14px;
}
.checkout-summary .ticks { font-size: 0.95rem; }
.checkout-assure {
  list-style: none; margin: 28px 0 0; padding: 18px 20px;
  background: var(--bone-2); border: 1px solid var(--hair); border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.checkout-assure li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--smoke); line-height: 1.5; }
.checkout-assure li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--olive);
}
.checkout-assure li:first-child { color: var(--carbon); font-weight: 600; }
.checkout-assure li:first-child::before { background: var(--underwing); }
.checkout-secure {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 24px;
  font-size: 0.9rem; color: var(--smoke); line-height: 1.55;
}
.checkout-secure strong { color: var(--carbon); }
.checkout-secure svg {
  width: 34px; height: 34px; flex: none; padding: 7px; border-radius: 9px;
  background: var(--carbon); fill: none; stroke: var(--bone); stroke-width: 2; stroke-linecap: round;
}
.checkout-legal { margin-top: 18px; font-size: 0.84rem; color: var(--smoke); line-height: 1.6; }
.checkout-legal a { color: var(--carbon); text-underline-offset: 3px; }

.checkout-frame {
  position: relative; min-height: 640px; overflow-anchor: none;
  background: #fff; border: 1px solid var(--hair); border-radius: 18px;
  padding: 12px; box-shadow: 0 28px 56px -36px rgba(12, 15, 12, 0.4);
}
.checkout-element { min-height: 616px; opacity: 0; transition: opacity 0.3s ease; }
.checkout-frame.is-ready .checkout-element { opacity: 1; }
.checkout-skeleton {
  position: absolute; inset: 44px 44px auto; display: flex; flex-direction: column; gap: 12px;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.checkout-frame.is-ready .checkout-skeleton { opacity: 0; visibility: hidden; }
.sk {
  display: block; border-radius: 10px;
  background: linear-gradient(90deg, var(--bone-2) 0%, var(--bone) 45%, var(--bone-2) 90%);
  background-size: 220% 100%; animation: sk-shimmer 1.4s ease-in-out infinite;
}
.sk-line { width: 34%; height: 12px; margin-top: 10px; border-radius: 6px; }
.sk-field { height: 48px; flex: 1; }
.sk-row { display: flex; gap: 12px; }
.sk-button { height: 52px; margin-top: 14px; background: var(--carbon); opacity: 0.12; animation: none; }
.sk-note {
  margin-top: 18px; display: flex; align-items: center; gap: 10px;
  font: 400 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke);
}
.sk-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--underwing); animation: pulse 2.4s ease infinite; }
@keyframes sk-shimmer { to { background-position: -120% 0; } }
.checkout-slow { margin-top: 14px; font-size: 0.88rem; color: var(--smoke); }
.checkout-slow a, .checkout-fallback a:not(.btn) { color: var(--carbon); text-underline-offset: 3px; }
.checkout-fallback {
  background: #fff; border: 1px solid var(--hair); border-top: 3px solid var(--underwing);
  border-radius: 18px; padding: 32px 30px;
}
.checkout-fallback h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 10px; }
.checkout-fallback p { color: var(--smoke); font-size: 0.95rem; margin-bottom: 20px; max-width: 46ch; }
.checkout-fallback .checkout-fallback-help { margin: 18px 0 0; font-size: 0.88rem; }
.checkout-picker .section-sub a { color: var(--carbon); text-underline-offset: 3px; }
.checkout-picker-grid { margin-top: 40px; row-gap: 30px; }
.checkout-card-name { font-size: 1.15rem; letter-spacing: -0.02em; margin: 0; }
.checkout-picker-grid .price-blurb { flex: 1; margin-bottom: 24px; }

.thanks-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.thanks-steps li {
  counter-increment: step; position: relative; padding-left: 46px; margin: 0;
  color: var(--smoke); line-height: 1.6;
}
.thanks-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 8px; background: var(--carbon); color: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; font: 600 0.9rem var(--sans);
}
.thanks-page .thanks-ref { margin: 26px 0 0; font: 400 0.78rem var(--mono); letter-spacing: 0.04em; color: var(--smoke); }
.thanks-page .form-note { margin-top: 24px; }
.prose .btn { text-decoration: none; }
.prose .btn-solid { color: var(--bone); }
.prose .btn-solid:hover { color: var(--carbon); }

@media (prefers-reduced-motion: reduce) {
  .sk, .sk-note::before { animation: none; }
  .checkout-element, .checkout-skeleton { transition: none; }
}
@media (max-width: 980px) {
  .checkout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .checkout-summary { position: static; }
  .checkout-jump { display: inline-flex; }
}
@media (max-width: 640px) {
  .checkout-page { padding-top: 24px; }
  .checkout-back { margin-bottom: 24px; }
  .checkout-frame { padding: 4px; border-radius: 14px; min-height: 600px; }
  .checkout-element { min-height: 590px; }
  .checkout-skeleton { inset: 24px 20px auto; }
  .checkout-fallback { padding: 24px 20px; }
}
