/* ==========================================================================
   Anchor — product site
   A product-page layout in the spirit of Apple's: big type, generous space,
   alternating light and dark "stages", and real screenshots doing the talking.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #fbfbfd;
  --paper-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --hairline: #d2d2d7;
  --night: #000;
  --night-2: #101012;
  --night-card: #1c1c1e;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --night-hairline: #2c2c2e;

  /* Action */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --link-night: #2997ff;

  /* Brand — lifted from the logo's four facets */
  --coral: #ff5a36;
  --rose: #f0306a;
  --violet: #7b4dff;
  --azure: #1f7cf0;
  --teal: #22c3a6;
  --brand-gradient: linear-gradient(90deg, #ff6a3d 0%, #f0306a 30%, #8a4dff 60%, #1f7cf0 82%, #22c3a6 100%);

  /* Type */
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Code", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 980px;
  --wrap-wide: 1200px;
  --gutter: 22px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-h: 52px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
kbd { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--link-night);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}
.skip-link:focus { top: 10px; text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Stages ---------- */

.stage { position: relative; padding-block: clamp(88px, 12vw, 150px); }
.stage--paper { background: var(--paper); }
.stage--alt { background: var(--paper-2); }
.stage--night { background: var(--night); color: var(--night-ink); }
.stage--night-2 { background: var(--night-2); color: var(--night-ink); }
.stage--night a,
.stage--night-2 a { color: var(--link-night); }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--ink-2);
}
.stage--night .eyebrow,
.stage--night-2 .eyebrow { color: var(--night-ink-2); }

.headline {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.028em;
}
.headline--md { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.025em; }
.headline--sm { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }

.lede {
  margin: 20px 0 0;
  max-width: 40ch;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: 0.009em;
  color: var(--ink-2);
}
.stage--night .lede,
.stage--night-2 .lede { color: var(--night-ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }
.stage--night .lede strong,
.stage--night-2 .lede strong { color: var(--night-ink); }

.center { text-align: center; }
.headline, .lede, .statement, .tile__title, .closer__copy h3, .get__card h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.center .lede { margin-inline: auto; }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff !important;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--link) !important;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost:hover { background: rgba(0, 113, 227, 0.06); }
.stage--night .btn--ghost,
.stage--night-2 .btn--ghost { color: var(--link-night) !important; }
.stage--night .btn--ghost:hover,
.stage--night-2 .btn--ghost:hover { background: rgba(41, 151, 255, 0.1); }

.btn--small { min-height: 30px; padding: 5px 14px; font-size: 13px; letter-spacing: -0.01em; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 17px;
}
.more::after {
  content: "";
  width: 7px; height: 7px;
  margin-left: 6px;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 34px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--night-ink);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.is-light {
  background: rgba(251, 251, 253, 0.8);
  color: var(--ink);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit !important;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none !important;
}
.nav__brand img { width: 26px; height: 26px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  color: inherit;
  opacity: 0.8;
  font-size: 12px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta { flex: none; }
.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.nav.is-open .nav__toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

@media (max-width: 833px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: inherit;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0.25s;
  }
  .nav { background: rgba(22, 22, 23, 0.9); }
  .nav.is-light { background: rgba(251, 251, 253, 0.94); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a {
    display: block;
    padding: 12px 0;
    font-size: 21px;
    font-weight: 600;
    opacity: 1;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(31, 124, 240, 0.28), transparent 70%),
    radial-gradient(40% 40% at 20% 85%, rgba(240, 48, 106, 0.16), transparent 70%),
    radial-gradient(40% 40% at 80% 85%, rgba(34, 195, 166, 0.14), transparent 70%),
    var(--night);
  color: var(--night-ink);
}
.hero__logo {
  width: 84px; height: 84px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 10px 30px rgba(123, 77, 255, 0.35));
}
.hero__eyebrow {
  margin: 0 0 8px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  color: var(--night-ink);
}
.hero .headline { font-size: clamp(48px, 8vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.hero .lede { max-width: 34ch; }
.hero__meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--night-ink-2);
}
.hero__stage {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  perspective: 1600px;
}
.hero__screen {
  position: relative;
  margin-inline: auto;
  width: min(1180px, 100% - 2 * var(--gutter));
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 -30px 120px -20px rgba(31, 124, 240, 0.45);
  transform-origin: 50% 100%;
  transform: scale(var(--hero-scale, 0.9)) rotateX(var(--hero-tilt, 8deg));
  will-change: transform;
}
.hero__screen img { width: 100%; }
.hero__callout {
  position: absolute;
  left: 50%;
  bottom: 13.5%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.hero__callout span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__callout::after {
  content: "";
  width: 1px; height: clamp(18px, 3vw, 36px);
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

/* ---------- Statement (scroll-lit words) ---------- */

.statement {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.028em;
}
.statement mark { background: none; color: var(--blue); }
.statement .w { color: rgba(29, 29, 31, var(--lit, 0.16)); transition: color 0.15s linear; }
.statement .w.hl { color: rgba(0, 113, 227, var(--lit, 0.16)); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.stat__num {
  display: block;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); letter-spacing: -0.01em; }
@media (max-width: 734px) { .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* ---------- Bento highlights ---------- */

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  grid-column: span 3;
  min-height: 460px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--night-card);
  color: var(--night-ink);
  overflow: hidden;
  isolation: isolate;
}
.tile--wide { grid-column: span 6; }
.tile--third { grid-column: span 2; min-height: 400px; }
.tile--four { grid-column: span 4; }
.tile__kicker {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--night-ink-2);
}
.tile__title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.tile__body {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: 17px;
  color: var(--night-ink-2);
}
.tile__body strong { color: var(--night-ink); font-weight: 600; }

