/* ============================================================
   PRAATBOX MARKETING SITE — DESIGN TOKENS + BASE STYLES
   ============================================================ */

:root {
  /* type families — overridden by Tweaks */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* canvas */
  --paper: #f6f5f1;
  --paper-2: #efede6;
  --ink: #14140f;
  --ink-2: #2a2a23;
  --muted: #6b6a60;
  --line: #d9d6c8;
  --line-soft: #e8e5d8;

  /* signature accent — overridden by Tweaks */
  --accent: #1b6e3b;
  --accent-ink: #ffffff;
  --accent-soft: #d8e8de;

  /* density — overridden by Tweaks */
  --section-pad: 140px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

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

[data-theme="dark"] {
  --paper: #0e0e0c;
  --paper-2: #161614;
  --ink: #f4f1e6;
  --ink-2: #c9c5b5;
  --muted: #8a8779;
  --line: #2a2924;
  --line-soft: #1c1b18;
  --accent-soft: #1a2f22;
}

[data-density="compact"] {
  --section-pad: 96px;
}
[data-density="airy"] {
  --section-pad: 180px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ===== layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== type ===== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
.display--xxl { font-size: clamp(56px, 9vw, 132px); }
.display--xl  { font-size: clamp(48px, 7vw, 96px); }
.display--lg  { font-size: clamp(36px, 5vw, 72px); }
.display--md  { font-size: clamp(28px, 3.4vw, 48px); }

.italic { font-style: italic; }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { filter: brightness(0.92); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: 13px; gap: 6px; }

/* ===== nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav__logo .nav__logo-word {
  display: inline-flex;
  align-items: baseline;
  font-family: "Geist", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.nav__logo .nav__logo-word em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  margin-left: -0.5px;
}
/* The original markup was <span class="nav__logo-mark">P</span><span>praatbox</span>.
   We hide the literal "P" and any trailing "praatbox" text node, then render the
   two-bubble SVG mark via background and the serif-italic wordmark via ::after. */
.nav__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><circle cx='26' cy='28' r='22' fill='%231b6e3b'/><circle cx='54' cy='52' r='22' fill='%2314140f'/><path d='M14 44l-6 6a1 1 0 0 0 1 1l8-3' fill='%231b6e3b'/><path d='M68 36l6-6a1 1 0 0 1 1 1l-3 8' fill='%2314140f'/></svg>")
    center / contain no-repeat;
  color: transparent;
  font-size: 0;
  display: block;
  flex-shrink: 0;
}
/* dark mode: swap ink for paper so the dark bubble still reads */
.theme-dark .nav__logo-mark,
[data-theme="dark"] .nav__logo-mark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><circle cx='26' cy='28' r='22' fill='%2386efac'/><circle cx='54' cy='52' r='22' fill='%23f4f1e6'/><path d='M14 44l-6 6a1 1 0 0 0 1 1l8-3' fill='%2386efac'/><path d='M68 36l6-6a1 1 0 0 1 1 1l-3 8' fill='%23f4f1e6'/></svg>");
}
.nav__logo > span:nth-child(2) {
  /* the wordmark "praatbox" — restyle to sans + serif-italic split */
  font-family: "Geist", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  position: relative;
  /* hide the original word and replace with our split version */
  font-size: 0;
}
.nav__logo > span:nth-child(2)::before {
  content: "praat";
  font-family: "Geist", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.nav__logo > span:nth-child(2)::after {
  content: "box";
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 23px;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-left: 0;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a { transition: color 0.15s; }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ===== hero ===== */
.hero {
  padding-top: 80px;
  padding-bottom: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
}
.hero__copy h1 { margin-top: 18px; }
.hero__sub {
  margin-top: 28px;
  max-width: 50ch;
}
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}

/* hero variant: stacked centered */
.hero--center .hero__grid { grid-template-columns: 1fr; text-align: center; }
.hero--center .hero__sub,
.hero--center .display { margin-left: auto; margin-right: auto; }
.hero--center .hero__cta,
.hero--center .hero__meta { justify-content: center; }
.hero--center .hero__visual { margin-top: 48px; }

/* hero variant: full demo */
.hero--demo .hero__grid { grid-template-columns: 1fr; }
.hero--demo .hero__visual { margin-top: 56px; }
.hero--demo .hero__copy { max-width: 760px; }

/* ===== chat widget mock ===== */
.widget-stage {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--paper-2)) 0%, var(--paper-2) 70%);
  padding: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 520px;
}
.widget-stage__site {
  position: absolute;
  inset: 28px;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 4%, transparent) 0 1px, transparent 1px 14px),
    var(--paper);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.widget-stage__chrome {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--paper) 92%, var(--ink) 4%);
}
.widget-stage__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.widget-stage__placeholder {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-stage__bar {
  height: 10px;
  border-radius: 4px;
  background: var(--line-soft);
}
.widget-stage__bar.w-60 { width: 60%; }
.widget-stage__bar.w-80 { width: 80%; }
.widget-stage__bar.w-40 { width: 40%; }

.widget {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: min(360px, calc(100% - 56px));
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.widget__header {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 18px 18px 22px;
  position: relative;
}
.widget__brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  opacity: 0.9;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.widget__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
}
.widget__greet {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.widget__greet em { font-style: italic; opacity: 0.85; }
.widget__status {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget__status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #b9f5c2;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
.widget__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  max-height: 280px;
  overflow: hidden;
}
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  animation: bubbleIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.bubble--bot {
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--ink);
  border-top-left-radius: 6px;
}
.bubble--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-top-right-radius: 6px;
}
.bubble--typing {
  align-self: flex-start;
  background: var(--paper-2);
  border-top-left-radius: 6px;
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
}
.bubble--typing span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: dot 1.2s infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.widget__suggested {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 18px 12px;
}
.widget__suggested button {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.widget__suggested button:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.widget__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.widget__input input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  color: var(--ink);
}
.widget__input input::placeholder { color: var(--muted); }
.widget__send {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.widget__footer-mini {
  padding: 8px 14px 12px;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
}

/* floating widget bubble (collapsed state, decorative) */
.widget-fab {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--accent) 60%, transparent);
  border: none;
  cursor: pointer;
}

