/* ─────────────────────────────────────────────────────────────────────────
   Unvent — Outwrite the room.
   Aesthetic: naturalist folio. Parchment ground, warm ink, deep-gold accent,
   hand-colored specimen engravings (art/, public domain, see art/CREDITS.md)
   blended into the paper with mix-blend-mode: multiply.
   Type: Instrument Serif (display) + Geist (body) + JetBrains Mono (labels).
   Radius rule: paper surfaces 4px, interactive controls full pill.
   ───────────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

:root {
  /* Palette: parchment (default, also mapped to data-palette="bone") */
  --bg:        oklch(0.953 0.020 92);
  --bg-2:      oklch(0.975 0.013 95);
  --bg-3:      oklch(0.926 0.024 90);
  --ink:       oklch(0.245 0.020 65);
  --ink-2:     oklch(0.355 0.020 65);
  --ink-3:     oklch(0.480 0.018 70);
  --ink-4:     oklch(0.600 0.016 75);
  --rule:      oklch(0.245 0.020 65 / 0.16);
  --rule-2:    oklch(0.245 0.020 65 / 0.30);
  --accent:    oklch(0.85 0.115 88);    /* champagne fill (buttons, chips) */
  --accent-2:  oklch(0.54 0.100 82);    /* deep old-gold (text + lines on parchment) */
  --accent-ink: oklch(0.24 0.030 85);   /* ink on champagne fills */

  /* Productivity-surface paper inside the demo */
  --paper:     oklch(0.985 0.006 95);
  --paper-2:   oklch(0.955 0.008 95);
  --paper-ink: oklch(0.235 0.012 70);
  --paper-rule: oklch(0.235 0.012 70 / 0.10);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --w: min(1240px, calc(100vw - 48px));

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
/* the waitlist pill shows its own focus ring on the container */
.waitlist input:focus-visible { outline: none; }

/* Aged-paper grain: one fixed, non-interactive layer. Desktop-only, since a
   full-viewport blended overlay is a scroll-compositing cost phones can skip. */
@media (min-width: 720px) {
  body::after {
    content: "";
    position: fixed; inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 240px 240px;
  }
}

/* ── Palette variants (Tweaks host tool) ─────────────────────────────── */
/* "bone" is the deployed default and inherits the parchment values from
   :root above; keep the rule so the Tweaks panel option stays valid. */
body[data-palette="bone"] {}
body[data-palette="ink"] {
  --bg:        oklch(0.17 0.010 75);
  --bg-2:      oklch(0.21 0.012 75);
  --bg-3:      oklch(0.25 0.013 75);
  --ink:       oklch(0.95 0.012 90);
  --ink-2:     oklch(0.85 0.014 90);
  --ink-3:     oklch(0.65 0.014 85);
  --ink-4:     oklch(0.46 0.013 80);
  --rule:      oklch(0.95 0.012 90 / 0.12);
  --rule-2:    oklch(0.95 0.012 90 / 0.22);
  --accent-2:  oklch(0.80 0.115 88);
}
body[data-palette="midnight"] {
  --bg:        oklch(0.15 0.020 250);
  --bg-2:      oklch(0.19 0.022 250);
  --bg-3:      oklch(0.23 0.025 250);
  --ink:       oklch(0.96 0.010 250);
  --ink-2:     oklch(0.84 0.012 250);
  --ink-3:     oklch(0.64 0.014 250);
  --ink-4:     oklch(0.46 0.016 250);
  --rule:      oklch(0.96 0.010 250 / 0.12);
  --rule-2:    oklch(0.96 0.010 250 / 0.22);
  --accent-2:  oklch(0.80 0.115 88);
}
/* Specimen engravings carry a white paper background; multiply blending
   erases it on parchment but turns into a smudge on dark grounds. */
body[data-palette="ink"] .specimen, body[data-palette="midnight"] .specimen { display: none; }
body[data-palette="ink"] .plan-pro, body[data-palette="midnight"] .plan-pro {
  background: var(--bg-2); background-blend-mode: normal;
}
/* ...and collapse their now-empty containers so dark palettes degrade
   deliberately instead of leaving blank art slots. */
body[data-palette="ink"] .tone-art, body[data-palette="midnight"] .tone-art { display: none; }
body[data-palette="ink"] .hero-vis, body[data-palette="midnight"] .hero-vis { height: 300px; }
body[data-palette="ink"] .tone-card, body[data-palette="midnight"] .tone-card { min-height: 220px; }

/* Accent variants (Tweaks host tool) */
body[data-accent="emerald"]   { --accent: oklch(0.82 0.16 155); --accent-2: oklch(0.46 0.13 155); --accent-ink: oklch(0.16 0.020 155); }
body[data-accent="electric"]  { --accent: oklch(0.88 0.20 120); --accent-2: oklch(0.46 0.15 130); --accent-ink: oklch(0.18 0.020 120); }
body[data-accent="violet"]    { --accent: oklch(0.78 0.16 295); --accent-2: oklch(0.46 0.15 295); --accent-ink: oklch(0.16 0.020 295); }
body[data-accent="ember"]     { --accent: oklch(0.82 0.16 55);  --accent-2: oklch(0.50 0.14 50);  --accent-ink: oklch(0.18 0.020 55);  }
body[data-palette="ink"][data-accent="emerald"], body[data-palette="midnight"][data-accent="emerald"]   { --accent-2: oklch(0.78 0.15 155); }
body[data-palette="ink"][data-accent="electric"], body[data-palette="midnight"][data-accent="electric"] { --accent-2: oklch(0.84 0.18 122); }
body[data-palette="ink"][data-accent="violet"], body[data-palette="midnight"][data-accent="violet"]     { --accent-2: oklch(0.74 0.15 295); }
body[data-palette="ink"][data-accent="ember"], body[data-palette="midnight"][data-accent="ember"]       { --accent-2: oklch(0.76 0.15 55);  }

