/* Inter, served from this site (latin, variable weight 400 to 700). SIL Open Font License. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin-var.woff2") format("woff2"); }

/* Clip Shelf landing page. Tokens mirror the Figma variables. */
:root {
  --bg-canvas: #0e0e10;
  --bg-surface: #18181b;
  --bg-raised: #242427;
  --bg-raised-hover: #2f2f33;
  --bg-thumb: #3a3a40;
  --bg-accent: #f857a6;
  --border-subtle: #2a2a2e;
  --border-default: #2f2f33;
  --border-strong: #52525b;
  --text-strong: #ffffff;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #18181b;
  --text-accent: #f857a6;
  --text-danger: #f87171;
  --shadow-float: 0 4px 14px rgba(0, 0, 0, .3);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --col: 1120px;
  --gutter: 32px; /* the same left and right edge for every section */
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--bg-accent); outline-offset: 3px; border-radius: 6px; }

/* Type */
.display { font-size: 48px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; color: var(--text-strong); }
.h1 { font-size: 36px; line-height: 1.16; font-weight: 500; letter-spacing: -0.022em; color: var(--text-strong); }
.h1.primary { color: var(--text-primary); }
.h2 { font-size: 24px; line-height: 1.28; font-weight: 500; letter-spacing: -0.012em; color: var(--text-strong); }
.h3 { font-size: 17px; line-height: 1.36; font-weight: 500; letter-spacing: -0.006em; color: var(--text-strong); }
.lead { font-size: 17px; line-height: 1.56; letter-spacing: -0.003em; color: var(--text-secondary); }
.body { font-size: 15px; line-height: 1.6; letter-spacing: -0.002em; color: var(--text-secondary); }
.caption { font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--text-muted); }
.small { font-size: 12px; line-height: 1.4; font-weight: 500; }
.muted { color: var(--text-muted); }

.wrap { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }
.col-width { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: 96px; }

/* Pill buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; line-height: 1.4; font-weight: 600; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.pill:active { transform: scale(.97); }
.pill-inverse { background: var(--text-strong); color: var(--text-inverse); }
.pill-inverse:hover { background: #e7e7ea; }
.pill-subtle { background: var(--bg-raised); color: var(--text-primary); }
.pill-subtle:hover { background: var(--bg-raised-hover); }
.pill-outline { border: 1px solid var(--border-default); color: var(--text-primary); }
.pill-outline:hover { border-color: var(--border-strong); }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); }
.wordmark .logo { width: 24px; height: 19px; flex: none; }

/* Nav: logo, links and Add to Chrome sit at the top of the page, with no bar behind them */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; margin: 24px auto 0; padding: 0; width: min(var(--col), 100% - 2 * var(--gutter));
}
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 28px; padding: 10px 22px;
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 999px;
  font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--text-secondary);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text-strong); }
.nav-cta { padding: 13px 22px; }

/* Collages (hero and final call to action) */
.collage { position: absolute; top: 0; left: 50%; width: 1440px; height: 100%; transform: translateX(-50%); pointer-events: none; }
.collage img {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  object-fit: cover; border-radius: 2px;
  /* Opening: each photo scales up from the centre outwards. --i is its order by distance from the centre. */
  opacity: 0; scale: .5;
  transition: opacity .9s var(--ease-out), scale 1.5s cubic-bezier(.16, 1.04, .3, 1);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
  /* Mouse: photos drift the opposite way to the pointer; bigger photos (closer) drift further. */
  translate: calc(var(--mx, 0px) * var(--d, 1)) calc(var(--my, 0px) * var(--d, 1));
}
.is-in .collage img, .collage.is-in img { opacity: 1; scale: 1; }

/* Hero */
.hero { position: relative; }
.hero .stage { position: relative; height: 900px; overflow: hidden; display: grid; place-items: center; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; width: min(760px, 100% - 32px); margin-top: -8px; }
.hero-mark { width: 40.8px; height: 32.3px; }
.hero h1 { font-size: 64px; line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; color: var(--text-strong); }
.hero .lead { max-width: 500px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 8px; }
.hero-note { position: absolute; left: max(var(--gutter), (100% - var(--col)) / 2); bottom: 39px; z-index: 1; }

