/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf9;
  --ink: #0a0a0a;
  --ink-2: #171717;
  --ink-3: #525252;
  --ink-4: #737373;
  --ink-5: #a3a3a3;
  --line: #e7e5e4;
  --line-2: #f1efed;
  --accent: #d97757;        /* warm peach for tiny accents */
  --accent-soft: #f4d8c5;
  --good: #16a34a;
  --bad: #dc2626;
  --dark: #0b0b0d;          /* hero / footer dark */
  --dark-2: #141417;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.03);
  --shadow-md: 0 6px 24px -8px rgba(10,10,10,.10), 0 2px 6px rgba(10,10,10,.04);
  --shadow-lg: 0 30px 60px -20px rgba(10,10,10,.18), 0 12px 30px -12px rgba(10,10,10,.10);
  --shadow-xl: 0 50px 120px -30px rgba(10,10,10,.30), 0 20px 50px -20px rgba(10,10,10,.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --scale-global: 0.75;
  --scale-hero: 0.82;
  --scale-hero-layout: 0.9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: calc(16px * var(--scale-global));
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
.reveal.delay-4 { transition-delay: .48s; }
.reveal.delay-5 { transition-delay: .60s; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: calc(11.5px * var(--scale-global));
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217,119,87,.18);
}
.eyebrow.on-dark { color: rgba(255,255,255,.55); }
.eyebrow.on-dark .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(217,119,87,.22); }

