/* BatchScroll landing site — hand-written, dependency-free stylesheet. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-tint: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --border: #e2e7f0;
  --border-strong: #cbd3e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5b6577;
  --brand-1: #2563eb;
  --brand-2: #4f46e5;
  --brand: #3b4fe0;
  --brand-ink: #3730a3;
  --link: #2f45d6;
  --brand-soft: #e8edff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --no: #94a3b8;
  --gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px -12px rgba(30, 41, 99, 0.28), 0 8px 20px -8px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;

  /* Product mock palette */
  --m-chrome: #e9edf5;
  --m-app: #ffffff;
  --m-side: #f6f8fc;
  --m-line: #e1e6ef;
  --m-text: #1e293b;
  --m-muted: #6b7489;
  --m-field: #ffffff;
  --m-thumb: #f1f4f9;
  --m-skel: #dfe5ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0f1d;
    --bg-soft: #0f1527;
    --bg-tint: #141b36;
    --surface: #121a2e;
    --surface-2: #162038;
    --border: #232e4a;
    --border-strong: #33405f;
    --text: #e8ecf6;
    --text-2: #c5cde0;
    --muted: #9aa5bd;
    --brand: #7b8cff;
    --brand-ink: #b9c3ff;
    --link: #93a3ff;
    --brand-soft: #1c2550;
    --ok: #4ade80;
    --ok-soft: #133524;
    --no: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 70px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(123, 140, 255, 0.08);

    --m-chrome: #1a2238;
    --m-app: #10172a;
    --m-side: #131b30;
    --m-line: #26314d;
    --m-text: #e2e8f5;
    --m-muted: #8e9ab3;
    --m-field: #0c1324;
    --m-thumb: #1a2339;
    --m-skel: #2a3552;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-tint);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.38em;
  white-space: nowrap;
}

.visually-hidden {
  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-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.72em;
  --btn-pad-x: 1.25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(59, 79, 224, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(59, 79, 224, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--brand); }

.btn-light {
  background: #fff;
  color: #1e2a78;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }

.btn-lg { font-size: 1.0625rem; --btn-pad-y: 0.9em; --btn-pad-x: 1.5em; border-radius: 14px; }
.btn-sm { font-size: 0.9375rem; --btn-pad-y: 0.55em; --btn-pad-x: 1em; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--text); }
.header-cta { margin-left: auto; display: flex; gap: 8px; }
.header-cta .btn-secondary { display: none; }

@media (min-width: 880px) {
  .site-nav { display: block; }
  .header-cta { margin-left: 8px; }
  .header-cta .btn-secondary { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 6vw + 32px, 112px); }
.section-flush { padding-top: 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 5vw + 24px, 96px);
  padding-bottom: clamp(8px, 2vw, 24px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand-1) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 20%, #000 30%, transparent 75%);
}
.hero-copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-pill span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.375rem, 1.3rem + 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 22px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .gradient-text { background-image: linear-gradient(135deg, #7aa2ff, #a5a1ff); }
}
.hero-lead {
  max-width: 660px;
  margin: 0 auto 32px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: stretch; max-width: 360px; margin-inline: auto; }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero-fineprint { margin: 14px 0 0; color: var(--muted); font-size: 0.875rem; }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; max-width: none; }
}

.hero-visual {
  position: relative;
  max-width: 1080px;
  margin: clamp(44px, 5vw, 72px) auto 0;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 40px;
}
.mock {
  width: 100%;
  height: auto;
  border-radius: clamp(10px, 1.6vw, 18px);
  box-shadow: var(--shadow-lg);
}

