/* Snapovo site — design tokens + base styles
 * Dark-first; light theme via [data-theme="light"]
 * Inter Tight (display) · Inter (body) · JetBrains Mono (kbd)
 */

:root {
  /* Accent — set by tweaks; default violet (option 4) */
  --accent: #6D5DFC;
  --accent-soft: #B8B5FF;
  --accent-deep: #4F3FE0;
  --accent-glow: rgba(109, 93, 252, 0.18);
  --accent-tint: rgba(109, 93, 252, 0.10);

  /* Type */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;

  /* Layout */
  --maxw: 1200px;
  --gutter: 32px;

  /* Animation */
  --easing: cubic-bezier(0.32, 0.72, 0, 1);
}

/* DARK (default) */
[data-theme="dark"] {
  --bg: #0A0A0F;
  --bg-elev: #101019;
  --surface: #14141E;
  --surface-2: #1B1B27;
  --surface-3: #232333;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #ECECEF;
  --text-muted: #9C9CA8;
  --text-dim: #5E5E6E;
  --text-inv: #0A0A0F;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 40px rgba(0,0,0,0.5);
  --shadow-float: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--border-strong);
  --grid-line: rgba(255,255,255,0.04);
  --hairline: rgba(255,255,255,0.08);
}

/* LIGHT */
[data-theme="light"] {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F4F0;
  --surface-3: #EAEAE5;
  --border: rgba(15, 15, 25, 0.08);
  --border-strong: rgba(15, 15, 25, 0.14);
  --text: #0A0A0F;
  --text-muted: #52525B;
  --text-dim: #8B8B95;
  --text-inv: #FFFFFF;
  --shadow-card: 0 1px 2px rgba(15,15,25,0.04), 0 8px 24px rgba(15,15,25,0.06);
  --shadow-float: 0 24px 60px rgba(15,15,25,0.10), 0 0 0 1px var(--border);
  --grid-line: rgba(15,15,25,0.05);
  --hairline: rgba(15,15,25,0.10);
}

/* Density */
[data-density="compact"] { --gutter: 24px; }
[data-density="comfy"] { --gutter: 48px; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--accent-glow); color: var(--text); }

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.018em; }
h4 { font-size: 17px; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }

code, kbd, pre { font-family: var(--font-mono); }

/* ─────────────────────────  Layout  ───────────────────────── */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(64px, 10vw, 128px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }

.hairline {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* ─────────────────────────  Announcement bar  ───────────────────────── */

.annc {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.annc-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.annc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.annc a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.annc a:hover { color: var(--accent); }

/* ─────────────────────────  Header  ───────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .35s var(--easing);
}
.hdr.is-scrolled { box-shadow: 0 16px 40px -20px rgba(0,0,0,0.45); }
[data-theme="light"] .hdr.is-scrolled { box-shadow: 0 16px 40px -24px rgba(15,15,25,0.22); }
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  font-size: 16px;
  color: var(--text);
}
.hdr-brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 4px 12px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.hdr-brand-icon::after{
  content:"";
  position:absolute;inset:5px;
  border-radius:3px;
  background:
    linear-gradient(transparent 49%, rgba(255,255,255,0.4) 49% 51%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.4) 49% 51%, transparent 51%);
  opacity:.55;
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.hdr-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .15s var(--easing), background .15s var(--easing);
}
.hdr-nav a:hover { color: var(--text); background: var(--surface-2); }
.hdr-nav a.is-active { color: var(--text); background: var(--surface-2); }
@media (max-width: 860px) {
  .hdr-inner { flex-wrap: wrap; row-gap: 0; height: auto; padding-top: 10px; }
  .hdr-nav {
    order: 3;
    flex: 1 0 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 10px;
    margin-top: 0;
  }
  .hdr-nav::-webkit-scrollbar { display: none; }
  .hdr-nav a { flex: 0 0 auto; white-space: nowrap; }
}

.hdr-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .15s var(--easing);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn.is-active { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
  font-size: 12px;
  font-weight: 500;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
}
.lang-toggle button.is-on { background: var(--surface-2); color: var(--text); }

/* ─────────────────────────  Buttons  ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s var(--easing);
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--text-inv);
  border-color: var(--text);
}
[data-theme="dark"] .btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px var(--accent-glow);
}
[data-theme="dark"] .btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
[data-theme="light"] .btn--primary:hover {
  background: #1a1a24;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.btn--xl { padding: 16px 26px; font-size: 16px; border-radius: 14px; }

/* Disabled / placeholder button (e.g. Download before the DMG link is set) */
.btn.is-disabled,
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  filter: saturate(.85);
}

.btn-arrow {
  display: inline-block;
  transition: transform .18s var(--easing);
}
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ─────────────────────────  Eyebrow + chips  ───────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────  Hero  ───────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 110px);
  padding-bottom: clamp(48px, 8vw, 80px);
  overflow: hidden;
}
.hero::before {
  /* subtle violet gradient bloom */
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 80%;
  background:
    radial-gradient(60% 60% at 50% 20%, var(--accent-tint), transparent 70%),
    radial-gradient(34% 44% at 82% 78%, color-mix(in oklab, var(--accent-glow) 55%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 .accent {
  background: linear-gradient(96deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.55;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero visual: app-icon morph into layout tiles */
.hero-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-4);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  box-shadow: var(--shadow-card), 0 0 120px -40px var(--accent-glow);
}
.hero-stage::before {
  /* soft grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* The desktop mockup inside the stage */
.desk {
  position: absolute;
  inset: 28px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--accent) 18%, var(--bg)) 0%,
                            var(--bg) 60%);
  border: 1px solid var(--border-strong);
}
.desk-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 18px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; padding: 0 10px;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 500;
}
.desk-bar-spacer { flex: 1; }
.desk-bar-hairline {
  /* Quiet menu-bar progress hairline */
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px;
  width: 64%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.desk-windows {
  position: absolute; inset: 18px 0 0 0;
}
.win {
  position: absolute;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: all .9s var(--easing);
}
[data-theme="light"] .win { box-shadow: 0 8px 24px rgba(15,15,25,0.10); }
.win-tb {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 80%, transparent);
}
.win-tb i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-dim);
  opacity: .6;
}
.win-body {
  position: absolute;
  inset: 18px 0 0 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.win-line {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
}
.win-line.short { width: 60%; }
.win-line.tiny { width: 30%; }

/* The morphing icon */
.morph-icon {
  position: absolute;
  width: 80px; height: 80px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  z-index: 5;
  display: grid; place-items: center;
  filter: drop-shadow(0 20px 40px var(--accent-glow)) drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.morph-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
}

/* ─────────────────────────  Animation: capture → restore loop  ───────────────────────── */

@keyframes hero-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.92; }
}
.morph-icon { animation: hero-pulse 6s var(--easing) infinite; }

