/* stat.yt landing page: one black screen, no scrolling on a desktop. */
:root {
  --muted: #8E8E93;
  --faint: #56565C;
  --line: #1C1C1F;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #000; color: #fff; }
body { min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  font: 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* Header */
.top { flex: none; height: 72px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
nav { display: flex; align-items: center; gap: 24px; }
.link { font-size: 14px; color: var(--muted); transition: color .15s; }
.link:hover { color: #fff; }

/* The button */
.get { height: 52px; padding: 0 26px 0 22px; border-radius: 999px; background: #fff; color: #000; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s, transform .1s; }
.get:hover { background: #E6E6E9; }
.get:active { transform: scale(.98); }
.get.sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { flex: 1; min-height: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(40px, 5vw, 96px); }
.copy { max-width: 560px; }
h1 { font-size: clamp(44px, min(5.6vw, 9vh), 84px); font-weight: 600; letter-spacing: -.05em; line-height: .98; }
.lede { margin-top: 22px; max-width: 440px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--muted); }
.cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.aside { font-size: 13px; color: var(--faint); transition: color .2s; }
.aside.lit { color: #fff; }
.feats { margin-top: clamp(28px, 5vh, 44px); list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 30px; }
.feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #C9C9CE; }
.feats .i { width: 16px; height: 16px; color: var(--faint); }

/* A made-up analytics page in a browser window, and the stat.yt popup open over it */
.stage { --ph: clamp(360px, calc(100dvh - 250px), 600px); --pw: calc(var(--ph) * .6);
  position: relative; width: min(660px, 46vw); height: calc(var(--ph) + 92px); }
.win { position: absolute; inset: 0 0 auto 0; height: calc(44px + var(--ph) * .78); border-radius: 14px; overflow: hidden;
  background: #08080A; border: 1px solid var(--line); }
.bar { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 14px; background: #0C0C0E; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #202024; }
.url { flex: 1; min-width: 0; height: 26px; padding: 0 12px; border-radius: 999px; background: #141417; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.url .i { width: 12px; height: 12px; }
.ext { width: 28px; height: 28px; border-radius: 8px; background: #2A2A2F; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px #3C3C42; }

.page { height: calc(100% - 44px); display: flex; }
.rail { flex: none; width: 56px; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.rail .me { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; }
.rail .me svg { width: 100%; height: 100%; }
.rail i { width: 20px; height: 20px; border-radius: 6px; background: #17171A; }
.rail i.on { background: #2E2E33; }
.main { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.m-head { display: flex; align-items: center; gap: 12px; }
.m-head b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.range { height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; font-size: 11px; color: var(--faint); white-space: nowrap; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.tabs span { padding-bottom: 8px; }
.tabs .on { color: #fff; box-shadow: inset 0 -2px #fff; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { padding: 10px 12px; border-radius: 10px; background: #0E0E11; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kpis span { font-size: 11px; color: var(--faint); white-space: nowrap; }
.kpis b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.kpis em { font-style: normal; font-size: 11px; color: var(--muted); }
.graph { width: 100%; flex: 1; min-height: 60px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.rows i { height: 10px; width: 70%; border-radius: 4px; background: #141417; }
.rows i + i { width: 45%; }

.pop { position: absolute; top: 50px; right: 8px; width: var(--pw); height: var(--ph); border-radius: 12px; overflow: hidden; background: #050608;
  box-shadow: 0 0 0 1px #2A2A2F, 0 8px 24px rgba(0, 0, 0, .6), 0 40px 100px rgba(0, 0, 0, .9); }
.pop img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.pop img.on { opacity: 1; }
.cap { position: absolute; right: 8px; bottom: 0; width: var(--pw); height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted); white-space: nowrap; }
.dots { display: flex; gap: 6px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: #2E2E33; cursor: pointer; transition: width .25s, background-color .25s; }
.dots button:hover { background: #55555C; }
.dots button[aria-selected="true"] { width: 18px; background: #fff; }

/* The privacy page: a plain, scrolling document */
body.doc { overflow: auto; }
.prose { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 32px var(--pad) 56px; }
.prose h1 { font-size: clamp(40px, 6vw, 56px); }
.prose .when { margin-top: 10px; font-size: 13px; color: var(--faint); }
.prose h2 { margin-top: 40px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.prose p, .prose li { font-size: 15px; line-height: 1.65; color: #B4B4BA; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--faint); }
.prose b { font-weight: 600; color: #fff; }
.prose .fine { margin-top: 48px; font-size: 13px; color: var(--faint); }

/* Footer */
.foot { flex: none; height: 56px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 12px; color: var(--faint); }
.foot a { transition: color .15s; }
.foot a:hover { color: #fff; }

/* Coming in */
@media (prefers-reduced-motion: no-preference) {
  .copy > *, .stage { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .lede { animation-delay: .06s; }
  .cta { animation-delay: .12s; }
  .feats { animation-delay: .18s; }
  .stage { animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Short windows scroll instead of cutting anything off */
@media (max-height: 580px) { body { overflow: auto; } }

/* Phones and narrow windows: the words, then the popup on its own, still on one screen where it fits */
@media (max-width: 900px) {
  body { overflow: auto; }
  .top { height: 60px; }
  .hero { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 28px; padding-top: 4px; padding-bottom: 8px; text-align: center; }
  .copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-top: 16px; }
  .cta { margin-top: 24px; justify-content: center; gap: 12px 18px; }
  .feats { justify-content: center; text-align: left; }
  .stage { --ph: clamp(300px, calc(100dvh - 450px), 560px); width: 100%; height: calc(var(--ph) + 40px); }
  .win { display: none; }
  .pop { top: 0; right: auto; left: 50%; transform: translateX(-50%); }
  .cap { left: 0; right: 0; width: auto; justify-content: center; gap: 14px; }
  .link { display: none; }
  .foot { height: auto; padding-top: 4px; padding-bottom: 16px; flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 600px) {
  .feats, .get.sm { display: none; }
}

/* 404 */
.lost { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); }
