/* ───── Kernora v3 — shared styles ───── */

:root {
  --cream: #F5F1EB;
  --cream-deep: #EFE9DC;
  --surface: #FDFBF7;
  --border: #E6DFD3;
  --border-strong: #D9D0BE;
  --ink: #1A1614;
  --fg-2: #5A4F47;
  --fg-3: #8A7F74;
  --fg-4: #ADA396;
  --coral: #B85C3D;
  --coral-deep: #94472D;
  --coral-soft: #EDD0C0;
  --oat: #EAE4D5;
  --olive: #7A8450;
  --olive-deep: #5F6940;
  --sky: #5089A6;
  --sky-deep: #3A6A82;
  --heather: #6B4F82;
  --amber: #B88A3D;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-1: 0 1px 2px rgba(26,22,20,.04);
  --shadow-2: 0 2px 8px rgba(26,22,20,.06);
  --shadow-3: 0 8px 32px rgba(26,22,20,.08);

  --ink-muted: #5A4F47; /* alias for --fg-2; resolves pricing.html:93 var(--ink-muted) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--coral-deep); text-decoration: none; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  font-feature-settings: 'ss01', 'onum';
}

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--oat);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ───── Editorial primitives ───── */
.kicker {
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker--olive { color: var(--olive-deep); }
.kicker--sky { color: var(--sky-deep); }
.kicker--heather { color: var(--heather); }
.kicker .rule {
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  opacity: .55;
  vertical-align: -1px;
  margin: 0 2px;
  font-size: .95em;
  letter-spacing: 0;
}
.kicker .rule::before {
  content: "◎";
  font-family: var(--font-mono);
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 400;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section--surface { background: var(--surface); }

/* ───── Architecture diagram ───── */
.arch-frame {
  max-width: 1180px;
  margin: 24px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 18px);
  padding: 24px 28px 28px;
  box-shadow: var(--shadow-1, 0 1px 2px rgba(26,22,20,.04));
}
.arch-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--fg-3);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.arch-cap a { color: var(--fg-2); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.arch-cap a:hover { color: var(--coral-deep); border-color: var(--coral); }
.arch-stamp { display: inline-flex; align-items: center; gap: 8px; color: var(--olive-deep); text-transform: uppercase; letter-spacing: .12em; font-size: .6875rem; }
.arch-stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 3px rgba(122,132,80,.18); }
.arch-svg { width: 100%; height: auto; display: block; }
.arch-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.arch-protocols .ap-label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-2);
  font-size: .9375rem;
  margin-right: 4px;
}
.arch-protocols .ap-chip {
  font-family: var(--font-mono);
  font-size: .75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fg-2);
}
.arch-protocols .ap-chip:hover { border-color: var(--coral); color: var(--coral-deep); }
@media (max-width: 820px) {
  .arch-frame { padding: 18px; }
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .kicker { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ───── NAV ───── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 241, 235, .9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
nav.top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--coral);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--coral);
  font-size: 13px;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--fg-2);
  font-size: .9375rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
}
.nav-cta:hover { background: var(--coral-deep); }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--fg-2);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.nav-icon:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface); }

/* ───── Mobile hamburger (shared: index / pricing / docs) ───── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; /* clear nav bar */
    left: 0; right: 0;
    flex-direction: column;
    gap: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 28px;
    z-index: 200;
  }
  .nav-links.nav-open { display: flex; }
  /* restore CTA visibility inside the open drawer */
  .nav-links.nav-open .nav-cta { display: inline-block; }
  /* prevent horizontal scroll */
  nav.top .container { flex-wrap: nowrap; overflow: hidden; }
}

/* ───── Subpage shared chrome (pricing + docs) ───── */
.page-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.page-hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(204,120,92,.18);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin-bottom: 22px;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--coral-deep); font-weight: 500; }
.page-hero .lede {
  font-size: 1.1875rem;
  color: var(--fg-2);
  max-width: 60ch;
  line-height: 1.55;
}
.page-hero .lede em { font-style: italic; color: var(--ink); font-weight: 500; }

