:root {
  --accent: #4E87F4;
  --accent-deep: #2A6BE0;
  --accent-soft: rgba(78, 135, 244, 0.12);
  /* Warning color — for the "about-to-expire" state on the shelf. Tuned to
     read as warm yellow on both light and dark themes. */
  --warn: oklch(82% 0.16 88);
  --warn-soft: oklch(92% 0.10 88 / 0.45);

  /* Light theme */
  --bg-0: #f6f5f3;
  --bg-1: #ffffff;
  --ink-0: #0d0d11;
  --ink-1: #1f1f24;
  --ink-2: #4a4a55;
  --ink-3: #8a8a96;
  --ink-4: #c8c8d0;
  --hairline: rgba(10, 10, 20, 0.08);
  --hairline-strong: rgba(10, 10, 20, 0.14);
  --glass-tint: rgba(255, 255, 255, 0.55);
  --glass-stroke: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 24px 60px -20px rgba(20, 30, 60, 0.28), 0 2px 6px rgba(20, 30, 60, 0.08);
  --shelf-tint: rgba(255, 255, 255, 0.62);
  --chip-bg: rgba(255, 255, 255, 0.7);
  --code-bg: rgba(10, 10, 20, 0.04);

  --blur-amount: 28px;
  --section-pad: 72px;
  --container-pad: 32px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

[data-theme="dark"] {
  --bg-0: #0a0a0f;
  --bg-1: #131320;
  --ink-0: #f5f5f7;
  --ink-1: #e6e6ea;
  --ink-2: #a8a8b3;
  --ink-3: #6b6b78;
  --ink-4: #3a3a48;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --glass-tint: rgba(30, 30, 45, 0.55);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shelf-tint: rgba(28, 28, 40, 0.6);
  --chip-bg: rgba(40, 40, 55, 0.6);
  --code-bg: rgba(255, 255, 255, 0.06);
}

[data-density="compact"] {
  --section-pad: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

/* ------ MESH BG ------ */
.mesh-bg {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 8%, oklch(88% 0.09 30 / 0.85) 0%, transparent 60%),
    radial-gradient(55% 45% at 92% 6%, oklch(88% 0.08 250 / 0.9) 0%, transparent 60%),
    radial-gradient(50% 50% at 70% 90%, oklch(86% 0.09 320 / 0.7) 0%, transparent 60%),
    radial-gradient(70% 60% at 20% 100%, oklch(90% 0.06 200 / 0.7) 0%, transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
}
[data-theme="dark"] .mesh-bg {
  background:
    radial-gradient(55% 45% at 10% 5%, oklch(35% 0.18 280 / 0.55) 0%, transparent 60%),
    radial-gradient(50% 45% at 95% 5%, oklch(38% 0.15 240 / 0.55) 0%, transparent 60%),
    radial-gradient(50% 50% at 75% 95%, oklch(32% 0.15 320 / 0.5) 0%, transparent 60%),
    radial-gradient(60% 60% at 15% 95%, oklch(28% 0.12 200 / 0.55) 0%, transparent 60%),
    var(--bg-0);
}

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/></svg>");
  mix-blend-mode: overlay;
}
[data-theme="dark"] .grain { opacity: 0.55; mix-blend-mode: soft-light; }

/* ------ LAYOUT ------ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ------ TYPE ------ */
h1, h2, h3, h4 { margin: 0; color: var(--ink-0); letter-spacing: -0.025em; font-weight: 600; }
h1 {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
}
h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h3 {
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 500;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 760px;
}

/* ------ GLASS PRIMITIVES ------ */
.glass {
  background: var(--glass-tint);
  backdrop-filter: blur(var(--blur-amount)) saturate(1.8);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(1.8);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow);
  border-radius: 18px;
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
[data-theme="dark"] .glass::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
}

/* ------ BUTTONS ------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}
.btn-primary:hover { background: var(--ink-1); }
.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(78, 135, 244, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost {
  background: var(--chip-bg);
  color: var(--ink-1);
  border-color: var(--hairline);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover { border-color: var(--hairline-strong); }

/* Pre-launch placeholder for transactional CTAs. Same button geometry as
   .btn-accent, but visibly non-interactive (dashed border, no hover state,
   no pointer cursor). Use when the underlying action isn't shippable yet. */
