/*
 * pinsay.dev landing page (redesign 2026-10-15: hero demo, problem, roles, vs band; see hero-demo.js).
 *
 * Tokens follow the PinSay design system (brand/design-system.html) as the dashboard maps it in
 * pinsay-dashboard/react/src/styles/foundation.css. Identity vs action: the brand gradient
 * (#567bf7 -> #0ec7de) is for identity only (the mark, pins, hairlines). Filled buttons use the
 * action gradient (#3b63e0 -> #0e7490) because white text on it is AA.
 *
 * Theme: assets/theme-init.js sets html[data-theme] before first paint. Without JS the
 * prefers-color-scheme block below applies.
 */

/* ── Self-hosted Inter (OFL, assets/fonts/) ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens: light ─────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --canvas: #f4f6fb;
  --surface: #ffffff;
  --gutter: #f6f8fc;
  --gutter-strong: #e8edf6;
  --hover: rgba(100, 116, 139, 0.12);

  --ink: #0f172a;
  --muted: #5b6b82;
  --line: rgba(100, 116, 139, 0.32);
  --line-soft: rgba(100, 116, 139, 0.16);

  --brand-from: #567bf7;
  --brand-to: #0ec7de;
  --brand-gradient: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  --action-from: #3b63e0;
  --action-to: #0e7490;
  --action-gradient: linear-gradient(135deg, var(--action-from), var(--action-to));
  --brand-ink: #2f56d6;
  --tint: rgba(86, 123, 247, 0.12);
  --halo: rgba(86, 123, 247, 0.18);
  --selection: rgba(86, 123, 247, 0.24);
  --success-ink: #047857;

  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --code-line: rgba(148, 163, 184, 0.24);

  --focus: #3b82f6;

  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-frame: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
  --shadow-pin: 0 3px 6px rgba(15, 23, 42, 0.35);
  --shadow-thumb: 0 1px 2px rgba(15, 23, 42, 0.3);
  --rim: 0 0 0 0 transparent;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 150ms;
  --dur-float: 3.2s;

  --header-h: 64px;
  --content-max: 1120px;
  --header-max: 1232px; /* the header row is wider than the content: 7 links + Log in + Add to Chrome + six social icons */

  /* Landing redesign (2026-10-15) */
  --text-gradient: var(--action-gradient);
  --term-bg: #0b1020;
  --term-ink: #e2e8f0;
  --term-dim: #94a3b8;
  --term-line: #1e2638;
  --term-info: #7dd3fc;
  --term-ok: #86efac;
  --term-edit: #fcd34d;
  --chat-me: #dcf8c6;
  --chat-me-ink: #0f172a;
  --danger-ink: #b91c1c;
}

/* ── Tokens: dark (system preference without JS, or the toggle) ─────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0b1220;
    --surface: #111a2e;
    --gutter: #0f1729;
    --gutter-strong: #1b2740;
    --hover: rgba(148, 163, 184, 0.16);
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.3);
    --line-soft: rgba(148, 163, 184, 0.2);
    --brand-ink: #7dbaff;
    --tint: rgba(125, 186, 255, 0.14);
    --halo: rgba(125, 186, 255, 0.2);
    --selection: rgba(125, 186, 255, 0.28);
    --success-ink: #34d399;
    --code-bg: #0b1220;
    --shadow-card: none;
    --shadow-frame: 0 24px 48px -12px rgba(2, 6, 23, 0.7);
    --rim: 0 0 0 1px rgba(14, 199, 222, 0.08);
    --text-gradient: linear-gradient(135deg, #7d9cff, var(--brand-to));
    --term-bg: #060a14;
    --term-line: #1b2436;
    --chat-me: #1f4d3a;
    --chat-me-ink: #e2e8f0;
    --danger-ink: #f87171;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b1220;
  --surface: #111a2e;
  --gutter: #0f1729;
  --gutter-strong: #1b2740;
  --hover: rgba(148, 163, 184, 0.16);
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.3);
  --line-soft: rgba(148, 163, 184, 0.2);
  --brand-ink: #7dbaff;
  --tint: rgba(125, 186, 255, 0.14);
  --halo: rgba(125, 186, 255, 0.2);
  --selection: rgba(125, 186, 255, 0.28);
  --success-ink: #34d399;
  --code-bg: #0b1220;
  --shadow-card: none;
  --shadow-frame: 0 24px 48px -12px rgba(2, 6, 23, 0.7);
  --rim: 0 0 0 1px rgba(14, 199, 222, 0.08);
  --text-gradient: linear-gradient(135deg, #7d9cff, var(--brand-to));
  --term-bg: #060a14;
  --term-line: #1b2436;
  --chat-me: #1f4d3a;
  --chat-me-ink: #e2e8f0;
  --danger-ink: #f87171;
}

/* ── Base ───────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) transparent;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--brand-ink);
  accent-color: var(--action-from);
}

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

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
code, pre { font-family: var(--font-mono); }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -120px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-frame);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 32px, var(--content-max));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap { width: min(100% - 48px, var(--content-max)); }
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Buttons and links ──────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font: 600 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}
.btn-primary {
  background: var(--action-gradient);
  color: #ffffff;
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 0 4px var(--halo); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--gutter-strong); }
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }

.text-link {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ── Header ─────────────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line-soft);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
@media (min-width: 768px) {
  .site-header .wrap { width: min(100% - 48px, var(--header-max)); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: auto; }
/* PinSay shows the v2 wordmark; a white-labelled product (.brand--custom, added by landing.js
   applyBrand) keeps its icon + name instead. */