/* tiers */
.tiers { padding: 72px 0 88px; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.tier {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--coral);
  padding: 32px 28px 28px;
  border-radius: 8px;
  position: relative;
}
.tier.companion { border-left-color: var(--olive); }
.tier.universal { border-left-color: var(--coral); box-shadow: 0 24px 60px -32px rgba(204,120,92,.4); }
.tier.pro { border-left-color: var(--sky-deep); }
.tier.enterprise { border-left-color: var(--heather); }
.tier-name {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.tier.companion .tier-name { color: var(--olive-deep); }
.tier.universal .tier-name { color: var(--coral-deep); }
.tier.pro .tier-name { color: var(--sky-deep); }
.tier.enterprise .tier-name { color: var(--heather); }
.tier-name .pill {
  background: var(--coral); color: #fff;
  font-size: .5625rem; padding: 2px 7px;
  border-radius: 3px; letter-spacing: .1em;
}
.tier h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem; font-weight: 500;
  letter-spacing: -.015em; line-height: 1.1;
  margin-bottom: 10px;
}
.tier h2 em { font-style: italic; color: var(--coral-deep); font-weight: 400; }
.tier-who {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg-2);
  margin-bottom: 22px;
  line-height: 1.4;
}
.tier-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tier-price .v {
  font-family: var(--font-serif);
  font-size: 2.875rem; font-weight: 400;
  letter-spacing: -.025em; line-height: 1; color: var(--ink);
}
.tier-price .per {
  font-size: .875rem; color: var(--fg-3);
  font-family: var(--font-mono); letter-spacing: .04em;
}
.tier-billing {
  font-size: .8125rem; color: var(--fg-3);
  margin-bottom: 22px;
  font-family: var(--font-mono); letter-spacing: .02em;
}
.tier-cta { margin-bottom: 26px; }
.tier ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 11px;
  font-size: .9375rem; color: var(--fg-2);
  margin-bottom: 24px;
}
.tier ul li { padding-left: 22px; position: relative; line-height: 1.5; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--olive-deep); font-weight: 600; }
.tier ul li.dash { color: var(--fg-3); }
.tier ul li.dash::before { content: "—"; color: var(--fg-3); }
.tier-footnote {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .875rem;
  color: var(--fg-3);
  line-height: 1.5;
}
.tier-footnote code { font-family: var(--font-mono); font-size: .75rem; font-style: normal; }

/* disambig */
.disambig { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 0; }
.disambig-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
  margin-top: 20px;
}
.disambig h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 18ch;
}
.disambig h2 em { font-style: italic; color: var(--coral-deep); }
.disambig-lead { font-size: 1.0625rem; color: var(--fg-2); line-height: 1.6; max-width: 44ch; }
.disambig-body { display: flex; flex-direction: column; gap: 22px; }
.disambig-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.disambig-row:last-child { border-bottom: none; padding-bottom: 0; }
.disambig-row .who {
  font-family: var(--font-mono);
  font-size: .71875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  font-weight: 600;
  padding-top: 4px;
}
.disambig-row .what { font-size: 1rem; color: var(--fg-2); line-height: 1.55; }
.disambig-row .what strong { color: var(--ink); font-weight: 600; }
.disambig-row .what .pick {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-mono); font-size: .78125rem; color: var(--coral-deep);
}