@keyframes tag-pulse {
  0%, 10%, 95%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  14% { box-shadow: 0 0 0 6px var(--accent-glow); }
  18% { box-shadow: 0 0 0 0 var(--accent-glow); }
}
.hero-stage.is-animated .preset-tag-dot { animation: tag-pulse 6s var(--easing) infinite; }

@keyframes win-snap-1 {
  0%, 12% { transform: translate(0, 10px) scale(.94); opacity: 0; }
  20%, 92% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(0, 10px) scale(.94); opacity: 0; }
}
@keyframes win-snap-2 {
  0%, 20% { transform: translate(0, 10px) scale(.94); opacity: 0; }
  28%, 92% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(0, 10px) scale(.94); opacity: 0; }
}
@keyframes win-snap-3 {
  0%, 5% { transform: translate(-8px, 6px) scale(.94); opacity: 0; }
  13%, 92% { transform: translate(0, 0) scale(1); opacity: .9; }
  100% { transform: translate(-8px, 6px) scale(.94); opacity: 0; }
}
@keyframes icon-fade {
  0%, 6% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  18%, 94% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.hero-stage.is-animated .morph-icon { animation: icon-fade 6s var(--easing) infinite; }
.hero-stage.is-animated .win-1 { animation: win-snap-1 6s var(--easing) infinite; }
.hero-stage.is-animated .win-2 { animation: win-snap-2 6s var(--easing) infinite; }
.hero-stage.is-animated .win-3 { animation: win-snap-3 6s var(--easing) infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-stage.is-animated .morph-icon,
  .hero-stage.is-animated .win-1,
  .hero-stage.is-animated .win-2,
  .hero-stage.is-animated .win-3 { animation: none; }
  .hero-stage.is-animated .morph-icon { opacity: 0; }
}

/* Preset chips — slim captions living in the stage margin, never over the desk */
.preset-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-size: 10.5px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  z-index: 6;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.preset-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ─────────────────────────  Pillar cards  ───────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: 28px;
  border-radius: var(--r-3);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pillar h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}