.brand-wordmark { height: 31px; width: auto; }
.brand-mark, .brand-name { display: none; }
.brand--custom .brand-wordmark { display: none; }
.brand--custom .brand-mark, .brand--custom .brand-name { display: inline; }

.nav {
  display: none;
  gap: 2px;
  margin-inline-start: 8px;
}
.nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--ink); }

/* Log in: a quiet text link next to the one header button (Add to Chrome); in the mobile menu below 960 px. */
.header-login {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.header-login:hover { color: var(--ink); background: var(--hover); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.header-chrome { display: none; }

#theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] #theme-toggle .icon-moon { display: none; }

.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }

.mobile-menu {
  border-top: 1px solid var(--line-soft);
  padding: 8px 0 16px;
}
.mobile-menu .wrap { display: grid; gap: 2px; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu a:not(.btn):hover { background: var(--hover); }
.mobile-menu .btn { margin-top: 8px; }

@media (min-width: 960px) {
  .header-chrome, .header-login { display: inline-flex; }
}
/* The seven nav links fit next to Log in, Add to Chrome and six social icons from 1280 px (header row up to
   --header-max); below that the menu button carries them. */
@media (min-width: 1280px) {
  .nav { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ── Social links (branding; filled by assets/social-links.js) ─────────────────────────────── */
.social-links[hidden] { display: none !important; }
.social-link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.social-link:hover { color: var(--ink); background: var(--hover); }
.social-icon-wrap { display: inline-grid; place-items: center; flex: none; }
.social-links--header { display: none; }
.social-links--header .social-link,
.social-links--footer .social-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}
.social-links--footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  margin-inline-start: -6px;
}
.social-links--menu {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu .social-links--menu .social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
}
.mobile-menu .social-links--menu .social-link .social-icon { color: var(--muted); }
@media (min-width: 960px) {
  .social-links--header { display: flex; align-items: center; gap: 0; }
}
@media (pointer: coarse) {
  .social-links--footer .social-link { width: 44px; height: 44px; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────────────────────── */
/* The pain first: eyebrow quote, headline, who points (rotating), CTAs, then the demo. */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 7vw, 88px);
  text-align: center;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px 0 auto;
  height: 720px;
  background:
    radial-gradient(600px 300px at 50% 30%, var(--halo), transparent 70%),
    radial-gradient(400px 240px at 75% 20%, rgba(14, 199, 222, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.2rem + 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Forced colors drop background images: fall back to plain text. */
@media (forced-colors: active) {
  .text-gradient { background: none; color: CanvasText; }
}

.hero-lead {
  max-width: 40rem;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}
.hero-lead q { color: var(--ink); font-style: italic; }

/* Rotating subject. The sizer (the longest phrase, invisible) holds the width, every item is
   right-aligned on top of it, so the verb always sits next to "at it" and nothing else moves. */
.rot {
  position: relative;
  display: inline-block;
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}
.rot em { font-style: normal; font-weight: 400; color: var(--muted); }
.rot-item {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms var(--ease-out), transform 350ms var(--ease-out);
}
.rot-item.is-on { opacity: 1; transform: none; }
.rot-sizer { visibility: hidden; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; } /* also used by 404.html */
.hero .cta-row { justify-content: center; margin-top: 30px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; }
.icon-fill { fill: currentColor; stroke: none; }
.btn-primary { box-shadow: 0 8px 24px -10px rgba(59, 99, 224, 0.6); }
.btn-meta { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.hero .free-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Hero demo (assets/hero-demo.js) ────────────────────────────────────────────────────────── */
.demo { width: 100%; max-width: 1000px; margin-top: clamp(40px, 6vw, 56px); text-align: left; }
.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr); }
}
.demo-win {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-frame), var(--rim);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}
.demo-dots { display: inline-flex; gap: 6px; flex: none; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gutter-strong); }
.demo-url {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--gutter);
}
.demo-who {
  flex: none;
  margin-inline-start: auto;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--gutter-strong);
  color: var(--ink);
  white-space: nowrap;
}
/* The role label flashes when the story changes (CEO, 2026-10-15). */
.demo-who.is-flash { animation: demo-who-flash 900ms var(--ease-out); }
@keyframes demo-who-flash {
  0% { background: var(--action-from); color: #ffffff; box-shadow: 0 0 0 0 rgba(86, 123, 247, 0.7); transform: scale(1.12); }
  60% { box-shadow: 0 0 0 10px rgba(86, 123, 247, 0); }
  100% { background: var(--gutter-strong); color: var(--ink); transform: scale(1); }
}

.demo-app { position: relative; min-height: 330px; padding: 24px; }
.demo-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.demo-muted { margin: 2px 0 18px; color: var(--muted); font-size: 13px; }
.demo-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.demo-field {
  margin: 14px 0 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  transition: border-color 400ms var(--ease-out);
}
.demo-field.is-ok { border-color: var(--success-ink); }
.demo-pay {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gutter-strong);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background 600ms var(--ease-out), color 600ms var(--ease-out), transform 300ms var(--ease-out);
}
.demo-pay.is-fixed { background: var(--action-gradient); color: #ffffff; }
.demo-pay.is-moved { transform: translateY(8px); }
.demo-target { outline: 2px solid var(--brand-from); outline-offset: 3px; }

.demo-cursor {
  position: absolute;
  left: 80%;
  top: 88%;
  z-index: 5;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: left 1s cubic-bezier(0.6, 0, 0.2, 1), top 1s cubic-bezier(0.6, 0, 0.2, 1);
}
.demo-cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.demo-cursor.is-click::after {
  content: "";
  position: absolute;
  left: -10px;
  top: -10px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--brand-from);
  border-radius: 50%;
  animation: demo-ping 600ms ease-out;
}
@keyframes demo-ping { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.demo-pin {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 30px;
  filter: drop-shadow(var(--shadow-pin));
  transform: scale(0);
  transform-origin: 50% 100%;
  transition: transform 350ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.demo-pin.is-on { transform: scale(1); }

.demo-bubble {
  position: absolute;
  z-index: 6;
  width: 250px;
  max-width: calc(100% - 16px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.demo-bubble.is-on { opacity: 1; transform: none; }
.demo-bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}
.demo-bubble-head span:last-child { font-family: var(--font-mono); }
.demo-bubble-text { min-height: 40px; color: var(--ink); }
.demo-bubble-text::after { content: "▍"; color: var(--brand-from); animation: demo-blink 1s steps(1) infinite; }
@keyframes demo-blink { 50% { opacity: 0; } }
.demo-bubble-send { margin-top: 8px; text-align: right; }
.demo-bubble-send span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--action-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.demo-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 7;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--canvas);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.demo-toast.is-on { opacity: 1; transform: none; }

/* The terminal is dark in both themes. */
.demo-term {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--term-bg);
  color: var(--term-ink);
  font: 12.5px/1.7 var(--font-mono);
  box-shadow: var(--shadow-frame), var(--rim);
}
.demo-term .demo-bar { border-color: var(--term-line); color: var(--term-dim); }
.demo-term .demo-dots i { background: var(--term-line); }
.demo-log { flex: 1; padding: 14px 16px; }
.demo-log div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.demo-log div.is-on { opacity: 1; transform: none; }
.demo-log .t-cmd { color: var(--term-dim); }
.demo-log .t-info { color: var(--term-info); }
.demo-log .t-ok { color: var(--term-ok); }
.demo-log .t-edit { color: var(--term-edit); }

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.demo-stories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 520px) {
  .demo-controls { flex-direction: column; gap: 10px; }
}
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--muted);
  font: 500 13px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.chip:hover { color: var(--ink); background: var(--hover); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.demo-pause { flex: none; }
.demo-pause .icon-play { display: none; }
.demo-pause[data-paused="true"] .icon-play { display: block; }
.demo-pause[data-paused="true"] .icon-pause { display: none; }

/* Reduced motion: hero-demo.js shows each story's end state with no movement; CSS keeps it still. */
@media (prefers-reduced-motion: reduce) {
  .rot-item, .demo-cursor, .demo-pin, .demo-bubble, .demo-toast, .demo-log div, .demo-pay, .demo-field { transition: none; }
  .demo-who.is-flash, .demo-cursor.is-click::after, .demo-bubble-text::after { animation: none; }
}

/* ── Video dialog (#cta-video) ──────────────────────────────────────────────────────────────── */
.video-dialog {
  width: min(100% - 32px, 960px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-frame);
}
.video-dialog::backdrop { background: rgba(2, 6, 23, 0.72); }
.video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 20px;
}
.video-dialog-head h2 { font-size: 16px; font-weight: 600; }
.video-frame { background: #000000; }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-caption { padding: 12px 20px 16px; color: var(--muted); font-size: 14px; }

/* ── Sections ───────────────────────────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt {
  background: var(--gutter);
  border-block: 1px solid var(--line-soft);
}
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 60ch;
}
.section-head p.fine { font-size: 14px; margin-top: 20px; }

/* Shared section bits */
.section-flush { padding-top: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.fine { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* The problem: a feedback chat vs one pin */
.compare { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.panel {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--rim);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 650;
}
.panel-title .icon { width: 18px; height: 18px; color: var(--muted); }
.panel-title img { width: 18px; height: auto; }
.chat { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.msg {
  align-self: flex-start;
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  background: var(--gutter-strong);
  font-size: 14px;
  line-height: 1.45;
}
.msg small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.msg-me { align-self: flex-end; background: var(--chat-me); color: var(--chat-me-ink); }
.msg-me small { color: inherit; opacity: 0.7; }
.msg-shot {
  width: 150px;
  height: 70px;
  background: repeating-linear-gradient(45deg, var(--gutter-strong), var(--gutter-strong) 8px, var(--line-soft) 8px, var(--line-soft) 16px);
}
.verdict {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}
.verdict .icon { width: 16px; height: 16px; }
.verdict-bad { color: var(--danger-ink); }
.verdict-good { color: var(--success-ink); }
.onepin { padding: 16px; border-radius: var(--radius-lg); background: var(--gutter); }
.onepin-label { font-size: 14px; font-weight: 650; }
.onepin-body {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
}
.onepin-rows { display: grid; gap: 4px; margin: 0; }
.onepin-rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.onepin-rows dt { color: var(--muted); font: 12px/1.6 var(--font-mono); }
.onepin-rows dd { margin: 0; min-width: 0; }
.onepin-rows code { font-size: 12px; overflow-wrap: anywhere; }

/* Who it's for */
.roles { display: grid; gap: 18px; }
@media (min-width: 860px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.role {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--rim);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.role::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .role:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(86, 123, 247, 0.45); }
  .role:hover::before { transform: scaleX(1); }
}
.role-tag {
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role h3 { margin: 8px 0 10px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.role > p:not(.role-tag):not(.say) { margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.say {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--gutter);
  font-size: 13px;
}
.say q[dir="rtl"] { flex: 1; text-align: right; font-size: 14px; }
.say-pin {
  flex: none;
  width: 16px;
  height: 17px;
  margin-top: 2px;
}

/* How it works */
.steps { list-style: none; display: grid; gap: 18px; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step {
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--rim);
}
.step-num { color: var(--brand-ink); font: 600 13px/1 var(--font-mono); }
.step h3 { margin: 10px 0 6px; font-size: 1.25rem; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* "Doesn't Cursor do this?" A dark band in both themes. */
.vs {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px);
  border-radius: 28px;
  background: var(--term-bg);
  color: var(--term-ink);
}
.vs::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 199, 222, 0.22), transparent 70%);
  pointer-events: none;
}
.vs h2 {
  position: relative;
  color: #ffffff;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.vs-lead { position: relative; margin: 14px 0 36px; color: var(--term-dim); font-size: 1.0625rem; max-width: 60ch; }
.vs-grid { position: relative; display: grid; gap: 18px; }
@media (min-width: 768px) {
  .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vs-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
}
.vs-card-us {
  border-color: transparent;
  background: linear-gradient(#111830, #111830) padding-box, var(--brand-gradient) border-box;
}
.vs-card h3 { margin-bottom: 12px; color: #ffffff; font-size: 1.0625rem; font-weight: 650; }
.vs-card ul { list-style: none; }
.vs-card li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--term-dim); font-size: 15px; }
.vs-card li::before { content: "–"; flex: none; color: #64748b; }
.vs-card-us li { color: var(--term-ink); }
.vs-card-us li::before { content: none; }
.vs-card-us li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand-to); }

/* Features */
.features {
  list-style: none;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--line-soft);
}
@media (min-width: 560px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.features li { padding: 24px; background: var(--surface); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--tint);
  color: var(--brand-ink);
}
.feature-icon .icon { width: 18px; height: 18px; }
.features h3 { margin-bottom: 6px; font-size: 1rem; font-weight: 650; }
.features p { color: var(--muted); font-size: 14px; }

/* Install and FAQ bodies are centered under their heads */
.install-body, .faq-body { display: flex; flex-direction: column; align-items: center; }
.install-body .tab-panel { width: 100%; max-width: 44rem; }
.faq-body .faq { width: 100%; max-width: 48rem; margin-top: 20px; }
.faq-more { margin-top: 24px; text-align: center; }

/* Final CTA */
.final {
  padding: clamp(48px, 8vw, 80px) 24px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: radial-gradient(500px 220px at 50% 0%, var(--halo), transparent 70%), var(--surface);
  text-align: center;
}
.final h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.final p { margin: 14px auto 28px; color: var(--muted); font-size: 1.0625rem; }

/* Live stats (#306 icons, #310 count-up + drawn illustrations; motion only without reduced-motion) */
.stats {
  text-align: center;
}
.stats-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 24px;
  max-width: 60rem;
  color: var(--muted);
  font-size: 15px;
}
.stats-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 150px;
}
.stat-badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: var(--radius-full);
  background: var(--tint);
  color: var(--brand-ink);
  box-shadow: var(--rim);
}
.stat-badge .stat-icon { display: block; }
.stat-value {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .stats.is-counting .stat-badge { animation: stat-badge-in 600ms var(--ease-out) both; }
  .stats.is-counting .stat-icon :is(path, circle, rect) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: stat-draw 900ms var(--ease-out) 150ms both;
  }
  .stats.is-counting .stats-list li:nth-child(2) .stat-badge { animation-delay: 90ms; }
  .stats.is-counting .stats-list li:nth-child(3) .stat-badge { animation-delay: 180ms; }
  .stats.is-counting .stats-list li:nth-child(4) .stat-badge { animation-delay: 270ms; }
  .stats.is-counting .stats-list li:nth-child(5) .stat-badge { animation-delay: 360ms; }
  .stats.is-counting .stats-list li:nth-child(6) .stat-badge { animation-delay: 450ms; }
  .stats.is-counting .stats-list li:nth-child(2) .stat-icon :is(path, circle, rect) { animation-delay: 240ms; }
  .stats.is-counting .stats-list li:nth-child(3) .stat-icon :is(path, circle, rect) { animation-delay: 330ms; }
  .stats.is-counting .stats-list li:nth-child(4) .stat-icon :is(path, circle, rect) { animation-delay: 420ms; }
  .stats.is-counting .stats-list li:nth-child(5) .stat-icon :is(path, circle, rect) { animation-delay: 510ms; }
  .stats.is-counting .stats-list li:nth-child(6) .stat-icon :is(path, circle, rect) { animation-delay: 600ms; }
}
@keyframes stat-badge-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes stat-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Install */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: 500 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.tab:hover { color: var(--ink); background: var(--hover); }
.tab[aria-selected="true"] {
  background: var(--tint);
  color: var(--brand-ink);
  font-weight: 600;
}
.tab-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--rim);
  max-width: 52rem;
}
.tab-panel > p { color: var(--ink); }
.tab-panel .text-link { display: inline-block; margin-top: 16px; }