/* ---------- Headings ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.04; font-weight: 600; }
h1 { font-size: clamp(calc(42px * var(--scale-global)), calc(6.4vw * var(--scale-global)), calc(84px * var(--scale-global))); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(calc(32px * var(--scale-global)), calc(4.2vw * var(--scale-global)), calc(54px * var(--scale-global))); letter-spacing: -0.028em; }
h3 { font-size: calc(18px * var(--scale-global)); letter-spacing: -0.012em; font-weight: 600; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: calc(12px * var(--scale-global)) calc(20px * var(--scale-global));
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: calc(14px * var(--scale-global)); font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover { background: #1f1f1f; transform: translateY(-1px); }
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover { border-color: var(--ink); }
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.nav--at-top {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Header brand: keep same colours as scrolled (readable on light hero areas) */
.nav.nav--at-top .logo {
  color: var(--ink);
}
.nav.nav--at-top .logo span {
  color: var(--ink-4) !important;
}
.nav.nav--at-top .logo-img {
  filter: none;
}
.nav.nav--at-top .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}
.nav.nav--at-top .nav-links a:hover {
  color: #fff;
}
.nav.nav--at-top .nav-cta .signin {
  color: rgba(255, 255, 255, 0.82);
}
.nav.nav--at-top .nav-cta .signin:hover {
  color: #fff;
}
.nav.scrolled {
  border-bottom-color: var(--line-2);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav.scrolled .logo {
  color: var(--ink);
}
.nav.scrolled .logo span {
  color: var(--ink-4) !important;
}
.nav.scrolled .logo-img {
  filter: none;
}
.nav.scrolled .nav-links a {
  color: var(--ink-3);
}
.nav.scrolled .nav-links a:hover {
  color: var(--ink);
}
.nav.scrolled .nav-cta .signin {
  color: var(--ink-3);
}
.nav.scrolled .nav-cta .signin:hover {
  color: var(--ink);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 32px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  justify-self: start;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  display: inline-grid; place-items: center;
}
.logo-mark::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset;
}
.nav-links { display: flex; gap: 24px; justify-self: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-cta .signin {
  font-size: 14px;
  color: var(--ink-3);
  padding: 9px 12px;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
}
.nav-cta .signin:hover { color: var(--ink); }
.nav-cta .btn {
  /* Match hero "Start free" / "Watch a demo" pill sizing */
  padding: calc(11px * var(--scale-hero-layout)) calc(18px * var(--scale-hero-layout));
  font-size: calc(13px * var(--scale-hero-layout));
  font-weight: 500;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
}
.nav-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-menu-btn span {
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  display: block;
}
.nav-mobile-menu {
  display: none;
}
@media (max-width: 820px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 10px;
  }
  .nav-links { display: none; }
  .nav-cta .signin { display: none; }
  .nav-cta .btn {
    padding: calc(11px * var(--scale-hero-layout)) calc(18px * var(--scale-hero-layout));
    font-size: calc(13px * var(--scale-hero-layout));
  }
  .nav-menu-btn {
    display: inline-flex;
  }
  .nav-mobile-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    padding: 6px 16px 14px;
    flex-direction: column;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
  }
  .nav-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mobile-menu a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line-2);
    font-size: 15px;
    color: var(--ink-2);
    font-weight: 500;
  }
  .nav-mobile-menu a:last-child {
    border-bottom: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, calc(860px * var(--scale-hero-layout)));
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-picture {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 62% at 50% 40%, rgba(8, 8, 12, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.14) 0%, rgba(10, 10, 10, 0.04) 42%, rgba(10, 10, 10, 0.12) 100%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(217, 119, 87, 0.05), transparent 55%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 38%, #000 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 38%, #000 22%, transparent 72%);
  opacity: 0.55;
}
.hero-bottom-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.55) 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4.9rem, 10.8vw, 7.1rem) 32px clamp(4rem, 8.6vw, 7rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
/* Minimal veil behind copy — full viewport width (matches hero image), feathered mask */
.hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  transform: translateY(-50%);
  height: min(70vh, 520px);
  max-height: 78%;
  background: radial-gradient(
    ellipse 100% 70% at 50% 46%,
    rgba(12, 12, 16, 0.1) 0%,
    rgba(12, 12, 16, 0.04) 48%,
    transparent 68%
  );
  pointer-events: none;
  z-index: -1;
  /* Opaque = show veil; transparent = hide — extra fade at bottom + soft sides */
  -webkit-mask-image:
    radial-gradient(ellipse 96% 64% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.35) 62%, transparent 78%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, #000 10%, #000 40%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.12) 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 96% 64% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.35) 62%, transparent 78%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, #000 10%, #000 40%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.12) 82%, transparent 100%);
  mask-composite: intersect;
}
/* Hero (section 1): extra-bold + strong diffuse shadow + hairline stroke */
.hero h1 {
  font-size: clamp(calc(42px * var(--scale-hero)), calc(6.1vw * var(--scale-hero)), calc(86px * var(--scale-hero)));
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-weight: 800;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.22);
  text-shadow:
  0 0 1px rgba(0, 0, 0, 0.18),
  0 2px 10px rgba(0, 0, 0, 0.14),
  0 0 24px rgba(0, 0, 0, 0.10);
}
.hero h1 .accent {
  color: #fffaf6;
  font-style: italic;
  font-weight: 800;
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.2);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.32),
    0 3px 22px rgba(0, 0, 0, 0.26),
    0 0 52px rgba(0, 0, 0, 0.18);
}
.hero-sub {
  max-width: calc(560px * var(--scale-hero-layout));
  font-size: calc(16.5px * var(--scale-hero-layout));
  line-height: 1.55;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 2px 14px rgba(0, 0, 0, 0.12);
}
@media (max-width: 640px) {
  .hero-sub {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  }
}
.hero .eyebrow.on-dark {
  font-weight: 700;
  color: #fff;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.16);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.22),
    0 2px 18px rgba(0, 0, 0, 0.2),
    0 0 32px rgba(0, 0, 0, 0.14);
}
.hero-ctas { display: flex; gap: calc(10px * var(--scale-hero-layout)); flex-wrap: wrap; justify-content: center; }
.hero-ctas .btn {
  padding: calc(11px * var(--scale-hero-layout)) calc(18px * var(--scale-hero-layout));
  font-size: calc(13px * var(--scale-hero-layout));
}
.hero-ctas .btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-ctas .btn-dark:hover { background: #1f1f1f; }
.hero-ctas .btn-ghost-dark { background: #fff; color: var(--ink); border-color: #fff; }
.hero-ctas .btn-ghost-dark:hover { background: rgba(255,255,255,.92); border-color: #fff; }
.hero-reassure {
  font-size: calc(12px * var(--scale-hero-layout));
  color: var(--ink-3);
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: calc(10px * var(--scale-hero-layout));
}
.hero-reassure .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-5); }

/* identity badge row */
.identities {
  display: inline-flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; justify-content: center;
}
.hero .identity-pill {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 14, 0.22);
  padding: 7px 12px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.15);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.2),
    0 2px 16px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(0, 0, 0, 0.12);
}
.identity-pill .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: #6ee7b7;
  box-shadow: 0 0 0 0 rgba(110, 231, 183, .5);
  animation: pulse 2.2s infinite var(--ease);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110,231,183,.5); }
  60% { box-shadow: 0 0 0 8px rgba(110,231,183,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,231,183,0); }
}