.pillar p { color: var(--text-muted); font-size: 14.5px; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.pillar-vis {
  height: 120px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────  Use-case stripe  ───────────────────────── */

.preset-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .preset-showcase { grid-template-columns: 1fr; gap: 32px; } }

.preset-shot {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3f3f0;
  box-shadow: var(--shadow-2, 0 18px 40px rgba(0,0,0,0.12));
  position: sticky;
  top: 96px;
}
[data-theme="dark"] .preset-shot { background: #1c1c1e; }
@media (max-width: 860px) { .preset-shot { position: static; } }
.preset-shot-img {
  width: 100%;
  display: block;
}

.preset-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.preset-legend-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.preset-legend-row:first-child { border-top: 0; padding-top: 4px; }
.preset-legend-row:last-child { padding-bottom: 4px; }
.preset-legend-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.preset-legend-row h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.preset-legend-row p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 56ch;
  text-wrap: pretty;
}

.insights-shot {
  max-width: 900px;
  margin: 8px auto 0;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-2, 0 18px 40px rgba(0,0,0,0.12));
}
[data-theme="dark"] .insights-shot { background: #0e0e0e; }
.insights-shot-img { width: 100%; display: block; }
.uc-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #e9e9e4;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
[data-theme="dark"] .uc-shot-bar { background: #2a2a2c; border-bottom-color: rgba(255,255,255,0.07); }
.uc-shot-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #c7c7c0;
  flex-shrink: 0;
}
.uc-shot-bar i:nth-child(1) { background: #ec6a5e; }
.uc-shot-bar i:nth-child(2) { background: #f4bf4f; }
.uc-shot-bar i:nth-child(3) { background: #61c554; }
.uc-shot-bar span {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b66;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .uc-shot-bar span { color: #a0a0a8; }
.uc-shot-frame {
  height: 152px;
  overflow: hidden;
}
.uc-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uc-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
}
.uc-preset--ghost {
  background: var(--surface-2);
  border-color: var(--border);
}
.uc-preset-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.uc-preset-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-preset-trigger {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  flex-shrink: 0;
}
.uc-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.uc-app {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}
.uc h4 { font-family: var(--font-display); font-size: 18px; margin-top: 4px; }
.uc p { color: var(--text-muted); font-size: 14px; }

/* ─────────────────────────  Pomodoro/Insights teaser  ───────────────────────── */

.pomo-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border-radius: var(--r-4);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
@media (max-width: 900px) { .pomo-card { grid-template-columns: 1fr; } }
.pomo-left { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.pomo-right {
  background: var(--bg);
  padding: 28px;
  border-left: 1px solid var(--border);
  position: relative;
}
@media (max-width: 900px) { .pomo-right { border-left: 0; border-top: 1px solid var(--border); } }

/* Insights chart */
.chart {
  width: 100%;
  height: 180px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
}
.bar {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.bar.is-today { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%); box-shadow: 0 0 0 1px var(--accent), 0 -8px 24px var(--accent-glow); }
.bar.is-low { opacity: .35; }
.chart-labels {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
}

.streak-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.streak-num sub,
.streak-sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 10px;
  vertical-align: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  bottom: 0;
}

.session-strip {
  display: grid;
  grid-template-columns: 5fr 1fr 4fr 1fr 3fr;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.session-strip i {
  display: block;
  height: 100%;
}
.session-strip i:nth-child(1) { background: var(--accent); }
.session-strip i:nth-child(2) { background: var(--surface-2); }
.session-strip i:nth-child(3) { background: var(--accent-soft); }
.session-strip i:nth-child(4) { background: var(--surface-2); }
.session-strip i:nth-child(5) { background: var(--accent-deep); }

/* ─────────────────────────  Privacy stripe  ───────────────────────── */

.privacy-stripe {
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: 48px;
  background:
    radial-gradient(80% 80% at 0% 0%, var(--accent-tint), transparent 60%),
    var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) { .privacy-stripe { grid-template-columns: 1fr; padding: 32px; } }
.privacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.privacy-list span { display: flex; align-items: center; }

/* ─────────────────────────  Pricing  ───────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pricing-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .pricing-3 { grid-template-columns: 1fr; } }
.price-card.is-pro {
  background:
    radial-gradient(60% 60% at 100% 0%, var(--accent-tint), transparent 60%),
    var(--surface);
  border-color: var(--accent);
}
.price-card.is-pro::before {
  content: "Best value";
  position: absolute; top: -10px; right: 24px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Features extras grid (trailing capability callouts) */
.feat-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.feat-extra h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 10px 0 10px;
}
.feat-extra p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.feat-extra .feat-where { margin-top: 16px; }
@media (max-width: 900px) { .feat-extras { grid-template-columns: 1fr; gap: 24px; } }


/* Buyer flow strip */
.buyflow {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.buyflow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface);
  transition: border-color .25s var(--easing), transform .25s var(--easing), box-shadow .25s var(--easing);
}
.buyflow-step:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px var(--accent-glow);
}
.buyflow-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.buyflow-h { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.buyflow-p { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }
.buyflow-arrow {
  position: absolute;
  right: -11px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 15px;
  z-index: 1;
}
@media (max-width: 800px) {
  .buyflow { grid-template-columns: 1fr 1fr; }
  .buyflow-step:nth-child(2n) .buyflow-arrow { display: none; }
}
@media (max-width: 480px) {
  .buyflow { grid-template-columns: 1fr; }
  .buyflow-arrow { display: none; }
}

.cmp {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--surface);
  overflow: hidden;
}
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: center;
}
.cmp-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-dim);
}
.cmp-head > div, .cmp-row > div { padding: 14px 18px; }
.cmp-head .cmp-pro, .cmp-row .cmp-pro { color: var(--accent); }
.cmp-row { border-top: 1px solid var(--border); font-size: 14px; }
.cmp-row:first-of-type { border-top: 0; }
.cmp-l { color: var(--text); }
.cmp-v { color: var(--text); font-family: var(--font-mono); font-size: 13px; }
.cmp-v.is-no { color: var(--text-dim); }
@media (max-width: 700px) {
  .cmp-head, .cmp-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .cmp-head > div, .cmp-row > div { padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  padding: 36px;
  border-radius: var(--r-4);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card.is-feat {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--border-strong);
}
.price-card.is-feat::before {
  content: "Recommended";
  position: absolute; top: -10px; right: 24px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.price-amt {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-amt small { font-size: 16px; color: var(--text-muted); margin-left: 8px; font-weight: 500; letter-spacing: 0; }
.price-amt .cents { font-size: 32px; color: inherit; font-weight: inherit; letter-spacing: 0; }
.price-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-list li::before {
  content: "";
  width: 14px; height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  flex-shrink: 0;
}
.price-cta { margin-top: auto; }

/* ─────────────────────────  Footer  ───────────────────────── */

.ftr {
  margin-top: auto;
  padding: 64px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.ftr-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.ftr-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.ftr-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ftr-col a { color: var(--text-muted); }
.ftr-col a:hover { color: var(--text); }
.ftr-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ─────────────────────────  Page-specific shared blocks  ───────────────────────── */

/* Page header block (used by inner pages) */
.ph {
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}
.ph-inner { max-width: 800px; }
.ph h1 { font-size: clamp(36px, 5vw, 56px); }
.ph p { margin-top: 16px; color: var(--text-muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 56ch; }

/* Feature row */
.feat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}
.feat-row:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feat-row:nth-child(even) .feat-copy { order: 2; }
@media (max-width: 800px) {
  .feat-row, .feat-row:nth-child(even) { grid-template-columns: 1fr; }
  .feat-row:nth-child(even) .feat-copy { order: 0; }
}
.feat-eyebrow { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.feat-copy h2 { margin: 12px 0 16px; font-size: clamp(28px, 3.4vw, 40px); }
.feat-copy p { color: var(--text-muted); font-size: 16px; max-width: 50ch; }
.feat-where { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feat-where-label { font-size: 12px; color: var(--text-dim); margin-right: 4px; }

.feat-vis {
  border-radius: var(--r-3);
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Real-screenshot frame (feature rows) */
.feat-shot {
  align-self: start;
  border-radius: var(--r-3);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .feat-shot { background: #111; }
.feat-shot-img { width: 100%; display: block; }

/* Sidebar layout (docs) */
.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 48px var(--gutter) 96px;
  align-items: start;
}
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 24px; } }
.docs-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.docs-side h6 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 16px 8px 8px;
  font-weight: 500;
}
.docs-side h6:first-child { margin-top: 0; }
.docs-side a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}
.docs-side a:hover { color: var(--text); background: var(--surface-2); }
.docs-side a.is-active { color: var(--text); background: var(--surface-2); font-weight: 500; }
@media (max-width: 900px) {
  .docs-side {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .docs-side h6 { display: none; }
  .docs-side a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .docs-side a.is-active { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
}

.docs-content { max-width: 720px; }
.docs-section { scroll-margin-top: 92px; }
.docs-section h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.docs-content h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.docs-content > p { color: var(--text-muted); font-size: 16px; }
.docs-content h2 { font-size: 22px; margin: 48px 0 12px; }
.docs-content h3 { font-size: 17px; margin: 28px 0 8px; }
.docs-content p, .docs-content li { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.docs-content p { margin: 12px 0; }
.docs-content ol, .docs-content ul { padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.docs-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 13px; border: 1px solid var(--border); }
.docs-content pre { background: var(--surface); border: 1px solid var(--border); padding: 18px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.6; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--surface);
}
.faq-item h4 { font-size: 15.5px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* Final CTA */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 48px 24px;
}
.final-cta h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; }
.final-cta p { color: var(--text-muted); font-size: 15.5px; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 14.5px;
}
.callout strong { color: var(--text); }

/* Changelog */
.changelog-entry {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .changelog-entry { grid-template-columns: 1fr; gap: 16px; } }
.changelog-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.changelog-version {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.changelog-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.changelog-body h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 18px 0 8px;
  font-family: var(--font-body);
  font-weight: 600;
}
.changelog-body h4:first-child { margin-top: 0; }
.changelog-body ul { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--text-muted); }
.changelog-body li::marker { color: var(--accent); }

/* Privacy */
.privacy-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 48px var(--gutter) 96px;
  align-items: start;
}
@media (max-width: 900px) { .privacy-page { grid-template-columns: 1fr; gap: 24px; } }
.privacy-toc {
  position: sticky;
  top: 84px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.privacy-toc a { color: var(--text-muted); padding: 4px 0; }
.privacy-toc a:hover { color: var(--text); }
.privacy-toc a.is-active { color: var(--accent); }
@media (max-width: 900px) {
  .privacy-toc {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .privacy-toc > div { display: none; }
  .privacy-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
  }
  .privacy-toc a.is-active { border-color: var(--accent); }
}

.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 12px 0; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .vn { color: var(--text-muted); font-size: 14.5px; font-style: normal; }
.prose .vn-inline { color: var(--text-muted); display: block; margin-top: 4px; font-size: 14px; }
.prose .lang-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-dim);
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* Section heading helper */
.s-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.s-head h2 { max-width: 18ch; }
.s-head p { color: var(--text-muted); max-width: 42ch; font-size: 15px; }

/* Download page bits */
.dl-card {
  padding: 48px;
  border-radius: var(--r-4);
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 60% at 100% 0%, var(--accent-tint), transparent 60%),
    var(--surface);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .dl-card { grid-template-columns: 1fr; padding: 32px; } }
.dl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  font-size: 13.5px;
}
.dl-meta-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; font-weight: 500; }
.dl-meta-val { color: var(--text); font-family: var(--font-mono); font-size: 13px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-top: 48px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.step h4 { font-size: 16px; }
.step p { color: var(--text-muted); font-size: 13.5px; }

pre.codeblock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  overflow-x: auto;
  line-height: 1.6;
}
pre.codeblock .c { color: var(--text-dim); }
pre.codeblock .k { color: var(--accent-soft); }