.code {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--code-line);
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  color: var(--code-ink);
}
.code pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}
/* Phones: wrap the command instead of scrolling it behind the Copy button. */
@media (max-width: 520px) {
  .code pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
}
.copy-btn {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--code-line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #cbd5e1;
  font: 600 13px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out);
}
.copy-btn:hover { background: rgba(148, 163, 184, 0.16); }
.copy-btn[data-copied="true"] { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4); }

.ext-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}
.ext-other {
  margin-top: 12px;
}
.ext-other-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}
.ext-other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* FAQ */
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-inline-end: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Free card (used by 404.html) */
.free-card {
  display: grid;
  gap: 28px;
  justify-items: start;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--tint), transparent 55%), var(--surface);
  box-shadow: var(--shadow-card), var(--rim);
}
.free-copy h1, .free-copy h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.free-copy p { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; max-width: 52ch; }
.free-copy .notfound-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-ink);
}

/* ── Scroll reveal (#308) ───────────────────────────────────────────────────────────────────── */
/* Sections below the hero fade/rise in once (landing.js toggles .is-visible through one
   IntersectionObserver). The hidden state only exists under html.js-reveal, which landing.js
   adds, so without JS every section stays visible; transform/opacity never shift layout. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
html.js-reveal .reveal-d1.is-visible { transition-delay: 80ms; }
html.js-reveal .reveal-d2.is-visible { transition-delay: 160ms; }
/* Reduced motion: no animation and everything visible. */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal,
  html.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--gutter);
  padding: 56px 0 32px;
  font-size: 15px;
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin-top: 10px; color: var(--muted); }
.footer-col h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.footer-col ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* ── Touch: 44px press areas without changing the look ───────────────────────────────────────── */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .tab { min-height: 44px; }
  .copy-btn { min-height: 44px; }
  .chip { min-height: 44px; }
}

