/* =========================================================
   Prism Promo - overrides on top of KB style.css
   ========================================================= */

/* ---- Layout reset (we don't use the KB drawer/marquee) ---- */
:root {
  --content-width-promo: 1180px;
  --topbar-height: 68px;
  /* Parallax shadow offset deltas (unitless, multiplied by 1px in calc).
     JS adjusts these per-element on desktop only. Defaults stay 0 so light /
     dark hard-offset shadows render at base geometry on coarse pointer,
     narrow viewport, or reduced-motion. Cap +/-3px enforced in JS. */
  --sxd: 0;
  --syd: 0;
}
html { scroll-padding-top: 92px; }
body { overflow-x: hidden; }

/* ---- Header (sticky, frosted, all pages) ---- */
.promo-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  height: var(--topbar-height);
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--divider);
}
.promo-brand {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.promo-brand-text {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}
.promo-brand .accent {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
  background: var(--grad-sunset-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="dark"] .promo-brand .accent {
  background: linear-gradient(105deg,
    oklch(0.85 0.28 10) 0%,
    oklch(0.85 0.22 55) 50%,
    oklch(0.7  0.22 310) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promo-brand-mark {
  --sx-base: 2;
  --sy-base: 2;
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--grad-sunset);
  border-radius: 5px;
  border: 1.5px solid var(--ink);
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  transition: box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.promo-header-spacer { flex: 1; }
.promo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme toggle button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"]  .theme-toggle .icon-sun { display: none; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }

/* ---- Buttons ---- */
.btn {
  --sx-base: 4;
  --sy-base: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  --sx-base: 7;
  --sy-base: 7;
  transform: translate(-2px, -2px);
  color: var(--ink);
}
.btn-primary {
  background: var(--grad-sunset);
  color: oklch(1 0 0);
}
.btn-primary:hover { color: oklch(1 0 0); filter: saturate(1.1) brightness(1.05); }
.btn-ghost { background: var(--surface); }
.btn-sm { --sx-base: 3; --sy-base: 3; height: 38px; padding: 0 14px; font-size: 13px; }
.btn-sm:hover { --sx-base: 5; --sy-base: 5; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 18px; }

/* ---- Page shell ---- */
.promo-main {
  width: 100%;
  max-width: var(--content-width-promo);
  margin: 0 auto;
  padding: 0 28px;
}
.promo-section {
  padding: 80px 0;
  position: relative;
}
.promo-section + .promo-section { border-top: 1px dashed var(--divider-strong); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.promo-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.promo-section .section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 36px;
}

/* ---- Hero (landing) ---- */
.promo-hero {
  padding: 56px 0 80px;
  position: relative;
  isolation: isolate;
}
.promo-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40px -10% auto -10%;
  height: 520px;
  background: radial-gradient(ellipse at 40% 50%,
    oklch(0.72 0.26 5 / 0.18) 0%,
    oklch(0.55 0.22 310 / 0.16) 45%,
    transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  animation: hero-drift 20s linear infinite alternate;
}
[data-theme="dark"] .promo-hero::before {
  background: radial-gradient(ellipse at 40% 50%,
    oklch(0.65 0.28 5 / 0.32) 0%,
    oklch(0.5 0.24 310 / 0.28) 50%,
    transparent 80%);
}
@keyframes hero-drift {
  0%   { transform: translateX(-3%) scale(1); }
  100% { transform: translateX(3%) scale(1.05); }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-tone);
  border: 1px solid var(--divider);
  color: var(--ink-soft);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--ink);
  max-width: 14ch;
}
.hero-title .accent {
  background: var(--grad-sunset-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="dark"] .hero-title .accent {
  background: linear-gradient(90deg,
    oklch(0.85 0.28 10) 0%,
    oklch(0.85 0.22 55) 50%,
    oklch(0.7  0.22 310) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 56ch;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-frameworks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-align: center;
}
.hero-frameworks span { display: inline-flex; align-items: center; gap: 8px; }
.hero-frameworks span::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-stage {
  position: relative;
  min-height: 420px;
  z-index: 0;
}
.hero-stage .ai-card {
  position: absolute;
  width: 88%;
  max-width: 380px;
  transform-origin: center;
  pointer-events: none;
}
.hero-text { position: relative; z-index: 2; }
.hero-stage .ai-card.c1 {
  top: 0; right: 0;
  animation: float-a 9s ease-in-out infinite;
}
.hero-stage .ai-card.c2 {
  top: 40%; left: 0;
  animation: float-b 11s ease-in-out infinite;
}
.hero-stage .ai-card.c3 {
  bottom: 0; right: 8%;
  animation: float-a 13s ease-in-out infinite -3s;
}
@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50%      { transform: translateY(-10px) rotate(-2.4deg); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(1.6deg); }
  50%      { transform: translateY(8px) rotate(2.8deg); }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { min-height: 320px; }
  /* Tablet: scale floating cards down so they don't crowd the H1 */
  .hero-stage .ai-card { transform: scale(0.85); }
  .hero-stage .ai-card.c1 { top: 0; right: 0; }
  .hero-stage .ai-card.c2 { top: 38%; left: 0; }
  .hero-stage .ai-card.c3 { bottom: 0; right: 4%; }
}

/* Mobile: switch to a clean stacked column - no overlap, no float */
@media (max-width: 720px) {
  .hero-stage {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
  }
  .hero-stage .ai-card {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    animation: none !important;
  }
}

/* ---- Problem strip ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.problem-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.problem-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-card-hover); }
.problem-card .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.05;
}
.problem-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 920px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---- AI showcase rows ---- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}
.showcase-row.reverse .showcase-art { order: 2; }
.showcase-row.reverse .showcase-text { order: 1; }
.showcase-text .feature-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.showcase-text h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 14px;
  font-weight: 400;
}
.showcase-text p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 14px;
}
.showcase-text blockquote {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin: 12px 0 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--accent);
}
@media (max-width: 920px) {
  .showcase-row { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .showcase-row.reverse .showcase-art,
  .showcase-row.reverse .showcase-text { order: initial; }
}

/* ---- Everything-else grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-tile {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.feature-tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-card-hover); }
.feature-tile .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.feature-tile .icon svg { width: 18px; height: 18px; }
.feature-tile h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.feature-tile p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- Compare strip ---- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.compare-col {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 26px 22px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.compare-col.highlight {
  border: 0;
  background: var(--surface);
  position: relative;
  padding-top: 30px;
}
.compare-col.highlight::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  padding: 2.5px;
  background: var(--grad-sunset);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.compare-col h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.compare-col .price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--divider-strong);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li .v { font-family: var(--font-mono); font-size: 12px; }
.compare-col .v.yes { color: var(--lime-strong); }
.compare-col .v.no  { color: var(--orange-strong); }
.compare-col .v.tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px; border-radius: var(--r-pill);
}
.compare-col .ribbon {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-sunset);
  color: oklch(1 0 0);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  text-transform: uppercase;
}
@media (max-width: 920px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---- Social proof placeholder ---- */
.social-proof {
  background: var(--bg-tone);
  border: 1.5px dashed var(--divider-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
}
.social-proof strong {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---- Final CTA ---- */
.final-cta {
  position: relative;
  text-align: center;
  padding: 96px 0;
  isolation: isolate;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-card);
  margin-bottom: 80px;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center,
    oklch(0.72 0.26 5 / 0.32) 0%,
    oklch(0.55 0.22 310 / 0.22) 45%,
    transparent 75%);
}
[data-theme="dark"] .final-cta::before {
  background: radial-gradient(ellipse at center,
    oklch(0.65 0.28 5 / 0.45) 0%,
    oklch(0.5 0.24 310 / 0.32) 50%,
    transparent 80%);
}
.final-cta h2 {
  font-size: clamp(40px, 6vw, 80px) !important;
  line-height: 0.92;
  margin-bottom: 22px;
}
.final-cta p { color: var(--ink-soft); font-size: 18px; max-width: 50ch; margin: 0 auto 26px; }
.final-cta .hero-actions { justify-content: center; }

/* ---- Pricing page ---- */
.price-card {
  --sx-base: 8;
  --sy-base: 8;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 44px 36px 36px;
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  transition: box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad-sunset);
}
.price-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 120px);
  line-height: 0.86;
  margin: 16px 0 6px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.price-card .price small {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 4px;
}
.price-card .price-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; }
.price-card li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.price-card li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--lime-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--lime);
}
.price-card .btn { width: 100%; justify-content: center; }
.price-card .frameworks {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.byok-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.byok-step {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.byok-step .num {
  --sx-base: 2;
  --sy-base: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-sunset);
  color: oklch(1 0 0);
  font-family: var(--font-display);
  font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  transition: box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 12px;
}
.byok-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 400;
}
.byok-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .byok-steps { grid-template-columns: 1fr; } }