/* 404 styles unused (placeholder) */

/* ─────────────────────────  Modern polish pass  ───────────────────────── */

html { scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .icon-btn:focus-visible { outline-offset: 3px; }

/* Content-area links (nav/buttons keep their own styles) */
.prose a, .docs-content a, .changelog-body a, .faq-item a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.prose a:hover, .docs-content a:hover, .changelog-body a:hover, .faq-item a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* Numerals line up */
.price-amt, .cmp-v, .dl-meta-val, .streak-num, .kbd, .changelog-date {
  font-variant-numeric: tabular-nums;
}

/* Buttons: subtle lift + press */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
[data-theme="dark"] .btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px var(--accent-glow); }

/* Cards: quiet lift + accent hairline on hover */
.pillar {
  transition: transform .28s var(--easing), border-color .28s var(--easing), box-shadow .28s var(--easing);
}
.pillar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--easing);
}
.pillar:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.pillar:hover::after { transform: scaleX(1); }

.price-card { transition: transform .28s var(--easing), border-color .28s var(--easing), box-shadow .28s var(--easing); }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.faq-item { transition: border-color .2s var(--easing); }
.faq-item:hover { border-color: var(--border-strong); }

.cmp-row { transition: background .15s var(--easing); }
.cmp-row:hover { background: color-mix(in oklab, var(--surface-2) 55%, transparent); }

