/*
 * The public site: popcrew.app, the platform pages, the comparison page and
 * the privacy policy.
 *
 * Tokens mirror the server pages (src/pages.ts), the popup and the in-page
 * panel: system font, hairlines, one indigo accent, pill buttons. The preview uses
 * the in-page party panel's dark colors in both themes (extension/src/ui/styles.ts).
 */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #737378;
  --line: rgba(0, 0, 0, 0.1);
  --fill: rgba(0, 0, 0, 0.045);
  --primary: #1d1d1f;
  --on-primary: #ffffff;
  --accent: #5b4bf0;
  --logo-a: #8577ff;
  --logo-b: #3f7cff;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 50px 100px -40px rgba(20, 10, 60, 0.45), 0 24px 48px -28px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050507;
    --text: #f5f5f7;
    --text-2: #a1a1a8;
    --text-3: #7d7d85;
    --line: rgba(255, 255, 255, 0.1);
    --fill: rgba(255, 255, 255, 0.07);
    --primary: #f5f5f7;
    --on-primary: #0b0b0d;
    --accent: #9a8cff;
    --logo-a: #b4a8ff;
    --logo-b: #5f93ff;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 24px 48px -28px rgba(0, 0, 0, 0.6);
  }
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; overflow-x: clip; color: var(--text); background: var(--bg);
  font: 400 17px/1.5 var(--font); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(130, 114, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 30; left: 12px; top: 12px; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); }
.mark-defs { position: absolute; }
.mark { flex: none; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 700; color: var(--text); text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em; }
p { text-wrap: pretty; }