.byok-note {
  margin-top: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* What's included two columns */
.includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.includes-col {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.includes-col h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.includes-col ul { list-style: none; padding: 0; margin: 0; }
.includes-col li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--divider);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.includes-col li:last-child { border-bottom: none; }
.includes-col li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.includes-col.ai li .check { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.includes-col.std li .check { background: var(--accent-2-soft); color: var(--accent-2-strong); border: 1px solid var(--accent-2); }
@media (max-width: 720px) { .includes-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.18s var(--ease);
}
.faq-item[open] {
  --sx-base: 4;
  --sy-base: 4;
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: none;
}
.faq-item p code { background: var(--bg-tone); border-color: var(--divider); }

/* ---- Features page ---- */
.features-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
}
.features-toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.features-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.features-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.features-toc li {
  counter-increment: toc;
  display: block;
  padding: 0;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.features-toc a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.features-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.features-toc a:hover,
.features-toc a.active { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1020px) {
  .features-layout { grid-template-columns: 1fr; }
  .features-toc { display: none; }
}

.feature-block {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}
.feature-block h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.feature-block .lede { color: var(--ink-soft); margin-bottom: 22px; max-width: 56ch; }
.feature-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.feature-figures.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) {
  .feature-figures, .feature-figures.three { grid-template-columns: 1fr; }
}

.fig-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.fig-card .caption {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.fig-card .pin {
  --sx-base: 2;
  --sy-base: 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-sunset);
  color: oklch(1 0 0);
  font-family: var(--font-display);
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fig-card .text { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.fig-card .text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---- SVG mock framing ---- */
.mock-frame {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock-frame .chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-tone);
  border-bottom: 1px solid var(--divider);
}
.mock-frame .chrome .dots { display: flex; gap: 6px; }
.mock-frame .chrome .dots i {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.mock-frame .chrome .dots i:nth-child(1) { background: oklch(0.7 0.18 30); }
.mock-frame .chrome .dots i:nth-child(2) { background: oklch(0.78 0.14 90); }
.mock-frame .chrome .dots i:nth-child(3) { background: oklch(0.72 0.18 150); }
.mock-frame .chrome .url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-frame .body {
  padding: 14px;
  background: var(--bg-tone);
}
.mock-frame.tall .body { padding: 14px 18px; }

/* common SVG widget overrides - colors via tokens */
.mock-frame svg { color: var(--ink); }

/* ---- Coming soon ---- */
.coming-soon {
  min-height: calc(100vh - var(--topbar-height) - 90px);
  display: grid;
  place-items: center;
  padding: 60px 28px;
}
.coming-soon-card {
  --sx-base: 8;
  --sy-base: 8;
  max-width: 560px;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 56px 40px;
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  transition: box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.coming-soon-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-sunset);
}
.coming-soon-card h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 110px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.coming-soon-card p { font-size: 17px; color: var(--ink-soft); max-width: 44ch; margin: 0 auto 26px; }

/* ---- Footer ---- */
.promo-footer {
  border-top: 1px solid var(--divider);
  padding: 36px 28px 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.promo-footer .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.promo-footer .links a {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px dashed transparent;
}
.promo-footer .links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Reveal animations (IO-driven) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-stagger="1"] { transition-delay: 80ms; }
.reveal[data-stagger="2"] { transition-delay: 160ms; }
.reveal[data-stagger="3"] { transition-delay: 240ms; }
.reveal[data-stagger="4"] { transition-delay: 320ms; }

/* Pin scale-in */
.fig-card .pin { transform: scale(0.6); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.fig-card.is-visible .pin { transform: scale(1); opacity: 1; }

/* ---- AI suggestion card layout (used in hero stage and in mocks) ---- */
.ai-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.ai-card .ai-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ai-card .feature-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.severity-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.severity-pill.high {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.severity-pill.med {
  background: var(--orange-soft);
  color: var(--orange-strong);
  border: 1px solid var(--orange);
}
.severity-pill.low {
  background: var(--lime-soft);
  color: var(--lime-strong);
  border: 1px solid var(--lime);
}
.ai-card .body-text {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ai-card .citation {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.ai-card .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-card .pill-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--ink-soft);
}
.ai-card .pill-btn.accept { background: var(--lime-soft); color: var(--lime-strong); border-color: var(--lime); }
.ai-card .pill-btn.dismiss { background: var(--bg-tone); color: var(--ink-faint); }
.ai-card .pill-btn.edit { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.ai-card .meta-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* hide body::before/after blobs because the KB ones are too aggressive on a marketing layout - keep but soften */
body::before { opacity: 0.55; }
body::after  { opacity: 0.55; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fig-card .pin { opacity: 1; transform: none; }
  .promo-hero::before { animation: none; }
  .hero-stage .ai-card { animation: none !important; }
  /* Belt-and-braces: even if JS pushes parallax deltas, keep them at base. */
  .btn, .price-card, .coming-soon-card, .early-access-card,
  .faq-item[open], .fig-card .pin, .byok-step .num, .promo-brand-mark {
    --sxd: 0 !important;
    --syd: 0 !important;
    transition: none !important;
  }
}

/* Coarse pointer (touch) - parallax disabled: shadows stay at base. */
@media (pointer: coarse) {
  .btn, .price-card, .coming-soon-card, .early-access-card,
  .faq-item[open], .fig-card .pin, .byok-step .num, .promo-brand-mark {
    --sxd: 0 !important;
    --syd: 0 !important;
  }
}

/* Mobile fine tune */
@media (max-width: 720px) {
  .promo-header { padding: 10px 16px; gap: 10px; }
  .promo-main { padding: 0 18px; }
  .promo-section { padding: 56px 0; }
  .hero-title { font-size: clamp(54px, 18vw, 110px); }
  .final-cta { padding: 64px 20px; }
  .price-card { padding: 36px 24px 28px; }
}

/* ---- Burger button (KB-style) ---- */
.topbar-burger {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
  flex-shrink: 0;
  padding: 0;
}
.topbar-burger:hover { background: var(--accent); border-color: var(--accent); }
.topbar-burger:active { transform: scale(0.94); }
.topbar-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bg);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}
[data-theme="dark"] .topbar-burger {
  background: var(--ink);
  color: var(--bg);
}
body.menu-open .topbar-burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
body.menu-open .topbar-burger span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
body.menu-open .topbar-burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---- Dropdown menu (replaces left drawer) ---- */
.promo-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 14, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.18s var(--ease);
}
[data-theme="dark"] .promo-dropdown-backdrop { background: rgba(0, 0, 0, 0.4); }
body.menu-open .promo-dropdown-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.promo-dropdown {
  position: fixed;
  top: 60px;
  left: 16px;
  width: 240px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  z-index: 95;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
body.menu-open .promo-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.promo-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm, 8px);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.promo-dropdown-link:hover,
.promo-dropdown-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}
.promo-dropdown-link.active {
  color: var(--accent);
}
.promo-dropdown-link.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.promo-dropdown-divider {
  height: 1px;
  background: var(--divider);
  margin: 6px 8px;
}
.promo-dropdown-locales {
  display: flex;
  gap: 6px;
  padding: 4px 6px 6px;
}
.promo-dropdown-locale {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--r-sm, 8px);
  border: 1px solid var(--divider);
  min-height: 36px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.promo-dropdown-locale:hover,
.promo-dropdown-locale:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}
.promo-dropdown-locale.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
[data-theme="dark"] .promo-dropdown-locale { color: var(--peach-ink-soft); }
[data-theme="dark"] .promo-dropdown-locale.active { color: var(--accent); }