@media (max-width: 1068px) {
  .tile--third { grid-column: span 3; }
  .tile--four { grid-column: span 6; }
}
@media (max-width: 734px) {
  .bento { gap: 14px; }
  .tile, .tile--third, .tile--four { grid-column: span 6; min-height: 0; padding: 30px 26px; }
}

/* Glass tile */
.tile--glass {
  background:
    radial-gradient(38% 55% at 18% 30%, #ff6a3d 0%, transparent 70%),
    radial-gradient(40% 60% at 48% 72%, #8a4dff 0%, transparent 72%),
    radial-gradient(38% 60% at 82% 28%, #1f7cf0 0%, transparent 70%),
    radial-gradient(30% 45% at 92% 90%, #22c3a6 0%, transparent 70%),
    #0c0c14;
}
.tile--glass .tile__copy { position: relative; z-index: 2; }
.glass-strip {
  position: absolute;
  left: 50%;
  bottom: 56px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(30, 30, 34, 0.42);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { from { translate: -58% 0; } to { translate: -42% 0; } }
.glass-strip .app { width: 48px; height: 48px; }
.glass-strip .sep { width: 1px; height: 28px; margin-inline: 4px; background: rgba(255, 255, 255, 0.2); }
@media (max-width: 734px) {
  .tile--glass { min-height: 400px; }
  .glass-strip .app { width: 36px; height: 36px; }
  .glass-strip { bottom: 30px; }
}

/* Tile with a screenshot */
.tile__shot {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  overflow: hidden;
}
.tile__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  -webkit-mask-image: linear-gradient(transparent, #000 35%);
  mask-image: linear-gradient(transparent, #000 35%);
}
@media (max-width: 734px) {
  .tile__shot { position: relative; height: 220px; margin: 24px -26px -30px; }
}

/* Monitors tile */
.monitors {
  position: absolute;
  inset: auto 0 44px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding-inline: 24px;
}
.monitor {
  position: relative;
  width: 44%;
  max-width: 230px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background:
    radial-gradient(70% 90% at 30% 110%, rgba(31, 124, 240, 0.8), transparent 70%),
    radial-gradient(60% 80% at 90% 0%, rgba(138, 77, 255, 0.6), transparent 70%),
    #20242e;
  box-shadow: 0 0 0 5px #2c2c30, 0 0 0 6px #3a3a3e;
}
.monitor:nth-child(2) {
  width: 32%;
  aspect-ratio: 10 / 14;
  background:
    radial-gradient(80% 70% at 100% 100%, rgba(240, 48, 106, 0.7), transparent 70%),
    radial-gradient(70% 60% at 0% 0%, rgba(34, 195, 166, 0.55), transparent 70%),
    #20242e;
}
.monitor::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -22px;
  width: 26%; height: 16px;
  translate: -50% 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#3a3a3e, #2a2a2e);
}
.mini-dock {
  position: absolute;
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(20, 20, 22, 0.6);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.2) inset;
}
.mini-dock i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, #fff); }
.mini-dock--bottom { left: 50%; bottom: 7%; translate: -50% 0; }
.mini-dock--right { right: 5%; top: 50%; translate: 0 -50%; flex-direction: column; }
.mini-dock--top { left: 50%; top: 6%; translate: -50% 0; }

/* Keycap tile */
.tile--keys { display: flex; flex-direction: column; }
.keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
}
.keys b { font-size: 22px; font-weight: 400; color: var(--night-ink-2); }
.key {
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 72px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(#3a3a3e, #2a2a2d);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 -3px 0 rgba(0, 0, 0, 0.45) inset,
    0 10px 24px rgba(0, 0, 0, 0.5);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0;
}
.key--pressed { animation: press 3.2s ease-in-out infinite; }
.key--pressed:nth-of-type(2) { animation-delay: 0.12s; }
.key--pressed:nth-of-type(3) { animation-delay: 0.24s; }
@keyframes press {
  0%, 70%, 100% { transform: none; }
  76%, 86% { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 -1px 0 rgba(0,0,0,.45) inset, 0 4px 10px rgba(0,0,0,.5); }
}
@media (max-width: 734px) {
  .key { min-width: 58px; height: 58px; font-size: 17px; }
}

/* Search tile — cycles through the app's own translated placeholder */
.tile--lang { display: flex; flex-direction: column; }
.search-mock {
  margin-top: auto;
  padding-top: 36px;
}
.search-mock__field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 18px;
  border-radius: 12px;
  background: #2a2a2d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  border-bottom: 2px solid var(--azure);
  font-size: 18px;
  color: var(--night-ink-2);
  overflow: hidden;
}
.search-mock__field svg { width: 18px; height: 18px; flex: none; opacity: 0.7; }
.search-mock__text { display: inline-block; white-space: nowrap; transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.search-mock__text.is-out { opacity: 0; transform: translateY(-10px); }
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.lang-list li {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--night-ink-2);
  box-shadow: 0 0 0 1px var(--night-hairline) inset;
  transition: color 0.3s, background-color 0.3s;
}
.lang-list li.is-on { color: #fff; background: rgba(31, 124, 240, 0.35); box-shadow: none; }

/* Privacy tile */
.tile--private {
  background: linear-gradient(160deg, #13261f 0%, #0e1a17 60%, #0b1210 100%);
}
.tile--private .big-glyph { color: var(--teal); }
.big-glyph {
  width: 64px; height: 64px;
  margin-bottom: 22px;
}

/* Snap tile */
.tile--snap .snap-shot {
  position: absolute;
  right: 36px; bottom: 0;
  width: 150px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 734px) {
  .tile--snap { padding-bottom: 320px !important; }
  .tile--snap .snap-shot { right: 50%; translate: 50% 0; }
  .monitors { position: relative; inset: auto; margin-top: 40px; padding: 0 0 24px; }
}

/* ---------- Closer look (tabs) ---------- */

.closer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.closer__tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.closer__tabs::-webkit-scrollbar { display: none; }
.closer__tab {
  flex: none;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.closer__tab:hover { color: var(--ink); }
.closer__tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.closer__panels { position: relative; }
.closer__panel {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.closer__panel[hidden] { display: none; }
.closer__panel.is-entering .closer__media,
.closer__panel.is-entering .closer__copy { animation: panel-in 0.7s var(--ease-out) both; }
.closer__panel.is-entering .closer__copy { animation-delay: 0.08s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.closer__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.closer__media img { width: 100%; }
.closer__media--contain { display: grid; place-items: center; padding: 24px; background: #dfe6ee; }
.closer__media--contain img { width: auto; max-height: 460px; border-radius: 12px; }
.closer__copy h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.closer__copy p { margin: 14px 0 0; color: var(--ink-2); }
.closer__copy p strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}
@media (max-width: 833px) {
  .closer__tabs { justify-content: flex-start; }
  .closer__panel { grid-template-columns: 1fr; }
}

/* ---------- Magnify playground ---------- */

.playground {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  height: clamp(300px, 36vw, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 20%, #9fc2e8 0%, transparent 70%),
    radial-gradient(60% 80% at 85% 30%, #c8d7ea 0%, transparent 70%),
    radial-gradient(80% 90% at 50% 110%, #5a7fae 0%, transparent 70%),
    #b8c7d9;
}
.playground__waves {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}
.playground__hint {
  position: absolute;
  top: 20px; left: 50%;
  translate: -50% 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.demo-dock {
  position: absolute;
  left: 50%; bottom: 60px;
  translate: -50% 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(32, 32, 34, 0.62);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 16px 40px rgba(20, 30, 50, 0.35);
}
.demo-dock__cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.demo-dock__cell:hover { background: rgba(255, 255, 255, 0.08); }
.demo-dock__cell .app {
  width: 34px; height: 34px;
  transform-origin: 50% 100%;
  transform: scale(var(--s, 1));
  transition: transform 0.12s ease-out;
}
.demo-dock.is-flat .demo-dock__cell .app { transform: none; }
.demo-dock__cell.is-running::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  width: 5px; height: 3px;
  translate: -50% 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}
.demo-dock__cell .tip {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  translate: -50% 4px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(40, 40, 42, 0.92);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, translate 0.2s var(--ease-out);
}
.demo-dock__cell:hover .tip,
.demo-dock__cell:focus-visible .tip { opacity: 1; translate: -50% 0; }
.demo-dock__sep { align-self: center; width: 1px; height: 30px; margin-inline: 4px; background: rgba(255, 255, 255, 0.2); }
.playground__toggle {
  position: absolute;
  right: 18px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.switch {
  position: relative;
  width: 40px; height: 22px;
  flex: none;
  border-radius: 999px;
  background: #b0b0b5;
  transition: background-color 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out);
}
.playground__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.playground__toggle input:checked + .switch { background: var(--blue); }
.playground__toggle input:checked + .switch::after { transform: translateX(18px); }
.playground__toggle input:focus-visible + .switch { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 734px) {
  .demo-dock { bottom: 64px; gap: 0; padding: 6px; }
  .demo-dock__cell { width: 40px; height: 40px; }
  .demo-dock__cell .app { width: 26px; height: 26px; }
  .playground__hint { font-size: 12px; }
}

/* ---------- App icons (drawn, used by the demos) ---------- */

.app { display: block; }

/* ---------- Split feature rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.split + .split { margin-top: clamp(88px, 12vw, 140px); }
.split--flip .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f1115;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
}
.split__media img { width: 100%; }
.split__copy .lede { font-size: clamp(17px, 1.6vw, 21px); }
.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.stage--night .feature-list,
.stage--night-2 .feature-list { border-top-color: var(--night-hairline); }
.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-2);
}
.stage--night .feature-list li,
.stage--night-2 .feature-list li { border-bottom-color: var(--night-hairline); color: var(--night-ink-2); }
.feature-list li strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.stage--night .feature-list li strong,
.stage--night-2 .feature-list li strong { color: var(--night-ink); }
.feature-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.stage--night .feature-list svg,
.stage--night-2 .feature-list svg { color: var(--link-night); }
@media (max-width: 833px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ---------- Edges (snap diagram) ---------- */

.edges {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(138, 77, 255, 0.45), transparent 70%),
    radial-gradient(60% 60% at 75% 75%, rgba(31, 124, 240, 0.45), transparent 70%),
    #0d0f16;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.edges__taskbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7%;
  background: rgba(30, 32, 38, 0.95);
}
.edges__dock {
  position: absolute;
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(40, 40, 44, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.9s var(--ease-out);
}
.edges__dock i { width: 16px; height: 16px; border-radius: 4px; background: var(--c); }
.edges[data-edge="float"] .edges__dock { left: 50%; top: 50%; translate: -50% -50%; }
.edges[data-edge="bottom"] .edges__dock { left: 50%; top: 84%; translate: -50% 0; }
.edges[data-edge="left"] .edges__dock { left: 2%; top: 46%; translate: 0 -50%; flex-direction: column; }
.edges[data-edge="top"] .edges__dock { left: 50%; top: 3%; translate: -50% 0; }
.edges[data-edge="right"] .edges__dock { left: 98%; top: 46%; translate: -100% -50%; flex-direction: column; }
.edges__label {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--night-ink);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Settings carousel ---------- */

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 760px);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 60px);
  padding: 0 max(var(--gutter), (100% - var(--wrap-wide)) / 2) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap-wide)) / 2);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: start;
  margin: 0;
}
.slide__frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #202020;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
}
.slide__frame img { width: 100%; aspect-ratio: 1000 / 740; object-fit: cover; object-position: top; }
.slide figcaption { padding: 18px 4px 0; font-size: 15px; color: var(--ink-2); }
.slide figcaption strong { color: var(--ink); font-weight: 600; }
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}
.round-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.round-btn:hover { background: rgba(0, 0, 0, 0.13); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn svg { width: 16px; height: 16px; }

/* ---------- Compare ---------- */

.compare {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--hairline);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.8fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.compare__head {
  position: sticky;
  top: var(--nav-h);
  z-index: 2;
  padding: 18px 0;
  background: rgba(245, 245, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.compare__head .is-us { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.compare__head .is-us img { width: 22px; height: 22px; }
.compare__row dt { font-weight: 600; }
.compare__row dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.compare__row dd.is-us { color: var(--ink); font-size: 17px; }
.compare__row dd.is-us b { font-weight: 600; }
@media (max-width: 734px) {
  .compare__head { display: none; }
  .compare__row { grid-template-columns: 1fr; gap: 6px; }
  .compare__row dd::before { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
  .compare__row dd:nth-of-type(1)::before { content: "Taskbar"; }
  .compare__row dd:nth-of-type(2)::before { content: "Anchor"; color: var(--blue); }
}

/* ---------- Privacy ---------- */

.privacy-hero { text-align: center; }
.privacy-hero .big-glyph { width: 88px; height: 88px; margin: 0 auto 28px; color: var(--teal); }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 7vw, 80px);
}
.pcard {
  padding: 32px 30px;
  border-radius: var(--radius-md);
  background: var(--night-card);
}
.pcard svg { width: 30px; height: 30px; color: var(--teal); }
.pcard h3 { margin: 18px 0 0; font-size: 21px; letter-spacing: -0.015em; }
.pcard p { margin: 8px 0 0; font-size: 15px; color: var(--night-ink-2); }
.pcard code { font-family: var(--mono); font-size: 13px; color: var(--night-ink); background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 5px; }
.network-log {
  margin-top: 20px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--night-card);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--night-ink-2);
  overflow-x: auto;
}
.network-log h3 { margin: 0 0 12px; font-family: var(--font); font-size: 17px; color: var(--night-ink); letter-spacing: -0.015em; }
.network-log p { margin: 0; white-space: nowrap; }
.network-log .ok { color: var(--teal); }
.network-log .off { color: #ff9f0a; }
.network-log .dim { color: #5c5c61; }
@media (max-width: 833px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- All the details ---------- */

.details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
  margin-top: clamp(48px, 7vw, 72px);
}
.detail svg { width: 30px; height: 30px; color: var(--ink); }
.detail h3 { margin: 14px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.detail p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); letter-spacing: -0.01em; }
@media (max-width: 1068px) { .details { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 734px) { .details { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; } }

/* ---------- Languages ribbon ---------- */

.ribbon {
  margin-top: clamp(48px, 7vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ribbon__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ribbon__track span {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}
.ribbon__track span:nth-child(3n + 2) { color: var(--ink-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Get Anchor ---------- */

.get {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(48px, 7vw, 72px);
}
.get__card {
  display: flex;
  flex-direction: column;
  padding: 44px 40px 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 12px 40px -12px rgba(0, 0, 0, 0.12);
}
.get__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.get__badge--grey { background: rgba(0, 0, 0, 0.06); color: var(--ink-2); }
.get__card h3 { margin: 18px 0 0; font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; }
.get__card > p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.get__card ul, .get__card ol { margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }
.get__card li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid rgba(0, 0, 0, 0.07); color: var(--ink-2); }
.get__card li strong { color: var(--ink); font-weight: 600; }
.get__card ul li::before {
  content: "";
  position: absolute;
  left: 3px; top: 15px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.get__card ol { counter-reset: step; }
.get__card ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 11px;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.get__card code { font-family: var(--mono); font-size: 13px; color: var(--ink); background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 5px; }
.get__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 22px 8px 16px;
  border-radius: 12px;
  background: #000;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.store-btn:hover { background: #1d1d1f; }
.store-btn:active { transform: scale(0.98); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store-btn small { font-size: 11px; font-weight: 400; opacity: 0.85; letter-spacing: 0; }
.get__note { margin: 20px 0 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 833px) {
  .get { grid-template-columns: 1fr; }
  .get__card { padding: 34px 26px 30px; }
}

/* ---------- Cheat sheet ---------- */

.cheats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 7vw, 72px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--night-hairline);
}
.cheat {
  padding: 28px 26px;
  background: var(--night-card);
}
.cheat__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 32px; }
.cheat__keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  background: #2c2c2e;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.5) inset, 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  font-size: 13px;
  font-weight: 500;
  color: var(--night-ink);
}
.cheat__keys span { font-size: 13px; color: var(--night-ink-2); }
.cheat h3 { margin: 16px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.cheat p { margin: 6px 0 0; font-size: 14px; color: var(--night-ink-2); }
@media (max-width: 1068px) { .cheats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cheats { grid-template-columns: 1fr; } }

/* ---------- Tech specs ---------- */

.specs { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--hairline); }
.spec {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec h3 { margin: 0; font-size: 21px; letter-spacing: -0.015em; }
.spec__body { font-size: 17px; }
.spec__body p { margin: 0; }
.spec__body p + p { margin-top: 8px; }
.spec__body .sub { color: var(--ink-2); font-size: 14px; }
.spec__body ul { margin: 0; padding-left: 18px; }
.spec__body li + li { margin-top: 4px; }
.spec__body code { font-family: var(--mono); font-size: 14px; background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 734px) { .spec { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- FAQ ---------- */

.faq { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 16px no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 48px 26px 0; color: var(--ink-2); }
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: 10px; }
.faq__a code { font-family: var(--mono); font-size: 14px; color: var(--ink); background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 5px; }
.faq details[open] .faq__a { animation: panel-in 0.45s var(--ease-out); }

/* ---------- Open source band ---------- */

.oss {
  text-align: center;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(138, 77, 255, 0.28), transparent 70%),
    var(--night);
}
.oss__logo { width: 96px; height: 96px; margin: 0 auto 30px; }
.support {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.support a {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--night-ink) !important;
  font-size: 14px;
  box-shadow: 0 0 0 1px var(--night-hairline) inset;
  text-decoration: none !important;
  transition: background-color 0.2s;
}
.support a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */

.footer {
  padding: 34px 0 30px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer__notes {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.footer__notes p { margin: 0; }
.footer__notes p + p { margin-top: 10px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.footer__cols h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.footer__cols ul { margin: 0; padding: 0; list-style: none; }
.footer__cols li + li { margin-top: 8px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 0; }
.footer__legal nav a { padding: 0 10px; border-left: 1px solid var(--hairline); }
.footer__legal nav a:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 734px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__screen { transform: none; }
  .statement .w { --lit: 1 !important; }
  .ribbon__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Document pages (privacy, 404) ---------- */

.doc-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 5vw, 56px); text-align: center; }
.doc-hero .lede { margin-inline: auto; }
.doc-meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.doc {
  width: min(720px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-bottom: clamp(80px, 10vw, 130px);
}
.doc h2 {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #333336; }
.doc p { margin: 16px 0 0; }
.doc ul, .doc ol { margin: 16px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc code { font-family: var(--mono); font-size: 14px; background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.doc strong { color: var(--ink); }
.doc-callout {
  margin: 0 0 40px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.doc-callout p { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--hairline) inset; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
.doc td { color: #333336; }

.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 60px var(--gutter);
  text-align: center;
  background:
    radial-gradient(50% 50% at 50% 100%, rgba(31, 124, 240, 0.28), transparent 70%),
    var(--night);
  color: var(--night-ink);
}
.notfound .headline { font-size: clamp(64px, 14vw, 160px); }
.notfound a { color: var(--link-night); }