/* ── Typography utilities ─────────────────────────────────────────────── */
.serif-i    { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
.mono       { font-family: var(--mono); font-weight: 500; letter-spacing: 0.01em; }
.eyebrow    { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.dot        { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); vertical-align: middle; margin: 0 8px 2px; }

/* ── Specimen engravings ──────────────────────────────────────────────── */
.specimen {
  display: block;
  mix-blend-mode: multiply;
  filter: saturate(0.94) contrast(1.02);
  user-select: none;
  pointer-events: none;
}

/* Paper plate: ivory sheet with a double hairline frame, like a mounted
   engraving. Shared by tone plates, pricing plans, the demo stage and the
   hero label card (each adds its own overrides below). */
.plate {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  box-shadow: 0 24px 44px -30px oklch(0.30 0.030 70 / 0.45);
}
.plate::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}

/* ── Scroll reveal (JS adds .rv-in via IntersectionObserver) ──────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Layout shell ─────────────────────────────────────────────────────── */
.shell { width: var(--w); margin: 0 auto; }

.rule-t { border-top: 1px solid var(--rule); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  line-height: 1; padding-bottom: 2px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent-2);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* ── Founding banner (shown only on ?utm_campaign=founding) ───────────── */
.founding-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; text-align: center;
  padding: 11px 20px; font-size: 14px; line-height: 1.4;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--accent) 22%, var(--bg));
  border-bottom: 1px solid color-mix(in oklab, var(--accent-2) 42%, transparent);
}
.founding-banner b { color: var(--accent-2); font-weight: 700; }
.founding-banner .fb-star { color: var(--accent-2); }
.founding-banner a {
  color: var(--ink); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.founding-banner a:hover { color: var(--accent-2); }
.founding-banner .fb-ast { color: var(--accent-2); font-weight: 700; }
.founding-banner .fb-note {
  flex-basis: 100%; margin-top: 2px;
  font-size: 11px; line-height: 1.45;
  color: var(--ink-2); /* full strength: it carries legal terms (AA floor) */
}
.founding-banner .fb-note a { color: inherit; font-weight: 600; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px;
  border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-chrome {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 24px 0 18px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500; cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .2s ease;
  box-shadow: 0 14px 26px -14px oklch(0.28 0.030 70 / 0.55);
}
.btn-chrome:hover { transform: translateY(-1px); }
.btn-chrome:active { transform: translateY(1px); }
.btn-chrome .ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 15px;
  line-height: 1; padding-bottom: 1px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center;
}
/* Grid items default to min-width:auto; the waitlist form's intrinsic width
   would blow the 1fr track past the viewport on phones (the hero's
   overflow:hidden then clips the copy). Let items shrink instead. */
.hero-grid > * { min-width: 0; }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 8.2vw, 120px);
  line-height: 0.97; letter-spacing: -0.02em;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
  padding-right: 0.04em; /* italic overshoot clearance */
}
.hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--ink-2);
  max-width: 40ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-accent-glow {
  position: absolute;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(52px);
  pointer-events: none;
  top: -240px; right: -220px;
  opacity: 0.55;
  /* Behind the hero content WITHOUT lifting siblings into z-index:1 stacking
     contexts: a lifted ancestor would isolate the specimens' multiply blend
     from the parchment and their white scan paper would show. */
  z-index: -1;
}

/* ── Hero visual: a flight of specimens + one pinned label card ───────── */
.hero-vis { position: relative; height: 540px; }
/* Wrappers position only. Opacity + animation live on the img itself:
   animating (or fading) an ancestor creates a stacking context that would
   isolate mix-blend-mode: multiply and reveal the white scan paper. */
.fl-sp { position: absolute; }
.fl-sp .specimen {
  width: 100%;
  opacity: var(--op, 1);
  animation: fl-in 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 140ms);
}
/* The idle drift is desktop-only: infinite transforms on blended layers are
   real compositing work, not worth the battery on phones. */
@media (min-width: 720px) {
  .fl-sp .specimen {
    animation:
      fl-in 0.9s var(--ease-out) both,
      fl-drift 7s ease-in-out infinite;
    animation-delay: calc(var(--i) * 140ms), calc(var(--i) * -1.7s);
  }
}
@keyframes fl-in {
  from { opacity: 0; }
}
@keyframes fl-drift {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--rot, 0deg) + 1.6deg)) translateY(-9px); }
}
/* Ascending flight: small + muted at bottom left, large + vivid top right. */
.fl-1 { --i: 5; --rot: -14deg; width: 76px;  left: 2%;   bottom: 6%;  --op: 0.6; }
.fl-2 { --i: 4; --rot: 10deg;  width: 96px;  left: 22%;  bottom: 20%; --op: 0.72; }
.fl-3 { --i: 3; --rot: -6deg;  width: 130px; left: 12%;  top: 24%; }
.fl-4 { --i: 2; --rot: 7deg;   width: 150px; left: 42%;  top: 6%; }
.fl-5 { --i: 1; --rot: -4deg;  width: 210px; right: 4%;  top: 22%; }
.fl-6 { --i: 6; --rot: 12deg;  width: 92px;  right: 22%; top: 6%;  --op: 0.8; }

/* The raw-to-rewritten duo: raw thought card pins first (top left), the
   rewritten plate lands over it offset right, the raw dims, then the pair
   drifts up and out for the next example. */