/* ---------- LOGO TICKER ---------- */
.proof {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}
.proof-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.logos {
  display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; align-items: center;
  opacity: .55;
  filter: grayscale(1);
}
.logos .ph-logo {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Generic section ---------- */
section { position: relative; }
.sect {
  padding: calc(92px * var(--scale-global)) 0;
}
#demo.sect,
#features.sect {
  padding: calc(78px * var(--scale-global)) 0;
}
.sect-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 48px;
}
#demo .sect-head,
#features .sect-head {
  margin-bottom: 36px;
}
.sect-head h2 { letter-spacing: -0.03em; }
.sect-head p {
  margin: 0; font-size: 16px; color: var(--ink-3); line-height: 1.5; max-width: 600px;
}

/* ---------- Section 2: Demo card ---------- */
.demo-wrap {
  max-width: 820px; margin: 0 auto;
}
.demo-card {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  position: relative;
}
.demo-deco {
  height: 190px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 100% at 80% 0%, #fbe1d0, transparent 60%),
    radial-gradient(ellipse 80% 100% at 20% 100%, #fad7c1, transparent 60%),
    linear-gradient(135deg, #fbeadd 0%, #f6d6c0 50%, #efb398 100%);
}
.demo-deco svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.demo-deco-label {
  position: absolute; top: 18px; left: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b3a22;
}
.demo-deco-label .live-dot {
  width: 6px; height: 6px; border-radius: 999px; background: #c84e1e;
  box-shadow: 0 0 0 0 rgba(200, 78, 30, .5);
  animation: pulse 1.8s infinite var(--ease);
}

.chat-window {
  background: #fff;
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
  height: 460px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.chat-host {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
.chat-host .url-bar {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.beat-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg-soft);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .35s var(--ease);
}
.beat-tag .square {
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.beat-tag.product .square { background: #6366f1; }
.beat-tag.sales   .square { background: #d97757; }
.beat-tag.team    .square { background: #16a34a; }

.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.right { justify-content: flex-end; }
.avatar {
  width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, #d97757, #6b3a22);
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 600;
}
.avatar.visitor { background: #f3f1ee; color: var(--ink-3); border: 1px solid var(--line); }
.bubble {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.bubble.ai {
  background: #f7f5f2;
  color: var(--ink-2);
  border-top-left-radius: 6px;
}
.bubble.visitor {
  background: var(--ink);
  color: #fff;
  border-top-right-radius: 6px;
}
.bubble.typing {
  display: inline-flex; gap: 4px; padding: 11px 13px;
}
.bubble.typing .d {
  width: 6px; height: 6px; border-radius: 999px; background: #c1bbb3;
  animation: dot 1.4s infinite var(--ease);
}
.bubble.typing .d:nth-child(2) { animation-delay: .15s; }
.bubble.typing .d:nth-child(3) { animation-delay: .3s; }
@keyframes dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.lead-capture {
  align-self: flex-start;
  margin-top: 4px;
  display: flex; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 8px 8px 14px;
  box-shadow: var(--shadow-sm);
  max-width: 78%;
}
.lead-capture input {
  border: none; outline: none; font-family: inherit; font-size: 14px;
  background: transparent; min-width: 200px; color: var(--ink);
}
.lead-capture input::placeholder { color: var(--ink-5); }
.lead-capture button {
  background: var(--ink); color: #fff;
  border: none; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 500;
}

.demo-footer {
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
  border-top: 1px solid var(--line-2);
  background: #fafaf9;
}
.demo-footer .scroll-link {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 18px -10px rgba(10, 10, 10, 0.45);
}
.demo-footer .scroll-link:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
}
.demo-footer .scroll-link:hover .arrow { transform: translateX(3px); }

/* ---------- Section 3: URL input ---------- */
.url-section {
  padding: calc(108px * var(--scale-global)) 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, #fdf3eb 0%, transparent 60%),
    #fff;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.url-form {
  display: flex; align-items: center; gap: 0;
  max-width: 640px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: all .3s var(--ease);
}
.url-form:focus-within { box-shadow: var(--shadow-lg); border-color: var(--ink-5); }
.url-form input {
  flex: 1; border: none; outline: none;
  background: transparent;
  padding: 14px 22px;
  font-family: inherit; font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.url-form input::placeholder { color: var(--ink-5); }
.url-form button {
  background: var(--ink); color: #fff; border: none;
  border-radius: 999px;
  padding: 14px 22px; font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .25s var(--ease);
}
.url-form button:hover { background: #1f1f1f; }
.url-reassure {
  text-align: center;
  margin-top: 18px;
  font-size: 13px; color: var(--ink-4);
  letter-spacing: -0.005em;
}
.url-loading {
  max-width: 640px; margin: 28px auto 0;
  display: flex; flex-direction: column; gap: 10px;
}
.url-loading .step {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--ink-4);
  padding: 8px 18px;
  border-radius: 12px;
  transition: all .4s var(--ease);
}
.url-loading .step.active { color: var(--ink); background: var(--bg-soft); }
.url-loading .step.done { color: var(--ink-3); }
.url-loading .step .icon {
  width: 18px; height: 18px; border-radius: 999px;
  border: 1.5px solid var(--ink-5);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.url-loading .step.done .icon {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.spinner {
  width: 14px; height: 14px;
  border: 1.5px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.url-loading .step.active .icon { border-color: transparent; }
.url-loading .step.active .icon .spinner { border-top-color: var(--accent); }

.url-ready {
  max-width: 640px; margin: 28px auto 0;
  background: var(--ink);
  border-radius: 22px;
  padding: 22px 24px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.url-ready .label { font-size: 14.5px; }
.url-ready .url-pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  background: rgba(255,255,255,.1);
  padding: 4px 10px; border-radius: 999px;
  margin-left: 8px;
}
.url-ready button {
  background: #fff; color: var(--ink); border: none;
  border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 500;
}

/* ---------- Section 4: Comparison table ---------- */
.cmp {
  max-width: 1100px; margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
}
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  align-items: center;
}
.cmp-row:first-child { border-top: none; }
.cmp-row > div {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.cmp-row.head > div {
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4);
  padding: 12px 16px;
  background: var(--bg-soft);
}
.cmp-row.head > div.our {
  color: var(--ink);
  background: #fff;
  border-bottom: 2px solid var(--ink);
}
.cmp-row > div.feature { color: var(--ink); font-weight: 500; }
.cmp-row > div.our { background: rgba(217,119,87,.04); }
.cmp-row > div + div { border-left: 1px solid var(--line-2); }
.cmp-cell { display: flex; align-items: center; gap: 8px; }
.cmp-tick, .cmp-cross {
  width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cmp-tick { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.cmp-cross { background: rgba(220, 38, 38, 0.10); color: #dc2626; }
.cmp-note {
  font-size: 11px; color: var(--ink-4); line-height: 1.3;
}
.cmp-legend {
  display: flex; gap: 22px; justify-content: center;
  margin-top: 14px;
  font-size: 12px; color: var(--ink-4);
}
.cmp-legend .li { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .cmp {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cmp-row {
    grid-template-columns: 200px repeat(3, 120px);
    min-width: 560px;
  }
  .cmp-row > div { padding: 14px 12px; font-size: 13px; }
  .cmp-row > div.feature {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
    border-right: 1px solid var(--line-2);
  }
  .cmp-row.head > div:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: var(--bg-soft);
    border-right: 1px solid var(--line-2);
  }
  .cmp-note { display: none; }
}

/* ---------- Section 5: Features bento ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px; margin: 0 auto;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 188px;
  transition: all .3s var(--ease);
}
.feature-card:hover {
  border-color: var(--ink-5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
}
.feature-card h3 { font-size: 15.5px; line-height: 1.2; }
.feature-card p {
  margin: 0; color: var(--ink-3); font-size: 12.8px; line-height: 1.45; flex: 1;
}
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- Section 6: Steps ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 8px 0;
}
.step-num {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 82px;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.step h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 500; }
.step p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; max-width: 320px; }
.step .timestamp {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink-4);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 6px;
  align-self: flex-start;
}
.step-post {
  margin-top: 44px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  max-width: 1100px; margin-left: auto; margin-right: auto;
  display: flex; gap: 20px; align-items: center;
}
.step-post .label {
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
  white-space: nowrap;
}
.step-post p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.step-post strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .step-post { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Section 7: Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1180px; margin: 0 auto;
}
.stat-card {
  border-radius: var(--r-xl);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.stat-card.dark { background: var(--ink); color: #fff; }
.stat-card.tan { background: #f4ece3; color: var(--ink); }
.stat-card.ivory { background: #fafaf9; color: var(--ink); border: 1px solid var(--line); }
.stat-num {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(58px, 6.8vw, 98px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: auto;
}
.stat-num .pct { font-size: .55em; opacity: .8; vertical-align: top; margin-left: 2px; }
.stat-card h3 {
  font-size: 19px; letter-spacing: -0.02em; font-weight: 500;
  margin-top: 6px;
}
.stat-card p {
  margin: 0; font-size: 13px; line-height: 1.45;
  color: rgba(0,0,0,.6);
}
.stat-card.dark p { color: rgba(255,255,255,.6); }
.stat-card .source {
  font-size: 11.5px; color: rgba(0,0,0,.4);
  margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.005em;
}
.stat-card.dark .source { color: rgba(255,255,255,.4); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Section 8: Pricing ---------- */
.pricing-card {
  max-width: 540px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 34px 34px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}
.pricing-eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
}
.pricing-price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 10px 0 4px;
}
.pricing-price .num {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  font-size: 82px; letter-spacing: -0.04em; line-height: 1;
}
.pricing-price .per { font-size: 14px; color: var(--ink-4); }
.pricing-trial {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,119,87,.08);
  color: #b04d23;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 16px;
}
.pricing-trial .dot { width: 6px; height: 6px; border-radius: 999px; background: #b04d23; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.pricing-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.pricing-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--good); }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-card .small { text-align: center; font-size: 12.5px; color: var(--ink-4); margin-top: 14px; }

/* ---------- Section 9: Trust ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 1180px; margin: 0 auto;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 216px;
}
.trust-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.trust-card h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 500; }
.trust-card p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Section 10: FAQ ---------- */
.faq-wrap {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1180px; margin: 0 auto;
}
.faq-left {
  grid-column: span 4;
  position: sticky; top: 100px;
  align-self: flex-start;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-left h2 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -0.03em; }
.faq-left p { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; max-width: 320px; margin: 0; }
.faq-list { grid-column: span 8; display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  background: transparent; border: none;
  text-align: left;
  font-size: 15px; font-weight: 500; letter-spacing: -0.012em;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .chev {
  transition: transform .35s var(--ease);
  color: var(--ink-4);
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--ink); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-a-inner {
  padding: 0 0 16px;
  color: var(--ink-3);
  font-size: 13px; line-height: 1.45;
  max-width: 560px;
}
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-left, .faq-list { grid-column: 1 / -1; }
  .faq-left { position: static; }
}

/* ---------- Section 11: Final CTA ---------- */
.final-cta {
  background: var(--dark);
  color: #fff;
  padding: calc(104px * var(--scale-global)) 0 calc(86px * var(--scale-global));
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(217,119,87,.20), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 100%, rgba(120, 90, 200, .12), transparent 60%);
}
.final-cta-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; padding: 0 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.final-cta h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 600;
}
.final-cta p {
  max-width: 560px; margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 15px; line-height: 1.45;
}
.final-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.final-cta .ctas .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.final-cta .micro {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 6px;
}
.final-cta .micro .sep { width: 3px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.3); }

.demo-form {
  margin-top: 32px;
  width: 100%; max-width: 540px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: 28px;
  text-align: left;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .55s var(--ease), opacity .35s var(--ease), margin-top .35s var(--ease), padding .35s var(--ease);
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}
.demo-form.open {
  max-height: 700px;
  opacity: 1;
  margin-top: 32px;
  padding: 28px;
}
.demo-form h4 {
  margin: 0 0 14px; font-size: 17px; font-weight: 500; color: #fff;
}
.demo-form .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.demo-form label {
  font-size: 12px; color: rgba(255,255,255,.55);
  letter-spacing: .04em; text-transform: uppercase;
}
.demo-form input, .demo-form textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.demo-form input:focus, .demo-form textarea:focus { border-color: rgba(255,255,255,.4); }
.demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255,255,255,.3); }
.demo-form textarea { min-height: 80px; resize: vertical; }
.demo-form .submit-row { display: flex; justify-content: flex-end; }
.demo-form button[type=submit] {
  background: #fff; color: var(--ink); border: none;
  border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.demo-form button[type=submit]:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.demo-form .success {
  text-align: center; color: rgba(255,255,255,.85); padding: 16px 0;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: 60px 0 36px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.5); margin: 0; line-height: 1.55; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a {
  font-size: 14px; color: rgba(255,255,255,.5);
  transition: color .2s var(--ease);
}
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  padding: 24px 32px 0;
  font-size: 12px; color: rgba(255,255,255,.4);
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- Misc ---------- */
.divider {
  height: 1px; background: var(--line-2); margin: 0;
}
::selection { background: var(--ink); color: #fff; }

/* ---------- Landing demo: email + errors + live preview ---------- */
.logo-img {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}
.url-email-wrap {
  max-width: 640px;
  margin: 0 auto 14px;
}
.url-email-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.url-email-wrap input:focus {
  border-color: var(--ink-5);
  box-shadow: var(--shadow-md);
}
.url-email-wrap input:disabled {
  opacity: .65;
}
.demo-error {
  max-width: 640px;
  margin: 12px auto 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: var(--bad);
  font-size: 14px;
  line-height: 1.45;
}
.demo-example-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-4);
  max-width: 560px;
  margin: -32px auto 48px;
  line-height: 1.5;
}
.live-preview-wrap {
  max-width: 720px;
  margin: 36px auto 0;
}
.live-preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.live-preview-top {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.live-preview-host {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-preview-host .url-bar {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-3);
  display: inline-block;
  width: fit-content;
}
.live-preview-sub {
  font-size: 13px;
  color: var(--ink-4);
}
.live-preview-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 87, 0.35);
  background: rgba(217, 119, 87, 0.08);
  color: #8b4518;
  white-space: nowrap;
}
.live-preview-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-soft);
  min-height: 120px;
}
.live-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.live-preview-chip {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.live-preview-lead {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}
.live-preview-lead p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.live-preview-lead .summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.live-preview-actions {
  padding: 18px 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.live-preview-actions .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s var(--ease);
}
.live-preview-actions .btn-outline:hover {
  border-color: var(--ink-5);
  background: var(--bg-soft);
}