@media (max-width: 479.98px) {
  .promo-dropdown {
    /* width is set inline via JS to viewport-minus-gutters */
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-dropdown { transition: opacity 0.01s, transform 0.01s; transform: none; }
  .promo-dropdown-backdrop { transition: none; }
  .topbar-burger span { transition: none; }
}

/* =========================================================
   Responsive hardening - hierarchy of breakpoints
   ========================================================= */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.mock-frame { overflow: hidden; }
.mock-frame .body { overflow: hidden; }
.mock-frame svg { display: block; max-width: 100%; height: auto; }

/* Soften hero glow on mobile so it doesn't paint outside */
@media (max-width: 720px) {
  .promo-hero::before { inset: -20px -2% auto -2%; height: 360px; }
}

/* Topbar small screens */
@media (max-width: 640px) {
  .promo-header { padding: 10px 14px; gap: 8px; }
  .promo-brand { font-size: clamp(20px, 6.5vw, 26px); gap: 8px; }
  .promo-brand-mark { width: 18px; height: 18px; }
  .promo-header-actions { gap: 8px; }
}
@media (max-width: 420px) {
  .promo-header { padding: 9px 10px; gap: 6px; }
  .promo-brand-mark { width: 16px; height: 16px; }
  .promo-brand { font-size: clamp(18px, 6vw, 22px); gap: 6px; }
  .promo-header-actions .btn-sm {
    height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
    --sx-base: 2;
    --sy-base: 2;
  }
  .theme-toggle { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
  .promo-header-actions .btn-sm { padding: 0 8px; font-size: 10.5px; letter-spacing: 0.03em; }
}

/* Hero text */
.hero-title {
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 720px) {
  .hero-title { font-size: clamp(44px, 13vw, 96px); max-width: 100%; }
  .hero-sub { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(38px, 12.5vw, 64px); letter-spacing: 0.005em; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .hero-title { font-size: clamp(34px, 12vw, 52px); }
}

/* Section padding shrink */
@media (max-width: 480px) {
  .promo-section { padding: 44px 0; }
  .promo-main { padding: 0 14px; }
  .promo-section h2 { font-size: clamp(30px, 8vw, 44px); }
  .promo-section .section-lede { font-size: 15px; margin-bottom: 24px; }
}

/* Compare grid - stack on tablet+narrow phone */
@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-col { padding: 22px 18px 24px; }
}

/* Feature tiles spacing on phone */
@media (max-width: 480px) {
  .feature-tile { padding: 16px; }
  .feature-tile h4 { font-size: 16px; }
}

/* CTA blocks responsive padding */
@media (max-width: 720px) {
  .final-cta { padding: 56px 18px; margin-bottom: 60px; }
  .final-cta h2 { font-size: clamp(34px, 9vw, 56px) !important; }
  .final-cta p { font-size: 16px; }
  .final-cta .hero-actions { flex-direction: column; align-items: stretch; }
  .final-cta .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .final-cta { padding: 44px 14px; border-radius: var(--r-md); margin-bottom: 44px; }
}

/* Pricing card */
@media (max-width: 600px) {
  .price-card { padding: 32px 22px 26px; }
  .price-card h2 { font-size: 24px; }
  .price-card .price { font-size: clamp(64px, 16vw, 96px); }
}
@media (max-width: 380px) {
  .price-card { padding: 26px 16px 22px; }
}

/* FAQ summary wrap */
.faq-item summary {
  word-break: break-word;
  font-size: clamp(15px, 3.5vw, 19px);
}
@media (max-width: 480px) {
  .faq-item summary { padding: 14px 16px; gap: 10px; }
  .faq-item summary::after { font-size: 24px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
}

/* Showcase rows */
@media (max-width: 480px) {
  .showcase-row { gap: 22px; padding: 22px 0; }
  .showcase-text h3 { font-size: clamp(24px, 7vw, 36px); }
}

/* Problem grid spacing */
@media (max-width: 480px) {
  .problem-grid { gap: 14px; }
  .problem-card { padding: 20px; }
  .problem-card h3 { font-size: 19px; }
}

/* Comparison ribbon - keep readable */
.compare-col .ribbon { white-space: nowrap; }

/* Features page - feature block & figures */
.feature-block { scroll-margin-top: 80px; }
@media (max-width: 600px) {
  .feature-block { margin-bottom: 44px; }
  .feature-block h2 { font-size: clamp(28px, 7vw, 42px); }
  .feature-figures, .feature-figures.three { gap: 16px; }
  .fig-card { padding: 14px; gap: 10px; }
  .fig-card .caption { flex-direction: column; gap: 8px; }
  .fig-card .pin { margin-bottom: 2px; }
  .mock-frame .body { padding: 10px; }
  .mock-frame .chrome { padding: 6px 10px; gap: 8px; }
  .mock-frame .chrome .url { font-size: 10px; padding: 2px 8px; }
}

/* Coming-soon */
@media (max-width: 600px) {
  .coming-soon { padding: 40px 14px; min-height: calc(100vh - var(--topbar-height) - 80px); }
  .coming-soon-card { padding: 40px 22px; }
  .coming-soon-card h1 { font-size: clamp(48px, 14vw, 80px); }
  .coming-soon-card p { font-size: 15px; }
}

/* Footer wrap */
@media (max-width: 480px) {
  .promo-footer { padding: 28px 14px 36px; font-size: 11px; }
  .promo-footer .links { gap: 10px 14px; }
}

/* Touch targets */
@media (hover: none) and (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
  .promo-footer .links a { padding: 4px 0; }
  .faq-item summary { min-height: 48px; }
}

/* Dark theme tweak: ensure dropdown surface is visible */
[data-theme="dark"] .promo-dropdown {
  background: var(--surface);
  border-color: var(--ink);
}

/* Make sure no inner container can exceed viewport even when nested */
.promo-main, .promo-section, .promo-hero { min-width: 0; }
.promo-main *, .promo-section * { min-width: 0; }
.promo-section > .promo-main, .promo-hero > * { max-width: 100%; }

/* =========================================================
   Launch readiness - compact inline strip in hero
   ========================================================= */
.hero-launch {
  margin: 20px 0 22px;
}
.launch-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  max-width: 520px;
}
.launch-strip-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.launch-strip-pct {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--grad-sunset-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  flex-shrink: 0;
  min-width: 3.2ch;
  text-align: left;
}
[data-theme="dark"] .launch-strip-pct {
  background: linear-gradient(90deg,
    oklch(0.85 0.28 10) 0%,
    oklch(0.85 0.22 55) 50%,
    oklch(0.7  0.22 310) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.launch-strip-track {
  flex: 1 1 auto;
  max-width: 260px;
  height: 4px;
  background: var(--bg-tone);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--divider);
}
.launch-strip-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-sunset);
  border-radius: var(--r-pill);
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 520px) {
  .launch-strip {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .launch-strip-label {
    flex-basis: 100%;
  }
  .launch-strip-track {
    flex: 1 1 auto;
    max-width: none;
    height: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .launch-strip-fill {
    transition: none !important;
  }
}

/* =========================================================
   Early Access page
   ========================================================= */
.early-access {
  min-height: calc(100vh - var(--topbar-height) - 100px);
  padding: 56px 28px 80px;
  display: block;
}
.early-access-card {
  --sx-base: 8;
  --sy-base: 8;
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 44px 40px 36px;
  box-shadow: calc((var(--sx-base) + var(--sxd, 0)) * 1px) calc((var(--sy-base) + var(--syd, 0)) * 1px) 0 var(--ink);
  transition: box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.early-access-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-sunset);
}
.early-access-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.early-access-title .accent {
  background: var(--grad-sunset-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="dark"] .early-access-title .accent {
  background: linear-gradient(90deg,
    oklch(0.85 0.28 10) 0%,
    oklch(0.85 0.22 55) 50%,
    oklch(0.7  0.22 310) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.early-access-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 52ch;
  line-height: 1.55;
}

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ea-row { display: block; }
.ea-row.ea-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ea-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ea-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ea-req { color: var(--accent); }

.early-access-form input[type="text"],
.early-access-form input[type="email"],
.early-access-form select,
.early-access-form textarea {
  width: 100%;
  min-height: 46px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-tone);
  border: 1.5px solid var(--divider-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-sizing: border-box;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.early-access-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-sans);
}
.early-access-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}
.early-access-form input::placeholder,
.early-access-form textarea::placeholder {
  color: var(--ink-mute);
  opacity: 1;
}
.early-access-form input:hover,
.early-access-form select:hover,
.early-access-form textarea:hover {
  border-color: var(--ink-faint);
}
.early-access-form input:focus,
.early-access-form select:focus,
.early-access-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.early-access-form input:focus-visible,
.early-access-form select:focus-visible,
.early-access-form textarea:focus-visible {
  outline: none;
}

.ea-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ea-error {
  background: var(--orange-soft);
  border: 1.5px solid var(--orange);
  color: var(--orange-strong);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.ea-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.ea-actions .btn { width: 100%; justify-content: center; }
.ea-actions-success { margin-top: 12px; }
.ea-actions-success .btn { width: auto; }

.ea-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin: 8px 0 0;
  text-align: center;
}

[data-theme="dark"] .early-access-form input,
[data-theme="dark"] .early-access-form select,
[data-theme="dark"] .early-access-form textarea {
  background: var(--bg-tone);
  border-color: var(--divider-strong);
  color: var(--ink);
}

@media (max-width: 600px) {
  .early-access { padding: 36px 16px 60px; }
  .early-access-card { padding: 32px 22px 26px; }
  .ea-row.ea-row-2 { grid-template-columns: 1fr; gap: 14px; }
  .early-access-title { font-size: clamp(40px, 12vw, 72px); }
  .early-access-sub { font-size: 15px; }
}
@media (max-width: 380px) {
  .early-access-card { padding: 26px 16px 22px; }
}

/* =========================================================
   Dark theme peach softening
   Replaces near-pure-white text with a warm cream-peach so the
   dark theme echoes the light peach palette. KB style.css is
   untouched. Only --ink-driven surfaces are retouched.
   Contrast: L=0.94 vs bg L=0.14, well above WCAG AA.
   ========================================================= */
[data-theme="dark"] {
  --peach-ink:      oklch(0.94 0.04 60);
  --peach-ink-soft: oklch(0.86 0.05 55);
}

/* Brand wordmark "PRISM" (non-gradient PR span keeps base color) */
[data-theme="dark"] .promo-brand { color: var(--peach-ink); }

/* Topbar CTA pill text on sunset gradient */
[data-theme="dark"] .btn-primary { color: var(--peach-ink); }
[data-theme="dark"] .btn-primary:hover { color: var(--peach-ink); }

/* Generic .btn body text (ghost variant uses --ink) */
[data-theme="dark"] .btn { color: var(--peach-ink); }
[data-theme="dark"] .btn:hover { color: var(--peach-ink); }

/* Section / page headings */
[data-theme="dark"] .promo-section h2,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .feature-block h2,
[data-theme="dark"] .price-card h2,
[data-theme="dark"] .price-card .price,
[data-theme="dark"] .coming-soon-card h1,
[data-theme="dark"] .early-access-title,
[data-theme="dark"] .final-cta h2,
[data-theme="dark"] .showcase-text h3,
[data-theme="dark"] .problem-card h3,
[data-theme="dark"] .feature-tile h4,
[data-theme="dark"] .compare-col h3,
[data-theme="dark"] .byok-step h4,
[data-theme="dark"] .includes-col h3,
[data-theme="dark"] .faq-item summary,
[data-theme="dark"] .fig-card .text strong,
[data-theme="dark"] .ai-card,
[data-theme="dark"] .social-proof strong { color: var(--peach-ink); }

/* Italic blockquote */
[data-theme="dark"] .showcase-text blockquote { color: var(--peach-ink); }

/* Body paragraphs / secondary text that were --ink-soft */
[data-theme="dark"] .promo-section .section-lede,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .problem-card p,
[data-theme="dark"] .showcase-text p,
[data-theme="dark"] .feature-tile p,
[data-theme="dark"] .compare-col li,
[data-theme="dark"] .byok-step p,
[data-theme="dark"] .includes-col li,
[data-theme="dark"] .faq-item p,
[data-theme="dark"] .feature-block .lede,
[data-theme="dark"] .fig-card .text,
[data-theme="dark"] .final-cta p,
[data-theme="dark"] .price-card li,
[data-theme="dark"] .coming-soon-card p,
[data-theme="dark"] .early-access-sub,
[data-theme="dark"] .promo-footer .links a { color: var(--peach-ink-soft); }

/* Dropdown menu items */
[data-theme="dark"] .promo-dropdown-link { color: var(--peach-ink); }
[data-theme="dark"] .promo-dropdown-link:hover,
[data-theme="dark"] .promo-dropdown-link:focus-visible { color: var(--accent); }

/* Burger button: peach pill, dark bars */
[data-theme="dark"] .topbar-burger {
  background: var(--peach-ink);
  border-color: var(--peach-ink);
  color: var(--bg);
}
[data-theme="dark"] .topbar-burger:hover {
  background: var(--accent);
  border-color: var(--accent);
}
[data-theme="dark"] .topbar-burger span { background: var(--bg); }

/* Theme toggle keeps peach outline + glyph */
[data-theme="dark"] .theme-toggle { color: var(--peach-ink); border-color: var(--peach-ink); }
[data-theme="dark"] .theme-toggle:hover { background: var(--peach-ink); color: var(--bg); }

/* Form input text in early-access */
[data-theme="dark"] .early-access-form input,
[data-theme="dark"] .early-access-form select,
[data-theme="dark"] .early-access-form textarea { color: var(--peach-ink); }

/* Bare h1.reveal hero used on features.html and pricing.html
   (no .hero-title / .early-access-title / .coming-soon-card hook) */
[data-theme="dark"] .promo-hero h1 { color: var(--peach-ink); }

/* Inline body emphasis: code blocks and strong tags inside paragraphs */
[data-theme="dark"] .byok-step p code,
[data-theme="dark"] .faq-item p code,
[data-theme="dark"] .faq-item p strong { color: var(--peach-ink); }

/* =========================================================
   Dark theme: hard offset shadows recolored peach
   In dark mode --ink is near-pure-white, so every hard offset
   shadow (4px / 6px / 7px / 8px solid drop) was rendering bright
   white. Recolor to --peach-ink to echo the warm headline tone.
   Light mode is untouched. Geometry (offsets, blur 0) preserved.
   ========================================================= */
[data-theme="dark"] .promo-brand-mark,
[data-theme="dark"] .btn,
[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn-sm,
[data-theme="dark"] .btn-sm:hover,
[data-theme="dark"] .price-card,
[data-theme="dark"] .byok-step .num,
[data-theme="dark"] .faq-item[open],
[data-theme="dark"] .fig-card .pin,
[data-theme="dark"] .coming-soon-card,
[data-theme="dark"] .early-access-card {
  box-shadow:
    calc((var(--sx-base) + var(--sxd, 0)) * 1px)
    calc((var(--sy-base) + var(--syd, 0)) * 1px)
    0
    var(--peach-ink);
}

@media (max-width: 420px) {
  [data-theme="dark"] .promo-header-actions .btn-sm {
    --sx-base: 2;
    --sy-base: 2;
  }
}

/* Mirror the small-screen header btn-sm shadow geometry override
   in light mode too, keeping the existing pattern. */
@media (max-width: 420px) {
  .promo-header-actions .btn-sm { --sx-base: 2; --sy-base: 2; }
}