/* FAQ */
.faq { padding: 72px 0 96px; border-top: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q h3 {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  flex: 1; color: var(--ink);
}
.faq-q .ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--coral-deep);
  transition: transform .2s ease, background .2s ease;
}
.faq-item[open] .faq-q .ic { transform: rotate(45deg); background: var(--coral); color: #fff; border-color: var(--coral); }
.faq-a { margin-top: 14px; font-size: 1rem; color: var(--fg-2); line-height: 1.65; max-width: 70ch; }
.faq-a code { font-family: var(--font-mono); background: var(--oat); padding: 2px 6px; border-radius: 3px; font-size: .875rem; }

/* Docs shell */
.doc-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 56px 0 96px;
}
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; }
.toc-h { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-bottom: 12px; }
.toc-section { margin-bottom: 22px; }
.toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.toc a { font-size: .84375rem; color: var(--fg-2); padding: 3px 0 3px 12px; margin-left: -12px; border-left: 2px solid transparent; display: block; }
.toc a:hover { color: var(--ink); border-left-color: var(--border-strong); }
.toc a.new::after {
  content: "NEW"; display: inline-block; margin-left: 8px;
  font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em;
  background: var(--coral); color: #fff; padding: 2px 6px; border-radius: 3px;
  vertical-align: middle; font-weight: 600;
}
.doc-body { max-width: 780px; }
.doc-body h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.1;
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.doc-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc-body h2 em { font-style: italic; color: var(--coral-deep); }
.doc-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 500;
  margin: 32px 0 10px;
}
.doc-body p { margin-bottom: 12px; color: var(--fg-2); line-height: 1.65; }
.doc-body p strong { color: var(--ink); font-weight: 600; }
.doc-body code { font-family: var(--font-mono); font-size: .84375rem; background: var(--oat); padding: 2px 7px; border-radius: 3px; color: var(--ink); }
.doc-body pre {
  background: #1A1614; color: #e8e6df;
  border-radius: 8px;
  padding: 20px 22px; margin: 14px 0 22px;
  overflow-x: auto;
  font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6;
}
.doc-body pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.doc-body pre .c { color: #7A7468; }
.doc-body pre .k { color: var(--amber); font-weight: 600; }
.doc-body pre .s { color: #9DB585; }
.doc-body pre .f { color: var(--coral); }
.callout {
  border-left: 3px solid var(--coral);
  background: rgba(204,120,92,.06);
  padding: 18px 22px; border-radius: 0 6px 6px 0;
  margin: 16px 0 24px;
}
.callout.note { border-left-color: var(--sky-deep); background: rgba(58,106,130,.07); }
.callout.warn { border-left-color: var(--amber); background: rgba(184,138,61,.08); }
.callout-h { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; color: var(--coral-deep); }
.callout.note .callout-h { color: var(--sky-deep); }
.callout.warn .callout-h { color: var(--amber); }
.callout p { margin-bottom: 6px; font-size: .9375rem; }
.callout p:last-child { margin-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: .9375rem; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; padding: 10px 12px; background: var(--oat); border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--fg-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td code { font-size: .78125rem; }
.tbl .status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .71875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tbl .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tbl .status.live { color: var(--olive-deep); }
.tbl .status.live::before { background: var(--olive); }
.tbl .status.beta { color: var(--amber); }
.tbl .status.beta::before { background: var(--amber); }
.tbl .status.deferred { color: var(--fg-3); }
.tbl .status.deferred::before { background: var(--fg-4); }

@media (max-width: 1100px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .tier-grid { grid-template-columns: 1fr; gap: 22px; }
  .disambig-grid { grid-template-columns: 1fr; gap: 32px; }
  .disambig-row { grid-template-columns: 1fr; gap: 8px; }
  .doc-shell { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; max-height: none; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .005em;
  transition: all 150ms ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover { background: var(--coral-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--coral); color: var(--coral-deep); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(2px); }

/* ───── HERO ───── */
.hero {
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(204,120,92,.06), transparent 60%),
    radial-gradient(700px 360px at 5% 70%, rgba(122,132,80,.05), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 18px 0 22px;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral-deep);
  font-weight: 500;
}
.hero-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 38ch;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 30px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.trust-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(122,132,80,.18);
}

/* problem chips above the H1 */
.hero-problems {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hero-problems .chip {
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-problems .chip + .chip { border-left: 1px solid var(--border); }
.hero-problems .chip .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .875rem;
  letter-spacing: 0;
  text-transform: none;
}
.hero-problems .chip--01 .num { color: var(--coral-deep); }
.hero-problems .chip--02 .num { color: var(--olive-deep); }
.hero-problems .chip--03 .num { color: var(--sky-deep); }
.hero-problems a.chip { color: inherit; text-decoration: none; }
.hero-problems a.chip:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-problems .chip + .chip {
  /* visual separator dot replaces border for tighter look */
  border-left: 1px solid var(--border);
}

/* ───── HERO PRODUCT VISUAL ───── */
.product-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.pv-titlebar {
  padding: 12px 16px;
  background: var(--oat);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-dots { display: flex; gap: 6px; }
.pv-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.pv-dots span:nth-child(1) { background: #E67E65; }
.pv-dots span:nth-child(2) { background: #E5B859; }
.pv-dots span:nth-child(3) { background: #8BA364; }
.pv-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--fg-3);
}
.pv-body {
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  min-height: 460px;
}
@media (max-width: 1180px) {
  .pv-body { grid-template-columns: 1fr; }
}
.pv-chat {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--fg-2);
}
.pv-msg {
  margin-bottom: 18px;
}
.pv-msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.pv-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  border: 1px solid currentColor;
}
.pv-avatar.user { color: var(--sky-deep); }
.pv-avatar.ai   { color: var(--coral); }
.pv-msg-body { color: var(--ink); font-family: var(--font-sans); font-size: .9375rem; line-height: 1.65; }
.pv-msg-body p + p { margin-top: 10px; }

.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px 2px;
  margin: 0 1px;
  font-family: var(--font-mono);
  font-size: .75rem;
  background: var(--coral-soft);
  border: 1px solid rgba(184,92,61,.25);
  border-radius: 5px;
  color: var(--coral-deep);
  font-weight: 500;
  vertical-align: 1px;
  cursor: pointer;
  transition: all 120ms ease;
}
.fact-chip:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.fact-chip.is-active {
  background: var(--ink);
  color: var(--coral-soft);
  border-color: var(--ink);
}
.fact-chip .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

.pv-meta-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.pv-meta-row strong { color: var(--olive-deep); font-weight: 500; }

/* lineage panel */
.pv-side {
  padding: 22px 22px 24px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pv-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pv-side-head .id {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--coral-deep);
  font-weight: 500;
  background: var(--coral-soft);
  padding: 3px 8px;
  border-radius: 5px;
}
.pv-side-head .verified {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pv-side-head .verified::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.pv-fact-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
}
.pv-lineage {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.pv-line {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: .8125rem;
}
.pv-line:last-child { border-bottom: none; }
.pv-line .lbl {
  flex: 0 0 92px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-3);
  padding-top: 2px;
}
.pv-line .val {
  flex: 1;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.5;
}
.pv-line .val .muted { color: var(--fg-2); }
.pv-line .val code {
  font-size: .75rem;
  padding: 0 4px;
}
.pv-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
}
.pv-applied .bar {
  flex: 1;
  height: 4px;
  background: var(--oat);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.pv-applied .bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 84%;
  background: var(--olive);
  border-radius: inherit;
}
.pv-applied .count {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--olive-deep);
}

/* footer of side panel = the click cue */
.pv-side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-3);
}