.step { transition: background .2s var(--easing); }
.step:hover { background: var(--surface-2); }

/* Final CTA: soft bloom behind */
html, body { overflow-x: clip; }
.final-cta { position: relative; z-index: 0; }
.final-cta::before {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(46% 56% at 50% 42%, var(--accent-tint), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Scroll-reveal (classes added by JS; page is fully visible without JS) */
.rv { opacity: 0; transform: translateY(16px); filter: blur(6px); }
.rv-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity .7s var(--easing) var(--rv-d, 0ms), transform .7s var(--easing) var(--rv-d, 0ms), filter .7s var(--easing) var(--rv-d, 0ms);
}

/* Section hairlines draw themselves across */
.hairline.rv { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; filter: none; }
.hairline.rv-in { opacity: 1; transform: scaleX(1); transition: transform 1.2s var(--easing); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; }
}

/* ─────────────────────────  Motion pass: entrances & micro-interactions  ───────────────────────── */

/* Boot splash — dissolved by App once React mounts */
#splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .5s var(--easing), visibility .5s var(--easing);
}
#splash img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 24px 80px var(--accent-glow), 0 10px 32px rgba(0, 0, 0, 0.35);
  animation: splash-breathe 1.9s var(--easing) infinite;
}
#splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes splash-breathe {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.05); }
}

/* Route enter — quiet fade when a page mounts */
main { animation: page-in .45s var(--easing) both; }
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Theme / accent cross-fade — .theme-xfade flipped briefly by App */
@media (prefers-reduced-motion: no-preference) {
  html.theme-xfade,
  html.theme-xfade *,
  html.theme-xfade *::before,
  html.theme-xfade *::after {
    transition:
      background-color .45s var(--easing),
      background .45s var(--easing),
      color .45s var(--easing),
      border-color .45s var(--easing),
      box-shadow .45s var(--easing),
      fill .45s var(--easing),
      stroke .45s var(--easing) !important;
  }
}

