:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #f6f6f5;          /* slightly warmer alternating section bg */
  --ink: #0a0a0a;              /* not pure-black — feels more substantive */
  --ink-2: #1f1f1f;
  --muted: #6b6b6b;
  --muted-2: #8a8a8a;
  --line: #e8e8e8;
  --line-soft: #f0f0ee;
  --radius: 12px;
  --radius-lg: 18px;

  /* Multi-layer flat shadows — still 2D (no 3D / perspective), but the
   * combined ambient + key layer reads as more substantial. */
  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md:
    0 1px 2px rgba(10,10,10,0.04),
    0 4px 12px rgba(10,10,10,0.05),
    0 16px 32px rgba(10,10,10,0.04);
  --shadow-lg:
    0 1px 2px rgba(10,10,10,0.06),
    0 8px 24px rgba(10,10,10,0.06),
    0 32px 64px rgba(10,10,10,0.06);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ─── Page preloader (jumping logo) ─── */
#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.45s ease;
}
#page-preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-logo {
  width: 64px;
  height: 64px;
  animation: xliftLogoJump 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 50% 100%;
}
@keyframes xliftLogoJump {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: none; }
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: #d4d4d4; }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-lg { font-size: 17px; padding: 16px 32px; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 96px 32px 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.10));
  animation:
    swipeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 forwards,
    jump 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 1.5s 1 forwards,
    float 4s ease-in-out 2.3s infinite;
}
@keyframes swipeIn {
  0% {
    opacity: 0;
    transform: translateX(-110vw) rotate(-12deg);
  }
  60% {
    opacity: 1;
    transform: translateX(8px) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}
@keyframes jump {
  0%   { transform: translateY(0) scale(1, 1); }
  18%  { transform: translateY(0) scale(1.12, 0.85); }
  50%  { transform: translateY(-32px) scale(0.95, 1.06); }
  82%  { transform: translateY(0) scale(1.1, 0.88); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.x-mark {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 0 0.18em;
  border-radius: 8px;
  transform: translateY(-0.05em);
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── Section head (shared) ─── */
.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.section-eyebrow .num {
  color: var(--ink);
  font-weight: 800;
  margin-right: 4px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}
.section-head p {
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

/* ─── Trusted-by marquee ─── */
.marquee {
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 96px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.marquee-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 24px;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item--alt { font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; }
.marquee-item--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 500; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ─── Pull quote (editorial divider) ─── */
.pull-quote {
  padding: 120px 32px 140px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Children sit above the falling mascots */
.pull-quote-mark,
.pull-quote-body,
.pull-quote-attr {
  position: relative;
  z-index: 2;
}

/* ─── Feature card mini-demos ───────────────────────────────────────
 * Each card gets a "real product slice" — not decoration, an actual
 * UI panel that demonstrates the feature in micro-action.
 * Cards 1 + 6 are dark (inverse bento cards); 2–5 are light.
 * Shared tokens: dark = light-on-rgba; light = dark-on-bg-soft. */

.feature .demo-ticker,
.feature .demo-queue,
.feature .demo-draft,
.feature .demo-mode,
.feature .demo-replies,
.feature .demo-inbox {
  margin-top: auto;     /* pushes demo to bottom of the card */
  padding-top: 18px;    /* keeps a visual gap above the demo even when */
  flex-shrink: 0;       /* the card is shorter than expected            */
}

/* shared header strip used in several demos */
.demo-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.demo-hdr .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-hdr .live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d5a;
  box-shadow: 0 0 0 0 rgba(255, 77, 90, 0.6);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 77, 90, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 77, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 90, 0); }
}

/* ── 1. Brand tracking — live ops feed (DARK card) ─────────────── */
.demo-ticker {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font);
}
.demo-ticker .demo-hdr {
  color: rgba(255,255,255,0.55);
}
.demo-ticker .demo-hdr .live-label { color: #ff4d5a; }
.demo-ticker .counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font-weight: 700;
}
.demo-ticker .counter .num {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.demo-ticker .counter .delta {
  font-size: 9.5px;
  font-weight: 700;
  color: #00d68f;
  letter-spacing: 0.05em;
}
.demo-ticker-feed {
  height: 96px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 14%, black 86%, transparent 100%);
  margin: 0 -4px;
}
.demo-ticker-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px;
  animation: tickerScroll 18s linear infinite;
}
@keyframes tickerScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.demo-mention {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,0.86);
  font-size: 11.5px;
  line-height: 1.4;
}
.demo-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  color: rgba(255,255,255,0.94);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-mention .who { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.demo-mention .who b { color: #fff; font-weight: 700; font-size: 11.5px; }
.demo-mention .who time { color: rgba(255,255,255,0.42); font-size: 10.5px; }
.demo-mention .quote {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 11.5px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-mention .sent {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.demo-mention .sent--pos { background: #00d68f; box-shadow: 0 0 0 2px rgba(0,214,143,0.18); }
.demo-mention .sent--neu { background: #c4c8d0; box-shadow: 0 0 0 2px rgba(200,200,200,0.14); }
.demo-mention .sent--neg { background: #ff4d5a; box-shadow: 0 0 0 2px rgba(255,77,90,0.22); }

.demo-ticker-spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  margin-top: 12px;
  padding: 0 2px;
}
.demo-ticker-spark span {
  flex: 1;
  background: linear-gradient(to top, rgba(255,255,255,0.10), rgba(255,255,255,0.30));
  border-radius: 2px 2px 0 0;
  height: var(--h, 20%);
  animation: sparkBob 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes sparkBob {
  0%, 100% { transform: scaleY(1); transform-origin: bottom; }
  50%      { transform: scaleY(1.4); transform-origin: bottom; }
}

/* ── 2. Schedule posts — queue with countdown (LIGHT) ─────────── */
.demo-queue {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font);
}
.demo-queue .demo-hdr {
  color: var(--muted-2);
  margin-bottom: 8px;
}
.demo-queue-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.demo-queue-count .big {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.demo-queue-count .small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.demo-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-queue-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 11px;
}
.demo-queue-row.is-next {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.demo-queue-row.is-next .demo-q-time { color: #fff; }
.demo-queue-row.is-next .demo-q-text { color: rgba(255,255,255,0.84); }
.demo-q-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-size: 10.5px;
}
.demo-q-text {
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-q-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.5;
}
.demo-queue-row.is-next .demo-q-dot {
  background: #00d68f;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(0,214,143,0.25);
  animation: livePulse 1.6s ease-in-out infinite;
}

/* ── 3. Editable AI drafts — draft + voice check + actions (LIGHT) ── */
.demo-draft {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--font);
}
.demo-draft .demo-hdr {
  color: var(--muted-2);
  margin-bottom: 8px;
}
.demo-draft-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  min-height: 48px;
  letter-spacing: -0.005em;
}
.demo-draft-text { font-weight: 500; }
.demo-draft-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: caretBlink 1s steps(1) infinite;
  transform: translateY(2px);
}
@keyframes caretBlink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.demo-draft-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.demo-voice-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00a86b;
  text-transform: uppercase;
  opacity: 0;
  animation: voiceCheckIn 4s ease-in-out infinite;
}
.demo-voice-check::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00a86b;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
@keyframes voiceCheckIn {
  0%, 45% { opacity: 0; transform: translateX(-4px); }
  50%, 95% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
.demo-actions { display: inline-flex; gap: 6px; }
.demo-act {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.demo-act--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── 4. Auto/semi-auto — mode toggle + reactive rules (LIGHT) ── */
.demo-mode {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.demo-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.demo-toggle-track {
  position: relative;
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}
.demo-toggle-label {
  position: relative;
  z-index: 2;
  padding: 6px 16px;
  color: var(--muted);
  transition: color 0.3s ease;
  user-select: none;
}
.demo-toggle-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--ink);
  border-radius: 999px;
  z-index: 1;
  animation: toggleSlide 5.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
@keyframes toggleSlide {
  0%, 42%  { transform: translateX(0); }
  50%, 92% { transform: translateX(100%); }
  100%     { transform: translateX(0); }
}
.demo-toggle-label--l { animation: lblL 5.2s steps(1) infinite; }
.demo-toggle-label--r { animation: lblR 5.2s steps(1) infinite; }
@keyframes lblL {
  0%, 46%  { color: #fff; }
  47%, 99% { color: var(--muted); }
}
@keyframes lblR {
  0%, 46%  { color: var(--muted); }
  47%, 99% { color: #fff; }
}
.demo-rules {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  overflow: hidden;
  min-height: 88px;
}
.demo-rule-set {
  position: absolute;
  inset: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-rule-set--semi { animation: rulesSemi 5.2s steps(1) infinite; }
.demo-rule-set--auto { animation: rulesAuto 5.2s steps(1) infinite; opacity: 0; transform: translateY(6px); }
@keyframes rulesSemi {
  0%, 46% { opacity: 1; transform: translateY(0); }
  47%, 99% { opacity: 0; transform: translateY(-6px); }
}
@keyframes rulesAuto {
  0%, 46% { opacity: 0; transform: translateY(6px); }
  47%, 99% { opacity: 1; transform: translateY(0); }
}
.demo-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.demo-rule::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #00a86b;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.demo-rule.is-off { color: var(--muted-2); }
.demo-rule.is-off::before {
  background-color: var(--line);
  background-image: none;
}

/* ── 5. Smart replies — incoming tweet + suggestions (LIGHT) ── */
.demo-replies {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-family: var(--font);
}
.demo-tweet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
}
.demo-tweet .demo-avatar { width: 22px; height: 22px; font-size: 9.5px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); }
.demo-tweet .head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.demo-tweet .head b { color: var(--ink); font-size: 11.5px; font-weight: 700; }
.demo-tweet .body {
  color: var(--ink-2);
  font-size: 11.5px;
  margin-top: 2px;
  font-weight: 500;
}
.demo-replies-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.demo-replies-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.demo-chip-item {
  font-size: 11.5px;
  font-weight: 500;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
  letter-spacing: -0.005em;
}
.demo-chip-item.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateX(4px);
}

/* ── 6. Craft DMs — multi-thread inbox (DARK card) ─────────── */
.demo-inbox {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px;
}
.demo-inbox .demo-hdr {
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.demo-inbox .demo-hdr b {
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.005em;
  text-transform: none;
}
.demo-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-thread {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s;
}
.demo-thread .demo-avatar {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}
.demo-thread .who {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1px;
}
.demo-thread .who time { color: rgba(255,255,255,0.4); font-size: 10px; font-weight: 500; }
.demo-thread .preview {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.demo-thread .badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.demo-thread.is-typing {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.demo-thread.is-typing .preview { color: rgba(255,255,255,0.96); }
.demo-typing-row {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-left: 4px;
}
.demo-typing-row span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  animation: dmDot 1.2s ease-in-out infinite;
}
.demo-typing-row span:nth-child(2) { animation-delay: 0.16s; }
.demo-typing-row span:nth-child(3) { animation-delay: 0.32s; }
.demo-thread .badge--hot {
  background: #ff4d5a;
  color: #fff;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes dmDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%           { transform: translateY(-3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-ticker-track,
  .demo-toggle-thumb,
  .demo-toggle-label--l,
  .demo-toggle-label--r,
  .demo-draft-caret,
  .demo-voice-check,
  .demo-rule-set--semi,
  .demo-rule-set--auto,
  .demo-typing-row span,
  .demo-ticker-spark span,
  .demo-hdr .live-dot::before,
  .demo-thread .badge--hot { animation: none; }
}

/* ─── Smart Triggers battle (toolkit card 2) ─── */
/* Card already has overflow:hidden + position:relative from .toolkit-card.
 * Bump min-height so the battle arena has vertical room above the content. */
.toolkit-grid > .toolkit-card:nth-child(2) {
  min-height: 320px;
}
.triggers-sentry {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  z-index: 4;
  pointer-events: none;
  /* Card is dark (.toolkit-card:nth-child(2) has --ink background).
   * Invert the black mascot to white so it reads. */
  filter: invert(1) drop-shadow(0 4px 10px rgba(255,255,255,0.18));
  will-change: transform;
}
.triggers-token {
  position: absolute;
  top: 0;
  padding: 6px 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .triggers-sentry, .triggers-token { display: none; }
}

/* ─── Modes section: choreographed mascot + title tilt ─── */
.modes .section-head h2 {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
  /* Slight will-change so the rotation is smooth */
  will-change: transform;
}
.modes .section-head h2.tilt-clockwise { transform: rotate(2.5deg); }
.modes .section-head h2.tilt-counter  { transform: rotate(-2.5deg); }
.tilt-word {
  display: inline-block; /* makes getBoundingClientRect measure the word, not the whole line */
}
.modes-mascot {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  z-index: 100;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
  will-change: transform, opacity;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .modes .section-head h2 { transition: none; }
  .modes-mascot { display: none; }
}

/* ─── Random easter-egg mascots (peek from behind cards) ─── */
/* Cards get z-index: 1 so peeking mascots (z-index: 0) sit behind them
 * within the same section's stacking context. */
.feature, .mode, .plan, .toolkit-card, .safety-pill, .testimonial {
  position: relative;
  z-index: 1;
}
.features, .modes, .toolkit, .safety, .pricing, .testimonials {
  position: relative; /* anchor the absolutely-positioned mascots */
}

.peek-rand {
  position: absolute;
  width: var(--size, 48px);
  height: var(--size, 48px);
  z-index: 0;
  pointer-events: none;
  /* Mole rest state: fully tucked behind the card edge, no rotation. Stays
   * opaque the whole time — the card on top (z-index 1) hides it visually.
   * Up motion exposes the head; down motion tucks it back. Same path. */
  transform: translateY(var(--hidden-y, 40px)) rotate(0deg);
  animation: peekMoleUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 -3px 6px rgba(0,0,0,0.10));
}
.peek-rand.is-leaving {
  /* Drop back into the hole with a small "gravity in" curve. */
  animation: peekMoleDown 0.42s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}
.peek-rand-dark {
  filter: drop-shadow(0 -3px 6px rgba(255,255,255,0.20)) invert(1);
}
@keyframes peekMoleUp {
  0% {
    transform: translateY(var(--hidden-y, 40px)) rotate(0deg);
  }
  70% {
    /* Small overshoot — mole pops out a fraction too far, then settles. */
    transform: translateY(-4px) rotate(calc(var(--rot) * 1.1));
  }
  100% {
    transform: translateY(0) rotate(var(--rot));
  }
}
@keyframes peekMoleDown {
  0% {
    transform: translateY(0) rotate(var(--rot));
  }
  100% {
    transform: translateY(var(--hidden-y, 40px)) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .peek-rand { display: none; }
}

/* ─── Mascot drop (physics-feel rain) ─── */
.drop-mascot {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  /* Linear overall — the keyframes set per-segment easing for real
   * physics feel: accelerate, overshoot, bounce, settle. */
  animation: physicsDrop var(--dur) linear var(--delay) forwards;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.10));
  will-change: transform, opacity;
}
@keyframes physicsDrop {
  0% {
    transform: translateY(-120%) rotate(0deg);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* gravity in */
  }
  6%  { opacity: 1; }
  72% {
    transform: translateY(calc(var(--end-y) + 14px)) rotate(calc(var(--rot) * 0.95));
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);   /* bounce out */
  }
  82% {
    transform: translateY(calc(var(--end-y) - 10px)) rotate(var(--rot));
    animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  }
  92% {
    transform: translateY(calc(var(--end-y) + 4px)) rotate(var(--rot));
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  100% {
    transform: translateY(var(--end-y)) rotate(var(--rot));
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drop-mascot { display: none; }
}
.pull-quote-mark {
  font-family: ui-serif, Georgia, serif;
  font-size: 96px;
  line-height: 0.5;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 900;
  display: inline-block;
  transform: rotate(-4deg);
}
.pull-quote-body {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 920px;
  margin: 0 auto;
}
.pull-quote-body em {
  font-style: italic;
  font-weight: 700;
}
.pull-quote-attr {
  margin-top: 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ─── Stats strip (trust signals under hero) ─── */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 36px 32px;
}
.stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
.stat-num {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ─── Testimonials ─── */
.testimonials {
  padding: 112px 32px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 32px auto;
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) {
  .testimonials { margin: 24px 16px; border-radius: 14px; padding: 72px 24px; }
}
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: rgba(255,255,255,0.65); }
.testimonials .section-eyebrow {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.6);
}
.testimonials .section-eyebrow .num { color: #fff; }
.testimonials-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-quote {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonial-quote::before {
  content: '"';
  display: block;
  font-size: 64px;
  line-height: 0.5;
  font-weight: 900;
  color: rgba(255,255,255,0.18);
  margin-bottom: 12px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.testimonial-role {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ─── Features (bento) ─── */
.features {
  padding: 112px 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.features-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* Fixed row height so every card has the same height across the bento.
   * Sized to fit the tallest demo (Brand tracking ticker + sparkline) with
   * a little breathing room. Collapses to auto on mobile (below) where the
   * cards stack vertically. */
  grid-auto-rows: 420px;
  gap: 16px;
}

/* Bento spans (desktop). Mobile collapses below. */
.features-grid > .feature:nth-child(1) { grid-column: span 4; grid-row: span 1; }    /* hero card */
.features-grid > .feature:nth-child(2) { grid-column: span 2; }
.features-grid > .feature:nth-child(3) { grid-column: span 2; }
.features-grid > .feature:nth-child(4) { grid-column: span 2; }
.features-grid > .feature:nth-child(5) { grid-column: span 2; }
.features-grid > .feature:nth-child(6) { grid-column: span 4; }   /* wide tail card */

/* Hero & wide-tail get a different visual treatment */
.features-grid > .feature:nth-child(1),
.features-grid > .feature:nth-child(6) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.features-grid > .feature:nth-child(1) .feature-icon,
.features-grid > .feature:nth-child(6) .feature-icon {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.features-grid > .feature:nth-child(1) p,
.features-grid > .feature:nth-child(6) p {
  color: rgba(255,255,255,0.7);
}
.features-grid > .feature:nth-child(1) h3,
.features-grid > .feature:nth-child(6) h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid > .feature:nth-child(1) { grid-column: span 4; }
  .features-grid > .feature:nth-child(2),
  .features-grid > .feature:nth-child(3),
  .features-grid > .feature:nth-child(4),
  .features-grid > .feature:nth-child(5) { grid-column: span 2; }
  .features-grid > .feature:nth-child(6) { grid-column: span 4; }
}
@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;  /* stacked mobile — let each card size to its content */
  }
  .features-grid > .feature { grid-column: span 1 !important; }
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  /* Icons at the top, demos at the bottom — see .demo-*'s margin-top: auto */
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--shadow-md);
  border-color: #dcdcdc;
}
/* Mirror tilt on alternating cards so the bento doesn't all lean one way */
.feature:nth-child(2n):hover { transform: translateY(-4px) rotate(0.5deg); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Modes ─── */
.modes {
  padding: 96px 32px;
  max-width: 1140px;
  margin: 0 auto;
}
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .modes-grid { grid-template-columns: 1fr; }
}
.mode {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mode:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
}
.mode-auto {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.mode-auto:hover {
  border-color: var(--ink);
}
.mode-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 20px;
}
.mode-auto .mode-tag {
  background: #fff;
  color: var(--ink);
}
.mode h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.mode > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.mode-auto > p {
  color: rgba(255,255,255,0.7);
}
.mode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.5;
}
.mode-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.mode-auto .mode-list li::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ─── Pricing ─── */
.pricing {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
.pricing-foot {
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 14px;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
}
.plan-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(-1deg) translateY(-6px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.plan-featured:hover {
  border-color: var(--ink);
  transform: rotate(0deg) translateY(-10px);
}
@media (max-width: 920px) {
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-3px); }
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
}
.plan-head { margin-bottom: 20px; }
.plan-head h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.plan-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.plan-featured .plan-tagline { color: rgba(255,255,255,0.65); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.plan-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-cadence {
  font-size: 14px;
  color: var(--muted);
}
.plan-featured .plan-cadence { color: rgba(255,255,255,0.65); }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.plan-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.5l2.5 2.5L11 4.5' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.plan-featured .plan-list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.5l2.5 2.5L11 4.5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.btn-block {
  width: 100%;
}
.btn-invert {
  background: #fff;
  color: var(--ink);
}
.btn-invert:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* ─── Mascot peek ─── */
.peek {
  position: relative;
  height: 30vw;
  min-height: 250px;
  overflow: hidden;
  background: var(--bg);
  display: block;
}
.peek-mascot {
  position: absolute;
  left: 50%;
  bottom: -20vw;
  width: 50vw;
  min-width: 380px;
  max-width: 760px;
  transform: translateX(-50%) translateY(70%);
  opacity: 0;
  transition:
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease;
  pointer-events: none;
  display: block;
}
.peek-mascot.is-in {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.peek-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
  z-index: 3;
}
.peek-mascot {
  z-index: 2;
}
.peek-line.is-in {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .peek-line {
    transform: scaleX(1);
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .peek-mascot {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    transition: none;
  }
}

/* ─── Toolkit (deep-dive features, bento) ─── */
.toolkit {
  padding: 112px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

/* Different bento than features — offset rhythm so the page feels designed */
.toolkit-grid > .toolkit-card:nth-child(1) { grid-column: span 2; }
.toolkit-grid > .toolkit-card:nth-child(2) { grid-column: span 4; }   /* wide */
.toolkit-grid > .toolkit-card:nth-child(3) { grid-column: span 3; }
.toolkit-grid > .toolkit-card:nth-child(4) { grid-column: span 3; }
.toolkit-grid > .toolkit-card:nth-child(5) { grid-column: span 4; }   /* wide */
.toolkit-grid > .toolkit-card:nth-child(6) { grid-column: span 2; }

/* The two wide cards take the inverse treatment for visual rhythm */
.toolkit-grid > .toolkit-card:nth-child(2),
.toolkit-grid > .toolkit-card:nth-child(5) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.toolkit-grid > .toolkit-card:nth-child(2) .toolkit-icon,
.toolkit-grid > .toolkit-card:nth-child(5) .toolkit-icon {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.toolkit-grid > .toolkit-card:nth-child(2) p,
.toolkit-grid > .toolkit-card:nth-child(5) p {
  color: rgba(255,255,255,0.7);
}
.toolkit-grid > .toolkit-card:nth-child(2) h3,
.toolkit-grid > .toolkit-card:nth-child(5) h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

@media (max-width: 960px) {
  .toolkit-grid { grid-template-columns: repeat(4, 1fr); }
  .toolkit-grid > .toolkit-card:nth-child(1) { grid-column: span 2; }
  .toolkit-grid > .toolkit-card:nth-child(2) { grid-column: span 2; }
  .toolkit-grid > .toolkit-card:nth-child(3) { grid-column: span 2; }
  .toolkit-grid > .toolkit-card:nth-child(4) { grid-column: span 2; }
  .toolkit-grid > .toolkit-card:nth-child(5) { grid-column: span 4; }
  .toolkit-grid > .toolkit-card:nth-child(6) { grid-column: span 4; }
}
@media (max-width: 640px) {
  .toolkit-grid { grid-template-columns: 1fr; }
  .toolkit-grid > .toolkit-card { grid-column: span 1 !important; }
}

.toolkit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.toolkit-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
}
.toolkit-card:nth-child(2n):hover { transform: translateY(-4px) rotate(-0.5deg); }
.toolkit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.toolkit-icon svg { width: 22px; height: 22px; }
.toolkit-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.toolkit-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Safety guardrails ─── */
.safety {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.safety {
  /* Allow the section to bleed full-width while content stays centered. */
  max-width: none;
  border-radius: 0;
}
.safety .section-head,
.safety .safety-grid {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 960px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .safety-grid { grid-template-columns: 1fr; }
}
.safety-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.safety-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
}
.safety-pill-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.safety-pill-icon svg { width: 18px; height: 18px; }
.safety-pill h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.safety-pill p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── How it works ─── */
.how {
  padding: 96px 32px;
  max-width: 880px;
  margin: 0 auto;
}
/* .how h2 is now styled via .section-head h2 — the markup wraps it. */
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.steps p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ─── CTA ─── */
.cta {
  padding: 96px 32px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 32px auto;
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) {
  .cta { margin: 24px 16px; border-radius: 14px; }
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  filter: invert(1);
}
.cta-float {
  position: absolute;
  filter: invert(1);
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}
.cta-float--1 {
  top: 10%;
  left: 6%;
  width: 80px;
  animation: ctaFloat 7s ease-in-out infinite;
}
.cta-float--2 {
  bottom: 14%;
  left: 12%;
  width: 56px;
  transform: rotate(-12deg);
  animation: ctaFloat 6s ease-in-out infinite 1.2s;
}
.cta-float--3 {
  top: 18%;
  right: 8%;
  width: 96px;
  transform: rotate(8deg);
  animation: ctaFloat 8s ease-in-out infinite 0.6s;
}
.cta-float--4 {
  bottom: 8%;
  right: 14%;
  width: 64px;
  transform: rotate(-6deg);
  animation: ctaFloat 6.5s ease-in-out infinite 2s;
}
@keyframes ctaFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
.cta-inner {
  z-index: 2;
}
@media (max-width: 720px) {
  .cta-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-float { animation: none; }
}
.cta h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta p {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ─── Footer (dark theme) ─── */
.footer {
  padding: 32px;
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  border-top: 1px solid var(--ink);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}
.footer-mark {
  width: 24px;
  height: 24px;
  /* mascot logo is black on transparent — invert to white on the dark footer */
  filter: invert(1);
}
.footer-links {
  display: inline-flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }
.footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ─── Article pages (blog) ─── */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}
.article-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.article-back:hover { color: var(--ink); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.article-meta time { color: var(--muted); letter-spacing: 0.05em; }
.article-h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 18px;
  color: var(--ink);
}
.article-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 44px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  color: var(--ink);
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--ink);
}
.article-body p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 6px; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; color: var(--ink); }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.article-body blockquote {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
}
.article-cta {
  margin-top: 64px;
  padding: 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.015em; }
.article-cta p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 20px; }
.article-cta .btn { background: #fff; color: var(--ink); }
.article-cta .btn:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.article-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-related-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
@media (max-width: 600px) { .article-related ul { grid-template-columns: 1fr; } }
.article-related a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  display: block;
}
.article-related a:hover { color: var(--ink); }

/* Sources / citations list at the bottom of expanded articles */
.article-body sup { font-size: 11px; vertical-align: super; line-height: 0; }
.article-body sup .cite { color: var(--muted); text-decoration: none; padding: 0 2px; }
.article-body sup .cite:hover { color: var(--ink); }
.article-body .article-sources {
  margin-top: 12px;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
}
.article-body .article-sources li { font-size: 14px; line-height: 1.55; margin-bottom: 6px; color: var(--muted); }
.article-body .article-sources a { color: var(--muted); word-break: break-word; }
.article-body .article-sources a:hover { color: var(--ink); }

/* Persona articles section on /for/* pages */
.persona-articles {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px 32px;
}
.persona-articles .section-head { margin-bottom: 36px; }
.persona-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .persona-articles-grid { grid-template-columns: 1fr; } }
.persona-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.persona-article:hover { border-color: var(--ink); transform: translateY(-2px); }
.persona-article-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.persona-article h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.persona-article-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.persona-article:hover .persona-article-cta { color: var(--ink); }

/* Resources / articles block above the brand row */
.footer-articles {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-articles + .footer-inner { border-top: none; padding-top: 32px; }
.footer-articles-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.footer-articles-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  row-gap: 4px;
}
@media (max-width: 960px) {
  .footer-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-articles-grid { grid-template-columns: 1fr; }
}
.footer-articles-grid a {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-articles-grid a:hover { color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 20px 56px; }
  .features, .how, .cta { padding-left: 20px; padding-right: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