.fl-duo {
  position: absolute;
  right: 0; bottom: 0;
  width: min(440px, 100%);
  height: 305px;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fl-duo.is-exit { opacity: 0; transform: translateY(-28px); }
.fl-raw-card {
  position: absolute;
  left: 0; top: 0;
  width: min(320px, 80%);
  background: var(--bg-3);
  border: 1px dashed var(--rule-2);
  border-radius: 4px;
  padding: 14px 16px 12px;
  transform: rotate(-1.4deg);
  animation: duo-in-raw 0.6s var(--ease-out) both;
  transition: opacity 0.5s ease;
}
.fl-raw-card .fl-duo-text { font-style: italic; color: var(--ink-2); }
.fl-raw-card.is-dim { opacity: 0.58; }
@keyframes duo-in-raw {
  from { opacity: 0; transform: rotate(-1.4deg) translateY(20px); }
  to   { opacity: 1; transform: rotate(-1.4deg) translateY(0); }
}
.fl-out-card {
  position: absolute;
  right: 0; top: 96px;
  width: min(350px, 88%);
  padding: 16px 18px 14px;
  transform: rotate(1.1deg);
  animation: duo-in-out 0.7s var(--ease-out) both;
  z-index: 2;
}
@keyframes duo-in-out {
  from { opacity: 0; transform: rotate(1.1deg) translateY(24px); }
  to   { opacity: 1; transform: rotate(1.1deg) translateY(0); }
}
.fl-card-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.fl-card-tag.is-out { color: var(--accent-2); }
.fl-duo-text {
  margin: 0;
  font-family: var(--serif); font-size: 17px; line-height: 1.42;
  color: var(--ink);
}
.fl-out-card .fl-duo-text { min-height: 4.3em; /* typing fills without resizing */ }
.fl-caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent-2);
  margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
.fl-card-foot {
  margin-top: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-3);
}
@media (max-width: 1080px) {
  .hero-vis { height: 400px; max-width: 640px; margin: 0 auto; width: 100%; }
  .fl-1 { display: none; }
}
@media (max-width: 480px) {
  .hero-vis { height: 360px; }
  .fl-2 { display: none; }
  .fl-5 { width: 150px; }
  .fl-4 { width: 110px; }
  .fl-duo { height: 290px; }
  .fl-raw-card { width: min(280px, 84%); }
  .fl-out-card { width: min(300px, 92%); top: 92px; }
  .fl-duo-text { font-size: 15.5px; }
}

/* ── Living butterflies: vector silhouettes that flap and glide ────────
   The engravings stay pinned (they are specimens); these small gold vectors
   are the alive ones. Motivated motion: the brand story is raw thought
   becoming something worth framing. Constraints (from the design review):
   hero only, sparse passes with long idle gaps, never over copy or the CTA
   (the field starts right of the copy column and stops above the duo card),
   transform/opacity only, desktop-only, gone under reduced motion. */
.bfly-field { position: absolute; pointer-events: none; display: none; }
.bfly-field-hero { top: 0; bottom: 46%; left: 48%; right: 0; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .bfly-field { display: block; }
}
.bfly { position: absolute; top: 0; left: 0; width: 32px; height: auto; opacity: 0; will-change: transform, opacity; }
.bfly-wing path { fill: color-mix(in oklab, var(--accent-2) 60%, var(--ink)); }
.bfly-body { fill: var(--ink); }
.bfly-wing { transform-box: fill-box; }
.bfly-wing-l { transform-origin: 100% 50%; animation: bfly-flap .46s ease-in-out infinite; }
.bfly-wing-r { transform-origin: 0% 50%; animation: bfly-flap .46s ease-in-out infinite; }
.bfly-flap { transform-box: fill-box; transform-origin: 50% 50%; animation: bfly-bob .92s ease-in-out infinite; }
@keyframes bfly-flap {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.24); }
}
@keyframes bfly-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2.5px); }
}
/* Each variant glides its own long path, visible ~40% of the cycle. */
.bfly-a { animation: bfly-glide-a 24s ease-in-out infinite 2s; }
.bfly-b { width: 24px; animation: bfly-glide-b 30s ease-in-out infinite 11s; }
.bfly-c { width: 20px; animation: bfly-glide-c 36s ease-in-out infinite 19s; }
@keyframes bfly-glide-a {
  0%   { transform: translate3d(-30px, 210px, 0) rotate(10deg); opacity: 0; }
  5%   { opacity: 0.9; }
  16%  { transform: translate3d(150px, 120px, 0) rotate(-6deg); }
  30%  { transform: translate3d(360px, 160px, 0) rotate(7deg); }
  42%  { transform: translate3d(540px, 30px, 0) rotate(-9deg); opacity: 0.9; }
  48%  { transform: translate3d(620px, -20px, 0) rotate(-9deg); opacity: 0; }
  100% { transform: translate3d(620px, -20px, 0) rotate(-9deg); opacity: 0; }
}
@keyframes bfly-glide-b {
  0%   { transform: translate3d(560px, 40px, 0) rotate(-12deg); opacity: 0; }
  4%   { opacity: 0.75; }
  15%  { transform: translate3d(390px, 130px, 0) rotate(6deg); }
  28%  { transform: translate3d(180px, 60px, 0) rotate(-5deg); }
  38%  { transform: translate3d(30px, 130px, 0) rotate(8deg); opacity: 0.75; }
  44%  { transform: translate3d(-40px, 180px, 0) rotate(8deg); opacity: 0; }
  100% { transform: translate3d(-40px, 180px, 0) rotate(8deg); opacity: 0; }
}
@keyframes bfly-glide-c {
  0%   { transform: translate3d(200px, 240px, 0) rotate(4deg); opacity: 0; }
  5%   { opacity: 0.6; }
  18%  { transform: translate3d(320px, 110px, 0) rotate(-7deg); }
  32%  { transform: translate3d(470px, 150px, 0) rotate(9deg); opacity: 0.6; }
  40%  { transform: translate3d(560px, 60px, 0) rotate(9deg); opacity: 0; }
  100% { transform: translate3d(560px, 60px, 0) rotate(9deg); opacity: 0; }
}