/* Theme-toggle icon swap */
.icon-swap { display: grid; place-items: center; animation: icon-swap .45s var(--easing); }
@keyframes icon-swap {
  from { transform: rotate(-90deg) scale(0.4); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

/* Hero entrance choreography (replaces generic reveal for the hero) */
.hero-copy > * { animation: hero-rise .85s var(--easing) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .34s; }
.hero-copy > *:nth-child(5) { animation-delay: .44s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-stage { animation: stage-in 1s var(--easing) .28s both; }
@keyframes stage-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Hero loop: menu-bar hairline fills as the session runs */
.hero-stage.is-animated .desk-bar-hairline {
  width: 10%;
  animation: hairline-fill 6s linear infinite;
}
@keyframes hairline-fill {
  0%, 26% { width: 10%; opacity: 0; }
  32% { opacity: 1; }
  90% { width: 64%; opacity: 1; }
  100% { width: 64%; opacity: 0; }
}

/* Hero preset tags stay put (they live in the margin strip) */

/* Hero bloom drifts very slowly */
.hero::before { animation: bloom-drift 18s ease-in-out infinite alternate; }
@keyframes bloom-drift {
  from { transform: translate3d(-1.5%, 0, 0); }
  to { transform: translate3d(1.5%, 2.5%, 0); }
}

/* Session strip draws itself when the pillar reveals */
.session-strip i { transform-origin: 0 50%; }
.pillar.rv .session-strip i { transform: scaleX(0); }
.pillar.rv-in .session-strip i { transform: scaleX(1); transition: transform .7s var(--easing); }
.pillar.rv-in .session-strip i:nth-child(1) { transition-delay: .35s; }
.pillar.rv-in .session-strip i:nth-child(2) { transition-delay: .47s; }
.pillar.rv-in .session-strip i:nth-child(3) { transition-delay: .55s; }
.pillar.rv-in .session-strip i:nth-child(4) { transition-delay: .67s; }
.pillar.rv-in .session-strip i:nth-child(5) { transition-delay: .75s; }

/* Legend rows: quiet hover */
.preset-legend-icon { transition: transform .3s var(--easing), background .3s var(--easing), border-color .3s var(--easing); }
.preset-legend-row:hover .preset-legend-icon { transform: translateY(-2px) scale(1.05); background: var(--surface-3); border-color: var(--border-strong); }

/* Chips warm up on hover */
.chip { transition: color .2s var(--easing), border-color .2s var(--easing); }
.chip:hover { color: var(--text); border-color: var(--border-strong); }

/* Download-arrow nudge */
.icon-dl { transition: transform .25s var(--easing); }
.btn:hover .icon-dl { transform: translateY(2px); }

/* Final CTA icon floats */
.final-cta > img {
  animation: cta-float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 36px var(--accent-glow));
}
@keyframes cta-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Small control transitions */
.lang-toggle button { transition: background .2s var(--easing), color .2s var(--easing); }
.ftr-col a { transition: color .18s var(--easing); }
.docs-side a { transition: color .18s var(--easing), background .18s var(--easing); }

/* Reduced motion: disable global transitions for users who request it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────  Quiet chrome: skip link · progress hairline · dismissible bar · to-top · hero replay  ───────────────────────── */
.skip-link{position:fixed;top:10px;left:10px;z-index:300;transform:translateY(-250%);background:var(--surface);color:var(--text);border:1px solid var(--border-strong);padding:10px 16px;border-radius:10px;font-size:13.5px;font-weight:500;box-shadow:var(--shadow-float);transition:transform .25s var(--easing)}
.skip-link:focus-visible{transform:none}
#main-content:focus{outline:none}
.hdr-progress{position:absolute;left:0;right:0;bottom:-1px;height:1px;pointer-events:none}
.hdr-progress i{display:block;height:100%;transform:scaleX(var(--scroll-p,0));transform-origin:0 50%;background:linear-gradient(90deg,var(--accent),var(--accent-soft));box-shadow:0 0 8px var(--accent-glow)}
.annc{position:relative}
.annc-close{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:6px;border:0;background:transparent;color:var(--text-dim);cursor:pointer;display:grid;place-items:center;font-size:15px;line-height:1;font-family:var(--font-body)}
.annc-close:hover{color:var(--text);background:var(--surface-2)}
.to-top{position:fixed;right:22px;bottom:22px;z-index:60;width:42px;height:42px;border-radius:12px;border:1px solid var(--border-strong);background:color-mix(in oklab,var(--surface) 85%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--text-muted);display:grid;place-items:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s var(--easing),transform .3s var(--easing),visibility .3s,color .15s,border-color .15s;box-shadow:0 12px 32px rgba(0,0,0,.28)}
[data-theme="light"] .to-top{box-shadow:0 12px 28px rgba(15,15,25,.14)}
.to-top.is-show{opacity:1;visibility:visible;transform:none}
.to-top:hover{color:var(--text);border-color:var(--accent)}
.hero-stage{cursor:pointer}
.hero-stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.replay-hint{position:absolute;right:14px;bottom:14px;z-index:7;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:color-mix(in oklab,var(--surface) 88%,transparent);border:1px solid var(--border-strong);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:11px;font-weight:500;color:var(--text-muted);opacity:0;transform:translateY(4px);transition:opacity .25s var(--easing),transform .25s var(--easing);pointer-events:none}
.hero-stage:hover .replay-hint,.hero-stage:focus-visible .replay-hint{opacity:1;transform:none}
@media (max-width:860px){.hdr-nav{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent);padding-right:24px}}
@media (max-width:640px){.annc-inner{padding-right:28px}.to-top{right:14px;bottom:14px}}
@media (prefers-reduced-motion:reduce){.hdr-sheet{transition:none}.burger i{transition:none}.hdr-sheet-veil{transition:none}.annc{transition:none}}

/* Announcement bar: smooth dismiss (fade + collapse, then unmount) */
.annc{transition:opacity .3s var(--easing),max-height .32s var(--easing),border-bottom-color .3s;max-height:80px;overflow:hidden}
.annc.is-closing{opacity:0;max-height:0;border-bottom-color:transparent}
.annc-inner{transition:transform .3s var(--easing)}
.annc.is-closing .annc-inner{transform:translateY(-8px)}

/* ── Mobile menu ── */
.hdr-menu-btn{display:none}
.burger{display:flex;flex-direction:column;gap:3.5px;width:14px}
.burger i{height:1.5px;border-radius:1px;background:currentColor;display:block;transition:transform .3s var(--easing),opacity .2s}
.hdr-menu-btn.is-open .burger i:nth-child(1){transform:translateY(5px) rotate(45deg)}
.hdr-menu-btn.is-open .burger i:nth-child(2){opacity:0}
.hdr-menu-btn.is-open .burger i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
.hdr-sheet{display:none}
.hdr-sheet-veil{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:49;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .3s var(--easing)}
.hdr-sheet-veil.is-open{opacity:1;pointer-events:auto}
@media (min-width:641px){.hdr-sheet-veil{display:none}}
@media (max-width:640px){
  .hdr-nav{display:none}
  .hdr-menu-btn{display:inline-flex}
  .hdr-sheet{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;z-index:99;background:color-mix(in oklab,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--border);padding:8px 0 14px;opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .25s var(--easing),transform .25s var(--easing);box-shadow:0 24px 48px rgba(0,0,0,.28)}
  .hdr-sheet.is-open{opacity:1;transform:none;pointer-events:auto}
  .hdr-sheet > a:not(.btn){display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 20px;font-size:15.5px;font-weight:500;color:var(--text-muted);border-top:1px solid var(--border)}
  .hdr-sheet > a:not(.btn):first-child{border-top:0}
  .hdr-sheet > a:not(.btn).is-active{color:var(--text)}
  .hdr-sheet-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
}

/* Header Buy button — hidden on narrow phones (hero/pricing carry the CTA) */
.hdr-buy{margin-left:4px;padding:7px 14px;font-size:13.5px}
@media (max-width:480px){.hdr-buy{display:none}.hdr-inner{gap:12px}}

/* Docs: keyboard-shortcut cheat sheet */
.sc-list{border:1px solid var(--border);border-radius:var(--r-2);overflow:hidden;margin:20px 0;background:var(--surface)}
.sc-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 16px;border-top:1px solid var(--border);font-size:14.5px}
.sc-row:first-child{border-top:0}
.sc-row:nth-child(odd){background:color-mix(in oklab,var(--surface-2) 45%,transparent)}
.sc-row .kbd{flex-shrink:0}

