/* NotchPulse website — one stylesheet, no dependencies.
   Light + dark via prefers-color-scheme. The island is always black, like the real one. */

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

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --bg-soft: #f2f2f5;
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);
  --accent: #0b64c0;
  --accent-hover: #084f98;
  --header-bg: rgba(251, 251, 253, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px -12px rgba(0, 0, 0, 0.14);
  --btn-bg: #1d1d1f;
  --btn-fg: #ffffff;
  --btn-hover: #000000;
  --logo-stroke: transparent;

  /* State tints — identical to the app */
  --run: #66b8ff;
  --ok: #4ddb7a;
  --attn: #ff9e33;
  --fail: #ff5c57;
  /* Text-safe variants on light backgrounds (WCAG AA) */
  --run-text: #0b64c0;
  --ok-text: #16803a;
  --attn-text: #a85400;
  --fail-text: #c42b26;

  /* Source tints — identical to the app's ActivityVisuals */
  --t-claude: #de855c;
  --t-codex: #8cc79e;
  --t-cursor: #9ea8f2;
  --t-git: #b89efa;
  --t-deploy: #e6e6ea;
  --t-sentry: #ed739e;
  --t-stripe: #8f85ff;
  --t-calendar: #ff6661;
  --t-media: #ff5c80;
  --t-system: #73b8ff;
  --t-timer: #ff9e4d;
  --t-cli: #66dbb3;

  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1080px;
  --ease-spring: cubic-bezier(0.32, 1.25, 0.5, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: #111113;
    --bg-soft: #161618;
    --text: #f5f5f7;
    --text-2: #d2d2d7;
    --text-3: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #66b8ff;
    --accent-hover: #8fcbff;
    --header-bg: rgba(0, 0, 0, 0.72);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 50px -18px rgba(0, 0, 0, 0.9);
    --btn-bg: #f5f5f7;
    --btn-fg: #000000;
    --btn-hover: #ffffff;
    --logo-stroke: rgba(255, 255, 255, 0.28);
    --run-text: #66b8ff;
    --ok-text: #4ddb7a;
    --attn-text: #ffae57;
    --fail-text: #ff7a75;
  }
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.52;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.36em;
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { top: 10px; color: var(--btn-fg); text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.logo-pill { fill: #000; stroke: var(--logo-stroke); stroke-width: 1.5; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li + li { margin-top: 0; }
.nav-links a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

.header-cta { font-size: 14px !important; padding: 7px 14px !important; }

.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  color: var(--text);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { background: var(--bg-soft); }
.nav-menu summary svg { width: 20px; height: 20px; }
.nav-menu .icon-close { display: none; }
.nav-menu[open] .icon-open { display: none; }
.nav-menu[open] .icon-close { display: block; }
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.nav-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-menu-panel li + li { margin-top: 0; }
.nav-menu-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
}
.nav-menu-panel a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-menu-panel a[aria-current="page"] { font-weight: 600; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .header-inner { gap: 10px; }
}
@media (max-width: 380px) {
  .header-cta { display: none !important; }
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.012em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--text); background: var(--bg-soft); }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--bg-soft);
  color: var(--text-3);
  border-color: var(--line);
  transform: none;
}
.btn-small { min-height: 36px; padding: 7px 16px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 500; white-space: nowrap; }
.link-arrow::after { content: " \203A"; }

.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.actions-center { justify-content: center; }

/* ───────────────────────── Sections ───────────────────────── */
main { display: block; }
.section { padding: clamp(72px, 11vw, 136px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
@media (prefers-color-scheme: dark) { .section-soft { background: #0b0b0c; } }
.section + .section:not(.section-soft) { border-top: 1px solid var(--line); }
.section-soft + .section, .section + .section-soft { border-top: 0; }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-3);
  margin-bottom: 14px;
}
.lede {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--text-2);
  max-width: 40em;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-3); }
.small { font-size: 14px; line-height: 1.45; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 + .lede, .section-head h2 + p { margin-top: 16px; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(52px, 10vw, 104px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 18px auto 0;
  max-width: 17em;
  text-wrap: balance;
}
.hero-copy {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--text-3);
  max-width: 34em;
  margin: 22px auto 34px;
}
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--text-3); }