/* ── Ticker ───────────────────────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden; padding: 13px 0;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: ticker 70s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ── Section header ───────────────────────────────────────────────────── */
.sec { padding: 104px 0; }
.sec-hd {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 56px;
}
.sec-hd h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
.sec-hd h2 em { font-style: italic; color: var(--accent-2); }

/* ── Manifesto ────────────────────────────────────────────────────────── */
.manifesto-wrap { position: relative; }
.manifesto {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12; letter-spacing: -0.015em;
  text-wrap: balance;
}
.manifesto p { margin: 0 0 34px; }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto em { font-style: italic; color: var(--accent-2); padding-right: 0.04em; }
.manifesto .small {
  display: block;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.manifesto-sp {
  position: absolute;
  width: 110px;
  right: -30px; top: -58px;
  transform: rotate(9deg);
  opacity: 0.85;
}
@media (max-width: 1080px) { .manifesto-sp { right: 0; } }
@media (max-width: 720px)  { .manifesto-sp { width: 78px; top: -44px; } }

/* ── Tone plates ──────────────────────────────────────────────────────── */
.tone-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 920px) { .tone-grid { grid-template-columns: 1fr; } }
.tone-card {
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 340px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.tone-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 30px 52px -30px oklch(0.30 0.030 70 / 0.6);
}
.tone-art {
  height: 150px;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.tone-art .specimen {
  max-height: 136px; max-width: 78%;
  transition: transform 0.5s var(--ease-out);
}
.tone-card:hover .tone-art .specimen { transform: scale(1.04) rotate(1deg); }
.tone-card .tone-name {
  font-family: var(--serif); font-size: 32px; line-height: 1;
  letter-spacing: -0.02em;
}
.tone-card .tone-hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2);
  margin-top: 6px;
}
.tone-card .tone-desc { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.tone-card blockquote {
  margin: auto 0 0; padding: 0 0 0 14px;
  font-family: var(--serif); font-style: italic;
  font-size: 18.5px; line-height: 1.4;
  color: var(--ink-2);
  border-left: 2px solid var(--accent-2);
}

/* ── Surfaces strip ───────────────────────────────────────────────────── */
.surfaces {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 920px) { .surfaces { grid-template-columns: repeat(3, 1fr); } }
.surf {
  padding: 30px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border-left: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s ease, background 0.25s ease;
}
.surf:first-child { border-left: 0; }
@media (max-width: 920px) { .surf:nth-child(4) { border-left: 0; } .surf:nth-child(n+4) { border-top: 1px solid var(--rule); } }
.surf svg { width: 26px; height: 26px; opacity: 0.8; transition: opacity 0.25s ease; }
.surf:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 3%, transparent); }
.surf:hover svg { opacity: 1; }

/* ── Receipts: editorial ledger, hairline columns instead of cards ────── */
.receipts {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule-2);
}
@media (max-width: 920px) { .receipts { grid-template-columns: 1fr; border-top: 0; } }
.receipt {
  padding: 30px 28px 8px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.receipt + .receipt { border-left: 1px solid var(--rule); padding-left: 28px; padding-right: 0; }
@media (max-width: 920px) {
  .receipt { border-top: 1px solid var(--rule); padding: 24px 0 8px; }
  .receipt + .receipt { border-left: 0; padding-left: 0; }
}
.receipt .num {
  font-family: var(--serif); font-size: clamp(38px, 3.6vw, 52px);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.receipt .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2);
}
.receipt p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; max-width: 44ch; }

/* ── Unvent Flow wave (voice-to-draft visual) ─────────────────────────── */
.flow-wave {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  margin-bottom: 40px;
}
.flow-mic { color: var(--accent-2); display: grid; place-items: center; flex: none; }
.flow-bars { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; height: 28px; overflow: hidden; }
.flow-bars i {
  flex: none;
  width: 3px; height: 9px; border-radius: 2px;
  background: var(--accent-2); opacity: 0.7;
}
/* Desktop-only, like the specimen drift: infinite animation is not worth
   phone batteries (the folio motion rule). */
@media (min-width: 720px) {
  .flow-bars i { animation: flow-bar 1.15s ease-in-out infinite; }
}
@keyframes flow-bar {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(2.3); }
}
.flow-out { flex: none; font-size: 13.5px; color: var(--ink-3); font-style: italic; }
.flow-out .flow-arrow {
  font-style: normal;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-2);
  margin: 0 4px;
}
@media (max-width: 720px) { .flow-out { display: none; } }

/* ── Tune-for strip (Pro) ─────────────────────────────────────────────── */
.tune-strip {
  max-width: 860px;
  padding: 30px 34px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.tune-audiences { display: flex; gap: 8px; flex-wrap: wrap; }
.tune-chip {
  padding: 7px 15px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2);
  cursor: default; /* illustrative, not interactive */
}
.tune-chip.on {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent; font-weight: 500;
}
.tune-chip-more { border-style: dashed; color: var(--ink-3); }
.tune-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 25px); line-height: 1.42;
  color: var(--ink);
  max-width: 52ch;
  text-wrap: pretty;
}
.tune-note {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2);
}