/* Pricing: cards come from GET /api/plans (landing.js); the static Free card is the fallback. */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-grid > [role="listitem"] { display: flex; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), var(--rim);
}
.plan-card h3 { font-size: 1.0625rem; font-weight: 650; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan-amount { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--muted); font-size: 15px; }
.plan-regular { color: var(--muted); font-size: 1rem; text-decoration: line-through; }
.plan-note { color: var(--muted); font-size: 14px; }
.pricing-refund { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.pricing-refund a { margin-inline-start: 1px; color: inherit; text-decoration: none; }
.pricing-refund a:hover, .pricing-refund a:focus-visible { color: var(--ink, inherit); text-decoration: underline; }
.plan-trial { color: var(--success-ink); font-weight: 600; }
.plan-badge {
  padding: 4px 10px;
  background: var(--tint);
  border-radius: var(--radius-full);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
}
.plan-features { list-style: none; display: grid; gap: 6px; color: var(--ink); font-size: 15px; }
.plan-features li::before { content: "–"; margin-right: 8px; color: var(--muted); }
.plan-card .btn, .plan-soon { margin-top: auto; }
.plan-soon {
  padding: 10px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}


/* ── Contact-sales modal (assets/contact-sales.js; shared with /pricing, which loads this file too) ── */
.cs-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-frame);
}
.cs-dialog::backdrop { background: rgba(15, 23, 42, 0.5); }
.cs-body { position: relative; padding: 28px 24px 24px; }
.cs-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 36px; height: 36px;
  border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cs-close:hover { background: var(--hover); }
