/* ============ Tokens ============ */
:root {
  --canvas: #eeefe9;
  --surface-soft: #e5e7e0;
  --surface-card: #ffffff;
  --surface-doc: #fcfcfa;
  --surface-dark: #23251d;
  --primary: #f7a501;
  --primary-pressed: #dd9001;
  --ink: #23251d;
  --body: #4d4f46;
  --mute: #6c6e63;
  --hairline: #bfc1b7;
  --link-teal: #1078a3;
  --link-blue: #1d4ed8;
  --accent-blue-soft: #dceaf6;
  --accent-green-soft: #d9eddf;
  --accent-red-soft:  #f7d6d3;
  --accent-purple-soft: #e7d8ee;

  --xs: 4px;  --sm: 8px;  --md: 12px;  --lg: 16px;
  --xl: 24px; --xxl: 32px; --section: 80px;

  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-full: 9999px;

  --container: 1280px;
  --gutter: 24px;

  --shadow-card: 0 1px 0 rgba(35,37,29,.02), 0 6px 18px -10px rgba(35,37,29,.18);
  --shadow-card-hover: 0 1px 0 rgba(35,37,29,.03), 0 18px 36px -16px rgba(35,37,29,.22);
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* paper grain */
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1372  0 0 0 0 0.1450  0 0 0 0 0.1137  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/></svg>");
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--link-teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Type roles ============ */
.display-xl { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -1.2px; color: var(--ink); }
.display-lg { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -0.6px; color: var(--ink); }
.heading-lg { font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -0.5px; color: var(--ink); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1.5px;
  background: var(--ink); transform-origin: left; transform: scaleX(0);
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.eyebrow.in::before { transform: scaleX(1); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--body); }
.body-sm { font-size: 15px; line-height: 1.71; color: var(--body); }
.body-strong { font-weight: 600; color: var(--ink); }
.mute { color: var(--mute); }
.code-sm { font-family: "JetBrains Mono","Source Code Pro", ui-monospace, monospace; font-size: 14px; line-height: 1.55; }
.utility-xs { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }

/* ============ Layout ============ */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; position: relative; }
section + section { padding-top: 0; }
.hairline-top { border-top: 1px solid var(--hairline); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.1px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .15s ease, color .15s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(35,37,29,.08), 0 8px 18px -10px rgba(247,165,1,.55);
}
.btn-primary:hover { background: #ffb321; }
.btn-primary:active { background: var(--primary-pressed); transform: scale(.96); }
.btn-primary.magnetic { transition: transform .35s cubic-bezier(.16,1,.3,1), background .15s ease; }
.btn-primary.squash { animation: squash .42s cubic-bezier(.34,1.56,.64,1); }
@keyframes squash {
  0%   { transform: scale(1,1); }
  30%  { transform: scale(1.12,.88); }
  60%  { transform: scale(.94,1.06); }
  100% { transform: scale(1,1); }
}
.btn-secondary {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--hairline);
  height: 44px; padding: 0 20px;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 14px;
}
.btn-secondary:hover { background: #dcded6; }
.btn-ghost {
  height: 36px; padding: 0 14px;
  color: var(--ink); font-weight: 600; font-size: 14px;
  border-radius: var(--r-full);
}
.btn-ghost:hover { background: rgba(35,37,29,.05); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  background: rgba(238,239,233,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .wrap {
  height: 100%;
  display: flex; align-items: center; gap: var(--lg);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; letter-spacing: -0.4px; font-size: 18px;
}
.brand-mark { width: 30px; height: 30px; }
.nav-links {
  display: flex; gap: 4px;
  margin-left: 18px;
}
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: var(--r-full);
}
.nav-links a:hover { background: rgba(35,37,29,.05); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full); color: var(--ink);
}
.icon-btn:hover { background: rgba(35,37,29,.05); }
.hamburger { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--canvas);
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1), visibility 0s linear .35s;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); visibility: visible; transition: transform .35s cubic-bezier(.16,1,.3,1), visibility 0s; }
.drawer-head {
  height: 64px; display: flex; align-items: center;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--hairline);
  justify-content: space-between;
}
.drawer-body { padding: var(--xxl) var(--gutter); display: flex; flex-direction: column; gap: 4px; }
.drawer-body a {
  color: var(--ink); font-weight: 700; font-size: 22px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.drawer-body a:hover { text-decoration: none; }
.drawer-foot { margin-top: auto; padding: var(--xl) var(--gutter) var(--xxl); display: flex; gap: 10px; }

/* ============ Hero ============ */
.hero { padding-top: 72px; padding-bottom: 96px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
}
.hero h1 { margin: 14px 0 18px; }
.hero h1 .accent { background: var(--primary); padding: 0 8px; border-radius: var(--r-md); display: inline-block; transform: rotate(-1.2deg); box-shadow: 0 1px 0 rgba(35,37,29,.08); }
.hero p.lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 22px; margin-top: 36px; align-items: center;
  font-size: 13px; color: var(--mute); flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-meta .dot { width: 4px; height: 4px; background: var(--hairline); border-radius: 999px; }

.hero-art {
  position: relative; width: 100%; aspect-ratio: 1/1; max-width: 460px; margin-left: auto; justify-self: end;
}
.hero-art .ring {
  position: absolute; inset: 0;
  border: 1px dashed var(--hairline);
  border-radius: 50%;
}
.hero-art .ring.r2 { inset: 12%; border-style: solid; opacity: .35; }
.hero-art .ring.r3 { inset: 24%; border-style: dashed; opacity: .25; }
.hero-art .mascot { position: absolute; inset: 12%; }
.hero-art .float-chip {
  position: absolute; background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 8px 12px;
  box-shadow: var(--shadow-card);
  font-size: 13px; color: var(--ink); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.float-chip .swatch { width: 8px; height: 8px; border-radius: 99px; background: var(--primary); }
.float-chip.a { top: 6%; left: -4%; animation: floaty 6s ease-in-out infinite; }
.float-chip.b { bottom: 12%; right: -6%; animation: floaty 7s ease-in-out -2s infinite; }
.float-chip.c { top: 48%; right: -10%; animation: floaty 8s ease-in-out -4s infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Idle hedgehog motion */
.mascot-idle { animation: bob 4.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-6px) rotate(0.8deg); }
}
.eye-blink { animation: blink 5.5s infinite; transform-origin: center; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.1); }
}
.ear-twitch { animation: twitch 6s infinite; transform-origin: 80% 100%; }
@keyframes twitch {
  0%, 88%, 100% { transform: rotate(0); }
  90%           { transform: rotate(-7deg); }
  92%           { transform: rotate(4deg); }
  94%           { transform: rotate(0); }
}