/* Product film */
.video-section { padding: 32px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.player { position: relative; width: min(var(--col), 100% - 2 * var(--gutter)); max-width: var(--col); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .18); transition: opacity .4s; pointer-events: none; }
.play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; translate: -50% -50%;
  border-radius: 50%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .4));
  transition: scale .3s var(--ease-pop), opacity .3s;
}
.play svg { width: 100%; height: 100%; display: block; }
.play:hover { scale: 1.06; }
.player-time { position: absolute; left: 24px; bottom: 24px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.sound {
  position: absolute; right: 24px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px;
  background: rgba(0, 0, 0, .72); border-radius: 6px;
  font-size: 13px; font-weight: 500; color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s, opacity .3s;
}
.sound:hover { background: rgba(0, 0, 0, .86); }
.eq { display: flex; align-items: flex-end; gap: 3px; width: 20px; height: 14px; }
.eq i { width: 3px; border-radius: 1px; background: #f757a6; height: var(--bh); transform-origin: bottom; }
.eq i:nth-child(1) { --bh: 6px; } .eq i:nth-child(2) { --bh: 12px; } .eq i:nth-child(3) { --bh: 8px; } .eq i:nth-child(4) { --bh: 14px; }
.player.is-playing.has-sound .eq i { animation: eq .9s ease-in-out infinite alternate; }
.player.is-playing.has-sound .eq i:nth-child(2) { animation-duration: .7s; }
.player.is-playing.has-sound .eq i:nth-child(3) { animation-duration: 1.1s; }
.player.is-playing.has-sound .eq i:nth-child(4) { animation-duration: .8s; }
.player:not(.has-sound) .eq i { height: 3px; background: rgba(255, 255, 255, .5); }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.player.is-playing .player-shade, .player.is-playing .play { opacity: 0; pointer-events: none; }
.player.is-playing .play { scale: .8; }
.player.is-playing.has-sound:not(:hover) .sound, .player.is-playing:not(:hover) .player-time { opacity: 0; }

/* Hero to film (Figma: "Motion · Hero → Video scroll").
   main.js adds .seq-on on wide screens: the hero becomes a 250vh section with a sticky stage,
   the photos fly outward, and the film grows from 192×108 to full size, then stays pinned. */
.hero.seq-on { height: 250vh; }
.hero.seq-on .stage { position: sticky; top: 0; height: 100vh; min-height: 600px; }
.hero.seq-on .collage { top: 50%; height: 900px; transform: translate(-50%, -50%) scale(var(--cs, 1)); }
.hero.seq-on .collage.settled img { transition: none; }
.hero.seq-on .collage img, .hero.seq-on .hero-copy, .hero.seq-on .hero-note { will-change: transform, opacity; }
.hero.seq-on .player { position: absolute; z-index: 2; max-width: none; transform-origin: 50% 50%; will-change: transform, opacity; }
.hero.seq-on .player.emerging .sound, .hero.seq-on .player.emerging .player-time, .hero.seq-on .player.emerging .play { opacity: 0; pointer-events: none; }
body.seq-mode .video-section { padding-top: 0; margin-top: -16px; padding-bottom: 0; }
.player.is-playing { cursor: pointer; }
.video-caption { display: flex; justify-content: space-between; gap: 16px; width: min(var(--col), 100% - 2 * var(--gutter)); font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--text-secondary); }
.video-caption .muted { white-space: nowrap; }

/* Add button (the real in-page control: black with a white +, pink with a check once saved) */
.add {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-surface); color: #fff;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3));
}
.add svg { width: 50%; height: 50%; }
.add.is-added { background: var(--bg-accent); }
.add-inline { width: 40px; height: 40px; vertical-align: middle; background: var(--bg-accent); }
.add-lg { width: 48px; height: 48px; }

