/* Clean Keyboard website. The palette comes from the app icon: a graphite
   tile with an electric-blue rim, a frosted blue glass key and a white swirl.
   The dirt map keeps the app's cyan, amber and ember; light sections use frost. */

:root {
  --ink: #0b1019;
  --ink-2: #111926;
  --ink-3: #172131;
  --hairline: rgba(255, 255, 255, 0.09);
  --text: #f4f8ff;
  --text-2: rgba(220, 230, 246, 0.68);
  --text-3: rgba(220, 230, 246, 0.44);
  --rim: #2167f9;
  --glass: #4c84d6;
  --glass-deep: #3e7aca;
  --glass-hi: #92c0fa;
  --accent: #8cc0fa;
  --amber: #ffcc4d;
  --ember: #ff663d;
  --frost: #edf1f8;
  --frost-ink: #0a0f1c;
  --frost-text-2: #4f586c;
  --fresh: linear-gradient(160deg, #a9cffc, #6ea3ec 45%, #3e7aca);
  --dirt: linear-gradient(90deg, #4dd6ff, #ffcc4d, #ff663d);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left), 4vw);
  --wrap: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  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, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }

sup { font-size: 0.55em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup a { color: inherit; opacity: 0.7; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 10px; background: var(--text); color: var(--ink);
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */

.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h);
  padding: 0 calc(var(--h) * 0.5);
  border: 0; border-radius: 999px;
  font: 500 17px/1 var(--font);
  letter-spacing: -0.01em;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #4b8ffc, #2167f9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 24px -8px rgba(33, 103, 249, 0.75);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px -8px rgba(33, 103, 249, 0.95); }
.btn:active { transform: scale(0.97); filter: brightness(0.95); }
.btn-large { --h: 54px; font-size: 18px; font-weight: 600; }
.btn-small { --h: 30px; font-size: 13px; padding: 0 14px; }
.btn-quiet {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.btn-quiet:hover { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.apple-glyph { width: 15px; height: 18px; margin-top: -3px; }

/* ---------- Local nav ---------- */

.localnav {
  position: sticky; top: 0; z-index: 50;
  height: 52px;
  background: rgba(9, 11, 18, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.localnav.scrolled { border-bottom-color: var(--hairline); }
.localnav-inner {
  height: 100%;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.localnav-title {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  font: 600 19px/1 var(--font-display); letter-spacing: -0.02em;
  margin-right: auto;
}
.localnav-title:hover { text-decoration: none; }
.localnav-title img { width: 28px; height: 28px; }
.localnav nav { display: flex; gap: 22px; }
.localnav nav a { color: var(--text-2); font-size: 13px; letter-spacing: -0.01em; }
.localnav nav a:hover { color: var(--text); text-decoration: none; }

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

.hero {
  position: relative;
  padding: clamp(56px, 9vh, 104px) var(--gutter) 72px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* The icon's blue rim light, glowing from the top. */
  content: ""; position: absolute; inset: -52px 0 0; z-index: -1;
  background:
    radial-gradient(80% 55% at 50% -8%, rgba(33, 103, 249, 0.34), rgba(33, 103, 249, 0.08) 55%, transparent 80%),
    radial-gradient(50% 30% at 50% 100%, rgba(146, 192, 250, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-icon {
  width: 96px; height: 96px; margin: 0 auto 28px;
  filter: drop-shadow(0 18px 40px rgba(33, 103, 249, 0.45));
}
.hero h1 {
  font-size: clamp(44px, 8.2vw, 96px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.nowrap { white-space: nowrap; }
.wipe-text {
  /* A band of light passes through the headline once, like a cloth. */
  background: linear-gradient(105deg, var(--text) 0 42%, #c4dcff 47%, #6fa6f2 50%, #c4dcff 53%, var(--text) 58% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* Clipped text is painted only inside the box, so make room for descenders. */
  padding-bottom: 0.14em; margin-bottom: -0.14em;
  animation: wipe-text 1.9s 0.35s var(--ease) both;
}
@keyframes wipe-text { from { background-position: 100% 0; } to { background-position: 0 0; } }

.hero-lede {
  max-width: 34em;
  margin: 24px auto 0;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.4;
  color: var(--text-2);
  letter-spacing: -0.015em;
}
.hero-actions { margin-top: 36px; display: grid; justify-items: center; gap: 14px; }
.hero-meta { font-size: 14px; color: var(--text-3); }

/* ---------- The MacBook deck ---------- */

.stage {
  margin: clamp(56px, 8vh, 88px) auto 0;
  max-width: 1120px;
  perspective: 2200px;
}
.deck {
  --r: clamp(14px, 2.4vw, 30px);
  position: relative;
  display: grid;
  grid-template-columns: 8.5% 1fr 8.5%;
  grid-template-rows: auto auto;
  column-gap: 1.6%;
  padding: 2.4% 2.4% 2.6%;
  border-radius: var(--r) var(--r) calc(var(--r) * 1.4) calc(var(--r) * 1.4);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(71, 144, 203, 0.16), transparent 60%),
    linear-gradient(180deg, #2a3342, #1b222e 60%, #151b25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 1px 0 #3a4250,
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 30px 120px -40px rgba(33, 103, 249, 0.45);
  transform-origin: 50% 100%;
  transform: rotateX(14deg);
  animation: deck-settle 1.6s 0.15s var(--ease) both;
}
@keyframes deck-settle {
  from { transform: rotateX(42deg) translateY(40px); opacity: 0; }
  to { transform: rotateX(14deg); opacity: 1; }
}
.grille {
  border-radius: 6px;
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.55) 0 0.9px, transparent 1.3px);
  background-size: 6px 6px;
  opacity: 0.9;
}
.well {
  padding: 1.1%;
  border-radius: calc(var(--r) * 0.45);
  background: #0a0e15;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.trackpad {
  grid-column: 1 / -1;
  justify-self: center;
  position: relative;
  width: 40%;
  aspect-ratio: 1.72;
  margin-top: 2.8%;
  border-radius: clamp(8px, 1.3vw, 16px);
  background: linear-gradient(180deg, #243041, #1b2330);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}
.trackpad canvas, .dirt-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trackpad.wiping { box-shadow: inset 0 0 0 1px rgba(146, 192, 250, 0.35), 0 0 30px -6px rgba(146, 192, 250, 0.4); }

/* ---------- Keyboard map ---------- */

.kb {
  --u: calc(100cqw / 14.5);
  --g: calc(var(--u) * 0.055);
  position: relative;
  container-type: inline-size;
  aspect-ratio: 14.5 / 5.62;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.kb:focus-visible { outline: 2px solid rgba(146, 192, 250, 0.55); outline-offset: calc(var(--u) * 0.35); border-radius: calc(var(--u) * 0.3); }
#hero-kb { cursor: crosshair; }

.key {
  position: absolute;
  left: calc(var(--x) * var(--u) + var(--g));
  top: calc(var(--y) * var(--u) + var(--g));
  width: calc(var(--w) * var(--u) - 2 * var(--g));
  height: calc(var(--h) * var(--u) - 2 * var(--g));
  border-radius: calc(var(--u) * 0.13);
  background: linear-gradient(180deg, #2b3240, #1c222c);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 calc(var(--u) * 0.03) 0 rgba(0, 0, 0, 0.6);
  color: rgba(235, 238, 245, 0.86);
  font-size: calc(var(--u) * 0.3);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s, transform 0.08s;
}
.key::after {
  /* The cleaned colour, faded in over the dark cap. */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 55%), var(--fresh);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.key > span { position: relative; z-index: 1; }
.key .c {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: calc(var(--u) * 0.36);
}
.key .sym { position: absolute; top: 14%; right: 14%; font-size: calc(var(--u) * 0.26); }
.key .word { position: absolute; bottom: 13%; left: 12%; font-size: calc(var(--u) * 0.2); }
.key.right .word { left: auto; right: 12%; }
.key.right .sym { right: auto; left: 14%; }
.key.left .sym { right: auto; left: 12%; }
.key.fn-row .c { font-size: calc(var(--u) * 0.22); }
.key.arrow .c { font-size: calc(var(--u) * 0.18); }
.key.power { opacity: 0.6; }
.key.power .c::before {
  content: ""; width: 38%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 calc(var(--u) * 0.02) rgba(255, 255, 255, 0.35);
}
.key.part-top { height: calc(var(--h) * var(--u) - var(--g)); border-bottom-right-radius: 0; }
.key.part-bottom {
  top: calc(var(--y) * var(--u) - 1px);
  height: calc(var(--h) * var(--u) - var(--g) + 1px);
  border-top-left-radius: 0; border-top-right-radius: 0;
  box-shadow: 0 calc(var(--u) * 0.03) 0 rgba(0, 0, 0, 0.6);
}
.key.part-top { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14); }

.key.lit::after, .key.sweep::after { opacity: 1; }
.key.lit, .key.sweep {
  color: #fff;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.4), 0 0 calc(var(--u) * 0.22) rgba(146, 192, 250, 0.45);
}
.key.sweep::after { transition: opacity 0.5s ease; }
.key.sweep:not(.lit) { box-shadow: 0 0 calc(var(--u) * 0.3) rgba(146, 192, 250, 0.35); }
.key.held { transform: translateY(calc(var(--u) * 0.025)); box-shadow: 0 0 calc(var(--u) * 0.4) rgba(146, 192, 250, 0.8); }
.key.part-top.lit, .key.part-bottom.lit { box-shadow: none; }

/* Dirt map colours, set per key from the scale. */
.key.dirt::after { background: var(--heat); opacity: var(--heat-a); transition: opacity 0.6s ease, background 0.6s; }
.key.dirt { color: #fff; box-shadow: 0 0 calc(var(--u) * 0.25) color-mix(in srgb, var(--heat) 45%, transparent); }
.key.dirt.part-top, .key.dirt.part-bottom { box-shadow: none; }

@container (max-width: 560px) {
  .key .word { display: none; }
  .key .sym { top: auto; right: auto; left: 50%; bottom: 50%; transform: translate(-50%, 50%); font-size: calc(var(--u) * 0.34); }
  .key.fn-row .c { font-size: calc(var(--u) * 0.2); }
}

/* ---------- Try it ---------- */

.try { margin-top: 36px; min-height: 40px; display: grid; justify-items: center; }
.try-hint { font-size: 15px; color: var(--text-2); }
.try-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.try-status[hidden] { display: none; }
.tally { font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tally strong { color: var(--text); font-weight: 600; }
.try-status .btn-small:first-of-type { margin-left: 6px; }
.try.complete .tally strong { color: var(--accent); }
.try.complete #try-done { animation: nudge 1.6s var(--ease) 2; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.07); } 60% { transform: scale(0.99); } }

/* ---------- Sections ---------- */

.section { padding: clamp(96px, 14vw, 160px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .lede { margin-inline: auto; }

h2 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h3 { font-size: 21px; line-height: 1.24; font-weight: 600; letter-spacing: -0.02em; }
.lede {
  max-width: 36em;
  margin-top: 20px;
  font-size: clamp(19px, 1.9vw, 21px);
  line-height: 1.42;
  color: var(--text-2);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* Light sections */
.frost {
  background: var(--frost);
  color: var(--frost-ink);
  color-scheme: light;
  padding: clamp(96px, 13vw, 150px) 0;
}
.frost .lede { color: var(--frost-text-2); }
.frost a { color: #1a56e8; }
.frost :focus-visible { outline-color: var(--rim); }

.pauses-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px 80px;
  align-items: center;
}
.paused-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
}
.paused-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(10, 15, 28, 0.09);
}
.paused-list li:last-child { border-bottom: 0; }
.paused-list svg, .promises svg, .tile-glyph {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: var(--rim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Ways out ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 20px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.tile-copy p { margin-top: 10px; color: var(--text-2); max-width: 32em; }
.tile-voice { grid-column: span 4; grid-row: span 2; min-height: 520px; }
.tile-timer, .tile-lid { grid-column: span 2; }
.tile-safe { grid-column: span 6; flex-direction: row; align-items: center; justify-content: flex-start; gap: 24px; padding: 28px 36px; }
.tile-safe .tile-glyph { width: 40px; height: 40px; stroke: var(--glass-hi); }
.tile-safe .tile-copy p { margin-top: 4px; }

.tile-voice {
  background:
    radial-gradient(90% 60% at 50% 30%, rgba(33, 103, 249, 0.28), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.listening {
  align-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14px; color: var(--text-2);
}
.bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--glass-hi); transform-origin: center; animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.2s; }
.bars i:nth-child(3) { animation-delay: -0.45s; }
.bars i:nth-child(4) { animation-delay: -0.7s; }
.bars i:nth-child(5) { animation-delay: -0.9s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.paused .bars i { animation-play-state: paused; }
.say {
  text-align: center;
  font: 700 clamp(34px, 4.6vw, 58px)/1.08 var(--font-display);
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff, #b9d7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
#say-phrase { display: inline-block; transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s var(--ease); }
#say-phrase.out { opacity: 0; filter: blur(6px); transform: translateY(6px); }

.ring { width: 132px; height: 132px; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 8; }
.ring-fill {
  fill: none; stroke: var(--glass-hi); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: 60px 60px;
  transition: stroke-dashoffset 0.9s linear;
  filter: drop-shadow(0 0 6px rgba(146, 192, 250, 0.5));
}
.ring text { fill: var(--text); font: 600 26px var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.lid { width: 150px; height: auto; overflow: visible; }
.lid-base { fill: #3a404d; }
.lid-screen rect { fill: #5a6273; }
.lid-screen {
  transform-origin: 40px 117px;
  transform: rotate(-105deg);
  transition: transform 1.4s var(--ease);
}
.tile-lid.closed .lid-screen { transform: rotate(0deg); }

/* ---------- Dirt map ---------- */

.summary {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(33, 103, 249, 0.16), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.summary-title { display: flex; align-items: center; gap: 14px; }
.summary-title img { width: 44px; height: 44px; }
.summary-title p { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px;
  margin: 32px 0 36px; padding: 0;
}
.stats div { margin: 0; }
.stats dt { font-size: 13px; color: var(--text-3); }
.stats dd { margin: 4px 0 0; font: 600 30px/1.1 var(--font-display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }

.dirt-board { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; }
.dirt-side { display: grid; gap: 22px; }
.dirt-pad {
  position: relative; aspect-ratio: 1.6;
  border-radius: 14px;
  background: linear-gradient(180deg, #263040, #1b222d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.legend { display: grid; gap: 6px; font-size: 13px; color: var(--text-3); }
.legend-scale { height: 8px; border-radius: 4px; background: var(--dirt); }
.legend-ends { display: flex; justify-content: space-between; }
.legend-none { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.legend-none i { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #2b3240, #1c222c); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2); }
.most { font-size: 15px; color: var(--text-2); }

/* ---------- Segmented control ---------- */

.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.segmented[hidden] { display: none; }
.segmented button {
  appearance: none; border: 0; cursor: pointer;
  padding: 7px 16px; border-radius: 999px;
  font: 500 14px/1.2 var(--font); letter-spacing: -0.01em;
  color: var(--text-2); background: transparent;
  transition: background 0.25s var(--ease), color 0.25s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.segmented-center { display: flex; width: fit-content; margin: 0 auto 48px; }

.shape-stage {
  max-width: 900px; margin: 0 auto;
  padding: clamp(10px, 1.6vw, 18px);
  border-radius: clamp(14px, 2vw, 24px);
  background: #0a0e15;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -40px rgba(33, 103, 249, 0.5);
}
.shape-caption { margin-top: 28px; text-align: center; color: var(--text-3); font-size: 15px; min-height: 1.5em; }

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

.promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px;
}
.promises h3 { margin-top: 18px; font-size: 19px; }
.promises p { margin-top: 8px; color: var(--frost-text-2); font-size: 16px; }
.promises svg { width: 34px; height: 34px; }

/* ---------- Guide ---------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(400px, 80vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
  padding: 4px max(var(--gutter), (100vw - var(--wrap)) / 2) 24px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.card {
  scroll-snap-align: start;
  padding: 0 28px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0f1424, var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.card img { margin: 0 -28px 8px; width: calc(100% + 56px); max-width: none; aspect-ratio: 3 / 2; object-fit: cover; }
.card p:not(.mode) { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.mode { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.mode::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glass-hi); box-shadow: 0 0 8px var(--glass-hi); }
.mode.off::before { background: var(--amber); box-shadow: 0 0 8px rgba(255, 204, 77, 0.7); }

/* ---------- Reminder ---------- */

.reminder-grid { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; }
.notification {
  border-radius: 22px;
  background: rgba(60, 66, 82, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}
.reminder-grid > .notification::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(closest-side, rgba(33, 103, 249, 0.5), transparent);
}
.notification-body { display: flex; gap: 12px; padding: 14px 16px; }
.notification-body img { width: 38px; height: 38px; flex: none; }
.n-app { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.n-title { font-size: 15px; font-weight: 600; margin-top: 1px; }
.n-text { font-size: 15px; color: var(--text-2); }
.n-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.n-actions span { padding: 11px 8px; text-align: center; font-size: 14px; font-weight: 500; }
.n-actions span + span { border-left: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- Download ---------- */

.cta {
  position: relative;
  padding: clamp(110px, 15vw, 180px) var(--gutter);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 50% 40%, rgba(33, 103, 249, 0.3), transparent 70%);
}
.cta-icon { width: 160px; height: 160px; margin: 0 auto 36px; filter: drop-shadow(0 24px 60px rgba(33, 103, 249, 0.55)); }
.cta h2 { max-width: 13em; margin: 0 auto 40px; }
.cta-meta { margin-top: 20px; font-size: 14px; color: var(--text-3); line-height: 1.6; }

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

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--hairline);
  background: #07080d;
  font-size: 12px; line-height: 1.5; color: var(--text-3);
  letter-spacing: -0.005em;
}
.footnotes { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.footnotes a { color: var(--text-2); }
.footer-base { display: grid; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.footer-links a { color: var(--text-2); }
.footer-links a[aria-current="page"] { color: var(--text); }
.footnotes + .footer-links { margin-top: 28px; }

/* ---------- Legal pages ---------- */

.doc {
  width: min(720px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0 clamp(80px, 12vw, 140px);
}
.doc-head h1 {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.doc-date { margin-top: 12px; color: var(--text-3); font-size: 15px; }
.doc-summary {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 19px; line-height: 1.45; letter-spacing: -0.015em;
}
.doc section { margin-top: 56px; }
.doc h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; }
.doc h3 { margin-top: 28px; font-size: 19px; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: 12px; }
.doc h3 + p { margin-top: 6px; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc-facts { margin: 0; display: grid; border-top: 1px solid var(--hairline); }
.doc-facts div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.doc-facts dt { color: var(--text-3); }
.doc-facts dd { margin: 0; }



@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-voice { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .tile-timer, .tile-lid { grid-column: span 1; }
  .tile-safe { grid-column: 1 / -1; }
  .promises { grid-template-columns: 1fr 1fr; }
  .dirt-board { grid-template-columns: 1fr; }
  .dirt-side { grid-template-columns: 220px 1fr; align-items: center; }
  .dirt-side .most { grid-column: 1 / -1; }
  .reminder-grid { grid-template-columns: 1fr; }
  .reminder-grid .notification { max-width: 420px; }
}

@media (max-width: 740px) {
  body { font-size: 16px; }
  .doc-facts div { grid-template-columns: 1fr; gap: 2px; }
  .localnav nav { display: none; }
  .hero-icon { width: 76px; height: 76px; margin-bottom: 22px; }
  .stage { margin-inline: calc(-1 * var(--gutter) + 6px); }
  .deck { grid-template-columns: 1fr; padding: 3%; transform: rotateX(8deg); animation-name: deck-settle-small; }
  .grille { display: none; }
  .trackpad { width: 52%; margin-top: 4%; }
  .pauses-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 44px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile { padding: 28px; border-radius: 24px; }
  .tile-voice { min-height: 380px; }
  .tile-timer, .tile-lid, .tile-safe { grid-column: 1 / -1; }
  .tile-safe { flex-direction: column; align-items: flex-start; padding: 28px; }
  .stats { gap: 24px; }
  .stats dd { font-size: 24px; }
  .dirt-side { grid-template-columns: 1fr; }
  .dirt-pad { max-width: 260px; }
  .promises { grid-template-columns: 1fr; gap: 32px; }
  .segmented button { padding: 7px 12px; }
  .cta-icon { width: 120px; height: 120px; }
}
@keyframes deck-settle-small {
  from { transform: rotateX(36deg) translateY(30px); opacity: 0; }
  to { transform: rotateX(8deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wipe-text { animation: none; background-position: 0 0; }
  .deck { animation: none; }
  .bars i { animation: none; transform: scaleY(0.6); }
  .lid-screen, .ring-fill, #say-phrase, .key, .key::after { transition: none; }
  .try.complete #try-done { animation: none; }
}

/* ---------- Not found ---------- */

.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; }
.not-found h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; }
.not-found .lede { margin-inline: auto; }
.not-found-action { margin-top: 36px; }