/* ───── TWO PROBLEMS DIPTYCH ───── */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .diptych { grid-template-columns: 1fr; }
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-1);
}
.problem-card--coral { border-top: 3px solid var(--coral); }
.problem-card--olive { border-top: 3px solid var(--olive); }
.problem-card .num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--coral-deep);
  font-feature-settings: 'onum';
  opacity: .8;
}
.problem-card--olive .num { color: var(--olive-deep); }
.problem-card h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
.problem-card h3 em { font-style: italic; }
.problem-card--coral h3 em { color: var(--coral-deep); }
.problem-card--olive h3 em { color: var(--olive-deep); }
.problem-card p.body {
  color: var(--fg-2);
  font-size: .9375rem;
  line-height: 1.7;
}
.problem-card .answer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.problem-card .answer strong {
  font-style: normal;
  font-weight: 500;
}
.problem-card--coral .answer strong { color: var(--coral-deep); }
.problem-card--olive .answer strong { color: var(--olive-deep); }
.problem-card .badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-badge {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-2);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* the joint between the two cards */
.diptych-join {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--coral-deep);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ───── METRICS ───── */
.metrics-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } }
.metric {
  text-align: center;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.metric:first-child { border-left: none; padding-left: 0; }
@media (max-width: 900px) {
  .metric { border-left: none; padding-left: 0; text-align: left; }
}
.metric .v {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--coral-deep);
  font-feature-settings: 'onum', 'tnum';
  line-height: 1;
  margin-bottom: 10px;
}
.metric .l {
  font-size: .875rem;
  color: var(--fg-2);
  font-weight: 500;
  line-height: 1.4;
}
.metric .src {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .75rem;
  color: var(--fg-3);
  margin-top: 6px;
}

/* ───── EVAL CALLOUT ───── */
.eval-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--heather);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  align-items: center;
}
@media (max-width: 900px) { .eval-card { grid-template-columns: 1fr; } }
.eval-card h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 14px;
}
.eval-card h3 em { font-style: italic; color: var(--heather); }
.eval-card .body { color: var(--fg-2); font-size: .9375rem; line-height: 1.7; }
.eval-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eval-bar {
  display: grid;
  grid-template-columns: 110px 1fr 64px;
  gap: 12px;
  align-items: center;
  font-size: .8125rem;
}
.eval-bar .who {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-2);
}
.eval-bar .lane {
  height: 8px;
  background: var(--oat);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.eval-bar .lane::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--coral-soft), var(--coral));
  border-radius: inherit;
}
.eval-bar .num {
  font-family: var(--font-serif);
  font-feature-settings: 'onum', 'tnum';
  color: var(--coral-deep);
  font-weight: 500;
}