/* ── Pricing / CTA ────────────────────────────────────────────────────── */
.cta-block {
  text-align: center;
  padding: 96px 0 120px;
  border-top: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.cta-block h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 7.6vw, 108px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.cta-block h2 em { font-style: italic; color: var(--accent-2); padding-right: 0.04em; }
.cta-block .cta-sub {
  font-size: 18px; color: var(--ink-2);
  max-width: 46ch; margin: 0 auto 8px;
}
.cta-block-glow {
  position: absolute; left: 50%; bottom: -320px; transform: translateX(-50%);
  width: 960px; height: 620px; border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in oklab, var(--accent) 30%, transparent), transparent 62%);
  filter: blur(56px);
  pointer-events: none;
  opacity: 0.55;
  z-index: -1; /* keep siblings unlifted so specimen blending survives */
}
.cta-sp {
  width: 104px; margin: 0 auto 6px;
  transform: rotate(-5deg);
}

/* ─────────────────────────────────────────────────────────────────────────
   INTERACTIVE COMPOSER DEMO
   ───────────────────────────────────────────────────────────────────────── */

.composer { display: flex; flex-direction: column; gap: 22px; }

.composer-tabs {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.composer-tab-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.composer-tabs-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-tab {
  appearance: none;
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .12s;
}
.composer-tab:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.composer-tab:active { transform: translateY(1px); }
.composer-tab.on {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.composer-tab.on .composer-tab-surface { color: color-mix(in oklab, var(--bg) 55%, transparent); }
.composer-tab-surface {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.composer-tab-name { font-size: 14px; font-weight: 500; }

/* The framed demo stage is a .plate (see composer.jsx); only padding,
   overflow and the frame's stacking tweak live here. */
.composer-stage {
  padding: 14px;
  overflow: visible;
  box-shadow: 0 32px 56px -34px oklch(0.30 0.030 70 / 0.55);
}
.composer-stage::before { z-index: 2; }
/* When the Unvent popover is open, push the chrome's bottom edge down
   so the surface fully wraps the popover with a small spill below.
   Slack scenario: popover floats ABOVE the composer instead. */
.composer-stage.pop-open .gmail-body { padding-bottom: 200px; }
.composer-stage.pop-open.stage-slack-up .gmail-body { padding-bottom: 6px; }
.composer-stage.pop-open .slack-composer { padding-bottom: 200px; }
.composer-stage.pop-open.stage-slack-up .slack-composer { padding-bottom: 0; }
.composer-stage.pop-open.stage-slack-up .slack-feed { padding-top: 320px; }
.composer-stage.pop-open .li-composer { padding-bottom: 200px; }
@media (max-width: 720px) {
  .composer-stage.pop-open .gmail-body,
  .composer-stage.pop-open .li-composer { padding-bottom: 320px; }
  .composer-stage.pop-open .slack-composer { padding-bottom: 320px; }
  .composer-stage.pop-open.stage-slack-up .slack-feed { padding-top: 440px; }
  .composer-stage.pop-open.stage-slack-up .slack-composer { padding-bottom: 0; }
}

.srf {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 3px;
  border: 1px solid var(--paper-rule);
  overflow: visible;  /* let the Unvent popover escape; bar gets its own clip */
  position: relative;
}
.srf-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--paper-rule);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.srf-traffic { display: flex; gap: 7px; }
.srf-traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.srf-url {
  flex: 1;
  font-family: var(--mono); font-size: 11.5px; color: color-mix(in oklab, var(--paper-ink) 60%, transparent);
  text-align: center;
  padding: 5px 10px;
  background: color-mix(in oklab, var(--paper-ink) 4%, transparent);
  border-radius: 6px;
}
.srf-spacer { width: 56px; }

/* ── Gmail compose ──────────────────────────────────────────────────── */
.gmail-compose { padding: 0; }
.gmail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: #404040; color: #fff;
  font-size: 13px; font-weight: 500;
}
.gmail-head-actions { display: flex; gap: 14px; }
.gmail-head-actions i { width: 12px; height: 12px; background: rgba(255,255,255,.6); border-radius: 2px; display: block; }
.gmail-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--paper-rule);
  font-size: 14px;
}
.gmail-row label { color: color-mix(in oklab, var(--paper-ink) 55%, transparent); width: 56px; }
.gmail-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  background: color-mix(in oklab, var(--paper-ink) 6%, transparent);
  border-radius: 999px;
  font-size: 13px;
}
.gmail-pill::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.72 0.12 30), oklch(0.62 0.16 290));
}
.gmail-subj { color: var(--paper-ink); font-weight: 500; }
.gmail-body { padding: 20px 18px 6px; }
.gmail-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 16px;
}
.gmail-send {
  background: #1a73e8; color: #fff;
  border: 0; border-radius: 999px;
  padding: 9px 22px; font-weight: 500;
  cursor: default;
}
.gmail-foot-actions { display: flex; gap: 18px; }
.gmail-foot-actions i { width: 14px; height: 14px; background: color-mix(in oklab, var(--paper-ink) 40%, transparent); border-radius: 3px; display: block; }

/* ── Slack ──────────────────────────────────────────────────────────── */
.slack-feed { padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 12px; }
.slack-msg { display: flex; gap: 12px; }
.slack-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.slack-bubble { flex: 1; }
.slack-name { font-weight: 700; font-size: 14px; color: var(--paper-ink); }
.slack-name span { font-weight: 400; color: color-mix(in oklab, var(--paper-ink) 50%, transparent); font-size: 12px; }
.slack-text { font-size: 14.5px; color: color-mix(in oklab, var(--paper-ink) 88%, transparent); line-height: 1.45; margin-top: 1px; }

.slack-composer {
  margin: 6px 18px 18px;
  border: 1px solid color-mix(in oklab, var(--paper-ink) 18%, transparent);
  border-radius: 12px;
  overflow: visible;
  background: var(--paper);
}
.slack-composer-tools, .slack-composer-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: color-mix(in oklab, var(--paper-ink) 3%, transparent);
}
.slack-composer-tools i {
  font-style: normal; font-size: 12px; font-weight: 600;
  color: color-mix(in oklab, var(--paper-ink) 55%, transparent);
}
.slack-composer-foot { justify-content: space-between; }
.slack-channel { font-family: var(--mono); font-size: 11px; color: color-mix(in oklab, var(--paper-ink) 50%, transparent); }
.slack-send {
  width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: #007a5a; color: #fff;
  font-size: 16px; cursor: default;
}