/* ── Hero desk v3: clean arranged desktop ── */
.desk{background:linear-gradient(160deg,color-mix(in oklab,var(--accent) 14%,var(--surface)),var(--surface) 48%,color-mix(in oklab,var(--accent) 6%,var(--surface)))}
.desk::after{content:"";position:absolute;left:-18%;top:-28%;width:72%;height:72%;background:radial-gradient(circle,var(--accent-glow),transparent 68%);opacity:.45;pointer-events:none}
.win{border-radius:9px;box-shadow:0 14px 34px rgba(0,0,0,.38),0 2px 8px rgba(0,0,0,.22)}
[data-theme="light"] .win{box-shadow:0 14px 30px rgba(15,15,25,.13),0 2px 6px rgba(15,15,25,.06)}
.win-tb{height:15px;gap:3.5px;padding:0 7px}
.win-tb i:nth-child(1){background:#FF5F57;opacity:1}
.win-tb i:nth-child(2){background:#FEBC2E;opacity:1}
.win-tb i:nth-child(3){background:#28C840;opacity:1}
.win-tb i{width:5.5px;height:5.5px}
.win-title{margin-left:4px;font-size:7.5px;font-weight:500;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.02em;min-width:0}
.wb{position:absolute;inset:15px 0 0 0;padding:7px;display:flex;gap:6px}
.wb i{display:block;height:3px;border-radius:1.5px;background:var(--surface-3)}
.wb-col{flex-direction:column;gap:5px}
.wb-side{width:20%;min-width:20px;background:var(--surface-2);border-radius:4px;padding:5px 4px;display:flex;flex-direction:column;gap:4px}
.wb-side i{height:2.5px}
.wb-side i:first-child{background:color-mix(in oklab,var(--accent) 42%,var(--surface-3))}
.wb-main{flex:1;display:flex;flex-direction:column;gap:5px;padding-top:1px}
.wb-main .ln-k{background:color-mix(in oklab,var(--accent) 52%,var(--surface-3))}
.wb-main .ln-g{background:color-mix(in oklab,#3E9E72 46%,var(--surface-3))}
.wb-bar{display:flex;gap:3px;align-items:center;margin-bottom:2px}
.wb-tab{width:21%;height:9px;border-radius:3px;background:var(--surface-2);display:inline-flex;align-items:center;gap:2.5px;padding:0 3px;opacity:.65;transition:opacity .35s,background .35s,box-shadow .35s}
.wb-tab i{flex:1;height:2.5px;border-radius:1.5px;background:var(--surface-3);display:block}
.wb-tab .wb-fav{width:4px;height:4px;border-radius:1.5px;background:var(--text-dim);display:block;flex:none;opacity:.7}
.wb-tab.is-on{background:var(--surface-3);opacity:1;box-shadow:inset 0 0 0 1px var(--border-strong)}
.wb-tab.is-on .wb-fav{background:color-mix(in oklab,var(--accent) 75%,#fff);border-radius:50%;opacity:1}
.wb-tab.is-on i{background:color-mix(in oklab,var(--text-dim) 60%,var(--surface-3))}
.wb-plus{font-size:7px;line-height:1;color:var(--text-dim);flex:none;padding:0 1px}
.wb-url{flex:1;height:7px;border-radius:3.5px;background:var(--surface-2);border:1px solid var(--border);display:block}
.wb-img{display:block;flex:1;min-height:14px;border-radius:4px;background:linear-gradient(135deg,color-mix(in oklab,var(--accent) 48%,var(--surface-3)),color-mix(in oklab,#4A8FE7 38%,var(--surface-3)))}
.nb-title{width:40%;height:4px!important;background:color-mix(in oklab,#E8C558 42%,var(--surface-3))!important}
.win--term .win-tb{background:#14171D;border-bottom-color:rgba(255,255,255,0.06)}
.win--term .win-title{color:rgba(255,255,255,0.4)}
.win-term{position:absolute;inset:15px 0 0 0;background:#0B0E13;padding:7px 8px;display:flex;flex-direction:column;gap:5px}
.win-term i{display:block;height:3px;border-radius:1.5px;background:rgba(255,255,255,0.15)}
.win-term i.p{background:#3ECF8E;opacity:.85}
.win-term i.ok{background:color-mix(in oklab,#3ECF8E 45%,transparent)}
.is-animated .win-term i{opacity:0;animation:term-line 6s linear infinite}
.is-animated .win-term i:nth-child(1){animation-delay:0s}
.is-animated .win-term i:nth-child(2){animation-delay:.35s}
.is-animated .win-term i:nth-child(3){animation-delay:.7s}
.is-animated .win-term i:nth-child(4){animation-delay:1.05s}
@keyframes term-line{0%,7%{opacity:0}10%,90%{opacity:1}100%{opacity:0}}
.is-animated .wb-main i{opacity:0;animation:code-line 6s linear infinite}
.is-animated .wb-main i:nth-child(odd){animation-delay:.12s}
.is-animated .wb-main i:nth-child(3n){animation-delay:.24s}
@keyframes code-line{0%,16%{opacity:0;transform:translateX(-3px)}22%,92%{opacity:1;transform:none}100%{opacity:0}}
.desk-menus{display:inline-flex;gap:8px;font-size:9px;color:var(--text-dim);white-space:nowrap;overflow:hidden}
.desk-menus b{color:var(--text-muted);font-weight:600}
.desk-status{display:inline-flex;align-items:center;gap:6px}
.ds-name{font-weight:600;color:var(--text);font-size:9px}
.ds-time{font-family:var(--font-mono);font-size:8.5px;line-height:1;padding:1.5px 4.5px;border-radius:4px;background:color-mix(in oklab,var(--accent) 20%,transparent);color:var(--accent-soft)}
[data-theme="light"] .ds-time{color:var(--accent)}
.ds-sep{width:1px;height:9px;background:var(--border)}
.desk-bar-hairline{left:auto;right:0}