/* ───── INSTALL ───── */
.install-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 820px) { .install-wrap { grid-template-columns: 1fr; } }
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.install-card.recommended { border-top: 3px solid var(--coral); }
.install-card .label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral-deep);
}
.install-card h3 { font-size: 1.125rem; }
.install-card p { font-size: .9375rem; color: var(--fg-2); line-height: 1.6; }
.terminal {
  background: #1d1815;
  color: #E8D8B7;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .75rem;
}
.terminal .bar {
  padding: 9px 14px;
  background: #2A2420;
  display: flex;
  gap: 6px;
  align-items: center;
}
.terminal .bar span {
  width: 9px; height: 9px; border-radius: 50%; opacity: .6;
}
.terminal .bar span:nth-child(1) { background: #E67E65; }
.terminal .bar span:nth-child(2) { background: #E5B859; }
.terminal .bar span:nth-child(3) { background: #8BA364; }
.terminal .bar .name {
  margin-left: 10px;
  font-size: .6875rem;
  color: #ADA396;
  letter-spacing: .08em;
}
.terminal .cmd {
  padding: 13px 16px;
  line-height: 1.5;
}
.terminal .prompt { color: #8BA364; user-select: none; }
.terminal .ok { color: #8BA364; }
.terminal .key { color: #E5B859; }
.terminal .com { color: #6B5F54; }

/* ───── FOOTER ───── */
footer.foot {
  background: var(--oat);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-2);
  font-size: .9375rem;
  line-height: 1.55;
  max-width: 32ch;
  margin-top: 10px;
}
.foot-col h6 {
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: var(--fg-2);
  font-size: .9375rem;
  margin-bottom: 10px;
  font-weight: 400;
}
.foot-col a:hover { color: var(--coral-deep); }
.foot-bottom {
  border-top: 1px solid var(--border-strong);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--fg-3);
}

/* ───── PRODUCT-VISUAL CAROUSEL ───── */
.pv-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-visual[data-pv-carousel] { position: relative; }
.pv-slide {
  display: none;
  animation: pv-fade .45s ease both;
}
.pv-slide.is-active { display: block; }
@keyframes pv-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.pv-domain-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
}
.pv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--fg-2);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: background .15s, color .15s, transform .15s;
  z-index: 3;
}
.pv-arrow:hover { background: var(--coral); color: #fff; }
.pv-arrow:active { transform: translateY(-50%) scale(.95); }
.pv-arrow--prev { left: -19px; }
.pv-arrow--next { right: -19px; }
@media (max-width: 720px) {
  .pv-arrow--prev { left: 6px; }
  .pv-arrow--next { right: 6px; }
}

.pv-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 4px 0;
}
.pv-rail-tab {
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding: 14px 4px 6px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  opacity: .55;
  transition: opacity .2s, border-top-color .2s;
  font-family: inherit;
  color: inherit;
}
.pv-rail-tab:hover { opacity: .85; }
.pv-rail-tab.is-active {
  opacity: 1;
  border-top-color: var(--ink);
}
.pv-rail-num {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--fg-3);
}
.pv-rail-tab.is-active .pv-rail-num { color: var(--coral); }
.pv-rail-label {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
}
.pv-rail-sub {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pv-rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 33.333%;
  background: var(--coral);
  transition: transform .35s ease, width .35s ease;
  transform-origin: left;
}
@media (max-width: 720px) {
  .pv-rail { grid-template-columns: 1fr; gap: 0; }
  .pv-rail-tab { border-top: 1px solid var(--border); }
  .pv-rail-progress { display: none; }
}


/* contact modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,13,26,.58); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--coral);
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 32px 32px 28px;
  box-shadow: 0 32px 80px -24px rgba(8,13,26,.32);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0;
  font-size: 28px; line-height: 1; color: var(--fg-3);
  cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--coral-deep); text-transform: uppercase; margin-bottom: 8px;
}
.modal-title { font-family: var(--font-serif); font-size: 28px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.modal-sub { font-size: 14px; color: var(--fg-2); margin: 0 0 20px; line-height: 1.5; }
.modal-form label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--fg-2); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}
.modal-form input, .modal-form textarea {
  display: block; width: 100%; margin-top: 5px;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 9px 11px; box-sizing: border-box;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.modal-form input:focus, .modal-form textarea:focus {
  outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral);
}
.modal-form textarea { resize: vertical; min-height: 72px; font-family: var(--font-sans); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.modal-actions .btn { padding: 9px 16px; font-size: 14px; }
.modal-fineprint { font-size: 12px; color: var(--fg-3); text-align: center; margin: 14px 0 0; }
.modal-fineprint code { font-size: 12px; color: var(--fg-2); }


/* highlighted tier footnote */
.tier-footnote--highlight {
  background: linear-gradient(180deg, rgba(204,120,92,.06), rgba(204,120,92,.10));
  border: 1px solid rgba(204,120,92,.22);
  border-left: 3px solid var(--coral);
  border-radius: 4px;
  padding: 10px 12px !important;
  color: var(--fg-2) !important;
  font-style: normal !important;
}


/* ───── mobile + cross-browser hardening ───── */

/* Prevent horizontal overflow on any device */
html, body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Vendor prefixes for Safari */
.modal-backdrop, .pv-titlebar { -webkit-backdrop-filter: blur(4px); }

/* iOS form input zoom prevention (font-size >= 16px) */
.modal-form input, .modal-form textarea { font-size: 16px; }

/* Touch target floor — 44px for buttons/links inside dense regions */
.btn, .tier-cta, .pv-arrow, .pv-rail-tab, .modal-close, .faq-q {
  min-height: 44px;
}

/* Tablet (≤900px) — collapse 3-up + 2-up inline grids */
@media (max-width: 900px) {
  /* Inline-style grids in index.html: factbook close-up, vs-memory-bank, founder grid, contact card */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .container { padding: 0 22px; }
  .section { padding: 64px 0; }
}

/* Phone (≤640px) — tighten typography, stack hero CTAs, shrink chrome */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }

  /* hero */
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); max-width: 100%; }
  .hero-sub, .hero-paragraph { max-width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }

  /* page hero */
  .page-hero h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); max-width: 100%; }
  .page-hero p { max-width: 100%; }

  /* section heads */
  .section-head h2 { font-size: clamp(1.625rem, 6.5vw, 2.25rem); }

  /* tiers + cards */
  .tier { padding: 22px 22px 26px; }
  .tier h2 { font-size: 1.5rem; }
  .tier-price .v { font-size: 2rem; }

  /* nav */
  header.site-nav { padding: 14px 0; }
  .nav-links { gap: 14px; font-size: .8125rem; }
  .nav-cta { display: none; } /* keep nav uncluttered on phone */

  /* footer */
  .foot-grid { grid-template-columns: 1fr !important; gap: 28px; }

  /* metrics */
  .metrics-grid { grid-template-columns: 1fr 1fr !important; gap: 22px; }

  /* carousel — reduce min-height and arrow size */
  .pv-frame { min-height: auto; }
  .pv-body { min-height: auto; padding: 22px; }
  .pv-arrow { width: 36px; height: 36px; font-size: 16px; }
  .pv-arrow--prev { left: 2px; }
  .pv-arrow--next { right: 2px; }

  /* modal */
  .modal { padding: 14px; align-items: flex-end; }
  .modal-card { padding: 24px 22px 22px; max-height: 88vh; border-radius: 10px 10px 0 0; }
  .modal-title { font-size: 1.5rem; }

  /* inline-styled cards in index.html */
  [style*="padding:30px 36px"],
  [style*="padding:32px"],
  [style*="padding: 32px"] { padding: 22px !important; }
}