/* ── LinkedIn ───────────────────────────────────────────────────────── */
.li-thread { padding: 0; }
.li-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper-rule);
}
.li-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.68 0.12 240), oklch(0.5 0.18 260));
  color: #fff; display: grid; place-items: center;
  font-weight: 600;
}
.li-name { font-weight: 600; color: var(--paper-ink); font-size: 14.5px; }
.li-sub { font-size: 12px; color: color-mix(in oklab, var(--paper-ink) 55%, transparent); }
.li-msgs { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.li-bub {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.li-bub-them {
  background: color-mix(in oklab, var(--paper-ink) 6%, transparent);
  border-bottom-left-radius: 4px;
  color: var(--paper-ink);
}
.li-time {
  font-family: var(--mono);
  font-size: 10px;
  color: color-mix(in oklab, var(--paper-ink) 45%, transparent);
  margin-top: 6px;
}
.li-composer { padding: 12px 18px 14px; border-top: 1px solid var(--paper-rule); }
.li-composer-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.li-tools { display: flex; gap: 14px; }
.li-tools i { font-style: normal; font-size: 13px; color: color-mix(in oklab, var(--paper-ink) 55%, transparent); }
.li-send {
  background: #0a66c2; color: #fff;
  border: 0; border-radius: 999px;
  padding: 8px 22px; font-weight: 500; font-size: 13px;
  cursor: default;
}

/* ── Textarea (shared across surfaces) ──────────────────────────────── */
.ta-wrap {
  position: relative;
}
.ta {
  width: 100%;
  background: transparent;
  color: var(--paper-ink);
  border: 0; outline: 0;
  resize: none;
  font-family: var(--sans);
  font-size: 14.5px; line-height: 1.55;
  padding: 0;
  transition: opacity .2s ease, transform .25s ease;
}
.ta.fading { opacity: 0.2; transform: translateY(2px); }
.ta.applied {
  animation: applied-flash 1.1s ease-out;
}
@keyframes applied-flash {
  0%   { background: color-mix(in oklab, var(--accent) 40%, transparent); }
  100% { background: transparent; }
}

/* ── Unvent floating chip ───────────────────────────────────────────── */
.uv-chip {
  position: absolute;
  bottom: -10px; right: -10px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 11px;
  border: 0; border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 10px 28px rgba(60,48,30,.22),
    0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.3,1.2), box-shadow .25s;
}
.uv-chip.on {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
/* The breathing halo is a pseudo-element animating OPACITY only (the folio
   motion law bans animating box-shadow: it repaints every frame). */
.uv-chip::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 24%, transparent);
  opacity: 0; pointer-events: none;
}
.uv-chip.on::after { animation: chip-glow 3.2s ease-in-out infinite; }
@keyframes chip-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.uv-chip:hover { transform: translateY(-2px) scale(1.02); }
.uv-chip-mark {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 5px;
  display: grid; place-items: center;
  position: relative;
}
.uv-chip-mark i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  display: block;
}
.uv-chip-label { letter-spacing: -0.005em; }
.uv-chip-kbd {
  font-family: var(--mono); font-size: 10px;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  padding: 2px 6px;
  border: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  border-radius: 4px;
}
/* ── Pricing plans ───────────────────────────────────────────────────── */
.bill-toggle {
  display: inline-flex; gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  background: var(--bg-2);
  margin: 28px auto 0;
}
.bill-toggle button {
  appearance: none; border: 0; cursor: pointer;
  padding: 8px 24px; min-height: 36px;
  border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.12s;
}
.bill-toggle button:not(.on):hover { color: var(--ink); }
.bill-toggle button:active { transform: translateY(1px); }
.bill-toggle button.on { background: var(--ink); color: var(--bg); }