.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 16em; }
.page-hero .lede { margin-top: 20px; }
.page-hero.center h1 { margin-left: auto; margin-right: auto; }
.page-hero .actions { margin-top: 30px; }

/* ───────────────────────── Demo: MacBook top edge + island ───────────────────────── */
.demo {
  margin: clamp(44px, 7vw, 72px) auto 0;
  max-width: 1000px;
}
.device {
  position: relative;
  padding: clamp(6px, 1.1vw, 12px) clamp(6px, 1.1vw, 12px) 0;
  background: #0d0d0f;
  border-radius: clamp(16px, 2.6vw, 28px) clamp(16px, 2.6vw, 28px) 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.45);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
@media (prefers-color-scheme: dark) {
  .device { background: #1a1a1c; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
}

.stage {
  container-type: inline-size;
  container-name: stage;
  position: relative;
  aspect-ratio: 16 / 6.4;
  overflow: hidden;
  text-align: left;
  border-radius: clamp(10px, 1.6vw, 16px) clamp(10px, 1.6vw, 16px) 0 0;
  background:
    radial-gradient(120% 90% at 18% 0%, #cfe0ff 0%, transparent 55%),
    radial-gradient(90% 90% at 85% 10%, #ffd9e6 0%, transparent 55%),
    radial-gradient(120% 120% at 50% 110%, #e6dcff 0%, transparent 60%),
    #eef1f7;

  --notch-w: clamp(62px, 13cqw, 132px);
  --notch-h: clamp(18px, 3.1cqw, 30px);
  --wing: clamp(34px, 6cqw, 52px);
  --w: var(--notch-w);
  --r: calc(var(--notch-h) * 0.42);
}
@media (max-width: 720px) {
  .stage { aspect-ratio: auto; height: 220px; }
}
@media (prefers-color-scheme: dark) {
  .stage {
    background:
      radial-gradient(120% 90% at 18% 0%, #1b2d52 0%, transparent 55%),
      radial-gradient(90% 90% at 85% 10%, #3a1d33 0%, transparent 55%),
      radial-gradient(120% 120% at 50% 110%, #231c45 0%, transparent 60%),
      #0c0e16;
  }
}

.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--notch-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(10px, 2cqw, 18px);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (prefers-color-scheme: dark) { .menubar { background: rgba(20, 20, 24, 0.5); } }
.menubar-group { display: flex; align-items: center; gap: clamp(6px, 1.4cqw, 14px); }
.menubar i {
  display: block;
  height: clamp(5px, 0.8cqw, 7px);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.32);
}
@media (prefers-color-scheme: dark) { .menubar i { background: rgba(255, 255, 255, 0.45); } }
.menubar i:nth-child(1) { width: clamp(8px, 1.4cqw, 12px); background: rgba(0, 0, 0, 0.55); }
.menubar i:nth-child(2) { width: clamp(20px, 4cqw, 40px); }
.menubar i:nth-child(3) { width: clamp(14px, 3cqw, 26px); }
.menubar i:nth-child(4) { width: clamp(16px, 3.2cqw, 30px); }
.menubar-right i { width: clamp(10px, 1.8cqw, 16px) !important; background: rgba(0, 0, 0, 0.32) !important; }
@media (prefers-color-scheme: dark) {
  .menubar i:nth-child(1) { background: rgba(255, 255, 255, 0.7); }
  .menubar-right i { background: rgba(255, 255, 255, 0.45) !important; }
}
.menubar-time {
  font-size: clamp(8px, 1.3cqw, 12px);
  font-weight: 600;
  color: rgba(0, 0, 0, 0.62);
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) { .menubar-time { color: rgba(255, 255, 255, 0.78); } }
@container stage (max-width: 520px) {
  .menubar i:nth-child(4), .menubar-right i:nth-child(1) { display: none; }
}

/* Window hint so the screen reads as "someone is working" */
.window {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28%;
  bottom: -10%;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 50px -20px rgba(20, 30, 60, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: clamp(10px, 2.4cqw, 22px);
  display: grid;
  gap: clamp(6px, 1cqw, 10px);
  align-content: start;
}
@media (prefers-color-scheme: dark) {
  .window { background: rgba(28, 28, 32, 0.78); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07); }
}
.window-dots { display: flex; gap: 6px; margin-bottom: clamp(4px, 1cqw, 10px); }
.window-dots i { width: clamp(6px, 1cqw, 10px); aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, 0.14); }
@media (prefers-color-scheme: dark) { .window-dots i { background: rgba(255, 255, 255, 0.16); } }
.window-line { height: clamp(5px, 0.9cqw, 8px); border-radius: 4px; background: rgba(0, 0, 0, 0.08); }
@media (prefers-color-scheme: dark) { .window-line { background: rgba(255, 255, 255, 0.09); } }
.window-line:nth-child(2) { width: 42%; }
.window-line:nth-child(3) { width: 68%; }
.window-line:nth-child(4) { width: 55%; }
.window-line:nth-child(5) { width: 74%; }
.window-line:nth-child(6) { width: 38%; }

/* The island */
.island {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: var(--w);
  height: var(--notch-h);
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  border-radius: 0 0 var(--r) var(--r);
  transition:
    width 0.52s var(--ease-spring),
    height 0.52s var(--ease-spring),
    border-radius 0.52s var(--ease-spring),
    box-shadow 0.4s ease;
}
/* Concave "shoulders" where the island meets the top edge */
.island::before, .island::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
  pointer-events: none;
}
.island::before { left: -9px; background: radial-gradient(circle at 0 100%, transparent 8.5px, #000 9px); }
.island::after { right: -9px; background: radial-gradient(circle at 100% 100%, transparent 8.5px, #000 9px); }

.island-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.island-ring {
  position: absolute;
  inset: -3px 0 0 0;
  border: 1.5px solid var(--attn);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.island-body {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--w);
  transform: translateX(-50%);
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.32s var(--ease-out);
}
.island-body.is-out {
  opacity: 0;
  filter: blur(4px);
  transform: translateX(-50%) scale(0.97);
}

.stage[data-state="compact"] { --w: calc(var(--notch-w) + 2 * var(--wing)); }
.stage[data-state="glance"],
.stage[data-state="celebration"] { --w: clamp(270px, 46cqw, 440px); --r: clamp(18px, 2.6cqw, 26px); }
.stage[data-state="attention"] { --w: clamp(284px, 52cqw, 500px); --r: clamp(20px, 3cqw, 30px); }
.stage[data-state="attention"] .island-ring { opacity: 1; }
.stage[data-state="attention"] .island { box-shadow: 0 14px 44px -10px rgba(255, 158, 51, 0.5); }
.stage[data-state="celebration"] .island { box-shadow: 0 14px 40px -14px rgba(77, 219, 122, 0.45); }

/* Island content */
.i-rail {
  height: var(--notch-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(8px, 1.6cqw, 14px);
}
.i-rail-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.i-rail .g { width: calc(var(--notch-h) * 0.72); height: calc(var(--notch-h) * 0.72); }
.i-rail .g svg { width: 62%; height: 62%; }
.i-rail .ind { width: calc(var(--notch-h) * 0.66); height: calc(var(--notch-h) * 0.66); }
.i-rail-count { font-size: clamp(10px, 1.3cqw, 13px); font-weight: 600; color: rgba(255, 255, 255, 0.6); }

.i-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 1.6cqw, 14px);
  padding: clamp(4px, 0.8cqw, 8px) clamp(14px, 2.4cqw, 22px) clamp(14px, 2.2cqw, 20px);
}
.i-text { min-width: 0; }
.i-title {
  display: block;
  font-size: clamp(13px, 1.75cqw, 16px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.i-sub {
  display: block;
  margin-top: 2px;
  font-size: clamp(11.5px, 1.45cqw, 13.5px);
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.i-sub .dotsep { margin: 0 0.35em; opacity: 0.8; }
.s-run { color: var(--run); }
.s-ok { color: var(--ok); }
.s-attn { color: var(--attn); }
.s-fail { color: var(--fail); }
.i-now { font-size: clamp(11px, 1.3cqw, 13px); color: rgba(255, 255, 255, 0.42); align-self: start; margin-top: 2px; }

.i-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 clamp(14px, 2.4cqw, 22px) clamp(14px, 2.2cqw, 20px);
}
.i-btn {
  display: inline-flex;
  align-items: center;
  padding: clamp(5px, 0.8cqw, 7px) clamp(11px, 1.8cqw, 16px);
  border-radius: 999px;
  font-size: clamp(11.5px, 1.45cqw, 14px);
  font-weight: 650;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.i-btn-primary { background: var(--run); color: #001428; }
.i-btn-ok { background: rgba(77, 219, 122, 0.16); color: var(--ok); }

.i-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.i-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.i-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--run);
  transition: width 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.i-jobs { font-size: clamp(11px, 1.3cqw, 12.5px); color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Glyph circles (shared by the island, mini islands and cards) */
.g {
  --tint: var(--t-cli);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 4.4cqw, 42px);
  height: clamp(32px, 4.4cqw, 42px);
  border-radius: 50%;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 20%, #000);
  flex: none;
}
.g svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g[data-src="claude"] { --tint: var(--t-claude); }
.g[data-src="codex"] { --tint: var(--t-codex); }
.g[data-src="cursor"] { --tint: var(--t-cursor); }
.g[data-src="github"] { --tint: var(--t-git); }
.g[data-src="deploy"] { --tint: var(--t-deploy); }
.g[data-src="sentry"] { --tint: var(--t-sentry); }
.g[data-src="stripe"] { --tint: var(--t-stripe); }
.g[data-src="calendar"] { --tint: var(--t-calendar); }
.g[data-src="media"] { --tint: var(--t-media); }
.g[data-src="system"] { --tint: var(--t-system); }
.g[data-src="timer"] { --tint: var(--t-timer); }
.g[data-src="cli"] { --tint: var(--t-cli); }
.g[data-src="attn"] { --tint: var(--attn); }

/* Right-side indicators */
.ind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 3.2cqw, 30px);
  height: clamp(24px, 3.2cqw, 30px);
  border-radius: 50%;
  flex: none;
}
.ind svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ind-ok { color: var(--ok); background: rgba(77, 219, 122, 0.16); }
.ind-fail { color: var(--fail); background: rgba(255, 92, 87, 0.18); }
.ind-attn { color: var(--attn); background: rgba(255, 158, 51, 0.18); }
.ind-spin {
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--run);
  border-right-color: var(--run);
}
@media (prefers-reduced-motion: no-preference) {
  .ind-spin { animation: np-spin 1.1s linear infinite; }
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* Success check draw-on */
.draw path { stroke-dasharray: 24; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .draw path { animation: np-draw 0.6s 0.35s var(--ease-out) both; }
}
@keyframes np-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

/* Reactions overlay (never covers text or buttons; ≤ 1.8 s) */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.fx-burst { position: absolute; width: 0; height: 0; }
.fx-burst i {
  position: absolute;
  left: -1.5px;
  top: -6px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--ok);
  transform-origin: 1.5px 6px;
  opacity: 0;
  animation: np-confetti 1.1s var(--ease-out) forwards;
}
.fx-burst i:nth-child(2n) { background: var(--run); }
.fx-burst i:nth-child(3n) { background: #ffd24d; }
@keyframes np-confetti {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-10px) scaleY(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scaleY(1); }
}

.fx-coin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe58a, #ffc93f 55%, #d99a12);
  box-shadow: inset 0 0 0 1.5px rgba(160, 100, 0, 0.55);
  opacity: 0;
  animation: np-coin 1.3s var(--ease-out) forwards;
}
@keyframes np-coin {
  0% { opacity: 0; transform: translate(0, 6px) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

.fx-rocket {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  opacity: 0;
  animation: np-rocket 1.5s cubic-bezier(0.5, 0, 0.75, 0.3) forwards;
}
.fx-rocket svg { width: 100%; height: 100%; }
@keyframes np-rocket {
  0% { opacity: 0; transform: translate(0, 10px) rotate(0deg); }
  15% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(1px, -2px) rotate(0deg); }
  100% { opacity: 0; transform: translate(34px, -86px) rotate(18deg); }
}

/* Demo controls */
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li + li { margin-top: 0; }
.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  min-height: 36px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-current="true"] { color: var(--btn-fg); background: var(--btn-bg); border-color: var(--btn-bg); }
.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 36px;
  cursor: pointer;
}
.demo-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.demo-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.demo-toggle .icon-play { display: none; }
.demo-toggle[aria-pressed="true"] .icon-play { display: block; }
.demo-toggle[aria-pressed="true"] .icon-pause { display: none; }
.no-js .demo-toggle, .no-js .chips { display: none; }
.demo-caption {
  min-height: 1.5em;
  margin: 18px auto 0;
  text-align: center;
  color: var(--text-2);
  font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: -0.015em;
  transition: opacity 0.25s ease;
  max-width: 34em;
}
.demo-caption.is-out { opacity: 0; }
.demo-label { margin-top: 10px; text-align: center; font-size: 13px; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  .island, .island-body, .island-ring, .demo-caption, .i-bar > span { transition-duration: 0.01s !important; }
  .fx { display: none; }
}

/* ───────────────────────── Steps ───────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li { margin: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 15px;
  margin-bottom: 18px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--text-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ───────────────────────── Split layout ───────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-rev > :first-child { order: 2; }
.split h2 + p, .split h2 + .lede { margin-top: 18px; }
.split .actions { margin-top: 26px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
}

/* ───────────────────────── Code / terminal ───────────────────────── */
.terminal {
  background: #0b0b0d;
  color: #e6e6ea;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.terminal-bar span { margin-left: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); font-family: var(--mono); }
.terminal-bar .copy { margin-left: auto; }
.terminal pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  tab-size: 2;
}
.terminal code { font-size: inherit; background: none; border: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; }
.terminal .c { color: #8e8e93; }
.terminal .p { color: #66dbb3; user-select: none; }
.terminal .k { color: #66b8ff; }
.terminal .s { color: #ffc27a; }
.copy {
  font: inherit;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  min-height: 28px;
}
.copy:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.no-js .copy { display: none; }
.copy:focus-visible { outline-color: #66b8ff; }

/* ───────────────────────── Statement (privacy) ───────────────────────── */
.statement {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15em;
  margin: 0 auto;
  text-align: center;
}
.statement .quiet { color: var(--text-3); }

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(40px, 6vw, 64px);
}
.points h3 { font-size: 19px; margin-bottom: 8px; }
.points p { color: var(--text-2); font-size: 16px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* ───────────────────────── Cards & grids ───────────────────────── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card .g { width: 38px; height: 38px; }
a.card { color: inherit; display: block; transition: border-color 0.2s ease, transform 0.25s var(--ease-out); }
a.card:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-2px); }
a.card:hover h3 { color: var(--accent); }
.card .link-arrow { display: inline-block; margin-top: 12px; font-size: 15px; color: var(--accent); }

/* Status tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--bg-soft);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-v1 { color: var(--run-text); }
.tag-next { color: var(--attn-text); }
.tag-roadmap { color: var(--text-3); }
.tag-dev { color: var(--ok-text); }
.card .tag { position: absolute; top: 20px; right: 20px; }
h2 .tag, h3 .tag { margin-left: 8px; position: relative; top: -0.1em; }

/* Feature blocks */
.feature { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature h2 { font-size: clamp(28px, 4vw, 40px); }
.feature ul.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.feature ul.checks li { position: relative; padding-left: 28px; color: var(--text-2); }
.feature ul.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ok-text);
  border-bottom: 2px solid var(--ok-text);
  transform: rotate(-45deg);
}
.feature ul.checks li .tag { margin-left: 6px; }

/* Mini island — static rendering of the expanded view */
.mini {
  background: #000;
  color: #fff;
  border-radius: 30px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
}
@media (prefers-color-scheme: dark) { .mini { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px -24px rgba(0, 0, 0, 0.9); } }
.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 4px 10px;
}
.mini-head .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--run); }
.mini-head .time { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 4px;
}
.mini-row .g { width: 40px; height: 40px; }
.mini-row .i-title { font-size: 16px; }
.mini-row .i-sub { font-size: 14px; }
.mini-row .ind { width: 28px; height: 28px; }
.mini-row .ind-spin { animation: none; }
.mini-row .i-bar { display: block; margin-top: 8px; }
.mini-row .i-bar > span { transition: none; }
.mini-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 4px 0; }
.mini-actions .i-btn { font-size: 14px; padding: 7px 16px; }
.mini-attn { box-shadow: 0 0 0 1.5px var(--attn), 0 20px 50px -18px rgba(255, 158, 51, 0.5); }
.bar-35 { width: 35% !important; }
.bar-60 { width: 60% !important; }
.bar-80 { width: 80% !important; }
@container (max-width: 380px) {
  .mini-row { gap: 11px; }
  .mini-row .g { width: 34px; height: 34px; }
  .mini-row .i-title { font-size: 14.5px; }
  .mini-row .i-sub { font-size: 13px; }
}

/* ───────────────────────── Tables ───────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--text); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }

/* ───────────────────────── Prose (legal, docs) ───────────────────────── */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 19px; margin: 1.8em 0 0.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose .terminal { margin: 1.2em 0 1.6em; }
.prose .terminal pre { font-size: 13px; }

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--text-2);
}
.callout strong { color: var(--text); }
.callout-attn { border-color: color-mix(in srgb, var(--attn) 55%, transparent); background: color-mix(in srgb, var(--attn) 9%, var(--bg)); }
.callout-attn::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 50%; background: var(--attn); }

.toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.toc a:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); }

/* Definition-style lists for integration pages */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }
.facts .card ul { margin: 12px 0 0; padding-left: 1.1em; }
.facts .card li { color: var(--text-2); font-size: 16px; }
.card-never { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.card-limits { border-style: dashed; }

/* ───────────────────────── Pricing ───────────────────────── */
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow);
  text-align: center;
}
.price-card h2 { font-size: clamp(26px, 3.4vw, 34px); }
.price-sub { color: var(--text-3); margin-top: 8px; }
.price {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 26px 0 6px;
}
.price-note { color: var(--text-3); font-size: 15px; margin-bottom: 26px; }
.price-card ul.checks { text-align: left; max-width: 380px; margin: 28px auto 0; }
.checkout-status { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--text-2); }
.price-fine { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }

/* Tier tags (Free / Pro) */
.tag-free { color: var(--ok-text); }
.tag-pro { color: var(--accent); }

/* Founder banner — the count appears only when the pricing API returns it */
.founder-banner {
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line));
  background: color-mix(in srgb, var(--ok) 8%, var(--bg-elev));
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 15.5px;
}
.founder-banner strong { color: var(--text); }
.founder-count { max-width: 360px; margin: 12px auto 0; }
@media (max-width: 560px) {
  .founder-banner > p > strong { display: block; }
  .founder-banner > p > .dotsep { display: none; }
}
.founder-meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.founder-meter > span { display: block; height: 100%; width: 0; background: var(--ok); border-radius: inherit; transition: width 0.6s var(--ease-out); }
.founder-count p { margin: 8px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.founder-count .dotsep { margin: 0 6px; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .founder-meter > span { transition: none; } }

/* Plan cards */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}
.plan-pro { border-color: var(--line-strong); box-shadow: var(--shadow); }
.plan > .btn:last-child { margin-top: auto; }
.plan-top { margin: 0 0 12px; line-height: 1; }
.plan h2, .plan h3 { font-size: clamp(22px, 2.6vw, 26px); margin: 0; }
.plan .tagline { margin: 8px 0 0; color: var(--text-2); }
.plan .price { margin: 20px 0 4px; }
.plan .price small { font-size: 0.36em; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-left: 6px; }
.plan .price-note { margin: 0 0 22px; }
.plan .checkout-status { min-height: 0; margin-top: 0; }
.plan .checkout-status:not(:empty) { margin-top: 10px; }
.plan .price-fine { margin-top: 10px; }
.plan-list-head { margin: 26px 0 0; font-weight: 600; color: var(--text); font-size: 15px; }
.plan ul.checks, .tiers { list-style: none; padding: 0; margin: 12px 0 0; }
.plan ul.checks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; }
.plan ul.checks li + li { margin-top: 8px; }
.plan ul.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok-text);
  border-bottom: 2px solid var(--ok-text);
  transform: rotate(-45deg);
}