/* Very small phones (≤380px) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav-links { gap: 10px; font-size: .75rem; }
  .hero h1 { font-size: 1.875rem; }
  .metrics-grid { grid-template-columns: 1fr !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High-contrast focus indicator (keyboard nav + browsers w/o :focus-visible support) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Print */
@media print {
  header.site-nav, footer, .pv-arrow, .modal, .nav-cta { display: none !important; }
  .section { padding: 24px 0; break-inside: avoid; }
  body { color: #000; background: #fff; }
}

/* ───── HERO TAGLINE + STACKED LAYOUT ───── */
.hero-pre {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.4;
  color: var(--coral-deep);
  margin: 8px auto 20px;
  text-transform: none;
}
.hero-pre em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.06;
  margin: 0 auto 26px;
  max-width: 26ch;
  color: var(--ink);
}
.hero-lead em {
  font-style: italic;
  color: var(--coral-deep);
  font-weight: 500;
}
.hero h1 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-grid {
  grid-template-columns: 1fr !important;
  gap: 56px !important;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-copy {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy > * { max-width: 64ch; }
.hero-problems { margin-bottom: 8px; max-width: none; }
.hero-cta-row { justify-content: center; margin-top: 28px; }
.trust-strip { justify-content: center; margin-top: 22px; }
.pv-wrap { max-width: 1180px; margin: 0 auto; }


/* ───── Olive em variant — for memory/verification axis H2s ───── */
.em--olive {
  font-style: italic;
  color: var(--olive-deep) !important;
}


/* ───── COVERAGE · FACTSIGNAL ───── */
.coverage-frame {
  max-width: 1120px;
  margin: 24px auto 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.coverage-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.coverage-top .kicker { display: inline-flex; margin-bottom: 8px; }
.big-pct {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.04em;
  margin-bottom: 4px;
}
.big-pct .unit { font-size: .5em; color: var(--fg-3); }
.pct-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}
.trend {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 70px;
  margin-bottom: 8px;
}
.trend .col {
  flex: 1;
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-deep) 100%);
  opacity: .55;
  min-height: 6px;
  border-radius: 1px 1px 0 0;
}
.trend .col--today { background: var(--coral); opacity: 1; }
.trend-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--fg-3);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.coverage-h4 {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
  font-weight: 600;
}
.histo {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.bucket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}
.bucket .bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 22px;
  margin-bottom: 6px;
}
.bucket .bars b {
  display: block;
  width: 4px;
  background: var(--olive);
  border-radius: 1px;
}
.bucket .count {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--ink);
}
.bucket .lab {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  color: var(--fg-3);
  text-align: center;
  text-transform: uppercase;
}
.bucket--dead {
  border-color: rgba(184, 92, 61, .35);
  background: rgba(184, 92, 61, .04);
}
.bucket--dead .bars b { background: var(--coral); }
.bucket--dead .lab { color: var(--coral-deep); }
.bucket--thin {
  border-color: rgba(184, 138, 61, .35);
  background: rgba(184, 138, 61, .04);
}
.bucket--thin .bars b { background: var(--amber); }
.bucket--thin .lab { color: var(--amber); }
.bucket--ok .bars b { background: var(--olive); }
.bucket--strong { border-color: rgba(122, 132, 80, .35); }
.bucket--strong .bars b { background: var(--olive-deep); }