.cs-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.cs-title:focus { outline: none; }
.cs-desc { margin: 0 0 16px; color: var(--muted); }
.cs-step { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.cs-bar { height: 4px; margin-block-end: 16px; border-radius: var(--radius-full); background: var(--gutter-strong); overflow: hidden; }
.cs-bar span { display: block; height: 100%; background: var(--action-gradient); }
.cs-options { display: grid; gap: 12px; margin-block-start: 16px; }
.cs-option {
  display: grid; gap: 4px; padding: 16px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.cs-option span { color: var(--muted); font-size: 14px; }
.cs-option:hover { background: var(--hover); }
.cs-form { display: grid; gap: 14px; }
.cs-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cs-label { padding: 0; font-size: 14px; font-weight: 600; }
.cs-input {
  width: 100%; min-height: 40px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font: inherit;
}
.cs-input[aria-invalid="true"] { border-color: #dc2626; }
.cs-textarea { resize: vertical; }
.cs-error { margin: 0; color: #b91c1c; font-size: 13px; }
.cs-error[hidden] { display: none; }
.cs-slot-rows { display: grid; gap: 8px; }
.cs-slot-row { display: flex; gap: 8px; align-items: center; }
.cs-slot-row .cs-input { flex: 1; }
.cs-slots .btn { justify-self: start; }
.cs-radios { display: grid; gap: 8px; }
.cs-check { display: flex; gap: 10px; align-items: center; min-height: 36px; cursor: pointer; }
.cs-check input { width: 18px; height: 18px; accent-color: var(--brand-ink); }
.cs-actions { display: flex; gap: 10px; justify-content: flex-end; margin-block-start: 4px; }
.cs-dialog button:focus-visible, .cs-dialog .cs-input:focus-visible, .cs-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.plan-card button.btn { cursor: pointer; font-family: inherit; }