/* ============ Feature rows ============ */
.rows { display: flex; flex-direction: column; gap: 96px; margin-top: 56px; }
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.row.flip { direction: rtl; }
.row.flip > * { direction: ltr; }
.row .vignette {
  position: relative; aspect-ratio: 5/4;
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 18px; box-shadow: var(--shadow-card);
  overflow: hidden;
}
.vignette .bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .25;
}
.vignette .scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vignette .tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 4px 10px; color: var(--ink);
}
.row h2 { margin: 12px 0 14px; }
.row-meta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.row .row-meta { gap: 18px; }
.row-meta .chip {
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-soft); color: var(--ink); font-weight: 600;
  border: 1px solid var(--hairline);
}

/* ============ Feature tiles ============ */
.tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 40px;
}
.tile {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
  overflow: hidden;
  min-height: 200px;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.tile .ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface-soft); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  margin-bottom: 16px;
}
.tile h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
.tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.tile.with-hedgehog .margin-hog {
  position: absolute; right: -10px; bottom: -10px; width: 96px; opacity: .95;
  pointer-events: none;
}

/* ============ Doc preview ============ */
.doc-wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; margin-top: 40px;
  align-items: start;
}
.doc-side h2 { margin: 12px 0 14px; }
.doc-side .doc-links { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.doc-side .doc-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 6px; color: var(--ink); font-weight: 600;
  border: 1px solid transparent;
}
.doc-side .doc-links a:hover { background: var(--surface-card); border-color: var(--hairline); text-decoration: none; }
.doc-side .doc-links a span.kbd {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--mute);
  background: var(--surface-soft); border: 1px solid var(--hairline);
  padding: 2px 6px; border-radius: 4px; font-weight: 500;
}