/* Product mock (inline SVG) */
.m-frame { fill: var(--m-app); stroke: var(--m-line); }
.m-chrome { fill: var(--m-chrome); }
.m-tab { fill: var(--m-app); }
.m-side { fill: var(--m-side); }
.m-line { stroke: var(--m-line); fill: none; }
.m-field { fill: var(--m-field); stroke: var(--m-line); }
.m-btn { fill: var(--m-app); stroke: var(--m-line); }
.m-thumb { fill: var(--m-thumb); }
.m-skel { fill: var(--m-skel); }
.m-card { fill: var(--m-app); stroke: var(--m-line); }
.m-chip-on { fill: var(--brand-soft); stroke: var(--brand); }
.m-chip-off { fill: var(--m-app); stroke: var(--m-line); }
.m-track { fill: var(--m-skel); }
.m-brand { fill: var(--brand); }
.m-ok { fill: var(--ok); }
.m-warn { fill: var(--warn); }
.m-off { fill: var(--m-skel); }
.mock text { font-family: var(--font); fill: var(--m-text); }
.mock .t-muted { fill: var(--m-muted); }
.mock .t-brand { fill: var(--brand-ink); }
.mock .t-white { fill: #fff; }
.mock .t-mono { font-family: var(--mono); }
.mock .t-b { font-weight: 700; }
.m-stroke-brand { stroke: var(--brand); fill: none; }

/* ---------- Fact strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li { padding: 18px 16px; background: var(--surface); text-align: center; }
.facts strong { display: block; font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.2; }
.facts span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
@media (min-width: 820px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding: 22px 20px; }
}
.facts-wrap { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Local install note (env === 'local') ---------- */
.install {
  padding-block: 40px 8px;
}
.install-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}
.install-card h2 { font-size: 1.375rem; margin: 0 0 8px; }
.install-card ol { margin: 0; padding-left: 1.25em; }
.install-card li + li { margin-top: 6px; }
.install-card p { margin: 0; color: var(--text-2); }
.badge-local {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 820px) {
  .install-card { grid-template-columns: 1fr 1.3fr; padding: 32px; align-items: start; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.0625rem;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin-bottom: 14px; }
.step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}
.tags .pro::after {
  content: 'Pro';
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.6875rem;
  font-weight: 700;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Features ---------- */
.feature-lead {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
}
.feature-lead h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.feature-lead p { color: var(--muted); }
.feature-lead ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-lead li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.feature-lead li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ok); }
.devices { width: 100%; height: auto; }
.devices .d-screen { fill: var(--bg-tint); stroke: var(--border-strong); stroke-width: 2; }
.devices .d-body { fill: var(--surface); stroke: var(--border-strong); stroke-width: 2; }
.devices .d-content { fill: var(--m-skel); }
.devices .d-accent { fill: var(--brand); }
.devices .d-accent-2 { fill: var(--brand-2); opacity: 0.55; }
.devices text { font-family: var(--font); fill: var(--text-2); font-size: 15px; font-weight: 600; }
.devices .d-sub { fill: var(--muted); font-size: 13px; font-weight: 500; }
@media (min-width: 900px) {
  .feature-lead { grid-template-columns: 1fr 1.15fr; gap: 48px; }
}

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature h3 { font-size: 1.125rem; margin-bottom: 0.4em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.icon-tile svg { width: 24px; height: 24px; }
.pro-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Use cases ---------- */
.cases {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.case h3 { font-size: 1.1875rem; }
.case .who {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case p { margin: 0; color: var(--muted); font-size: 1rem; }
.case-feature {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}
.case-feature .who { color: rgba(255, 255, 255, 0.82); }
.case-feature p { color: rgba(255, 255, 255, 0.9); }
@media (min-width: 700px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .cases { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .case { grid-column: span 2; }
  .case-feature { grid-column: span 3; }
  .case-wide { grid-column: span 3; }
}

/* ---------- Privacy band ---------- */
.privacy-band {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 24px;
  background: #0d1430;
  color: #e7ebf8;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.privacy-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -220px;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.55), transparent);
}
.privacy-band h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); color: #fff; }
.privacy-band p { color: #b9c2dc; }
.privacy-band a { color: #b8c4ff; }
.privacy-band .eyebrow { color: #a5b4ff; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #4ade80; }
.check-list strong { color: #fff; }
.privacy-band .check-list span { color: #b9c2dc; }
@media (min-width: 900px) {
  .privacy-band { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}

/* ---------- Pricing ---------- */
/* Three cards: Free, Pro Monthly, Pro Lifetime. site.js sets html[data-monthly="off"] (and hides
   [data-plan-monthly]) when no monthly product is configured; the grid then falls back to two cards. */
.plans {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin-inline: auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-pro {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-md);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-flag-soft {
  padding: 2px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-desc { color: var(--muted); font-size: 0.9375rem; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price strong { font-size: 3rem; line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.price span { color: var(--muted); font-weight: 500; }
.plan .price-note { color: var(--muted); font-size: 0.875rem; margin-bottom: 22px; }
.plan .price-note + .price-note { margin-top: -14px; }
.plan ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.975rem; color: var(--text-2); }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plan .plan-terms { margin: auto 0 14px; color: var(--muted); font-size: 0.875rem; }
.plan .plan-terms + .btn { margin-top: 0; }
@media (min-width: 700px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; }
  .plan { padding: 36px 32px; }
  /* Free spans the row above the two Pro cards; its list runs in two columns. */
  html:not([data-monthly="off"]) .plan-free { grid-column: 1 / -1; }
  html:not([data-monthly="off"]) .plan-free ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  html:not([data-monthly="off"]) .plan-free .btn { align-self: flex-start; width: auto; }
}
@media (min-width: 1040px) {
  html:not([data-monthly="off"]) .plans { grid-template-columns: repeat(3, 1fr); max-width: none; }
  html:not([data-monthly="off"]) .plan-free { grid-column: auto; }
  html:not([data-monthly="off"]) .plan-free ul { grid-template-columns: none; }
  html:not([data-monthly="off"]) .plan-free .btn { align-self: stretch; width: 100%; }
  html:not([data-monthly="off"]) .plan { padding: 34px 28px; }
}

.compare {
  max-width: 920px;
  margin: 48px auto 0;
}
.compare h3 { font-size: 1.25rem; text-align: center; margin-bottom: 18px; }
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compare th,
.compare td {
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  background: var(--bg-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare tbody th { font-weight: 600; color: var(--text); width: 44%; }
.compare td { color: var(--text-2); width: 28%; }
.compare td.yes,
.compare td.no { font-weight: 600; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--no); }
.compare .mark { display: inline-flex; align-items: center; gap: 6px; }
.compare .mark svg { width: 18px; height: 18px; }
.compare .th-sub { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.compare .price-line { display: block; }
.compare .price-line + .price-line { margin-top: 6px; }
.compare .price-line strong { display: block; color: var(--text); }
@media (min-width: 640px) {
  .compare table { font-size: 0.9375rem; }
  .compare th,
  .compare td { padding: 13px 16px; }
}
.compare-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 10px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 10px no-repeat,
    var(--brand-soft);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--brand), var(--brand)) center / 10px 2px no-repeat,
    var(--brand-soft);
}
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  background: var(--gradient);
  color: #fff;
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.cta-band::before { width: 420px; height: 420px; left: -140px; bottom: -220px; }
.cta-band::after { width: 300px; height: 300px; right: -80px; top: -140px; }
.cta-band h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.88); font-size: 1.125rem; }
.cta-band .hero-actions { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 32px; }
.footer-grid p { margin: 12px 0 0; max-width: 340px; }
.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---------- Document pages (privacy, terms, refund, changelog) ---------- */
.doc-hero {
  padding-block: clamp(44px, 5vw + 16px, 80px) clamp(28px, 3vw, 40px);
  background: linear-gradient(180deg, var(--bg-tint), var(--bg));
  border-bottom: 1px solid var(--border);
}
.doc-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem); margin-bottom: 12px; }
.doc-hero p { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 720px; }
.doc-hero .doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }
.doc-hero .doc-meta strong { color: var(--text); font-weight: 600; }

.prose {
  max-width: 760px;
  padding-block: clamp(32px, 4vw, 56px) clamp(56px, 6vw, 96px);
  color: var(--text-2);
}
.prose h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.1875rem; color: var(--text); }
.prose ul,
.prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }
.prose code { white-space: normal; overflow-wrap: anywhere; }
.summary-box {
  margin: 0 0 2em;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: var(--surface-2);
}
.summary-box h2 { margin: 0 0 10px; font-size: 1.125rem; }
.summary-box ul { margin: 0; }
.summary-box li:last-child { margin-bottom: 0; }

.perm-table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 12px; }
.perm-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.perm-table th,
.perm-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.perm-table thead th { background: var(--bg-soft); color: var(--text); font-weight: 600; }
.perm-table tbody tr:last-child th,
.perm-table tbody tr:last-child td { border-bottom: 0; }
.perm-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; width: 32%; }
.perm-table th code { white-space: nowrap; overflow-wrap: normal; }
.perm-table td p { margin: 0 0 0.6em; }
.perm-table td p:last-child { margin-bottom: 0; }
.perm-table .req { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 500; white-space: normal; }

.release {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.release-head h2 { margin: 0; font-size: 1.5rem; }
.release-head time { color: var(--muted); font-size: 0.9375rem; }
.release-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.release h3 { margin-top: 1.2em; font-size: 1.0625rem; }

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 260px);
  padding-block: 72px 24px;
  text-align: center;
}
.not-found .code {
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}
.not-found p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; font-size: 1.125rem; }
.not-found .hero-actions { margin-inline: auto; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .skip-link { display: none !important; }
  body { font-size: 11pt; }
  .prose { max-width: none; }
}

/* Generated by deploy/apply-config.mjs: Chrome Web Store link not available yet (CWS_ITEM_ID empty). */
a[data-store-pending] { opacity: .7; cursor: default; pointer-events: none; }