/* How it works */
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.how-head h2 { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.press-line { display: inline-flex; align-items: center; gap: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-media { position: relative; height: 340px; border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
.step-media > img { width: 100%; height: 100%; object-fit: cover; }
.step-num { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.step .h3 { margin-bottom: 10px; }

.hover-ring { position: absolute; inset: 12px; border: 3px solid var(--bg-accent); border-radius: 6px; }
.step-media .add-lg { position: absolute; left: 26px; top: 26px; filter: drop-shadow(0 6px 10.5px rgba(0, 0, 0, .3)); }
.tooltip {
  position: absolute; left: 26px; top: 82px; padding: 7px 10px;
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 8px;
  font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--text-primary); white-space: nowrap;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3));
}

.toast {
  position: absolute; top: 24px; left: 50%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px;
  font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--text-primary); white-space: nowrap;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3));
}
.toast svg { width: 16px; height: 16px; color: var(--bg-accent); }

/* Step loops (6s each). Base styles are the finished state, so reduced motion shows a still frame. */
.step-media .add-lg { display: grid; }
.step-media .add-lg svg { grid-area: 1 / 1; }
.step-media .add-lg .ic-check { opacity: 0; width: 46%; height: 46%; }
.loops .hover-ring { animation: s1-ring 6s var(--ease-out) infinite; }
.loops .step-media .add-lg { animation: s1-btn 6s var(--ease-out) infinite; }
.loops .step-media .add-lg .ic-plus { animation: s1-plus 6s infinite; }
.loops .step-media .add-lg .ic-check { animation: s1-check 6s infinite; }
.loops .tooltip { animation: s1-tip 6s var(--ease-out) infinite; }
@keyframes s1-ring { 0%, 8% { opacity: 0; scale: 1.03; } 16%, 86% { opacity: 1; scale: 1; } 94%, 100% { opacity: 0; scale: 1; } }
@keyframes s1-btn {
  0%, 14% { opacity: 0; scale: .6; background-color: var(--bg-surface); }
  22% { opacity: 1; scale: 1; }
  48% { scale: 1; background-color: var(--bg-surface); }
  52% { scale: .86; }
  58%, 86% { opacity: 1; scale: 1; background-color: var(--bg-accent); }
  94%, 100% { opacity: 0; scale: .8; background-color: var(--bg-accent); }
}
@keyframes s1-plus { 0%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes s1-check { 0%, 52% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes s1-tip { 0%, 24% { opacity: 0; translate: 0 4px; } 30%, 48% { opacity: 1; translate: 0 0; } 54%, 100% { opacity: 0; translate: 0 0; } }

.loops .mini-tray i { animation: s2-thumb 6s var(--ease-out) infinite; animation-delay: calc(var(--k, 0) * 120ms); }
.loops .toast { animation: s2-toast 6s var(--ease-out) infinite; }
@keyframes s2-thumb { 0% { opacity: 0; scale: .5; } 6%, 84% { opacity: 1; scale: 1; } 90%, 100% { opacity: 0; scale: .8; } }
@keyframes s2-toast { 0%, 40% { opacity: 0; translate: -50% -12px; } 46%, 80% { opacity: 1; translate: -50% 0; } 86%, 100% { opacity: 0; translate: -50% -6px; } }

.loops .mini-popup { animation: s3-float 6s ease-in-out infinite; }
.loops .mp-batch { animation: s3-batch 6s infinite; }
.loops .mp-batch:nth-child(2) { animation-delay: -4s; }
.loops .mp-batch:nth-child(3) { animation-delay: -2s; }
.loops .mp-batch .mp-act { animation: s3-act 6s infinite; animation-delay: inherit; }
@keyframes s3-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes s3-batch { 0%, 30% { background-color: var(--bg-raised); } 36%, 94% { background-color: transparent; } 100% { background-color: var(--bg-raised); } }
@keyframes s3-act { 0%, 30% { color: var(--text-primary); } 36%, 94% { color: var(--text-muted); } 100% { color: var(--text-primary); } }

/* Mini on-page bar, drawn at 0.568 of the real bar */
.mini-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 2.84px; padding: 2.84px;
  background: var(--bg-surface); border: .57px solid var(--border-subtle); border-radius: 6px;
  box-shadow: 0 5.7px 17px rgba(0, 0, 0, .28);
}
.mini-tray { display: flex; gap: 2.27px; padding-bottom: 2.84px; border-bottom: .57px solid var(--border-subtle); }
.mini-tray i { position: relative; flex: 1; aspect-ratio: 1; border-radius: 5.68px; background: var(--bg-thumb); }
.mini-tray i.hot { box-shadow: inset 0 0 0 1.14px var(--bg-accent); }
.mini-tray i b { position: absolute; right: 1.7px; top: 1.7px; width: 9.1px; height: 9.1px; display: grid; place-items: center; border-radius: 4.5px; background: rgba(0, 0, 0, .72); color: #fff; }
.mini-tray i b svg { width: 5.7px; height: 5.7px; }
.mini-controls { display: flex; align-items: center; gap: 2.27px; height: 23.28px; }
.mini-controls svg { color: var(--text-secondary); }
.mini-brand { display: inline-flex; align-items: center; gap: 2.27px; height: 22.15px; padding: 0 4.54px 0 3.4px; border-radius: 5.68px; background: var(--bg-raised); }
.m-logo { width: 12.5px; height: 9.9px; }
.m-chev { width: 8.5px; height: 8.5px; }
.mini-div { width: 5.1px; height: 15.3px; position: relative; }
.mini-div::after { content: ""; position: absolute; left: 2.27px; top: 0; bottom: 0; width: .57px; background: var(--border-default); }
.mini-count { display: inline-flex; align-items: center; gap: 2.27px; padding: 0 4.54px 0 5.68px; font-size: 7.1px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.mini-spacer { flex: 1; }
.mini-mode { position: relative; display: inline-flex; align-items: center; justify-content: space-around; width: 44.3px; height: 22.15px; border-radius: 5.68px; background: var(--bg-raised); }
.mini-mode svg { position: relative; width: 9.65px; height: 9.65px; }
.mini-mode svg.pink { color: var(--bg-accent); }
.mini-thumb { position: absolute; left: 1.7px; top: 1.7px; width: 20.44px; height: 18.74px; border-radius: 4.54px; background: var(--bg-thumb); }
.mini-tool { display: grid; place-items: center; width: 20.44px; height: 22.15px; }
.mini-tool svg { width: 9.1px; height: 9.1px; }

/* Mini popup (History tab), drawn at 0.62 of the real popup */
.mini-popup {
  position: absolute; right: 16px; top: 16px; width: 223.2px; max-width: calc(100% - 32px);
  background: var(--bg-surface); border: .62px solid var(--border-subtle); border-radius: 6px;
  box-shadow: var(--shadow-float); font-size: 7.44px; line-height: 1.4; font-weight: 500; overflow: hidden;
}
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 8.68px 9.92px 7.44px; }
.mp-word { display: inline-flex; align-items: center; gap: 4.96px; font-size: 9.3px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.mp-word svg { width: 14.88px; height: 11.78px; }
.mp-switch { display: inline-flex; align-items: center; gap: 4.96px; color: var(--text-secondary); }
.mp-toggle { position: relative; width: 18.6px; height: 11.16px; border-radius: 6px; background: #3f3f46; }
.mp-toggle::after { content: ""; position: absolute; left: 1.24px; top: 1.24px; width: 8.68px; height: 8.68px; border-radius: 50%; background: #fff; }
.mp-tabs { display: flex; gap: 1.24px; margin: 0 9.92px 7.44px; padding: 1.86px; border-radius: 6px; background: var(--bg-raised); }
.mp-tabs span { flex: 1; display: flex; justify-content: center; gap: 3.72px; padding: 3.72px 6.2px; border-radius: 4.96px; color: var(--text-secondary); }
.mp-tabs em { font-style: normal; color: var(--text-muted); }
.mp-tabs .on { background: var(--bg-raised-hover); color: var(--text-primary); font-weight: 600; }
.mp-tabs .on em { color: var(--text-accent); font-weight: 500; }
.mp-batches { display: flex; flex-direction: column; gap: 2.48px; padding: 0 4.96px 4.96px; }
.mp-batch { display: flex; flex-direction: column; gap: 4.96px; padding: 6.2px 4.96px; border-radius: 6.2px; }
.mp-batch.on { background: var(--bg-raised); }
.mp-meta { display: flex; justify-content: space-between; white-space: nowrap; color: var(--text-secondary); }
.mp-meta b { font-weight: 600; color: var(--text-primary); margin-right: 3.72px; }
.mp-act { font-weight: 600; color: var(--text-muted); word-spacing: 4.5px; }
.mp-batch.on .mp-act { color: var(--text-primary); }
.mp-act em { font-style: normal; color: var(--text-accent); }
.mp-strip { display: flex; gap: 3.72px; }
.mp-strip img, .mp-strip span { width: 22.32px; height: 22.32px; border-radius: 4.96px; object-fit: cover; flex: none; }
.mp-strip span { display: grid; place-items: center; background: var(--bg-raised-hover); color: var(--text-secondary); font-weight: 600; }
.mp-foot { display: flex; justify-content: space-between; align-items: center; padding: 7.44px 9.92px; border-top: .62px solid var(--border-subtle); color: var(--text-muted); }
.mp-foot .danger { color: var(--text-danger); font-weight: 600; padding: 0 7.44px; }
.mp-note { padding: 6.2px 9.92px 7.44px; border-top: .62px solid var(--border-subtle); text-align: center; font-size: 6.82px; line-height: 1.35; color: var(--text-muted); white-space: nowrap; }

/* Wall */
.wall { display: flex; gap: 72px; align-items: flex-start; }
.wall-copy { width: 340px; flex: none; padding-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.compare > div { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border-subtle); }
.compare dt { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.compare dd { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text-strong); }
.compare dd.muted { color: var(--text-muted); }
.masonry { position: relative; flex: 1; max-width: 708px; height: 720px; overflow: hidden; display: flex; gap: 10px; }
.masonry .col { flex: 1; min-width: 0; }
/* Ticker: each column scrolls on a loop (two copies of its photos), neighbours in opposite directions. */
.masonry .track { display: flex; flex-direction: column; gap: 10px; animation: tick var(--dur, 46s) linear infinite; will-change: transform; }
.masonry .col:nth-child(even) .track { animation-direction: reverse; }
.masonry:hover .track { animation-play-state: paused; }
@keyframes tick { to { transform: translateY(calc(-50% - var(--tg, 10px) / 2)); } }
.masonry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(to top, rgba(14, 14, 16, 0), var(--bg-canvas)); pointer-events: none; z-index: 2; }
.masonry .col.offset { padding-top: 44px; }
.masonry figure { position: relative; height: var(--h); flex: none; border-radius: 2px; overflow: hidden; cursor: pointer; }
.masonry figure img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.masonry figure:hover img { scale: 1.03; }
.masonry figure .add {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  opacity: 0; scale: .7; transition: opacity .2s, scale .35s var(--ease-pop), background-color .25s;
}
.masonry figure:hover .add, .masonry figure[data-state] .add { opacity: 1; scale: 1; }
.masonry figure .add:hover { scale: 1.08; }
.masonry figure[data-state="added"] .add { background: var(--bg-accent); }
.masonry figure .add.pop { animation: pop .45s var(--ease-pop); }
@keyframes pop { 0% { scale: .6; } 100% { scale: 1; } }
.masonry-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(to bottom, rgba(14, 14, 16, 0), var(--bg-canvas)); pointer-events: none; z-index: 2; }

/* Features bento */
.features-title { margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 292px 292px; gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; overflow: hidden; }
.card-tall { grid-column: 1 / 3; grid-row: 1 / 3; }
.card-wide { grid-column: 3 / 5; }
.slot { position: relative; flex: 1; min-height: 0; }
.card-text { display: flex; flex-direction: column; gap: 4px; padding: 4px 22px 22px; }
.card-text .body { max-width: 420px; }

.sizes { display: flex; align-items: center; justify-content: center; gap: 70px; padding-top: 20px; }
.sizes figure { display: flex; flex-direction: column; gap: 10px; }
.sizes img { object-fit: cover; border-radius: 2px; }
.size-small img { width: 70px; height: 88px; opacity: .6; }
.size-large img { width: 250px; height: 320px; }
.sizes figcaption { font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--text-muted); }
.size-large figcaption { color: var(--text-secondary); }

.boards { display: flex; justify-content: space-between; padding: 33.7px 21px 0; }
.board { display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.stack { position: relative; width: 132px; height: 105.6px; }
.stack img { position: absolute; width: 92.4px; height: 92.4px; object-fit: cover; border: 3.3px solid var(--bg-surface); border-radius: 19.8px; transition: transform .45s var(--ease-out); }
.stack .back { left: 34px; top: 11px; opacity: .5; transform: rotate(9deg); }
.stack .mid { left: 18.2px; top: 9px; opacity: .78; transform: rotate(4.5deg); }
.stack .front { left: 2.2px; top: 6.6px; }
.board:hover .back { transform: rotate(14deg) translateX(6px); }
.board:hover .mid { transform: rotate(7deg) translateX(3px); }
.board:hover .front { transform: translateY(-3px); }
.badge { position: absolute; left: 96.8px; top: 70.4px; min-width: 35.2px; height: 35.2px; padding: 0 8.8px; display: grid; place-items: center; border-radius: 17.6px; background: var(--bg-accent); color: #fff; font-size: 22px; line-height: 1.6; font-weight: 700; }
.board-label { padding-left: 40px; font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--text-muted); }

.slot.center { display: grid; place-items: center; }
.toggle { position: relative; width: 72px; height: 43.2px; border-radius: 21.6px; background: #3f3f46; transition: background-color .3s; }
.toggle span { position: absolute; left: 4.8px; top: 4.8px; width: 33.6px; height: 33.6px; border-radius: 50%; background: #fff; transition: translate .35s var(--ease-pop); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.toggle[aria-checked="true"] { background: var(--bg-accent); }
.toggle[aria-checked="true"] span { translate: 28.8px 0; }

.history { padding: 32.5px 36px 0; }
.hist-row { display: flex; gap: 6px; margin: 6px 0 16px; }
.hist-row img { width: 34px; height: 34px; border-radius: 2px; object-fit: cover; }
.hist-row.dim img { opacity: .6; }

/* Largest version table */
.split { display: flex; gap: 72px; align-items: flex-start; }
.split-head { width: 340px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.upgrades { flex: 1; border-collapse: collapse; font-size: 15px; line-height: 1.6; letter-spacing: -0.002em; }
.upgrades tr { height: 56px; border-bottom: 1px solid var(--border-subtle); transition: background-color .2s; }
.upgrades tr:hover { background: rgba(255, 255, 255, .02); }
.upgrades th, .upgrades td { padding: 0; text-align: left; }
.upgrades th { width: 200px; padding-left: 24px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text-primary); }
.upgrades td:nth-child(2) { width: 280px; }
.upgrades td:nth-child(3) { color: var(--text-primary); }
.upgrades td:last-child { width: 40px; padding-right: 24px; }
.tick { width: 16px; height: 16px; color: var(--bg-accent); display: block; }

/* Privacy */
.privacy { display: flex; gap: 64px; align-items: center; }
.pv-card { flex: none; width: 520px; height: 520px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; overflow: hidden; }
.pv-inner { position: relative; width: 518px; height: 518px; }
.pv-top { position: absolute; top: 31px; left: 0; right: 0; text-align: center; font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--text-muted); }
.pv-device { position: absolute; left: 69px; top: 95px; width: 380px; height: 330px; border: 1.5px dashed var(--border-strong); border-radius: 6px; }
.pv-device span { position: absolute; left: 12px; top: -12px; padding: 2px 8px; background: var(--bg-surface); font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--text-secondary); }
.pv-img { position: absolute; width: 130px; height: 170px; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow-float); transition: rotate .6s var(--ease-out), translate .6s var(--ease-out); }
.pv-1 { left: 106.5px; top: 157.2px; rotate: 8deg; }
.pv-2 { left: 204.8px; top: 124.3px; rotate: -4deg; }
.pv-3 { left: 276px; top: 161.2px; rotate: 2deg; }
.pv-card:hover .pv-1 { rotate: 11deg; translate: -6px 0; }
.pv-card:hover .pv-3 { rotate: 5deg; translate: 6px 0; }
.pv-badge { position: absolute; left: 166px; top: 371px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 999px; box-shadow: var(--shadow-float); font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.pv-badge svg { width: 16px; height: 16px; color: var(--text-secondary); }
.pv-cloud { position: absolute; left: 193px; top: 455px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-canvas); border: 1px solid var(--border-subtle); border-radius: 6px; font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--text-muted); }
.pv-cloud svg { width: 14px; height: 14px; color: var(--text-secondary); }
.pv-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pv-shield { width: 32px; height: 32px; color: var(--text-strong); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 17px; line-height: 1.56; color: var(--text-secondary); }
.facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 20px; border-radius: 50%; background: var(--border-strong); vertical-align: middle; }