.plan-per {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 7px;
}
.plan-save {
  align-self: flex-start;
  margin: 2px 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 38%, transparent);
  color: var(--accent-ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-tagline {
  margin: 0 0 14px;
  font-family: var(--serif); font-style: italic;
  font-size: 15.5px; color: var(--ink-3);
}
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1080px; margin: 56px auto 20px;
  text-align: left;
  align-items: start;
}
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plans-fine {
  margin: 0 auto 44px;
  text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-3);
}
.plan {
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; gap: 0;
}
.plan > .plan-name { min-height: 20px; margin-bottom: 0; }
.plan > .plan-price { margin-top: 6px; margin-bottom: 18px; }
.plan-pro {
  border-color: color-mix(in oklab, var(--accent-2) 45%, var(--rule-2));
  background:
    url("art/specimen-callimorpha.jpg") no-repeat right -58px bottom -54px / 175px auto,
    var(--bg-2);
  background-blend-mode: multiply, normal;
  padding-bottom: 44px;
}
.plan-pro::before { border-color: color-mix(in oklab, var(--accent-2) 30%, var(--rule)); }
.plan-name {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.plan-pro .plan-name { color: var(--accent-2); font-weight: 700; }
.plan-tag {
  font-size: 9px;
  padding: 2px 8px;
  background: color-mix(in oklab, var(--accent) 40%, transparent);
  color: var(--accent-ink);
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.plan-price {
  font-family: var(--serif); font-size: 50px; line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.plan-price .plan-from {
  font-size: 20px; letter-spacing: 0;
  color: var(--ink-3);
  margin-right: 4px;
}
.plan-price span:not(.plan-from) {
  font-family: var(--sans); font-size: 14px;
  color: var(--ink-3);
  margin-left: 6px;
}
.plan ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 14.5px; color: var(--ink-2);
}
.plan ul li {
  position: relative; padding-left: 20px;
}
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-size: 12px; font-weight: 600;
}
.plan ul li.plan-perk-hl {
  color: var(--accent-2); font-weight: 500;
}
.plan-waitlist { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-waitlist .waitlist { max-width: 100%; }

/* ── Waitlist form ───────────────────────────────────────────────────── */
.waitlist {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 18px;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  max-width: 480px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist:focus-within {
  border-color: color-mix(in oklab, var(--accent-2) 55%, var(--rule-2));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.waitlist.large { padding: 6px 6px 6px 22px; }
.waitlist input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 10px 26px color-mix(in oklab, var(--accent) 45%, transparent),
    0 2px 6px color-mix(in oklab, var(--accent) 25%, transparent);
  border: 0; border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .12s ease;
  white-space: nowrap;
}
.waitlist.large .waitlist-cta { height: 52px; padding: 0 28px; font-size: 15px; }
.waitlist-cta:hover { transform: translateY(-1px); }
.waitlist-cta:active { transform: translateY(1px); }
.waitlist-cta:disabled { opacity: 0.6; cursor: wait; transform: none; }
.waitlist-cta-arrow { transition: transform .15s; }
.waitlist-cta:hover .waitlist-cta-arrow { transform: translateX(2px); }

.waitlist-err {
  width: 100%;
  font-family: var(--mono); font-size: 11px;
  color: oklch(0.50 0.16 25);
  margin-top: 6px;
}

.waitlist-done {
  padding: 14px 22px;
  font-size: 14.5px;
  color: var(--ink);
  background: color-mix(in oklab, var(--accent) 16%, var(--bg-2));
  border-color: color-mix(in oklab, var(--accent-2) 40%, var(--rule-2));
}
.waitlist-tick {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%; font-size: 11px;
  margin-right: 10px;
  flex: none;
}

.cta-waitlist {
  max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-waitlist-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.cta-waitlist-meta {
  font-size: 12px; color: var(--ink-2);
}

/* ── Unvent expanded popover ────────────────────────────────────────── */
.uv-pop {
  position: absolute;
  bottom: -20px; right: -20px;
  transform: translateY(40%);
  width: min(440px, calc(100% + 40px));
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 18px 18px 16px;
  font-family: var(--sans);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 24px 60px rgba(60,48,30,.35),
    0 0 0 4px color-mix(in oklab, var(--accent) 26%, transparent);
  z-index: 10;
  animation: pop-in .35s cubic-bezier(.2,.7,.3,1.1);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(46%) scale(0.96); }
  to   { opacity: 1; transform: translateY(40%) scale(1); }
}
@keyframes pop-in-up {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.uv-pop.uv-pop-up {
  top: auto;
  bottom: 100%;
  margin-bottom: 64px;  /* clears the slack-composer tools row + textarea wrap */
  transform: none;
  animation: pop-in-up .35s cubic-bezier(.2,.7,.3,1.1);
}
@media (max-width: 720px) {
  .uv-pop { right: 0; left: 0; width: auto; }
}

.uv-pop-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.uv-pop-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.uv-mark {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 5px;
  display: grid; place-items: center;
}
.uv-mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: block; }
.uv-pop-title { font-weight: 600; letter-spacing: -0.005em; }
.uv-pop-dot { color: color-mix(in oklab, var(--bg) 40%, transparent); }
.uv-pop-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}
.uv-pop-x {
  width: 22px; height: 22px;
  border: 0; background: transparent;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  cursor: pointer; border-radius: 5px;
  font-size: 11px;
}
.uv-pop-x:hover { background: color-mix(in oklab, var(--bg) 10%, transparent); color: var(--bg); }

.uv-tonebar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 4px;
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border-radius: 10px;
  margin-bottom: 14px;
}
.uv-tone {
  appearance: none; border: 0; cursor: pointer;
  padding: 8px 10px;
  background: transparent;
  color: color-mix(in oklab, var(--bg) 72%, transparent);
  border-radius: 7px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  transition: background .15s, color .15s;
}
.uv-tone:hover { color: var(--bg); }
.uv-tone.on {
  background: var(--accent);
  color: var(--accent-ink);
}
.uv-tone-name { font-weight: 600; font-size: 13px; letter-spacing: -0.005em; }
.uv-tone-hint {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in oklab, currentColor 70%, transparent);
}
.uv-tone.on .uv-tone-hint { color: color-mix(in oklab, var(--accent-ink) 70%, transparent); }

.uv-preview {
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.uv-preview-text {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--bg);
  min-height: 6em;
}
.uv-caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent);
  margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.uv-notes {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.uv-notes li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  font-family: var(--mono); font-size: 10.5px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  border-radius: 999px;
}
.uv-tick { font-size: 10px; }

.uv-pop-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
}
.uv-foot-meta {
  font-family: var(--mono); font-size: 10.5px;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  display: flex; gap: 8px; align-items: center;
}
.uv-foot-meta .mono {
  background: color-mix(in oklab, var(--bg) 14%, transparent);
  padding: 2px 5px; border-radius: 4px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
}
.uv-apply {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0; border-radius: 8px;
  padding: 9px 16px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: transform .12s;
}
.uv-apply:hover { transform: translateY(-1px); }
.uv-apply:active { transform: translateY(1px); }

.applied-pill {
  position: absolute;
  top: -14px; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 8px;
  background: color-mix(in oklab, var(--accent) 30%, var(--paper));
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent-2) 45%, transparent);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: pop-in-up .4s ease both;
}
.applied-tick {
  width: 14px; height: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px;
}