/* ---------------------------------------------------------------- buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.014em;
  background: var(--primary); color: var(--on-primary);
  transition: transform 0.3s var(--spring), opacity 0.2s, background 0.2s;
}
.pill:hover { opacity: 0.86; }
.pill:active { transform: scale(0.97); }
.pill.small { height: 34px; padding: 0 16px; font-size: 14px; }
.pill.quiet { background: var(--fill); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pill.quiet:hover { opacity: 1; background: var(--line); }
.pill.bright { background: #f5f5f7; color: #0b0b0d; }
.pill:disabled { opacity: 0.5; cursor: default; }
.text-link { font-size: 17px; font-weight: 500; color: var(--accent); }
.text-link span { display: inline-block; transition: transform 0.3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: sticky; top: 12px; z-index: 20;
  width: min(1200px, calc(100% - 40px)); margin: 12px auto -68px;
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; width: 100%; padding: 0 12px 0 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 650; letter-spacing: -0.022em; }
.bar nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.bar nav a:not(.pill) { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.15s, background 0.15s; }
.bar nav a:not(.pill):hover, .bar nav a:not(.pill):focus-visible { color: var(--text); background: var(--fill); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-menu-links { position: absolute; right: 0; top: calc(100% + 10px); width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 16px 40px rgba(0,0,0,.2); }

/* ---------------------------------------------------------------- hero */
.home .bar { color: #fff; }
.home .bar-in { width: 100%; height: 56px; background: rgba(20,17,25,.92); border-color: rgba(255,255,255,.14); }
.home .bar .brand { font-size: 20px; }
.home .bar nav a:not(.pill) { color: #d7d3df; }
.home .bar nav a:not(.pill):hover { color: white; }
.home .bar nav a:not(.pill):hover, .home .bar nav a:not(.pill):focus-visible { background: rgba(255,255,255,.1); color: white; }
.home .nav-menu summary { border-color: rgba(255,255,255,.22); }
.home .nav-menu-links { background: #211c2a; border-color: rgba(255,255,255,.14); }
.home .bar .pill { background: #e0d8ff; color: #21192e; }
.premiere {
  position: relative; isolation: isolate; background: #100e16; color: #fff;
  overflow: clip;
}
.premiere-art, .premiere-art img, .premiere::before {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.premiere-art { z-index: -2; }
.premiere-art img { object-fit: cover; object-position: 69% 46%; }
.premiere::before {
  content: ""; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 10, 19, .92), rgba(13, 10, 19, .65) 34%, transparent 68%),
              linear-gradient(0deg, rgba(13, 10, 19, .58), transparent 34%);
}
.home .wrap, .premiere-in { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.premiere-in { position: relative; }
.premiere-copy { padding: clamp(124px, 11vw, 160px) 0 clamp(64px, 6.5vw, 96px); width: min(56%, 660px); }
.premiere h1 { color: #f7f6f4; font-size: clamp(2.7rem, 5.5vw, 5rem); font-weight: 650; line-height: 1.02; letter-spacing: -.035em; }
.premiere h1 span { display: block; }
.premiere-lede { max-width: 28em; margin-top: 22px; color: #ece8f2; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.48; }
.premiere .cta { justify-content: flex-start; margin-top: 30px; gap: 14px 24px; }
.premiere-install { background: #e0d8ff; color: #21192e; }
.premiere-install:hover { background: #efe9ff; opacity: 1; }
.premiere-fine { color: #d3cfdd; font-size: 13px; margin-top: 14px; }
.scene-chat {
  position: absolute; right: 0; bottom: 34px; display: flex; align-items: center; gap: 11px;
  padding: 12px 18px 12px 12px; border-radius: 15px 15px 15px 3px;
  background: #211c2a; color: #f5f2fa; box-shadow: 0 8px 26px rgba(12, 9, 15, .35);
  font-size: 13px; line-height: 1.45;
}
.scene-chat b { color: #ffb4aa; font-size: 12px; }
.scene-chat .avatar { width: 32px; height: 32px; }
.service-strip { border-bottom: 1px solid var(--line); }
.service-strip .wrap { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: 18px; }
.service-strip p { font-size: 15px; font-weight: 600; }
.service-strip ul { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; padding: 0; list-style: none; }
.service-strip a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border-radius: 8px; }
.service-strip a:hover, .service-strip a:focus-visible { background: var(--fill); }
.service-strip a > svg { width: 14px; height: 14px; flex: none; color: var(--text-2); }
.wordmark { display: block; width: 100px; height: 26px; object-fit: contain; }
.wordmark-netflix { width: 86px; }
.wordmark-prime-video { width: 90px; }
@media (prefers-color-scheme: dark) {
  .wordmark { filter: invert(1); }
}

.hero { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; }
.bar + main > .hero { padding-top: clamp(124px, 13vw, 172px); }
h1 { font-size: clamp(50px, 8.6vw, 104px); line-height: 0.98; letter-spacing: -0.052em; }
.kicker { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 16px; letter-spacing: -0.01em; }
.lede { max-width: 33em; margin: 26px auto 0; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; color: var(--text-2); }
.cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 30px; margin-top: 38px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- the hero's product shot */
.stage { width: min(980px, calc(100% - 40px)); margin: clamp(36px, 5vw, 64px) auto 0; }
.stage figcaption { margin-top: 12px; color: var(--text-2); font-size: 14px; }
.window {
  position: relative; overflow: hidden; border-radius: 16px; background: #0b0b0e;
  box-shadow: 0 10px 32px -18px rgba(15, 12, 25, .45); color: #f5f5f7;
  font-size: 13.5px; line-height: 1.45; letter-spacing: -0.006em; text-align: left;
}
.titlebar { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 16px; background: #1b1b20; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.titlebar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 500; color: rgba(245, 245, 247, 0.5); white-space: nowrap; }
.titlebar b { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.video { position: relative; width: 100%; display: grid; justify-items: end; align-items: end; grid-template-columns: minmax(0, 1fr); }
/* Share a grid cell so the scene can grow when the panel needs more height. */
.video::before { content: ""; grid-area: 1 / 1; width: 100%; aspect-ratio: 16 / 9; }
/* Mirrored, so the moon sits clear of the panel. */
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transform: scaleX(-1); }
.player {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 40px min(52%, 325px) 20px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  font-size: 12.5px; font-variant-numeric: tabular-nums; color: rgba(245, 245, 247, 0.88);
}
.pp { display: grid; width: 18px; height: 18px; flex: none; }
.pp svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity 0.2s, transform 0.3s var(--spring); }
.video[data-state="playing"] .pp svg:first-child, .video:not([data-state="playing"]) .pp svg:last-child { opacity: 0; transform: scale(0.6); }
.track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.24); overflow: hidden; }
.track i { display: block; width: 62%; height: 100%; background: #f5f5f7; border-radius: inherit; }

/* ---------------------------------------------------------------- the party panel (copy of the real one) */
.panel {
  position: relative; grid-area: 1 / 1; margin: 14px; width: min(48%, 290px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(38, 38, 44, 0.9) 0%, rgba(20, 20, 24, 0.8) 38%, rgba(16, 16, 20, 0.86) 100%);
  -webkit-backdrop-filter: blur(36px) saturate(175%); backdrop-filter: blur(36px) saturate(175%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 40px 90px -24px rgba(0, 0, 0, 0.7), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}
.panel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px 16px; }
.title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: -0.016em; }
.count { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.075); color: rgba(245, 245, 247, 0.68); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #32d74b; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 28px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.003em; background: rgba(255, 255, 255, 0.13); color: #f5f5f7;
  transition: background 0.18s, transform 0.22s var(--spring);
}
button.btn:hover { background: rgba(255, 255, 255, 0.19); }
.btn:active { transform: scale(0.95); }
.btn.primary { background: #f5f5f7; color: #0c0c0f; }
button.btn.primary:hover { background: #fff; }
.notices { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 2px; }
.notices:empty { display: none; }
.notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 10px 10px; border-radius: 16px; font-size: 13px; line-height: 1.4;
  background: rgba(255, 255, 255, 0.075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.notice .ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); color: rgba(245, 245, 247, 0.68); }
.notice .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding-top: 2px; }
.notice .body p { min-height: 2.8em; }
.notice .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.notice.wait { background: rgba(255, 179, 64, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.2); }
.notice.wait .ico { background: rgba(255, 179, 64, 0.2); color: #ffb340; }
.avatar {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 650; line-height: 1; color: #fff; letter-spacing: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -6px 10px -6px rgba(0, 0, 0, 0.25);
}
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.t-indigo { --a: #8793ff; --b: #5a45ee; }
.t-coral { --a: #ff7a59; --b: #f0436a; }
.t-amber { --a: #f7a23b; --b: #ea6a2e; }

.log {
  flex: 1; min-height: 0; margin: 10px 10px 0; padding: 14px 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  border-radius: 18px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.group { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.group.mine { flex-direction: row-reverse; }
.col { min-width: 0; max-width: calc(100% - 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.group.mine .col { align-items: flex-end; max-width: 86%; }
.who { margin: 0 0 2px 12px; font-size: 11.5px; font-weight: 650; letter-spacing: 0; color: var(--a); }
.bubble { padding: 7px 12px; max-width: 100%; border-radius: 17px; background: rgba(255, 255, 255, 0.105); font-size: 13.5px; line-height: 1.4; }
.group:not(.mine) .col > .bubble:not(:last-child) { border-bottom-left-radius: 6px; }
.group:not(.mine) .col > .bubble:not(:first-of-type) { border-top-left-radius: 6px; }
.group.mine .bubble { color: #fff; background: linear-gradient(180deg, #7262f7, #5444ea); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.reactions { display: flex; justify-content: space-between; margin: 9px 12px 12px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.reactions > * { display: grid; place-items: center; flex: 1; height: 34px; border-radius: 999px; font-size: 19px; line-height: 1; transition: background 0.15s, transform 0.3s var(--spring); }
.reactions button:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px) scale(1.2); }
.reactions button[data-sent] { background: rgba(255,255,255,.22); }
.reactions button:active { transform: scale(0.9); }

/* Reactions in flight, over the video. */
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.floaters span {
  position: absolute; bottom: 16%; font-size: clamp(30px, 4vw, 46px); line-height: 1; will-change: transform, opacity;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  animation: float 2.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.floaters .d1 { left: 16%; --drift: 30px; }
.floaters .d2 { left: 30%; --drift: -24px; }
.floaters .d3 { left: 44%; --drift: 18px; }
.floaters .d4 { left: 24%; --drift: -36px; }

/* ---------------------------------------------------------------- sections */
.glance, .faq, .howto, .notes, .more, .compare, .choose { padding-top: clamp(112px, 13vw, 184px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 64px; flex-wrap: wrap; }
.section-head h2 { max-width: 13em; }
.section-head p { max-width: 27em; font-size: 19px; line-height: 1.5; color: var(--text-2); }

/* ---------------------------------------------------------------- home setup */
.home h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.08; }
.setup { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); align-items: center; gap: clamp(36px, 5vw, 76px); padding-block: clamp(56px, 6vw, 86px); }
.setup h2 { max-width: 12em; }
.setup-steps { list-style: none; counter-reset: setup; padding: 0; margin-top: 28px; }
.setup-steps li { position: relative; padding-left: 42px; counter-increment: setup; }
.setup-steps li + li { margin-top: 22px; }
.setup-steps li::before { content: counter(setup); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; background: var(--fill); border-radius: 50%; color: var(--text-2); font-weight: 600; font-size: 14px; }
.setup-steps h3 { font-size: 18px; font-weight: 650; }
.setup-steps p { max-width: 35em; margin-top: 3px; font-size: 16px; color: var(--text-2); }
.setup .stage { align-self: center; width: 100%; margin: 0; }
.setup .panel { width: min(48%, 260px); }
.home .glance, .home .faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); align-items: start; column-gap: clamp(36px, 5vw, 76px); padding-block: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); }
.compare-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 16px; }
.compare-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.compare-link svg { flex: none; }
.home .specs { grid-template-columns: 1fr; margin-top: 0; }
.home .specs > div { padding: 13px 0; }
.home .specs > div:first-child { border: 0; padding-top: 0; }
.home .qa { margin-top: 0; }

/* ---------------------------------------------------------------- platform index */
.index { list-style: none; padding: 0; margin: 52px 0 0; border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 24px;
  padding: 28px 6px; border-bottom: 1px solid var(--line);
}
.pname { font: 650 clamp(30px, 3.8vw, 46px)/1.08 var(--display); letter-spacing: -0.04em; }
.pblurb { font-size: 17px; color: var(--text-2); }
.arrow { font-size: 26px; color: var(--text-3); transition: transform 0.4s var(--ease), color 0.2s; }
.index a:is(:hover, :focus-visible) .arrow { transform: translateX(6px); color: var(--accent); }

/* ---------------------------------------------------------------- at a glance */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin-top: 52px; }
.specs > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.specs dt { font-size: 15px; color: var(--text-3); }
.specs dd { font-size: 17px; text-wrap: pretty; }

/* ---------------------------------------------------------------- questions */
.qa { margin-top: 36px; border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary { position: relative; padding: 18px 42px 18px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.016em; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); }
.qa details[open] summary::after { transform: translateY(5px) rotate(225deg); }
.qa summary:hover { color: var(--accent); }
.qa p { max-width: 65ch; padding: 0 26px 20px 0; color: var(--text-2); line-height: 1.55; }

/* ---------------------------------------------------------------- platform pages */
.howto-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 52px; padding: 0; list-style: none; counter-reset: step; }
.howto-steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.55; }
.howto-steps li::before { content: counter(step); display: block; margin-bottom: 16px; font-size: 13px; font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums; }
.howto-steps b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--text); }
.notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px 64px; }
.notes ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.notes li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.5; color: var(--text-2); }
.notes li::before { content: ""; position: absolute; left: 4px; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.more h2 { max-width: 16em; }
.more h2 a { color: var(--text-2); transition: color 0.15s; }
.more h2 a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- comparison page */
/* A plain table: hairlines between rows, Popcrew's column first and in full
   colour. On narrow screens each row stacks, with every cell labelled. */
.vs { width: 100%; margin-top: 52px; border-collapse: collapse; table-layout: fixed; }
.vs th, .vs td { padding: 20px 28px 20px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.vs thead td { width: 19%; }
.vs thead th { padding-top: 0; font: 650 clamp(19px, 1.9vw, 23px)/1.2 var(--display); letter-spacing: -0.03em; }
.vs thead .us { color: var(--accent); }
.vs tbody th { font-size: 15px; font-weight: 500; color: var(--text-3); }
.vs td { font-size: 16.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.vs td.us { color: var(--text); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 52px; }
.picks > div { padding-top: 20px; border-top: 1px solid var(--line); }
.picks h3 { margin-bottom: 10px; font: 650 24px/1.15 var(--display); letter-spacing: -0.03em; }
.picks p { color: var(--text-2); line-height: 1.55; }
.sources p { margin-top: 14px; max-width: 22em; font-size: 15px; color: var(--text-3); }
.sources li b { font-weight: 600; color: var(--text); }
.sources li a { color: var(--accent); }
.sources li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- privacy */
.prose { max-width: 680px; padding: clamp(64px, 9vw, 112px) 0 24px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.045em; }
.prose .effective { margin: 18px 0 8px; color: var(--text-3); font-size: 15px; }
.prose h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; }
.prose p:not(.effective) { font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* ---------------------------------------------------------------- closing */
.closing {
  position: relative; isolation: isolate; overflow: hidden; width: min(1200px, calc(100% - 40px)); margin: clamp(112px, 13vw, 184px) auto 0;
  border-radius: 28px; background: #050507; color: #f5f5f7; text-align: center; box-shadow: var(--shadow);
}
.closing-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 50% 50%, rgba(5, 5, 7, 0.25), rgba(5, 5, 7, 0.82)), linear-gradient(180deg, rgba(5, 5, 7, 0.45), transparent 40%, rgba(5, 5, 7, 0.55));
}
.home .closing { margin-top: 16px; }
.home .closing-in { padding: clamp(60px, 8vw, 100px) 20px; gap: 18px; }
.closing-in { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: clamp(110px, 14vw, 190px) 24px; }
.closing h2 { color: #f5f5f7; font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -0.05em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.closing p { margin-top: -10px; font-size: 13.5px; color: rgba(245, 245, 247, 0.62); }
.closing .mark { --logo-a: #b4a8ff; --logo-b: #5f93ff; filter: drop-shadow(0 4px 24px rgba(124, 108, 255, 0.5)); }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding: 44px 0 32px; }
.foot-brand p { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.foot-h { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot ul a { font-size: 14px; color: var(--text-2); transition: color 0.15s; }
.foot ul a:hover { color: var(--text); }
.legal { padding: 20px 0 44px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- motion */
@keyframes float {
  0% { transform: translate(0, 0) scale(0.4) rotate(0deg); opacity: 0; }
  10% { transform: translate(calc(var(--drift) * 0.15), -28px) scale(1.18) rotate(-7deg); opacity: 1; }
  45% { transform: translate(calc(var(--drift) * -0.5), -120px) scale(1.05) rotate(6deg); opacity: 1; }
  100% { transform: translate(var(--drift), -300px) scale(0.95) rotate(-4deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .floaters span { animation: fade 2.5s linear forwards !important; }
  @keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) {
  .specs { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .bar nav { gap: 10px; }
  .setup, .home .glance, .home .faq { grid-template-columns: 1fr; gap: 28px; }
  .setup { align-items: start; }
  .setup h2 { max-width: none; }
  .setup-steps p { max-width: 55ch; }
  .setup .stage { max-width: 700px; }
  .index a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .pblurb { grid-row: 2; }
  .arrow { grid-row: 1 / 3; grid-column: 2; }
  .notes, .picks { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .premiere-copy { width: 57%; }
  .scene-chat { bottom: 22px; font-size: 12px; }
}
@media (max-width: 700px) {
  .bar { top: 8px; width: calc(100% - 24px); margin-top: 8px; margin-bottom: -62px; }
  .home .bar-in { height: 54px; width: 100%; }
  .premiere-art { height: clamp(196px, 55vw, 330px); }
  .premiere-art img { object-position: 72% 38%; }
  .premiere::before { height: clamp(197px, 55.2vw, 331px); background: linear-gradient(0deg, #100e16, transparent 44%); }
  .home .wrap, .premiere-in { width: calc(100% - 40px); }
  .premiere-copy { width: 100%; padding: clamp(210px, 58vw, 328px) 0 30px; }
  .premiere h1 { font-size: clamp(2rem, 9.75vw, 3.75rem); }
  .premiere-lede { margin-top: 16px; font-size: 16px; }
  .premiere .cta { margin-top: 18px; gap: 4px 18px; }
  .premiere-install { height: 45px; padding-inline: 18px; font-size: 15px; }
  .scene-chat { display: none; }
  .service-strip .wrap { flex-direction: column; align-items: stretch; gap: 6px; padding-block: 15px; }
  .service-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 0; }
  .service-strip a { justify-content: space-between; gap: 4px; min-height: 44px; padding-right: 6px; }
  .service-strip .wordmark { height: 23px; width: 96px; object-position: left center; }
}
@media (max-width: 720px) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vs { margin-top: 36px; border-top: 1px solid var(--line); }
  .vs tr { padding: 20px 0 14px; border-bottom: 1px solid var(--line); }
  .vs th, .vs td { padding: 0; border: 0; }
  .vs tbody th { margin-bottom: 8px; font-size: 17px; font-weight: 600; color: var(--text); }
  .vs td { display: grid; grid-template-columns: 6em minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 5px 0; font-size: 16px; }
  .vs td::before { content: attr(data-label); font-size: 14px; color: var(--text-3); }
  .vs td.us::before { font-weight: 600; color: var(--accent); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .stage, .closing { width: calc(100% - 24px); }
  .titlebar { height: 32px; }
  .titlebar i { width: 8px; height: 8px; }
  .video { display: block; min-height: 0; aspect-ratio: auto; background: #141418; }
  .video::before { display: none; }
  .video .film { position: relative; display: block; height: auto; aspect-ratio: 2.4; }
  .video .floaters { bottom: auto; aspect-ratio: 2.4; }
  .video .player { top: 0; bottom: auto; aspect-ratio: 2.4; align-items: end; padding: 0 16px 10px; }
  .video .panel { margin: 0; width: 100%; border-radius: 0; box-shadow: none; background: none; }
  .video .log { gap: 7px; }
  .setup-steps h3 { font-size: 17px; }
  .home .specs > div { grid-template-columns: minmax(88px, .7fr) minmax(0, 1.6fr); gap: 12px; }
  .section-head p { font-size: 17px; }
  .howto-steps { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
}

.analytics-choice {
  position: fixed; z-index: 20; bottom: 1rem; left: 50%; transform: translateX(-50%);
  width: min(34rem, calc(100% - 2rem)); padding: 1rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 24px #0003;
}
.analytics-choice p { margin-bottom: .75rem; }
.analytics-choice a { text-decoration: underline; }
@media (max-height: 650px) and (max-width: 900px) {
  .analytics-choice { position: static; transform: none; margin: 0 auto 16px; box-shadow: none; }
}

/* Installation handoff in browsers that cannot install a desktop extension. */
.install-action { display: grid; justify-items: center; max-width: 100%; }
.premiere .install-action { justify-items: start; }
.handoff-status, .handoff-fallback { font-size: 14px; line-height: 1.45; }
.handoff-status:not(:empty), .handoff-fallback:not([hidden]) { max-width: 30ch; margin-top: 10px; }
.handoff-fallback label { display: grid; gap: 6px; }
.handoff-fallback input {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 16px; color: var(--text); background: var(--bg);
}