/* FAQ */
.faq { gap: 96px; padding-top: 64px; padding-bottom: 128px; }
.faq-head { width: 360px; }
.faq-items { flex: 1; min-width: 0; }
.faq details { border-bottom: 1px solid var(--border-subtle); padding: 24px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 17px; line-height: 1.36; font-weight: 500; letter-spacing: -0.006em; color: var(--text-primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; transition: rotate .3s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 4.17px; right: 4.17px; top: 50%; height: 2.08px; margin-top: -1.04px; border-radius: 2px; background: var(--text-secondary); }
.faq-icon::after { rotate: 90deg; }
.faq details[open] .faq-icon { rotate: 45deg; }
.faq details p { padding-top: 12px; max-width: 640px; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Final call to action */
.final { position: relative; height: 720px; overflow: hidden; display: grid; place-items: center; }
.final-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; width: min(600px, 100% - 32px); }
.final-copy .lead { max-width: 460px; }
/* Waitlist */
.waitlist { box-sizing: border-box; display: flex; gap: 6px; width: min(440px, 100%); padding: 5px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 999px; transition: border-color .2s; }
.waitlist:focus-within { border-color: var(--border-strong); }
.waitlist input[type="email"] { flex: 1; width: 0; min-width: 0; padding: 0 14px 0 16px; background: none; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--text-strong); }
.waitlist input::placeholder { color: var(--text-muted); }
.waitlist .pill { padding: 11px 20px; }
.waitlist .pill[disabled] { opacity: .6; pointer-events: none; }
.waitlist.is-invalid { border-color: var(--text-danger); }
.waitlist.is-done { display: none; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-check { width: min(440px, 100%); display: flex; justify-content: center; }
.waitlist-check:empty { display: none; }
.waitlist-note { font-size: 12.5px; line-height: 1.4; font-weight: 500; color: var(--text-muted); }
.waitlist-note.is-error { color: var(--text-danger); }
.waitlist-note.is-done { font-size: 15px; color: var(--text-strong); }
.shortcut { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--text-muted); }
kbd { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 1px solid var(--border-default); border-bottom-width: 2px; border-radius: 8px; background: var(--bg-raised); font: 600 12px/1.4 Inter, sans-serif; color: var(--text-primary); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0 40px; width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }
.footer-links { display: flex; gap: 28px; font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-strong); }
.credits { padding: 0 0 28px; width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; text-align: center; font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--text-muted); }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
.reveal.is-in { opacity: 1; translate: 0 0; }