.btn-soon {
  background: var(--chip-bg);
  color: var(--ink-2);
  border: 1px dashed var(--hairline-strong);
  cursor: default;
}
.btn-soon:active { transform: none; }
.btn-soon .soon-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ------ NAV ------ */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 var(--container-pad);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink-0);
  letter-spacing: -0.015em;
  text-decoration: none;
}
.nav-brand img { width: 22px; height: 22px; }
/* Theme-aware brand marks: only one is visible at a time. The icons are
   already squircle-shaped with transparent corners, so no extra radius. */
.brand-mark { display: inline-block; }
.brand-mark.brand-dark { display: none; }
[data-theme="dark"] .brand-mark.brand-light { display: none; }
[data-theme="dark"] .brand-mark.brand-dark  { display: inline-block; }

/* Generic theme-aware image helper. Render both variants in the markup
   (foo.png and foo_dark.png) with classes themed-light / themed-dark — CSS
   shows the one that matches the active theme. */
.themed-img { display: block; max-width: 100%; height: auto; }
.themed-img.themed-dark { display: none; }
[data-theme="dark"] .themed-img.themed-light { display: none; }
[data-theme="dark"] .themed-img.themed-dark { display: block; }
.nav-links {
  display: flex; gap: 24px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a {
  color: inherit; text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink-0); }
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--chip-bg);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-1);
}