/* Short Free/Pro lines inside feature cards */
.tiers li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); font-size: 15px; }
.tiers li + li { margin-top: 8px; }
.tiers .tag { flex: none; min-width: 52px; justify-content: center; }
.card .tiers .tag { position: static; }
.card .tiers { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.feature > .tiers, .feature .split .tiers { margin-top: 20px; }

/* Assurances under the plans */
.assure {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 28px auto 0;
}
@media (max-width: 860px) { .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .assure { grid-template-columns: 1fr; } }
.assure div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.assure h3 { font-size: 16px; margin: 0 0 4px; }
.assure p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* Free vs Pro comparison */
.compare { max-width: 880px; margin: 0 auto; }
.compare table { font-size: 15px; }
.compare th[scope="col"]:not(:first-child), .compare td { width: 32%; }
.compare tbody th { font-weight: 500; background: transparent; color: var(--text); }
.compare .group th { background: var(--bg-soft); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding-top: 10px; padding-bottom: 10px; }
.yes, .no { display: inline-block; width: 14px; height: 14px; position: relative; vertical-align: -1px; }
.yes::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok-text);
  border-bottom: 2px solid var(--ok-text);
  transform: rotate(-45deg);
}
.no::before { content: ""; position: absolute; left: 2px; right: 2px; top: 7px; height: 1.5px; background: var(--text-3); }
@media (max-width: 560px) {
  .compare table { font-size: 13.5px; }
  .compare th, .compare td { padding: 10px 10px; }
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--text-2); }