.notfound { min-height: calc(100vh - 220px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; padding: 72px 0; box-sizing: border-box; }
.notfound-code { margin: 0; font-size: 13px; line-height: 1; font-weight: 600; color: var(--bg-accent); padding: 6px 10px; border-radius: 999px; background: rgba(248, 87, 166, .12); }
.notfound .lead { max-width: 440px; margin: 0; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
@media (max-width: 720px) { .notfound .display { font-size: 34px; } }
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 100; width: min(380px, calc(100% - 32px)); box-sizing: border-box; padding: 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.consent p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--text-secondary); }
.consent a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }
.footer-links a[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .collage img { opacity: 1; translate: none; scale: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero .collage, .final .collage { transform: translateX(-50%) scale(.86); transform-origin: top center; }
  .wall { flex-direction: column; gap: 40px; }
  .wall-copy { width: 100%; max-width: 560px; padding-top: 0; }
  .masonry { flex: none; width: 100%; max-width: none; height: 520px; }
  .masonry figure { height: calc(var(--h) * .82); }
  .split, .faq { flex-direction: column; gap: 32px; }
  .split-head, .faq-head { width: 100%; max-width: 560px; }
  .upgrades { width: 100%; }
  .privacy { flex-direction: column; align-items: flex-start; gap: 48px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .card-tall, .card-wide { grid-column: 1 / -1; grid-row: auto; }
  .card-tall { min-height: 560px; }
  .card-wide { min-height: 292px; }
  .card { min-height: 292px; }
}

@media (max-width: 720px) {
  .section { padding-block: 72px; }
  :root { --gutter: 16px; }
  .nav { margin: 12px auto 0; height: 56px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  /* Collages: the same scattered photos as on desktop, smaller and laid out for a tall screen
     (a 420-wide frame; positions come from --ml/--mt/--mw/--mh on each photo). */
  .collage { width: 420px; }
  .collage img { left: var(--ml); top: var(--mt); width: var(--mw); height: var(--mh); }
  .hero .collage, .final .collage { transform: translateX(-50%); }
  .hero .stage { height: max(100svh, 640px); }
  .hero .collage { top: 50%; height: 860px; transform: translate(-50%, -50%) scale(var(--cs, 1)); }
  .hero.seq-on .collage { height: 860px; }
  .final { height: 640px; }
  .hero-note { display: none; }
  .hero h1 { font-size: 42px; }
  .desk { display: none; }
  .display { font-size: 36px; }
  .h1 { font-size: 30px; }
  .video-section { padding: 16px 0; }
  .play { width: 64px; height: 64px; }
  .player-time { left: 12px; bottom: 12px; font-size: 12px; }
  .sound { right: 10px; bottom: 8px; padding: 7px 11px 7px 10px; font-size: 12px; gap: 8px; }
  .video-caption { flex-direction: column; gap: 4px; }
  .how-head { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .wall { gap: 28px; }
  .masonry { height: 380px; gap: 8px; }
  .masonry .track { gap: 8px; --tg: 8px; }
  .masonry figure { height: calc(var(--h) * .58); }
  .masonry .col.offset { padding-top: 28px; }
  .masonry .col:nth-child(n+4) { display: none; }
  .masonry-fade { height: 140px; }
  .bento { grid-template-columns: 1fr; }
  .card-tall { min-height: 520px; }
  .sizes { gap: 32px; }
  .size-large img { width: 190px; height: 243px; }
  .boards { padding-inline: 8px; gap: 4px; }
  .stack { transform: scale(.78); transform-origin: top left; width: 103px; height: 82px; }
  .board-label { padding-left: 30px; }
  .upgrades th { width: auto; padding-left: 12px; }
  .upgrades td:nth-child(2) { width: auto; padding-right: 12px; }
  .upgrades td:last-child { display: none; }
  .upgrades { font-size: 14px; }
  .pv-card { width: 100%; height: auto; aspect-ratio: 1; }
  .pv-inner { zoom: calc(var(--pvw, 343) / 518); }
  .faq { padding-top: 40px; padding-bottom: 96px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 32px 0; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .credits { padding: 0 0 28px; text-align: left; }
}

/* Legal and support pages (built by site/build-legal.js) */
.legal-nav { position: relative; margin: 24px auto 0; }
.legal-nav .nav-links a[aria-current="page"], .footer-links a[aria-current="page"] { color: var(--text-strong); }
.legal { max-width: 720px; padding: 72px 0 120px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); transition: color .2s; }
.legal-back:hover { color: var(--text-strong); }
.legal-meta { margin-top: 16px; font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--text-muted); }
.legal-body { margin-top: 48px; border-top: 1px solid var(--border-subtle); }
.legal-body h2 { margin: 40px 0 12px; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--text-strong); }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { margin: 12px 0; padding-left: 20px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li + li { margin-top: 6px; }
.legal-body li::marker { color: var(--text-muted); }
.legal-body a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--bg-accent); }
.legal-body strong { color: var(--text-primary); font-weight: 600; }
.legal-body code { padding: 2px 6px; border-radius: 6px; background: var(--bg-raised); border: 1px solid var(--border-default); font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text-primary); }
.legal-body blockquote { margin: 16px 0; padding: 12px 16px; border-left: 2px solid var(--bg-accent); background: var(--bg-surface); border-radius: 0 6px 6px 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 720px) {
  .legal-nav { margin: 12px auto 0; }
  .legal { padding: 48px 0 88px; }
  .legal-body h2 { font-size: 18px; }
}
.inline-link { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: var(--bg-accent); }