/* ------ HERO ------ */
.hero {
  padding-top: 80px;
  padding-bottom: 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero-copy { max-width: 880px; }
.hero h1 { margin-bottom: 24px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero-cta {
  display: flex; gap: 12px; align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex; gap: 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ------ HERO DEMO ------ */
.demo {
  margin-top: 40px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(80% 60% at 30% 30%, oklch(78% 0.13 250) 0%, transparent 60%),
    radial-gradient(70% 60% at 80% 80%, oklch(72% 0.18 320) 0%, transparent 60%),
    radial-gradient(50% 50% at 90% 20%, oklch(82% 0.14 30) 0%, transparent 60%),
    linear-gradient(180deg, oklch(50% 0.18 260), oklch(35% 0.18 290));
  box-shadow: 0 40px 100px -30px rgba(20, 30, 80, 0.45), 0 4px 12px rgba(20, 30, 80, 0.1);
  border: 1px solid var(--hairline-strong);
  user-select: none;
  cursor: grab;
  touch-action: none;
}
.demo.dragging { cursor: grabbing; }
.demo-menubar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 26px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center;
  padding: 0 12px;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}
.demo-menubar .apple {
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.95);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17.5 12.5c0-2 1.6-3 1.7-3-.9-1.3-2.3-1.5-2.8-1.5-1.2-.1-2.3.7-2.9.7-.6 0-1.5-.7-2.5-.7-1.3 0-2.5.7-3.2 1.9-1.4 2.4-.4 5.9 1 7.8.7.9 1.5 2 2.5 1.9 1 0 1.4-.7 2.6-.7s1.5.7 2.6.7c1.1 0 1.7-.9 2.4-1.9.5-.7.9-1.5 1.2-2.3-1.5-.6-2.6-1.9-2.6-2.9zM15.4 5.5c.5-.7.9-1.6.8-2.5-.8 0-1.7.5-2.3 1.2-.5.6-.9 1.5-.8 2.4.9.1 1.7-.4 2.3-1.1z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17.5 12.5c0-2 1.6-3 1.7-3-.9-1.3-2.3-1.5-2.8-1.5-1.2-.1-2.3.7-2.9.7-.6 0-1.5-.7-2.5-.7-1.3 0-2.5.7-3.2 1.9-1.4 2.4-.4 5.9 1 7.8.7.9 1.5 2 2.5 1.9 1 0 1.4-.7 2.6-.7s1.5.7 2.6.7c1.1 0 1.7-.9 2.4-1.9.5-.7.9-1.5 1.2-2.3-1.5-.6-2.6-1.9-2.6-2.9zM15.4 5.5c.5-.7.9-1.6.8-2.5-.8 0-1.7.5-2.3 1.2-.5.6-.9 1.5-.8 2.4.9.1 1.7-.4 2.3-1.1z'/></svg>") center/contain no-repeat;
}
.demo-menubar .mb-spacer { flex: 1; }
.demo-menubar .mb-icon {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.95;
}
.demo-menubar .mb-icon img { width: 16px; height: 16px; filter: invert(1) brightness(2); }
.demo-menubar .mb-time { font-variant-numeric: tabular-nums; }

.demo-desktop {
  position: absolute; inset: 26px 0 0 0;
}

/* file token (the photo getting dragged on the simulated desktop) */
.demo-file {
  position: absolute;
  width: 96px; height: 116px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  cursor: grab;
  user-select: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
  transition: transform 0.12s ease;
  z-index: 5;
}
.demo-file:active { cursor: grabbing; }
.demo-file.held { z-index: 20; transition: none; }
.demo-file-thumb {
  width: 76px; height: 92px;
  background: white;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.demo-file-thumb.heic { background: oklch(82% 0.10 240); }
.demo-file-thumb svg { display: block; width: 100%; height: 100%; }
.demo-file-label {
  font-size: 11px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* trigger zone hint — glowing strip on the right edge as the cursor approaches */
.trigger-hint {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease;
  pointer-events: none;
  z-index: 8;
}
.demo.near-edge .trigger-hint { opacity: 0.9; width: 6px; }

/* Edge-anchored shelf — slides in from the right side of the screen.
   Tinted to the mint-glass palette from the actual app. */
.shelf {
  position: absolute;
  top: 36px; bottom: 16px;
  right: 12px;
  width: 220px;
  border-radius: 22px;
  background: oklch(94% 0.015 180 / 0.78);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid oklch(80% 0.02 180 / 0.55);
  box-shadow:
    0 24px 60px -10px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 14px;
  z-index: 10;
  display: flex; flex-direction: column;
}
.shelf.open { transform: translateX(0); }
.shelf-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(20,30,40,0.85);
  text-align: center;
  padding: 6px 0 12px;
  letter-spacing: -0.01em;
}
/* The shelf-dropzone holds either the "Drop here" tray icon (empty state)
   or the dropped file as an inner tile card. Subtle dashed border vanishes
   once a file lands; tile sits inside on its own glass-y inner card. */
.shelf-dropzone {
  flex: 0 0 auto;
  border: 1.5px dashed rgba(20,30,40,0.18);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: center;
  padding: 10px;
  gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease;
  position: relative;
  min-height: 160px;
}
.shelf-dropzone.over {
  background: rgba(78,135,244,0.12);
  border-color: var(--accent);
  border-style: solid;
}
.shelf-dropzone:has(.shelf-tile) {
  border: none;
  padding: 4px;
}
.shelf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(20,30,40,0.42);
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  padding: 18px 0;
}
.shelf-empty svg { display: block; }

/* Shelf tile — what the dropped file looks like inside the shelf, matching
   the heic_action screenshot: a soft-glass card with a thumbnail at top, a
   truncated filename, then inline "Convert" / "Remove" pill buttons. */
.shelf-tile {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20,30,40,0.06);
  border-radius: 14px;
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.shelf-tile.removing {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}
.tile-thumb {
  width: 76px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  background: white;
}
.tile-thumb svg { display: block; width: 100%; height: 100%; }
.tile-converted-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  animation: tile-badge-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tile-badge-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.tile-name {
  font-size: 11px;
  color: rgba(20,30,40,0.75);
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.005em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.tile-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(20,30,40,0.08);
  margin-top: 2px;
}
.tile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  border: 1px solid transparent;
}
.tile-action.primary {
  background: rgba(255,255,255,0.85);
  border-color: rgba(20,30,40,0.10);
  color: rgba(20,30,40,0.90);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.tile-action.primary:hover { background: rgba(255,255,255,1); }
.tile-action.primary.pressed {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(0.97);
}
.tile-action.secondary {
  background: transparent;
  color: rgba(20,30,40,0.58);
}
.tile-action.secondary:hover {
  background: rgba(20,30,40,0.05);
  color: rgba(20,30,40,0.80);
}

.demo-hint-reset {
  margin-left: 8px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.demo-hint {
  position: absolute;
  bottom: 18px; left: 18px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
  z-index: 6;
}
.demo-hint .pulse {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ------ HOW IT WORKS ------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 32px;
  border-radius: 22px;
  position: relative;
  min-height: 340px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14px; }
.step-vis {
  margin-top: 24px;
  height: 140px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 30% 30%, oklch(80% 0.12 250) 0%, transparent 60%),
    radial-gradient(70% 70% at 80% 80%, oklch(75% 0.16 320) 0%, transparent 60%),
    linear-gradient(135deg, oklch(60% 0.16 260), oklch(45% 0.18 290));
  border: 1px solid var(--hairline);
}

/* ------ SMART ACTIONS ------ */
.actions-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
/* Both columns are flex stacks. Cards keep their natural content-driven
   proportions ("One right-click. Done." can be taller than "Acts like
   Finder", "Auto-expiry" taller than "Stacks") — but each card uses
   `flex: 1 1 auto` so any remaining height left over after stretching to
   match the flank ends up as a small amount of whitespace inside each card,
   not a big trailing gap below them. */
.actions-stack,
.actions-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.actions-stack > .glass,
.actions-side > .glass {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
/* When a card has a clear "bottom element" (ffmpeg tag, progress bar,
   gesture pills) it gets pushed to the bottom edge of its stretched card.
   The natural whitespace ends up between the title/copy and the footer. */
.actions-stack > .glass > :last-child:not(:only-child),
.actions-side > .glass > :last-child:not(:only-child) {
  margin-top: auto;
}
/* Single-child cards (like Stacks — just text) get vertically centered, so
   the extra height shows as balanced padding above and below the content. */
.actions-stack > .glass > :only-child,
.actions-side > .glass > :only-child {
  margin-top: auto;
  margin-bottom: auto;
}
.actions-main {
  padding: 32px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.actions-side .glass {
  padding: 28px;
  border-radius: 22px;
}

.actions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}
.action-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--chip-bg);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-1);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.action-pill .ico {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.ffmpeg-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 24px;
}
.ffmpeg-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
}

