/* Clipboard History — marketing site
 * Apple-style: generous whitespace, soft macOS chrome.
 */

:root {
  --bg: #ffffff;
  --bg-elev: #fafafa;
  --bg-deep: #f4f4f5;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #0b0b0c;
  --text-2: #45464a;
  --text-3: #86868b;
  --text-4: #b4b4b8;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.14);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --warn: #ff9f0a;
  --good: #30d158;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-overlay: 0 30px 80px rgba(0,0,0,0.18), 0 12px 30px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter var", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: 32px;
  --desktop-bg: linear-gradient(135deg, #d6e4f5 0%, #f6c5cf 50%, #ffd9b3 100%);
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-elev: #111113;
  --bg-deep: #08080a;
  --surface: rgba(28, 28, 30, 0.72);
  --text: #f5f5f7;
  --text-2: #c7c7cc;
  --text-3: #8e8e93;
  --text-4: #4a4a4f;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --accent: #409cff;
  --accent-soft: rgba(64, 156, 255, 0.18);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 12px 30px rgba(0,0,0,0.5);
  --shadow-overlay: 0 40px 120px rgba(0,0,0,0.6), 0 14px 40px rgba(0,0,0,0.45);
  --desktop-bg: linear-gradient(140deg, #1a2638 0%, #3b1f3b 50%, #2a1d2e 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

button { font-family: inherit; }

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

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

/* ─── Nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.4s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.015em;
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7d4cff));
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}
.brand-mark svg { width: 13px; height: 13px; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 13px; color: var(--text-2);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  width: 30px; height: 30px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background-color 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--hairline); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: color-mix(in srgb, var(--text) 88%, var(--accent)); }
.btn-ghost {
  color: var(--text-2);
  background: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--hairline); }
.btn-lg {
  font-size: 15px; padding: 12px 22px; gap: 10px;
}
.btn svg { width: 14px; height: 14px; }
.btn-lg svg { width: 16px; height: 16px; }

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

.hero {
  padding: 80px 0 24px;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  background: var(--hairline);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 30%, transparent);
}
.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 auto 20px;
  max-width: 880px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #c266ff));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  line-height: inherit;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; align-items: center; }
.hero-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}

/* Hero stage — desktop with overlay */
.hero-stage {
  margin: 56px auto 0;
  max-width: 1180px;
  padding: 0 var(--gutter);
  position: relative;
  perspective: 1800px;
}
.desktop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  border-radius: 18px;
  background: var(--desktop-bg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 1px var(--hairline-strong),
    0 40px 100px rgba(0,0,0,0.18),
    0 18px 40px rgba(0,0,0,0.10);
}
.desktop::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
[data-theme="dark"] .desktop::after { background: radial-gradient(ellipse at 50% 60%, transparent 20%, rgba(0,0,0,0.5) 100%); }

/* macOS menu bar */
.menubar {
  position: absolute; inset: 0 0 auto 0;
  height: 26px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: rgba(0,0,0,0.78);
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.32));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .menubar {
  color: rgba(255,255,255,0.85);
  background: linear-gradient(to bottom, rgba(28,28,30,0.62), rgba(28,28,30,0.4));
  border-bottom-color: rgba(255,255,255,0.06);
}
.menubar-l, .menubar-r { display: flex; align-items: center; gap: 14px; }
.menubar-l .apple { font-size: 13px; }
.menubar-l b { font-weight: 600; }
.menubar-r .clip-icon {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
}
.menubar-r .clip-icon svg { width: 13px; height: 13px; }

/* Window mock behind overlay */
.window {
  position: absolute;
  top: 56px; left: 40px;
  width: 52%;
  height: 70%;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 0 0 1px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  filter: blur(0.4px);
  opacity: 0.92;
}
[data-theme="dark"] .window { background: #1c1c1e; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 0 0 1px rgba(255,255,255,0.06), 0 20px 40px rgba(0,0,0,0.4); }
.window-chrome {
  height: 32px;
  display: flex; align-items: center;
  padding: 0 12px;
  gap: 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
  border-bottom: 1px solid var(--hairline);
}
[data-theme="dark"] .window-chrome { background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }
.traffic { display: flex; gap: 6px; }
.traffic span { width: 11px; height: 11px; border-radius: 50%; }
.traffic .r { background: #ff5f57; }
.traffic .y { background: #febc2e; }
.traffic .g { background: #28c840; }
.window-title {
  flex: 1; text-align: center;
  font-size: 11px; color: var(--text-3);
  font-weight: 500;
}
.window-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 11px; line-height: 1.6;
  color: var(--text-2);
}
.window-body .placeholder-line {
  height: 8px; background: var(--hairline); border-radius: 3px;
  margin-bottom: 8px;
}
.window-body .placeholder-line.short { width: 40%; }
.window-body .placeholder-line.med { width: 70%; }

/* The overlay panel — the star of the show */
.overlay {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 760px;
  z-index: 2;
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  box-shadow: var(--shadow-overlay), 0 0 0 1px var(--hairline-strong);
  overflow: hidden;
  font-size: 13px;
  display: flex; flex-direction: column;
  opacity: 0;
  animation: overlay-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.7s forwards;
}
@keyframes overlay-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.overlay-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-3);
}
.overlay-search svg { width: 14px; height: 14px; }
.overlay-search input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  font: inherit;
  color: var(--text);
  font-size: 14px;
}
.overlay-tabs {
  display: flex; gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.tab-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  background: transparent;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}
.tab-pill.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}
.tab-pill:hover:not(.active) { background: var(--hairline); }
.tab-pill svg { width: 10px; height: 10px; }

.overlay-list {
  flex: 1;
  overflow: hidden;
}
.entry {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 40%, transparent);
  cursor: default;
}
.entry:last-child { border-bottom: none; }
.entry.selected { background: var(--accent-soft); }
.entry-icon {
  width: 36px; height: 36px;
  border-radius: 7px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--bg-deep);
  color: var(--text-3);
  font-size: 14px;
}
.entry-icon svg { width: 16px; height: 16px; }
.entry-icon.url { color: #34c759; background: rgba(52,199,89,0.12); }
.entry-icon.text { color: #007aff; background: rgba(0,122,255,0.12); }
.entry-icon.image { color: #af52de; background: rgba(175,82,222,0.12); }
.entry-icon.file { color: #ff9500; background: rgba(255,149,0,0.12); }
.entry-icon.code { color: #5856d6; background: rgba(88,86,214,0.12); }
.entry-icon.has-thumb {
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hairline) 70%, transparent);
}
.entry-icon.has-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-body {
  flex: 1;
  min-width: 0;
  text-align: left;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}
.entry-title {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--mono);
  letter-spacing: -0.005em;
  text-align: left;
  width: 100%;
  display: block;
}
.entry-title.body-text { font-family: var(--font); }
.entry-sub {
  display: flex; gap: 6px; align-items: center;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.entry-tag {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.entry-time {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.star {
  color: #febc2e;
}

.overlay-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--text-3);
}
.overlay-foot .spacer { flex: 1; }
.kbd-hint { display: inline-flex; align-items: center; gap: 5px; }
.kbd {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  min-width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 0 0 var(--hairline-strong),
    inset 0 1px 0 0 rgba(255,255,255,0.4);
  vertical-align: middle;
  margin: 0 1px;
}
[data-theme="dark"] .kbd {
  background: linear-gradient(to bottom, #2c2c2e 0%, #1c1c1e 100%);
  box-shadow:
    0 1px 0 0 rgba(0,0,0,0.4),
    inset 0 1px 0 0 rgba(255,255,255,0.08);
}
.kbd-combo {
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Floating shortcut hint above stage */
.hero-shortcut-floater {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.hero-shortcut-floater .kbd-big {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  background: var(--text);
  color: var(--bg);
  border-radius: 5px;
  font-weight: 600;
}

/* ─── Section primitives ──────────────────────────────── */

section {
  padding: 120px 0;
}
.section-eyebrow {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 720px;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 0 56px;
  text-wrap: pretty;
}

/* ─── Before/After demo (intro to "What it does") ─────── */
.ba-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin: 56px 0 72px;
}
.ba-card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.ba-card.ba-without { background: linear-gradient(180deg, var(--bg-elev), color-mix(in srgb, var(--bg-elev) 92%, #ff453a)); }
.ba-card.ba-with    { background: linear-gradient(180deg, var(--bg-elev), color-mix(in srgb, var(--bg-elev) 94%, var(--accent))); border-color: color-mix(in srgb, var(--accent) 30%, var(--hairline)); box-shadow: 0 12px 40px -16px color-mix(in srgb, var(--accent) 40%, transparent); }

.ba-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
.ba-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ba-dot-no { background: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,0.18); }
.ba-dot-yes { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.ba-body { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.ba-current { display: flex; flex-direction: column; gap: 8px; }
.ba-current-label,
.ba-lost-label,
.ba-saved-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 600;
}
.ba-saved-label {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ba-saved-label svg { width: 12px; height: 12px; }

.ba-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.ba-row-current {
  background: var(--bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-card);
  animation: ba-pulse 1.8s ease-out;
}
@keyframes ba-pulse {
  0%   { transform: scale(0.96); opacity: 0; }
  18%  { transform: scale(1.01); opacity: 1; }
  30%  { transform: scale(1); }
  100% { transform: scale(1); opacity: 1; }
}
.ba-row .ba-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.ba-row-saved { background: var(--bg); }
.ba-row-lost { background: transparent; border: 1px dashed var(--hairline); }
.ba-row-lost .ba-text { color: var(--text-3); }

.ba-lost { display: flex; flex-direction: column; gap: 8px; }
.ba-lost-stack { display: flex; flex-direction: column; gap: 6px; position: relative; }
.ba-saved-stack { display: flex; flex-direction: column; gap: 6px; }
.ba-gone {
  font-size: 12px;
  color: #d32f2a;
  margin-top: 4px;
  font-weight: 500;
  text-align: center;
  padding: 8px;
}
[data-theme="dark"] .ba-gone { color: #ff6961; }

.ba-arrow {
  align-self: center;
  color: var(--text-3);
  width: 40px; height: 40px;
  display: grid; place-items: center;
}

/* ─── Feature grid ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--hairline-strong); }
.feature-card.span-6 { grid-column: span 6; }
.feature-card.span-4 { grid-column: span 4; }
.feature-card.span-8 { grid-column: span 8; }
.feature-card.span-12 { grid-column: span 12; }
.feature-card .visual {
  margin: -28px -28px 24px -28px;
  height: 220px;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background-image:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
}
.feature-card .visual.tall { height: 280px; }
.feature-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 {
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.feature-card p {
  font-size: 14px; line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* ── Shortcut visual: just keys, big and confident ─── */
.shortcut-visual {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.sv-keys {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-key {
  font-size: 22px;
  padding: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.sv-anywhere {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Kinds visual: stack of captured items ─── */
.kinds-visual {
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.kind-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
.kind-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.kind-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.kind-text {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kind-text.mono { font-family: var(--mono); font-size: 11px; }

/* ── Groups visual: sidebar + starred list ─── */
.groups-visual {
  height: 100%;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  padding: 14px;
}
.gv-sidebar {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gv-folder {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-2);
}
.gv-folder.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.gv-folder-icon { display: grid; place-items: center; flex-shrink: 0; }
.gv-folder-icon svg { width: 11px; height: 11px; }
.gv-folder-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-folder-count { font-size: 10px; color: var(--text-3); flex-shrink: 0; font-weight: 500; }
.gv-folder.active .gv-folder-count { color: var(--accent); opacity: 0.7; }
.gv-list {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.gv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text);
  min-width: 0;
}
.gv-star { color: #f5b400; display: grid; place-items: center; flex-shrink: 0; }
.gv-star svg { width: 11px; height: 11px; }
.gv-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gv-text.mono { font-family: var(--mono); font-size: 10.5px; }

/* ─── Search demo ─────────────────────────────────────── */

.search-demo {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  margin: 0 28px 0;
  height: calc(100% - 28px);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(28px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.search-demo .search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-3);
}
.search-demo .search-bar svg { width: 12px; height: 12px; }
.search-demo .search-bar .typed { color: var(--text); font-family: var(--mono); }
.search-demo .search-bar .typed em { font-style: normal; background: rgba(255,204,0,0.4); padding: 0 1px; }
.search-demo .caret { display: inline-block; width: 1px; background: var(--accent); animation: blink 1s step-end infinite; height: 12px; vertical-align: middle; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.search-results { flex: 1; overflow: hidden; }
.search-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-size: 11.5px;
  color: var(--text-2);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 50%, transparent);
}
.search-row mark {
  background: rgba(255,204,0,0.5);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.search-row .icon-sm {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: var(--text-3);
}
.search-row .icon-sm svg { width: 12px; height: 12px; }
.search-row .meta {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ─── Privacy section ─────────────────────────────────── */

.privacy {
  background: var(--bg-elev);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

/* Top: copy on the left, flow diagram on the right */
.privacy-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.privacy-copy .section-title {
  text-wrap: balance;
}
.privacy-checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.privacy-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.privacy-checks svg {
  width: 14px; height: 14px;
  color: #0aa658;
  flex-shrink: 0;
  background: color-mix(in srgb, #0aa658 14%, transparent);
  border-radius: 999px;
  padding: 2px;
  box-sizing: content-box;
}

/* Flow diagram: vertical — clipboard ↓ Mac, then "never X" deny chips */
.privacy-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 28px 36px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.privacy-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.privacy-flow > * { position: relative; z-index: 1; }

.pf-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
}
.pf-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.pf-icon svg { width: 20px; height: 20px; }
.pf-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-row-title { font-size: 13px; font-weight: 600; color: var(--text); }
.pf-row-sub { font-size: 11.5px; color: var(--text-3); }

.pf-arrow {
  height: 32px;
  width: 24px;
  color: var(--accent);
  margin: 4px 0;
}
.pf-arrow svg { width: 100%; height: 100%; }

/* MacBook mockup — display, hinge, tapered base */
.pf-mac {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.18));
}

/* The lid (display) — outer chassis */
.pf-mac-screen {
  width: 100%;
  background: #1a1a1c;
  border-radius: 14px 14px 4px 4px;
  padding: 10px;
  border: 1px solid #2a2a2c;
  position: relative;
}
/* Tiny notch */
.pf-mac-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #1a1a1c;
  border-radius: 0 0 6px 6px;
  z-index: 2;
}

/* Inner bezel (the actual screen surface) */
.pf-mac-bezel {
  background: #0a0a0c;
  border-radius: 4px;
  padding: 8px;
  overflow: hidden;
}

/* The "Pasta" app window inside the screen */
.pf-mac-window {
  background: #1c1c1e;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.pf-mac-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: #2a2a2c;
  border-bottom: 1px solid rgba(0,0,0,0.4);
}
.pf-mac-bar span {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.pf-mac-bar span:nth-child(1) { background: #ff5f57; }
.pf-mac-bar span:nth-child(2) { background: #febc2e; }
.pf-mac-bar span:nth-child(3) { background: #28c840; }

/* Clip list */
.pf-mac-app {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-mac-clip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
}
.pf-mac-clip:first-child {
  background: color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,0.04));
  outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.pf-mac-clip-icon {
  width: 20px; height: 20px;
  border-radius: 4px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: white;
}
.pf-mac-clip-icon svg { width: 11px; height: 11px; }
.pf-mac-clip-text {
  font-size: 10.5px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Hinge — thin dark strip below the lid */
.pf-mac-hinge {
  width: 92%;
  height: 4px;
  background: linear-gradient(180deg, #2a2a2c, #1a1a1c);
  border-radius: 0 0 2px 2px;
  position: relative;
}
.pf-mac-hinge::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 28%;
  height: 3px;
  background: #0a0a0c;
  border-radius: 0 0 4px 4px;
}

/* Tapered base (the body of the MacBook) */
.pf-mac-base {
  width: 108%;
  height: 6px;
  background: linear-gradient(180deg, #d8d8da 0%, #a8a8aa 100%);
  border-radius: 2px 2px 12px 12px;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -1px 0 rgba(0,0,0,0.1) inset;
}
.pf-mac-base::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 16%;
  height: 2px;
  background: #888;
  border-radius: 0 0 4px 4px;
}

/* Dark mode adjustments */
[data-theme="dark"] .pf-mac-base {
  background: linear-gradient(180deg, #5a5a5c 0%, #3a3a3c 100%);
}
[data-theme="dark"] .pf-mac-base::after { background: #2a2a2c; }

/* Deny chips */
.pf-deny {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pf-deny-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
}
.pf-deny-item svg { width: 13px; height: 13px; color: var(--text-3); flex-shrink: 0; }
.pf-deny-x {
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, #ff453a 12%, transparent);
}
.pf-deny-x::before, .pf-deny-x::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 1.6px;
  background: #ff453a;
  border-radius: 2px;
}
.pf-deny-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.pf-deny-x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.privacy-points {
  display: flex; flex-direction: column;
  gap: 28px;
}
.privacy-point {
  display: flex; gap: 16px;
}
.privacy-point .pp-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--accent);
}
.privacy-point .pp-icon svg { width: 16px; height: 16px; }
.privacy-point h4 {
  font-size: 15px; font-weight: 600; margin: 0 0 4px;
  letter-spacing: -0.012em;
}
.privacy-point p {
  font-size: 14px; line-height: 1.5; color: var(--text-2);
  margin: 0;
}
.privacy-point code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg); border: 1px solid var(--hairline);
  padding: 1px 6px; border-radius: 5px;
}

/* The "skipped apps" visual — now a chip grid with red ✕ */
.skip-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.skip-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
}
.skip-card-head svg { width: 14px; height: 14px; color: var(--accent); }
.skip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
}
.skip-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 36px 10px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.skip-chip::after {
  content: '';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff453a' stroke-width='3' stroke-linecap='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='18' y1='6' x2='6' y2='18'/></svg>");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--hairline);
}
.skip-chip span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skip-chip .app-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.skip-card-foot {
  font-size: 12px;
  color: var(--text-3);
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

/* ─── Cheatsheet ──────────────────────────────────────── */

.cheatsheet {
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.cheatsheet::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--hairline), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Key legend — explains symbols up front for non-Mac users */
.key-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 32px 0 40px;
  padding: 20px 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.key-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.key-legend-item .key-cap {
  font-size: 12px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  font-size: 14px;
}
.shortcut-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  transition: border-color 0.15s, transform 0.15s;
}
.shortcut-row:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}
.shortcut-row .label {
  flex: 1;
  color: var(--text-1);
  font-weight: 500;
  font-size: 14px;
}
.shortcut-row .keys {
  display: flex; gap: 4px;
  align-items: center;
}
.shortcut-row .keys .plus {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 400;
  margin: 0 1px;
  -webkit-user-select: none;
  user-select: none;
}
.key-cap {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 0 9px;
  min-width: 30px;
  height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--hairline-strong);
  border-bottom: 1.5px solid var(--hairline-strong);
  border-radius: 7px;
  color: var(--text);
  box-shadow:
    0 1px 0 0 var(--hairline-strong),
    0 2px 0 0 var(--hairline),
    inset 0 1px 0 0 rgba(255,255,255,0.5);
  letter-spacing: 0;
  position: relative;
  top: -1px;
}
[data-theme="dark"] .key-cap {
  background: linear-gradient(to bottom, #2c2c2e 0%, #1c1c1e 100%);
  box-shadow:
    0 1px 0 0 rgba(0,0,0,0.4),
    0 2px 0 0 rgba(0,0,0,0.2),
    inset 0 1px 0 0 rgba(255,255,255,0.08);
}
.key-cap.wide { min-width: 44px; padding: 0 10px; font-size: 12px; }

/* ─── Storage / capture explainer ─────────────────────── */

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.duo-card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 24px;
}
.duo-card h3 {
  font-size: 22px; font-weight: 600; margin: 0;
  letter-spacing: -0.02em;
}
.duo-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; margin: 0; }

.size-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.size-bar .icon-lg {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,149,0,0.15);
  color: #ff9500;
}
.size-bar .stack { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.size-bar .stack b { font-size: 13px; font-weight: 500; }
.size-bar .stack span { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.size-bar .bytes {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 4px 9px; border-radius: 5px;
  background: rgba(48,209,88,0.15); color: #1f8d3e;
}
[data-theme="dark"] .size-bar .bytes { color: #5cd478; }
.size-bar .bytes.huge { background: rgba(255,69,58,0.15); color: #d32f2a; }
[data-theme="dark"] .size-bar .bytes.huge { color: #ff6961; }

.dedup-demo {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.dedup-demo .row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
}
.dedup-demo .row:last-child { border-bottom: none; }
.dedup-demo .row .num { font-family: var(--mono); color: var(--text-3); width: 14px; }
.dedup-demo .row.bumped {
  background: var(--accent-soft);
}
.dedup-demo .row .badge {
  font-size: 10px; font-weight: 500;
  padding: 2px 7px; border-radius: 999px;
  background: var(--accent); color: white;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.dedup-demo .row.muted { color: var(--text-3); text-decoration: line-through; }

/* ─── Download CTA ────────────────────────────────────── */

.download {
  text-align: center;
  padding: 140px 0;
}
.download-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.download-card h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600; letter-spacing: -0.028em;
  margin: 0 0 16px; line-height: 1.05;
}
.download-card p {
  font-size: 16px; color: var(--text-2);
  margin: 0 0 32px;
}
.download-meta {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.download-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.download-meta-item svg { width: 12px; height: 12px; }

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

.foot {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 12px; color: var(--text-3);
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }

/* Hide noscript content when JS is on — preview iframes sometimes render its body as text */
noscript { display: none !important; }

/* ─── Responsive ──────────────────────────────────────── */

/* Tablet: 1024px and below — collapse 2-column layouts */
@media (max-width: 1024px) {
  .features-grid { gap: 16px; }
  .feature-card.span-8 { grid-column: span 12; }
  .feature-card.span-4 { grid-column: span 6; }
  .feature-card .visual { height: 200px; }
  .duo-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* Tablet portrait & large phones: 768px */
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  section { padding: 72px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .nav-actions .btn span,
  .nav-actions .btn { gap: 6px; }
  .brand span:not(.brand-mark) { font-size: 14px; }

  /* Hero */
  .hero { padding: 56px 0 16px; }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero-sub { font-size: 16px; padding: 0 4px; }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stage { margin-top: 40px; padding: 0 16px; }

  /* Desktop mock — make taller aspect for narrow screens, hide window behind */
  .desktop { aspect-ratio: 4 / 5; border-radius: 14px; }
  .window { display: none; }
  .menubar { font-size: 10px; height: 22px; padding: 0 10px; }
  .menubar-l, .menubar-r { gap: 10px; }
  .menubar-r .clip-icon span { display: none; }

  /* Overlay panel — fill more of the screen */
  .overlay { width: 90%; max-width: 460px; }
  .overlay-search { padding: 10px 14px; }
  .overlay-search input { font-size: 13px; }
  .overlay-tabs { padding: 6px 10px; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .overlay-tabs::-webkit-scrollbar { display: none; }
  .tab-pill { font-size: 11px; padding: 3px 8px; }

  /* Sections */
  .section-title { font-size: clamp(28px, 6vw, 40px); }
  .section-lede { font-size: 16px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card.span-8,
  .feature-card.span-6,
  .feature-card.span-4 { grid-column: span 1; }
  .feature-card { padding: 24px; }
  .feature-card .visual { margin: -24px -24px 20px -24px; height: 180px; }
  .feature-card h3 { font-size: 18px; }

  /* Privacy */
  .privacy-grid { gap: 40px; grid-template-columns: 1fr; }
  .privacy-top { grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
  .privacy-checks { grid-template-columns: 1fr; }
  .privacy-flow { padding: 28px 16px; }
  .pf-mac { width: 240px; }

  /* Before/After demo */
  .ba-demo { grid-template-columns: 1fr; gap: 16px; margin: 32px 0 48px; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; width: 32px; height: 32px; }
  .ba-card { padding: 20px; }

  /* Storage */
  .duo-card { padding: 24px; gap: 20px; }
  .duo-card h3 { font-size: 19px; }
  .size-bar { padding: 12px; gap: 10px; }
  .size-bar .icon-lg { width: 36px; height: 36px; }

  /* Cheatsheet */
  .cheatsheet { padding: 24px; border-radius: var(--radius); }
  .shortcut-grid { grid-template-columns: 1fr; gap: 8px; }
  .shortcut-row { padding: 12px 14px; gap: 10px; }
  .shortcut-row .label { font-size: 13px; }
  .key-legend { gap: 10px 16px; padding: 14px 16px; margin: 24px 0 28px; }
  .key-legend-item { font-size: 12px; }

  /* Download */
  .download { padding: 96px 0; }
  .download-card { padding: 56px 24px; }
  .download-card h2 { font-size: clamp(28px, 7vw, 36px); }
  .download-meta { gap: 14px 20px; font-size: 12px; }

  /* FAQ */
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item p { padding: 0 18px 18px; font-size: 15px; }

  /* Footer */
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
  .foot-links { gap: 18px; flex-wrap: wrap; }
}

/* Small phones: 480px */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  section { padding: 56px 0; }

  /* Nav: keep brand + theme toggle + tighter download button */
  .brand span:not(.brand-mark) { display: none; }
  .nav-actions .btn { padding: 8px 12px; }
  .nav-actions .btn svg { width: 13px; height: 13px; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.025em; }
  .hero-sub { font-size: 15px; }
  .hero-meta { font-size: 11px; }
  .btn-lg { font-size: 14px; padding: 12px 18px; }

  /* Even smaller desktop mock */
  .desktop { aspect-ratio: 3 / 4; }
  .overlay { width: 92%; font-size: 12px; }

  /* Hide bid + secondary text in skip list */
  .skip-card-head { padding: 10px 14px; font-size: 11px; }
  .skip-grid { grid-template-columns: 1fr; padding: 10px; }

  /* Feature cards even tighter */
  .feature-card { padding: 20px; }
  .feature-card .visual { margin: -20px -20px 16px -20px; height: 160px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { font-size: 13.5px; }

  /* Footer download meta */
  .download-meta-item { font-size: 11.5px; }

  /* Tweaks panel — make sure it doesn't cover content */
  .tweaks-panel { right: 12px !important; bottom: 12px !important; width: calc(100vw - 24px) !important; max-width: 320px; }
}

/* Prevent iOS Safari from zooming on focus & lock horizontal scroll */
html, body { overflow-x: hidden; }
input, textarea, select { font-size: 16px; }
@media (min-width: 768px) {
  input, textarea, select { font-size: inherit; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ───── FAQ ───── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] {
  border-color: var(--hairline-2);
  background: var(--surface-2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  -webkit-user-select: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-3);
  font-weight: 300;
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 68ch;
}