.composer-nudge {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px solid var(--rule-2); border-radius: 4px;
  background: var(--bg-2);
  font-family: var(--serif); font-size: 19px; color: var(--ink);
  animation: pop-in-up 0.4s var(--ease-out) both;
}
.waitlist-done-next { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

.composer-caption {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap;
}
.composer-caption .mono {
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 3px 8px; border-radius: 6px;
  color: var(--ink-2);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap; gap: 16px;
}
footer a:hover { color: var(--ink); }
.foot-credit {
  flex-basis: 100%;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: none;
}

/* ===== Legal pages (privacy.html / terms.html) ===== */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 120px 24px 96px; }
.legal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.legal-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); border-radius: 8px;
  font-family: var(--serif); font-style: italic; font-size: 19px;
}
.legal-wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; margin: 28px 0 6px; }
.legal .legal-updated { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 28px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 38px 0 10px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal-tldr {
  background: var(--bg-2); border: 1px solid var(--rule-2);
  border-radius: 4px; padding: 18px 22px; margin: 8px 0 16px;
}
.legal-tldr strong { color: var(--ink); }
.legal-note {
  font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule);
  margin-top: 48px; padding-top: 18px;
}
.legal-foot { margin-top: 28px; font-family: var(--mono); font-size: 12px; }
.legal-foot a { margin-right: 18px; }
footer .foot-links { display: flex; gap: 28px; }

/* ── Mobile deep pass (720 + 480) ─────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero h1 { font-size: clamp(46px, 12.5vw, 120px); }
  .cta-block h2 { font-size: clamp(38px, 10vw, 108px); }
  /* comfortable tap targets on touch widths */
  .uv-pop-x { width: 44px; height: 44px; font-size: 14px; }
  .composer-tab { min-height: 44px; }
  .uv-tone { min-height: 44px; }
  .btn-chrome, .btn-primary, .waitlist-cta { min-height: 44px; }
  /* scenario tabs: one scrollable row instead of a squashed wrap */
  .composer-tabs { flex-direction: column; align-items: flex-start; gap: 10px; }
  .composer-tabs-wrap {
    flex-wrap: nowrap; max-width: 100%;
    overflow-x: auto; padding: 4px 0 6px; /* headroom so focus rings aren't clipped */
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .composer-tab { flex: none; scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .sec { padding: 64px 0; }
  .cta-block { padding: 64px 0 88px; }
  .hero { padding: 48px 0 32px; }
  .founding-banner { font-size: 13px; }
  .composer-stage { padding: 8px; }
  .plan { padding: 24px 20px; }
  .receipt p { max-width: none; }
  /* the pill form is wider than a phone: stack input over button */
  .waitlist, .waitlist.large { flex-wrap: wrap; padding: 8px; border-radius: 20px; gap: 8px; }
  .waitlist input { flex: 1 1 100%; padding: 8px 12px; }
  .waitlist .waitlist-cta { flex: 1 1 100%; justify-content: center; }
  /* popover: keep the tone pills readable, never squashed */
  .uv-pop { padding: 14px 12px 12px; }
  .uv-tonebar { gap: 4px; }
  .uv-tone { padding: 8px 6px; align-items: center; text-align: center; }
  .uv-tone-name { font-size: 12.5px; }
  .uv-tone-hint { display: none; }
  .uv-pop-foot { flex-wrap: wrap; gap: 10px; }
  .uv-apply { white-space: nowrap; flex: 1; }
  .bill-toggle button { padding: 8px 18px; min-height: 44px; }
  .tune-strip { padding: 22px 18px; }
}
/* Reduced motion: freeze the marquee, caret, chip glow and specimen drift.
   (The butterflies and flow bars are also gated at their declaration sites.) */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .uv-caret { animation: none; }
  .fl-caret { animation: none; }
  .uv-chip.on { animation: none; }
  .uv-chip.on::after { animation: none; opacity: 0.6; }
  .fl-sp { animation: none; }
  .fl-sp .specimen { animation: none; }
  .fl-raw-card, .fl-out-card { animation: none; }
  .fl-duo { transition: none; }
  .fl-caret { animation: none; }
  .tone-card, .tone-art .specimen { transition: none; }
  .flow-bars i { animation: none; }
  .bfly, .bfly-wing-l, .bfly-wing-r, .bfly-flap { animation: none; }
}

/* ── /start page ─────────────────────────────────────────────────────── */
.start-surfaces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 920px) { .start-surfaces { grid-template-columns: 1fr; } }
.start-surface-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.start-surface-tone { font-size: 13px; color: var(--ink-3); }
.start-surface-tone b { color: var(--accent-2); }
.start-surface-scenario { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.ta-static { white-space: pre-wrap; margin: 0; }
/* static surface cards: reserve headroom so the applied pill sits above the text */
.start-surface .ta-wrap { padding-top: 16px; }
.start-surface .applied-pill { top: -10px; }
.start-catchall { margin-top: 40px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 34px); color: var(--ink-2); text-wrap: balance; }
.start-hero-sp {
  position: absolute; pointer-events: none;
}
.start-hero-sp .specimen { width: 100%; }
.start-sp-1 { width: 130px; right: 7%; top: 46px; }
.start-sp-1 .specimen { transform: rotate(8deg); }
.start-sp-2 { width: 96px; left: 6%; top: 90px; }
.start-sp-2 .specimen { transform: rotate(-10deg); }
@media (max-width: 920px) {
  /* the centered hero headline needs the margins back on narrow screens */
  .start-hero-sp { display: none; }
}

/* Unvent Flow section footnote: the honest availability hedge, quiet. */
.dictate-note {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 62ch;
}