/* Acts-like-Finder card — same padding as the side cards, lives in the
   left column under the main action menu card. Content-sized height. */
.action-finder {
  padding: 28px;
  border-radius: 22px;
}
.gesture-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* No margin-top here — let the .actions-grid `:last-child` rule push this
     to the bottom of the stretched card. A min-gap from the description is
     handled by padding-top instead. */
  padding-top: 16px;
}
.gesture-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--chip-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.gesture-pill kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-1);
  font-weight: 500;
  letter-spacing: 0;
}

/* Inline "turning yellow" highlight, used in the auto-expiry copy to call
   out the warning state without leaving the sentence. */
.warn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  background: var(--warn-soft);
  color: oklch(40% 0.10 80);
  border-radius: 4px;
  font-weight: 500;
}
[data-theme="dark"] .warn-pill {
  color: oklch(88% 0.12 88);
}

/* Features section: outer 3-column layout with real product screenshots
   flanking the actions-grid.

   Flanks are narrow (200px) so the displayed image height (~800px) ends
   close to the middle's natural content height. align-items defaults to
   stretch — the middle column grows to match the flank height. Each card
   inside the middle uses `flex: 1 1 auto`, so the small remaining gap is
   distributed proportionally to content, giving each card a little extra
   internal breathing room rather than one big empty trailing space. */
.features-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 32px;
}
.features-shot {
  align-self: start;
}
.features-shot img {
  width: 100%;
  height: auto;
  display: block;
  /* drop-shadow follows the image's alpha (squircle corners) — box-shadow
     would render a rectangle around the transparent canvas. */
  filter: drop-shadow(0 14px 32px rgba(20, 30, 60, 0.18));
}
[data-theme="dark"] .features-shot img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
/* Below 1100px, dropping the flanks gives the middle grid room to breathe.
   The actions-grid still collapses to 1-col under the existing 960px rule. */
@media (max-width: 1100px) {
  .features-layout { display: block; }
  .features-shot { display: none; }
}