.coverage-callout {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0 0 28px;
  padding: 0;
}
.coverage-callout strong { color: var(--ink); font-style: normal; font-weight: 500; }

/* dead zone drilldown */
.deadzone {
  background: rgba(184, 92, 61, .04);
  border: 1px solid rgba(184, 92, 61, .28);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: 22px 26px 18px;
}
.dz-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(184, 92, 61, .18);
}
.kicker--coral { color: var(--coral-deep); }
.dz-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 8px 0 0;
  color: var(--ink);
}
.dz-title em { font-style: italic; color: var(--coral-deep); }
.dz-meta {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--fg-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.dz-list { display: flex; flex-direction: column; gap: 0; }
.dz-row {
  display: grid;
  grid-template-columns: 36px 1fr 110px 130px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(184, 92, 61, .18);
}
.dz-row:last-child { border-bottom: none; }
.dz-signal {
  display: flex;
  align-items: flex-end;
  height: 14px;
  gap: 2px;
}
.dz-signal b {
  display: block;
  width: 4px;
  background: var(--coral);
  border-radius: 1px;
}
.dz-q {
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--ink);
  line-height: 1.45;
}
.dz-ct {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--fg-3);
  letter-spacing: .04em;
}
.dz-cta {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  color: var(--coral-deep);
  text-transform: uppercase;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
}
.dz-cta:hover { color: var(--coral); }

@media (max-width: 820px) {
  .coverage-frame { padding: 22px 18px; }
  .coverage-top { grid-template-columns: 1fr; gap: 28px; }
  .histo { grid-template-columns: repeat(3, 1fr); }
  .dz-row {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    grid-template-areas:
      "sig q"
      "sig ct"
      "sig cta";
  }
  .dz-signal { grid-area: sig; }
  .dz-q { grid-area: q; }
  .dz-ct { grid-area: ct; }
  .dz-cta { grid-area: cta; text-align: left; }
}