.doc-card {
  background: var(--surface-doc);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.doc-card .doc-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 8px;
}
.doc-card h3.doc-h2 {
  font-size: 21px; font-weight: 700; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.4px;
}
.doc-card p { font-size: 15px; line-height: 1.71; color: var(--body); }
.doc-card .inline-code {
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  background: var(--surface-soft); border: 1px solid var(--hairline);
  padding: 1px 6px; border-radius: 4px; color: var(--ink);
}

/* Dark code island */
.code-island {
  background: var(--surface-dark);
  border-radius: 8px;
  padding: 18px 20px 18px 22px;
  margin: 18px 0 6px;
  position: relative;
  border: 1px solid #2e3026;
  box-shadow: 0 8px 24px -16px rgba(35,37,29,.5);
}
.code-island::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.code-island .code-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: #8a8d80;
  letter-spacing: .08em; text-transform: uppercase;
}
.code-island .dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.code-island .dots span { width: 9px; height: 9px; border-radius: 99px; background: #3a3c33; }
.code-island pre {
  margin: 0;
  font-family: "JetBrains Mono","Source Code Pro", monospace;
  font-size: 13.5px; line-height: 1.65; color: #d7d9cb;
  white-space: pre; overflow-x: auto;
}
.code-island .kw { color: #f7a501; }
.code-island .str { color: #b5d3a2; }
.code-island .com { color: #6c6e63; font-style: italic; }
.code-island .fn { color: #9ec1d8; }
.code-island .num { color: #e7b873; }
.code-island .ws { color: #5e6055; }

.doc-card .margin-hog-doc {
  position: absolute; right: -16px; top: -22px; width: 88px; transform: rotate(8deg);
  pointer-events: none;
}

.callout {
  border-radius: 8px;
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.55; color: var(--ink);
  border: 1px solid rgba(35,37,29,.06);
  margin-top: 18px;
}
.callout.tip { background: var(--accent-blue-soft); }
.callout.success { background: var(--accent-green-soft); }
.callout.warn { background: var(--accent-red-soft); }
.callout.note { background: var(--accent-purple-soft); }
.callout .emoji {
  font-size: 18px; line-height: 1;
  display: inline-block;
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.callout.in .emoji { transform: scale(1); }
.callout strong { font-weight: 700; }

/* ============ Pricing ============ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
  align-items: stretch;
}
.tier {
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
  position: relative;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.tier .tier-name { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.6px; color: var(--ink); }
.tier .tier-tag { font-size: 13px; color: var(--mute); margin-top: 4px; }
.tier .price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.tier .price .amt { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.tier .price .per { font-size: 13px; color: var(--mute); }
.tier ul { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier ul li { font-size: 14px; color: var(--body); display: flex; gap: 10px; align-items: flex-start; }
.tier ul li::before {
  content: ""; width: 14px; height: 14px; border-radius: 99px;
  background: var(--surface-soft); border: 1px solid var(--hairline);
  margin-top: 3px; flex: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%2323251d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.tier .tier-cta { margin-top: auto; }
.tier .tier-cta .btn { width: 100%; justify-content: center; }
.tier.recommended {
  border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 1px 0 rgba(35,37,29,.04), 0 24px 48px -24px rgba(35,37,29,.3);
}
.tier.recommended:hover { transform: translateY(-12px); }
.tier .promo-pill {
  position: absolute; top: -12px; left: 24px;
  background: var(--ink); color: var(--canvas);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tier .promo-pill .new-dot {
  width: 6px; height: 6px; border-radius: 99px; background: var(--primary);
}
.tier.recommended .tier-cta .btn-primary { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(35,37,29,.08), 0 8px 18px -10px rgba(247,165,1,.55), 0 0 0 0 rgba(247,165,1,.45); }
  50%      { box-shadow: 0 1px 0 rgba(35,37,29,.08), 0 8px 18px -10px rgba(247,165,1,.55), 0 0 0 14px rgba(247,165,1,0); }
}

/* ============ Footer ============ */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--hairline); margin-top: var(--section); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px;
}
.footer-grid .brand { font-size: 18px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--body); font-size: 14px; font-weight: 500; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .meta { color: var(--mute); font-size: 13px; }
.footer-bottom .right { margin-left: auto; display: flex; gap: 14px; align-items: center; color: var(--mute); font-size: 13px; }
.footer-bottom .right a { color: var(--mute); }

/* ============ Marginalia hedgehogs (parallax) ============ */
.marginalia {
  position: absolute; pointer-events: none; opacity: .9;
  z-index: 1;
}
.marginalia svg { width: 100%; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Letter-by-letter eyebrow */
.eyebrow .ltr { display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.eyebrow.in .ltr { opacity: 1; transform: none; }

/* ============ Section divider rhythm ============ */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 12px 0 0; max-width: 720px; }
.section-head .lede { font-size: 16px; color: var(--body); max-width: 460px; }

/* ============ Grid blowout guard ============ */
/* Grid/flex items default to min-width:auto, refusing to shrink below their
   content's min-content size — which inflates the page on narrow screens.
   Letting them shrink to 0 lets internal overflow (e.g. the code island) scroll. */
.hero-grid > *, .row > *, .doc-wrap > *, .tiles > *, .pricing-grid > *, .footer-grid > *, .products > *, .about-band > * { min-width: 0; }
.code-island { max-width: 100%; }

/* Eyebrows split into per-letter spans must wrap at word boundaries on mobile.
   Group letters into .word (kept intact), let the label flex-wrap; keep the
   dash spacing without adding a flex gap between every word. */
.eyebrow.split { flex-wrap: wrap; gap: 0; }
.eyebrow.split::before { margin-right: 10px; }
.eyebrow.split .word { display: inline-flex; }

/* ============ Product showcase ============ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.product-card {
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-shot { aspect-ratio: 4/3; background: var(--surface-soft); border-bottom: 1px solid var(--hairline); }
.product-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 20px 22px 24px; }
.product-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.3px; }
.product-price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-price small { font-size: 12px; color: var(--mute); font-weight: 600; }
.product-body p { font-size: 14px; color: var(--body); line-height: 1.55; margin: 8px 0 14px; }

/* ============ About band ============ */
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-art { border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--shadow-card); aspect-ratio: 1/1; }
.about-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-band h2 { margin: 12px 0 14px; }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr 1fr; }
  .about-band { grid-template-columns: 1fr; gap: 24px; }
  .about-art { order: -1; aspect-ratio: 16/10; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .display-xl { font-size: 48px; letter-spacing: -1px; }
  .display-lg { font-size: 30px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-grid .brand-col { grid-column: span 1; }
  .doc-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .desktop-only { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row.flip { direction: ltr; }
  .row .vignette { order: -1; aspect-ratio: 16/10; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .tier.recommended { transform: none; }
  .tier.recommended:hover { transform: translateY(-4px); }
}
@media (max-width: 768px) {
  :root { --section: 64px; }
  .display-xl { font-size: 40px; line-height: 1.08; }
  .display-lg { font-size: 26px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .hero p.lede { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom .right { margin-left: 0; }
  .marginalia { display: none; }
  .float-chip.c { display: none; }
  .hero-meta { gap: 12px; font-size: 12px; }
  .hero-meta .dot { display: none; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .wrap { padding: 0 18px; }
  .doc-card { padding: 22px 18px; }
  .code-island { padding: 14px 14px 14px 16px; }
  .code-island pre { font-size: 12.5px; }
  .tier { padding: 24px; }
  .display-xl { font-size: 34px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .callout .emoji { transform: scale(1); }
  .eyebrow::before { transform: scaleX(1); }
  .eyebrow .ltr { opacity: 1; transform: none; }
}