/* ───────────────────────── CTA band ───────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 14em; margin: 0 auto; }
.cta-band p { margin: 18px auto 30px; color: var(--text-3); max-width: 32em; }
.pulse-mark { width: 64px; height: 64px; margin: 0 auto 26px; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--text-3);
}
@media (prefers-color-scheme: dark) { .site-footer { background: #0b0b0c; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-grid h2 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { color: var(--text-3); }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { margin-top: 12px; max-width: 22em; }
.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.footer-legal .row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--text-3); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ───────────────────────── 404 ───────────────────────── */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .mini { max-width: 380px; margin-bottom: 36px; }

/* Utility spacing */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.mb-m { margin-bottom: 32px; }

/* No-JS: the pre-rendered first scene is shown as a still frame */
.no-js .island { height: auto; }
.no-js .island-clip { position: relative; }
.no-js .island-body { position: relative; left: auto; transform: none; }

.h3-like { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }

/* ───────────────────────── Forms & license recovery ───────────────────────── */
.form-card {
  max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4.5vw, 36px);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(22px, 3vw, 26px); margin-bottom: 10px; }
.form-card > p { color: var(--text-2); }
.field { display: grid; gap: 8px; margin: 22px 0 18px; }
.field label { font-weight: 600; font-size: 15px; color: var(--text); }
.field .hint { font-size: 14px; color: var(--text-3); margin: 0; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.input[aria-invalid="true"] { border-color: var(--fail-text); }
.form-status { min-height: 1.5em; margin-top: 14px; font-size: 15px; color: var(--text-2); }
.form-status:empty { margin-top: 0; }
.form-status.is-ok { color: var(--text); }
.form-status.is-error { color: var(--fail-text); }
.form-status .status-line { display: flex; gap: 10px; align-items: flex-start; }
.form-status .status-line::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 50%; background: currentColor; }
.form-status.is-ok .status-line::before { background: var(--ok); }
.js-only { display: none; }
.js .js-only { display: block; }
.js .no-js-only { display: none; }

.key-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 14px 14px 14px 18px;
  background: #0d0d0f;
  color: #f5f5f7;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.key-box code {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 2.6vw, 19px);
  letter-spacing: 0.04em;
  white-space: normal;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  user-select: all;
}
.key-box .copy { flex: none; font-size: 14px; padding: 6px 14px; min-height: 36px; }
@media (max-width: 480px) {
  .key-box { flex-direction: column; align-items: stretch; padding: 16px; }
  .key-box code { text-align: center; }
  .key-box .copy { min-height: 40px; }
}
.key-meta { font-size: 14px; color: var(--text-3); margin: 0 0 6px; }
.key-list { list-style: none; padding: 0; margin: 0; }
.key-list li + li { margin-top: 18px; }
.steps-inline { margin: 20px 0 0; padding-left: 1.2em; color: var(--text-2); }
[hidden] { display: none !important; }