/* ------ PERFORMANCE ------ */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.perf-card {
  padding: 28px;
  border-radius: 20px;
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.perf-stat {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.perf-stat sup { font-size: 0.5em; vertical-align: super; color: var(--ink-3); font-weight: 500; }
.perf-label { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.perf-card h4 { font-size: 13px; font-weight: 600; color: var(--ink-1); margin-bottom: 6px; }
.perf-card p { font-size: 13px; }

/* ------ PRICING ------ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.price-card {
  padding: 36px;
  border-radius: 24px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.price-card.featured {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}
.price-card.featured .price { color: var(--bg-0); }
.price-card.featured p, .price-card.featured li { color: color-mix(in srgb, var(--bg-0) 70%, transparent); }
.price-card.featured .price-suffix { color: color-mix(in srgb, var(--bg-0) 55%, transparent); }
.price-tag {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.price-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  color: var(--ink-3);
  margin-bottom: 12px;
}
.price-card.featured .price-name { color: color-mix(in srgb, var(--bg-0) 55%, transparent); }
.price {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-0);
  line-height: 1;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.price-suffix { font-size: 14px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.price-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.price-features {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.price-features li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'><path d='M13.5 4.5l-7.5 7.5-3.5-3.5 1-1 2.5 2.5 6.5-6.5z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'><path d='M13.5 4.5l-7.5 7.5-3.5-3.5 1-1 2.5 2.5 6.5-6.5z'/></svg>") center/contain no-repeat;
}

/* ------ FAQ ------ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-entry {
  border-top: 1px solid var(--hairline);
  padding: 0;
}
.faq-entry:last-child { border-bottom: 1px solid var(--hairline); }
.faq-entry summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}
.faq-entry[open] .faq-chevron { transform: rotate(180deg); }
.faq-body {
  padding: 0 4px 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 64ch;
}

/* ------ FOOTER ------ */
.footer-cta {
  padding: 56px;
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 20% 30%, oklch(72% 0.16 250 / 0.6) 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 80%, oklch(70% 0.18 320 / 0.5) 0%, transparent 60%),
    var(--bg-1);
  border: 1px solid var(--hairline);
}
.footer-cta h2 { margin-bottom: 16px; }
.footer-cta .lede { margin: 0 auto; }
.footer-cta .hero-cta { justify-content: center; margin-top: 32px; }

.footer {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-brand .nav-brand { font-size: 15px; }
.footer-brand p { margin-top: 12px; max-width: 28ch; font-size: 13px; }
.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 16px;
  font-family: var(--font-mono);
}
.footer-col a {
  display: block;
  color: var(--ink-1);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }
.footer-base {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* ------ LEGAL PAGES (Privacy / Terms / Refund) ------ */
.legal { padding-top: 120px; padding-bottom: 80px; }
.legal-container { max-width: 1100px; }

.legal-header { margin-bottom: 36px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3);
  text-decoration: none;
  padding: 6px 10px; margin-left: -10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.legal-back:hover { color: var(--accent); background: var(--accent-soft); }
.legal-header h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 8px;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.legal-sidebar {
  position: sticky; top: 96px;
  padding: 20px 18px;
  border-radius: 16px;
  display: flex; flex-direction: column;
  font-size: 14px;
}
.legal-sidebar .eyebrow { margin-bottom: 10px; }
.legal-sidebar a {
  display: block;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.legal-sidebar a:hover { color: var(--ink-0); background: var(--code-bg); }
.legal-sidebar a.current {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.legal-sidebar hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 16px 0 12px;
}
.legal-side-note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.legal-side-note a { color: var(--accent); text-decoration: none; }
.legal-side-note a:hover { text-decoration: underline; }

.legal-body {
  padding: 40px 48px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-1);
  max-width: 78ch;
}
.legal-body > :first-child { margin-top: 0; }
.legal-body > :last-child { margin-bottom: 0; }
.legal-body p {
  margin: 0 0 16px;
  color: var(--ink-1);
}
.legal-body h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
  color: var(--ink-0);
  scroll-margin-top: 100px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 24px 0 8px;
  color: var(--ink-0);
}
.legal-body ul, .legal-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-body li { margin-bottom: 8px; color: var(--ink-1); }
.legal-body li::marker { color: var(--ink-3); }
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.legal-body a:hover { text-decoration-color: var(--accent); }
.legal-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
}
.legal-body strong { color: var(--ink-0); font-weight: 600; }
.legal-body hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 28px 0;
}
.legal-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink-1);
  font-size: 14px;
}
.legal-body .placeholder {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--warn-soft);
  color: var(--ink-0);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
  .legal-body { padding: 28px 22px; }
}

/* Pre-launch placeholder variant — single centered card, no sidebar. */
.legal-pending-container { max-width: 720px; }
.legal-pending-header { text-align: center; }
.legal-pending-header .legal-back {
  margin: 0 auto;
  display: inline-flex;
}
.legal-pending-body {
  text-align: center;
  padding: 48px 40px;
  margin: 0 auto;
}
.legal-pending-body h2 {
  font-size: 24px;
  margin: 8px 0 16px;
}
.legal-pending-body p { text-align: center; }
.legal-pending-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.legal-pending-list {
  text-align: left;
  max-width: 52ch;
  margin: 18px auto 22px;
}
.legal-pending-cta {
  margin-top: 28px;
  display: flex; justify-content: center;
}
@media (max-width: 600px) {
  .legal-pending-body { padding: 32px 22px; }
}

/* ------ RESPONSIVE ------ */
@media (max-width: 960px) {
  .steps, .perf-grid, .actions-grid, .pricing-grid, .footer { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