/* ===== logo strip ===== */
.logo-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 32px 0;
}
.logo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo-strip__label {
  flex-shrink: 0;
  max-width: 280px;
}
.logo-strip__row {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.72;
}
.logo-strip__logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-strip__logo--mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== how-it-works ===== */
.how {
  border-top: 1px solid var(--line-soft);
}
.how__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .how__head { grid-template-columns: 1fr; gap: 24px; }
}
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) {
  .how__steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.step__title em { font-style: italic; color: var(--accent); }
.step__body {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.step__visual {
  margin-top: auto;
  padding-top: 24px;
}
.code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.code .tk-tag { color: #f5b27c; }
.code .tk-attr { color: #b9d8ff; }
.code .tk-str { color: #b9f5c2; }
.code .tk-cm { color: #6a6a5a; font-style: italic; }

/* ===== features ===== */
.features {
  border-top: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.feature--wide { grid-column: span 8; }
.feature--narrow { grid-column: span 4; }
.feature--half { grid-column: span 6; }
@media (max-width: 980px) {
  .feature--wide, .feature--narrow, .feature--half { grid-column: span 12; }
}
.feature__icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.feature__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
.feature__title em { font-style: italic; }
.feature__body {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.feature__viz {
  margin-top: auto;
  padding-top: 20px;
}

/* mini analytics card visual */
.viz-analytics {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
}
.viz-analytics__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.viz-analytics__bars {
  display: flex;
  gap: 6px;
  align-items: end;
  height: 80px;
}
.viz-analytics__bar {
  flex: 1;
  background: var(--ink);
  border-radius: 3px;
  opacity: 0.18;
}
.viz-analytics__bar.is-active { background: var(--accent); opacity: 1; }

/* mini avatars */
.avatars {
  display: flex;
  margin-top: auto;
}
.avatars__a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.avatars__a + .avatars__a { margin-left: -8px; }
.avatars__a--alt { background: var(--ink); color: var(--paper); }
.avatars__a--alt2 { background: var(--paper-2); color: var(--ink); border-color: var(--line); }

/* knowledge tag list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tags__t {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
}

/* ===== showcase (interactive widget) ===== */
.showcase {
  border-top: 1px solid var(--line-soft);
}
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 980px) {
  .showcase__grid { grid-template-columns: 1fr; }
}
.showcase__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.showcase__item {
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.showcase__item:hover { background: var(--paper-2); }
.showcase__item.is-active {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.08);
}
.showcase__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
  flex-shrink: 0;
  width: 28px;
}
.showcase__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.showcase__title em { font-style: italic; }
.showcase__item.is-active .showcase__title em { color: var(--accent); }
.showcase__body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== pricing ===== */
.pricing {
  border-top: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 880px) {
  .pricing__grid { grid-template-columns: 1fr; }
}
.plan {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
}
.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__list li { color: var(--paper); }
.plan--featured .plan__list svg { color: var(--accent); }
.plan--featured .plan__price-unit { color: rgba(255,255,255,0.6); }
.plan--featured .plan__tagline { color: rgba(255,255,255,0.7); }
.plan__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.plan__name {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
}
.plan__name em { font-style: italic; }
.plan__tagline {
  color: var(--muted);
  font-size: 14px;
  margin-top: -8px;
}
.plan__price {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan__price-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
}
.plan__list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* ===== stats ===== */
.stats {
  border-top: 1px solid var(--line-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  background: var(--paper);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num em { font-style: italic; color: var(--accent); }
.stat__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== testimonials ===== */
.testi {
  border-top: 1px solid var(--line-soft);
}
.testi__quote {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}
.testi__quote em { font-style: italic; color: var(--accent); }
.testi__attr {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
}
.testi__name {
  font-weight: 500;
  font-size: 15px;
}
.testi__role {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.testi__small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
@media (max-width: 880px) {
  .testi__small { grid-template-columns: 1fr; }
}
.testi__small-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi__small-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* ===== developer / embed ===== */
.dev {
  border-top: 1px solid var(--line-soft);
  background: var(--ink);
  color: var(--paper);
}
.dev .eyebrow { color: rgba(255,255,255,0.6); }
.dev .eyebrow::before { background: var(--accent); }
.dev__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .dev__grid { grid-template-columns: 1fr; }
}
.dev .display { color: var(--paper); }
.dev .display em { color: var(--accent); font-style: italic; }
.dev__lead { color: rgba(255,255,255,0.7); margin-top: 24px; max-width: 50ch; }
.dev__bullets {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.dev__bullets li::before {
  content: "→ ";
  color: var(--accent);
}
.dev__codeblock {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dev__code-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dev__code-tab {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: all 0.15s;
}
.dev__code-tab.is-active {
  color: var(--paper);
  background: rgba(255,255,255,0.04);
}
.dev__code-tab:hover { color: var(--paper); }
.dev__code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  white-space: pre;
  overflow-x: auto;
}
.dev__code-body .tk-tag { color: #f5b27c; }
.dev__code-body .tk-attr { color: #b9d8ff; }
.dev__code-body .tk-str { color: #b9f5c2; }
.dev__code-body .tk-cm { color: #6a6a5a; font-style: italic; }
.dev__code-body .tk-fn { color: #f5b27c; }
.dev__code-body .tk-key { color: #d9bfff; }

/* ===== big CTA ===== */
.cta {
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cta__inner {
  padding: var(--section-pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cta__sub { color: var(--muted); max-width: 50ch; }

/* ===== footer ===== */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer__col a:hover { color: var(--accent); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}

/* big logo lockup at footer bottom — sans "praat" + serif-italic "box" */
.footer__lockup {
  font-family: "Geist", -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(80px, 16vw, 240px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin-top: 40px;
  color: var(--ink);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.footer__lockup em { font-style: italic; color: var(--accent); }

/* ===== reveal ===== */
.reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}
.reveal {
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}

/* underline link */
.ulink {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
}
.ulink:hover { color: var(--accent); border-color: var(--accent); }
