/*
 * Landing page. Surfaces that depict the running app use --app-* graphite so the
 * wheel and loading indicator match the product. Accent is Lightphrase orange (#f54e00).
 *
 * Note: DESIGN.md's ban on blur/shadow is scoped by .cursor/rules/design.mdc to
 * src/renderer/src/** — the desktop UI — and does not govern this page.
 */

/* ---------------------------------------------------------------- fonts */

/*
 * San Francisco is not redistributable as a webfont, so it comes from the system: -apple-system
 * and BlinkMacSystemFont resolve to real SF Pro Display on macOS and iOS. Geist is bundled as
 * the fallback for everyone else, because Apple's own fallback (Helvetica/Arial) reads nothing
 * like SF. Headings use 700/600; body stays 400.
 */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens */

:root {
  --paper: #ffffff;
  --white: #ffffff;
  --grey: #f5f5f7;
  --black: #000000;
  --ink: #19191d;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --muted: #5f616b;
  --separator: #d2d2d7;
  --hairline: rgb(0 0 0 / 0.07);
  --accent: #f54e00;
  --accent-hover: #ff6428;
  --accent-active: #d04200;
  --on-accent: #ffffff;

  /*
   * The page's only gradients, reserved for header titles (background-clip: text).
   * Everything else — sections, cards, buttons — is a flat colour.
   */
  --grad-title: linear-gradient(to right in oklab, #19191d 0%, #626275 100%);
  --grad-accent: linear-gradient(100deg, #d04200 0%, #f54e00 55%, #ff8f4d 100%);

  /* The running app, kept true to theme.css. */
  --app-canvas: #0c0c0e;
  --app-raised: #111114;
  --app-surface: #161619;
  --app-surface-strong: #1d1d21;
  --app-ink: #f4f3ef;
  --app-muted: #92908a;
  --app-muted-soft: #6f6d68;
  --app-hairline: rgb(255 255 255 / 0.09);
  --app-hairline-strong: rgb(255 255 255 / 0.16);
  --app-selection: rgb(245 78 0 / 0.55);

  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist Variable",
    "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Geist Mono Variable", "Cascadia Mono",
    monospace;

  --r-card: 18px;
  --r-large: 28px;
  --r-pill: 980px;

  --gutter: 22px;
  --band: 120px;
  --content: 980px;
  --content-wide: 1200px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);

  color-scheme: light;
}

/* ---------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--app-selection);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgb(245 78 0 / 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  transform: translateY(-250%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ------------------------------------------------------------ typography */

.display-hero {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero-line {
  display: block;
}

.hero-phrase {
  position: relative;
  display: block;
  max-width: 100%;
  isolation: isolate;
  margin-inline: auto;
  text-align: center;
}

.hero-phrase__stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: start;
  width: 100%;
}

.hero-phrase__from,
.hero-phrase__to {
  grid-area: 1 / 1;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
  hyphens: none;
}

.hero-phrase__from {
  position: relative;
  opacity: 1;
  animation: hero-from 6.4s var(--ease) infinite;
}

.hero-phrase__to {
  opacity: 0;
  background: var(--grad-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hero-to 6.4s var(--ease) infinite;
}

.hero-phrase__mark {
  position: absolute;
  z-index: 0;
  inset: 0.08em -0.14em 0.04em;
  border-radius: 6px;
  background: rgb(245 78 0 / 0.2);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  animation: hero-mark 6.4s var(--ease) infinite;
}

.hero-phrase__cursor {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  animation: hero-cursor 6.4s var(--ease) infinite;
}

.hero-phrase__cursor img {
  display: block;
  width: 28px;
  height: 28px;
}

.hero-phrase[data-paused] .hero-phrase__from,
.hero-phrase[data-paused] .hero-phrase__to,
.hero-phrase[data-paused] .hero-phrase__mark,
.hero-phrase[data-paused] .hero-phrase__cursor {
  animation: none;
}

.hero-phrase[data-paused] .hero-phrase__from {
  opacity: 0;
}

.hero-phrase[data-paused] .hero-phrase__to {
  opacity: 1;
}

.hero-phrase[data-paused] .hero-phrase__mark,
.hero-phrase[data-paused] .hero-phrase__cursor {
  opacity: 0;
}

@keyframes hero-from {
  0%,
  16% {
    opacity: 1;
  }
  20%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-to {
  0%,
  16% {
    opacity: 0;
  }
  20%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-mark {
  0%,
  6% {
    transform: scaleX(0);
    opacity: 0;
  }
  10%,
  16% {
    transform: scaleX(1);
    opacity: 1;
  }
  20%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes hero-cursor {
  0%,
  5.5% {
    left: 0%;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  6.5% {
    left: 0%;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  10%,
  16% {
    left: 100%;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  20%,
  100% {
    left: 100%;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

.grad-accent {
  background: var(--grad-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Section titles carry the page's other gradient: a quiet ink-to-grey sweep. */
.display-section {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.023em;
  text-wrap: balance;
  background: var(--grad-title);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Apple's "intro" copy: large, regular weight, secondary colour, sits under a headline. */
.intro {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.1875rem, 2.1vw, 1.5rem);
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.004em;
  text-wrap: pretty;
}

.title {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}

.title-sm {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -0.022em;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}

.body-copy {
  color: var(--secondary);
  font-size: 1.0625rem;
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

.caption {
  color: var(--tertiary);
  font-size: 0.875rem;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.footnote {
  color: var(--tertiary);
  font-size: 0.75rem;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  letter-spacing: 0;
}

.center {
  margin-inline: auto;
  text-align: center;
}

.center .intro {
  margin-inline: auto;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: var(--content-wide);
}

/*
 * One continuous paper surface. Sections are separated by a 1px hairline and
 * whitespace, so the page reads as a single sheet with no visible breaks.
 */
.band {
  padding-block: var(--band);
}

.band + .band {
  padding-top: 48px;
}

/* The hero keeps its full breathing room before the first band. */
.hero + .band {
  padding-top: var(--band);
}

/* The hairline between bands — the only separation device on the page. */
.rule {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--content-wide) - 2 * var(--gutter));
  height: 1px;
  margin-inline: auto;
  border: 0;
  background: var(--hairline);
}

.band-head {
  margin-bottom: 48px;
}

/* Privacy-page hero intro lives in .band-head. Landing hero uses .hero__copy .intro. */
.band-head .intro {
  margin-top: 20px;
}

/* --------------------------------------------------------------- brand */

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brandmark__logo {
  display: block;
  width: auto;
  height: 22px;
}

.brandmark__tile {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--app-surface-strong);
  color: var(--app-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brandmark__dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.brandmark__word {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.site-footer .brandmark__word {
  color: var(--ink);
}

/* --------------------------------------------------- buttons, Apple pills */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.23536;
  letter-spacing: -0.022em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: #2a2a30;
}

.btn--primary:active {
  background: var(--black);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.btn--secondary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--small {
  min-height: 32px;
  padding: 5px 16px;
  font-size: 0.875rem;
}

/*
 * The Get CTA: accent orange pill. Class names are kept because nav.js
 * rewrites the label and icon per platform.
 */
.shiny-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 16px 8px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    transform 160ms var(--ease);
}

.shiny-btn:hover {
  background: var(--accent-hover);
}

.shiny-btn:active {
  transform: scale(0.97);
  background: var(--accent-active);
}

.shiny-btn__icon {
  display: inline-flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  color: #fff;
}

.shiny-btn__icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: #fff;
}

.shiny-btn__icon:empty {
  display: none;
}

.shiny-btn__label {
  display: block;
}

/* Apple's inline call to action: accent text plus a chevron. */
.btn--link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 1.0625rem;
  cursor: pointer;
}

.btn--link:hover {
  text-decoration: underline;
}

.btn--link::after {
  content: "›";
  font-size: 1.35em;
  line-height: 0.8;
  translate: 0 -0.04em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.center .cta-row {
  justify-content: center;
}

.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
}

.waitlist[hidden] {
  display: none;
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.waitlist__field {
  flex: 1 1 180px;
}

.waitlist input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--separator, rgb(0 0 0 / 0.12));
  border-radius: 980px;
  background: var(--card, #fff);
  color: inherit;
  font: inherit;
}

.waitlist input[type="email"]:focus {
  outline: 2px solid var(--accent, #f54e00);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- keycaps */

.keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 30px;
  padding-inline: 9px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  transition:
    background-color 140ms var(--ease),
    transform 140ms var(--ease);
}

.keycap[data-pressed="true"] {
  background: var(--grey);
  transform: translateY(1px);
}

.keys__plus {
  color: var(--tertiary);
  font-size: 12px;
}

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

/* Absolute over the hero — scrolls away. The Get CTA sticks separately. */
.nav {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  opacity: 0.88;
  transition: opacity 160ms var(--ease);
}

.nav__link:hover {
  opacity: 1;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__cta {
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--grey);
  color: var(--ink);
  cursor: pointer;
}

/* Cluely-style floating Get button — fixed top-right after the nav scrolls away. */
.float-cta {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 280ms var(--ease),
    transform 280ms var(--ease);
}

.float-cta[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: min(52rem, 100%);
}

.hero__copy .intro {
  margin-top: 20px;
}

.hero-seats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 22px;
}

.hero-seats__count {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-seats__slash {
  margin-inline: 0.16em;
  font-weight: 500;
  color: var(--tertiary);
}

.hero-seats__label {
  color: var(--tertiary);
  font-size: 0.9375rem;
  letter-spacing: -0.016em;
}

.hero-seats[data-full] .hero-seats__count {
  color: var(--accent, #f54e00);
}

.hero .cta-row {
  margin-top: 28px;
}

.hero__note {
  margin-top: 20px;
  max-width: 32rem;
}

.center .hero__note {
  margin-inline: auto;
}

.hero__note strong {
  font-weight: 600;
  color: var(--secondary);
}

/* ---------------------------------------------------- the hero demo stage */

.demo {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-top: clamp(48px, 6vw, 72px);
}

/*
 * The orange grid dissolves into the paper: fully present beside the frame, then a
 * long soft falloff so no edge of the canvas is ever visible. Top inset stays at 0
 * so the halo cannot climb into the Download button.
 */
.demo__grid {
  position: absolute;
  z-index: 0;
  inset: 8% -18% -42% -18%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 60%, #000 18%, transparent 64%);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 60%, #000 18%, transparent 64%);
}

.flickering-grid__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.demo__frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--r-large);
  background: var(--white);
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.04),
    0 12px 40px rgb(0 0 0 / 0.08);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* The mock chrome is the OTHER app you were typing in, not Lightphrase. */
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--grey);
}

.demo__dots {
  display: flex;
  gap: 7px;
}

.demo__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8d8dc;
}

.demo__tab {
  color: var(--tertiary);
  font-size: 0.8125rem;
}

.demo__stage {
  position: relative;
  min-height: 430px;
  padding: clamp(28px, 4vw, 52px);
  cursor: crosshair;
}

.demo__field {
  max-width: 44rem;
}

.demo__to {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--separator);
  color: var(--tertiary);
  font-size: 0.875rem;
}

.demo__to strong {
  color: var(--secondary);
  font-weight: 500;
}

.demo__body {
  padding-top: 24px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
}

/* The selection, using the real ::selection wash from the app. */
.demo__sel {
  border-radius: 3px;
  background: var(--app-selection);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color 220ms linear;
}

.demo__frame[data-state="replaced"] .demo__sel {
  background: transparent;
}

.demo__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  translate: 0 0.16em;
  background: var(--ink);
  opacity: 0;
}

.demo__frame[data-state="replaced"] .demo__caret {
  opacity: 1;
  animation: caret-blink 1100ms steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.demo__hint {
  position: absolute;
  right: clamp(28px, 4vw, 52px);
  bottom: clamp(22px, 3vw, 34px);
  left: clamp(28px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tertiary);
  font-size: 0.875rem;
}

.demo__hint-keys {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.demo__replay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms linear;
}

.demo__frame[data-state="replaced"] .demo__replay,
.demo__frame[data-state="copied"] .demo__replay {
  opacity: 1;
  pointer-events: auto;
}

/* The ghost pointer that performs the gesture once, unprompted, on first view. */
.demo__ghost {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 24px;
  height: 24px;
  margin: -3px 0 0 -3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms linear;
}

.demo__ghost[data-visible="true"] {
  opacity: 1;
}

/* ------------------------------------------------------- the action wheel */

/*
 * A straight port of src/renderer/src/lib/radial.ts, lib/wheel-layout.ts and radial-menu.tsx:
 * 360x360 art square, R_INNER 58, R_TILE 103, slice 0 centred at twelve running clockwise, and the
 * art square itself inset to WHEEL_PLATE_RATIO of its container so the outward label pills have
 * room. There is no plate — the cluster is separate opaque chips, each carrying its own hairline
 * and shadow, which is what keeps it readable over an arbitrary backdrop.
 */
.wheel {
  --wheel-chip: #ffffff;
  --wheel-chip-muted: #f2f2f7;
  --wheel-badge: #e5e5ea;
  --wheel-hub-fill: transparent;
  --wheel-ring: rgb(130 130 138 / 0.45);
  --wheel-track: rgb(130 130 138 / 0.34);
  --wheel-rim: rgb(0 0 0 / 0.11);
  --wheel-ink: #1d1d1f;
  --wheel-muted: rgb(60 60 67 / 0.6);
  --wheel-accent: #f54e00;
  /* The hairline is deliberately heavier than any other border here; see DESIGN.md. */
  --wheel-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.16), 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.1);

  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  container-type: size;
}

.wheel-art {
  /* 1cqmin is ONE PERCENT of the container: the art square is 80cqmin, a viewBox unit is that
     over 360. */
  --u: calc(80cqmin / 360);
  --tile: calc(42.5 * var(--u));
  /* 2 * R_HUB_RING — the drawn ring's diameter, so the cancel chip lands exactly on it. */
  --hub: calc(60 * var(--u));
  --pill-gap: calc(6 * var(--u));
  --pill-radius: calc(999 * var(--u));
  --pill-max: calc(102.75 * var(--u));

  position: absolute;
  left: 50%;
  top: 50%;
  width: 80cqmin;
  height: 80cqmin;
  transform: translate(-50%, -50%);
  font-size: max(9.5px, calc(13 * var(--u)));
  letter-spacing: -0.006em;
  color: var(--wheel-ink);
}

.wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Fades as one — cone, track and hub — when the pick is committed. */
  transition: opacity 120ms var(--ease);
}

/*
 * The dead-zone ring is hollow, and its stroke is a neutral mid-tone: it is the one mark with
 * nothing opaque behind it, and it has to survive both a white page and a dark one.
 */
.wheel-hub {
  fill: var(--wheel-hub-fill);
  stroke: var(--wheel-ring);
  stroke-width: 1;
  transform-origin: 180px 180px;
  transition:
    stroke 160ms var(--ease),
    stroke-width 160ms var(--ease),
    opacity 160ms var(--ease);
}

/* Lights with the selection; only viable because the ring is drawn well inside the dead zone. */
.wheel-hub[data-lit="true"] {
  stroke: var(--wheel-accent);
  stroke-width: 2;
}

/*
 * The cancel X, in the hub. Clicking the dead zone cancels the wheel, and this is the mark that says
 * so. Unfilled at rest, in the ring's own mid-grey — like the ring, it has nothing opaque behind it,
 * and dark ink vanished over a dark backdrop. It takes a surface only while the pointer is in the
 * dead zone, where it wears the chip fill and shadow a tile does. Mirrors wheel-paint.css.
 */
.wheel-cancel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* The ring's own diameter, so the two cross-fade in place instead of doubling up. */
  width: var(--hub);
  height: var(--hub);
  border-radius: 50%;
  color: var(--wheel-ring);
  transition:
    background 160ms var(--ease),
    box-shadow 160ms var(--ease),
    color 160ms var(--ease),
    opacity 120ms var(--ease);
}

/* Smaller than a tile's icon (19.5): a small mark inside the ring, not a fifth action. */
.wheel-cancel-icon {
  width: calc(17 * var(--u));
  height: calc(17 * var(--u));
}

/* In the dead zone: the hollow ring hands over to a chip and the X steps up to full ink. */
.wheel[data-hot="true"] .wheel-cancel {
  background: var(--wheel-chip);
  box-shadow: var(--wheel-shadow);
  color: var(--wheel-ink);
}

.wheel[data-hot="true"] .wheel-hub {
  opacity: 0;
}

/* The tiles are centred on this radius, so the line passes through them and shows only between. */
.wheel-track {
  fill: none;
  stroke: var(--wheel-track);
  stroke-width: 1;
}

.wheel-chips {
  position: absolute;
  inset: 0;
}

/*
 * A satellite is a zero-sized anchor at its tile's centre, so the tile lands exactly on the radius
 * regardless of how wide the pill beside it turns out to be.
 */
.wheel-sat {
  position: absolute;
  width: 0;
  height: 0;
  transition:
    opacity 120ms var(--ease),
    transform 120ms var(--ease);
}

/*
 * The bloom, mirroring wheel-paint.css: 150ms per chip, 8ms later than its neighbour. Scoped to the
 * hero layer while it is open — renderWheel keeps the DOM between opens, so this is what replays
 * it — and so the static rest wheel never blooms. `backwards`, never `both`: see the app file.
 */
.wheel-layer[data-open="true"] .wheel-sat {
  animation: wheel-sat-in 150ms var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 8ms);
}

.wheel-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: calc(11 * var(--u));
  background: var(--wheel-chip);
  box-shadow: var(--wheel-shadow);
  /* Full ink, not the muted tone: at this size an icon is the only thing identifying the action. */
  color: var(--wheel-ink);
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.wheel-icon {
  width: calc(19.5 * var(--u));
  height: calc(19.5 * var(--u));
}

.wheel-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  max-width: var(--pill-max);
  padding: calc(4 * var(--u)) calc(7 * var(--u));
  border-radius: var(--pill-radius);
  background: var(--wheel-chip);
  box-shadow: var(--wheel-shadow);
  white-space: nowrap;
  font-weight: 500;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease);
}

.wheel-pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The badge sits on the pill's outer edge, so it is always the element furthest from the hub. */
.wheel-sat[data-side="left"] .wheel-pill {
  flex-direction: row-reverse;
}

/* Pills always hang off the side that points away from the hub, so the cluster radiates outward. */
.wheel-sat[data-side="right"] .wheel-pill {
  left: calc(var(--tile) / 2 + var(--pill-gap));
  top: 50%;
  transform: translateY(-50%);
}

.wheel-sat[data-side="left"] .wheel-pill {
  right: calc(var(--tile) / 2 + var(--pill-gap));
  top: 50%;
  transform: translateY(-50%);
}

.wheel-sat[data-side="above"] .wheel-pill {
  bottom: calc(var(--tile) / 2 + var(--pill-gap));
  left: 50%;
  transform: translateX(-50%);
}

.wheel-sat[data-side="below"] .wheel-pill {
  top: calc(var(--tile) / 2 + var(--pill-gap));
  left: 50%;
  transform: translateX(-50%);
}

.wheel-kbd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(11 * var(--u));
  padding: 0 calc(3 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--wheel-badge);
  color: var(--wheel-muted);
  font-size: calc(7.6 * var(--u));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease);
}

/* The selected chip is the one filled shape on screen. See DESIGN.md on the contrast tradeoff. */
.wheel-sat[data-selected="true"] .wheel-tile,
.wheel-sat[data-selected="true"] .wheel-pill {
  background: var(--wheel-accent);
  color: #ffffff;
}

.wheel-sat[data-selected="true"] .wheel-kbd {
  background: rgb(255 255 255 / 0.22);
  color: #ffffff;
}

/* The hovered tile lifts; the pill stays anchored. Mirrors wheel-paint.css. */
.wheel-sat[data-selected="true"] .wheel-tile {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Hold: the hub breathes until the pointer lifts. */
.wheel[data-phase="hold"] .wheel-hub {
  animation: wheel-hub-hold 1400ms ease-in-out infinite;
}

/* Sticky: the digits are a real way to pick now, so the badges step up to ink. */
.wheel[data-phase="sticky"] .wheel-sat:not([data-selected="true"]) .wheel-kbd {
  color: var(--wheel-ink);
}

/* The confirm: the selected chip stays and lifts, everything else dissolves. */
.wheel[data-committed="true"] .wheel-sat {
  animation: none;
}

.wheel[data-committed="true"] .wheel-sat:not([data-selected="true"]) {
  opacity: 0;
  transform: scale(0.94);
}

.wheel[data-committed="true"] .wheel-svg {
  opacity: 0;
}

/* The pick is made, so the way out goes with everything else that was not chosen. */
.wheel[data-committed="true"] .wheel-cancel {
  opacity: 0;
}

.wheel[data-committed="true"] .wheel-sat[data-selected="true"] .wheel-tile {
  transform: translate(-50%, -50%) scale(1.08);
  transition-duration: 140ms;
}

/*
 * The cone is a single rotated shape, so the selection travels between slices instead of jumping.
 * Soft wash, not a solid wedge — the selected chip already carries full-strength accent.
 */
.wheel-selection {
  transform-origin: 180px 180px;
  transition:
    transform 220ms var(--ease),
    opacity 160ms var(--ease);
}

.wheel-selection path {
  fill-opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
  .wheel-layer[data-open="true"] .wheel-sat,
  .wheel[data-phase="hold"] .wheel-hub {
    animation: none;
  }

  .wheel-selection,
  .wheel-svg,
  .wheel-hub,
  .wheel-sat,
  .wheel-tile,
  .wheel-pill,
  .wheel-kbd,
  .wheel-cancel,
  .rp-dot {
    transition: none;
  }

  .wheel-sat[data-selected="true"] .wheel-tile,
  .wheel[data-committed="true"] .wheel-sat[data-selected="true"] .wheel-tile {
    transform: translate(-50%, -50%);
  }
}

/* The wheel as it appears over your work: placed at the pointer. */
.wheel-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* The window, not the art square: WHEEL_VIEWBOX / WHEEL_PLATE_RATIO = 450. */
  width: 450px;
  height: 450px;
  margin: -225px 0 0 -225px;
  visibility: hidden;
  pointer-events: none;
}

.wheel-layer[data-open="true"] {
  visibility: visible;
  animation: wheel-in 180ms var(--ease);
}

@keyframes wheel-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Only a `from`: the end state is the chip's own, so the confirm can take over mid-bloom. */
@keyframes wheel-sat-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes wheel-hub-hold {
  0%,
  100% {
    transform: scale(1);
    stroke-opacity: 1;
  }
  50% {
    transform: scale(1.05);
    stroke-opacity: 0.7;
  }
}

/*
 * -------------------------------------- loading indicator, ported from overlay.css
 *
 * Note the drift: the app's loader is eight tapered spokes (NSProgressIndicator); this one is still
 * a twelve-dot ring. Only the motion below is mirrored here.
 */

.rp-loader {
  --rp-accent: 245 78 0;
  --rp-size: 30px;
  --rp-dot-size: 5px;
  --rp-radius: 12px;
  --rp-arc: 1;

  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: var(--rp-size);
  height: var(--rp-size);
  margin-top: calc(var(--rp-size) / -2);
  margin-left: calc(var(--rp-size) / -2);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms var(--ease);
}

.rp-loader[data-visible="true"] {
  opacity: 1;
  transform: scale(1);
}

.rp-spin {
  position: absolute;
  inset: 0;
  animation: rp-spin 900ms linear infinite paused;
}

.rp-loader[data-visible="true"] .rp-spin {
  animation-play-state: running;
}

.rp-dot {
  --i: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--rp-dot-size);
  height: var(--rp-dot-size);
  margin-left: calc(var(--rp-dot-size) / -2);
  margin-top: calc(var(--rp-dot-size) / -2);
  border-radius: 50%;
  background: rgb(var(--rp-accent) / calc(var(--rp-arc) * (1 - var(--i) / 12)));
  transform: rotate(calc(var(--i) * 30deg)) translateY(calc(var(--rp-radius) * -1));
  transition: background-color 240ms var(--ease);
}

/* Done: the tail flattens to a full ring as the loader fades, as the app's does when a rewrite lands. */
.rp-loader[data-done="true"] .rp-dot {
  background: rgb(var(--rp-accent));
  transition-duration: 120ms;
}

.rp-loader[data-done="true"] .rp-spin {
  animation-play-state: paused;
}

@keyframes rp-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes rp-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ------------------------------------------------------------ privacy */

/*
 * The four plain-language cards under the policy hero. They summarise; the
 * numbered sections below them are what actually governs.
 */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.privacy-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 26px 28px 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--white);
}

.privacy-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgb(245 78 0 / 0.08);
  color: var(--accent);
}

.privacy-item__title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.014em;
}

.privacy-item p {
  margin: 0;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.legal-summary__lead {
  margin-bottom: 0;
}

.band-foot {
  margin-top: 48px;
}

/* ----------------------------------------------------------- legal page */

/* The header is absolute, so the top pad has to clear it on a phone too. */
.page-hero {
  padding-block: clamp(72px, 7vw, 88px) 8px;
}

.page-hero .band-head {
  margin-bottom: 0;
}

.page-hero .display-hero {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}

/* Effective, updated, and scope as three labelled pairs rather than one run-on line. */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  max-width: 46em;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.legal-meta__pair dt {
  color: var(--tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-meta__pair dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/*
 * Reading progress for the policy. Fills as the page scrolls and stays at zero
 * width with JavaScript off, so it never draws a bar it cannot move.
 */
.read-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ----------------------------------------------------------- download */

.download__note {
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
}

.download__file {
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* Empty until the platform is known, so it must not open a gap in the grid. */
.download__file:empty {
  display: none;
}

.download__card .btn {
  margin-top: 4px;
  /* A comfortable pill, but never wider than the card it sits in. */
  min-width: min(260px, 100%);
}

/* The button is disabled, so the reason sits directly under it rather than in the label. */
.download__status {
  color: var(--tertiary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.download__others {
  /* Same column as the card above it. */
  width: min(100%, 540px);
}

/* The site's own link-button idiom, so the chevron matches every other one on the page. */
.download__others > summary {
  /* .btn--link is inline-flex, which ignores the auto margins that centre it. */
  display: flex;
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  list-style: none;
}

.download__others > summary::-webkit-details-marker {
  display: none;
}

.download__others > summary::after {
  transition: rotate 200ms var(--ease);
}

.download__others[open] > summary::after {
  rotate: 90deg;
}

.download__others > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.download__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.download__list li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 22px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--white);
  text-align: left;
}

/* The live installer sits full-width above the in-development pair. */
.download__list li[data-available="true"] {
  grid-column: 1 / -1;
}

/* Lifted into the card above, so it would only repeat itself here. */
.download__list li[hidden] {
  display: none;
}

.download__list li[data-available="false"] {
  background: var(--grey);
}

.download__list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.download__list-name {
  font-size: 1.0625rem;
  font-weight: 600;
}

.download__list-status {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.download__list-note {
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
}

.download__list-file {
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

a.download__list-file {
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.download__list-file:hover {
  color: var(--ink);
}

.fine-print {
  max-width: 540px;
  margin: 40px auto 0;
  text-align: center;
}

/* ---------------------------------------------------- cards, below the hero */

/*
 * Everything under the hero follows Cluely's page rhythm: one 56px title per band, then big
 * 32px-radius panels that carry a product mock-up, then a caption whose first words are bold.
 * Two panel fills only: the soft tint (white with a cool-grey wash) and the accent wash.
 */
.band-head--left {
  text-align: left;
}

.band-head--tight {
  margin-bottom: 24px;
}

.display-section__soft {
  color: #626275;
  -webkit-text-fill-color: currentColor;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(25 25 29 / 0.05);
  border-radius: 32px;
  background:
    radial-gradient(92% 124% at 50% 99%, rgb(221 226 238 / 0.4) 59%, rgb(187 197 221 / 0.4) 100%),
    var(--white);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5);
}

.eyebrow--tracked {
  margin-bottom: 0;
  color: #8c929d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- the gesture */

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.how-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  min-height: 560px;
  padding: 40px;
  border: 1px solid rgb(25 25 29 / 0.05);
  border-radius: 32px;
  background:
    radial-gradient(92% 124% at 50% 99%, rgb(221 226 238 / 0.4) 59%, rgb(187 197 221 / 0.4) 100%),
    var(--white);
  color: var(--ink);
}

.how-card--accent {
  border-color: transparent;
  background:
    radial-gradient(167% 140% at 80% 0%, rgb(255 255 255 / 0.1) 0%, rgb(255 255 255 / 0) 100%),
    radial-gradient(121% 125% at 7% 100%, #d94500 0%, #ff7a3d 100%);
  box-shadow:
    inset 1.9px 1.8px 8px rgb(255 255 255 / 0.13),
    inset 1px 0.9px 4px rgb(255 255 255 / 0.13);
  color: var(--white);
}

.how-card__title {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.how-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px 2px 9px;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.18);
  color: var(--white);
  font-size: 0.86em;
  vertical-align: 0.06em;
  white-space: nowrap;
}

.how-chip--ink {
  border-color: rgb(25 25 29 / 0.08);
  background: var(--white);
  color: var(--ink);
}

.how-card__lead {
  max-width: 30em;
  color: rgb(255 255 255 / 0.86);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.how-card:not(.how-card--accent) .how-card__lead {
  color: #5e616e;
}

.how-card__art {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding-top: 8px;
}

.how-card__art--wheel {
  align-content: center;
  margin: -8px -24px -24px;
}

.how-scrap {
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  font-size: 1rem;
  line-height: 1.6;
}

.how-scrap mark {
  border-radius: 3px;
  background: rgb(255 255 255 / 0.34);
  color: var(--white);
}

.keys--lg {
  gap: 8px;
}

.keys--lg .keycap {
  min-width: 52px;
  height: 46px;
  padding-inline: 14px;
  border-color: rgb(255 255 255 / 0.4);
  border-radius: 11px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 6px 16px rgb(120 35 0 / 0.25);
  color: var(--ink);
  font-size: 15px;
}

.keys--lg .keycap[data-pressed="true"] {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgb(120 35 0 / 0.25);
}

.keys--lg .keys__plus {
  color: rgb(255 255 255 / 0.7);
  font-size: 15px;
}

.how-timer {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgb(255 255 255 / 0.85);
}

.how-timer__value {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.how-timer__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

.how-timer__label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd9c7;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.2);
}

/* The wheel keeps its own paint; the card only decides how large the window is. */
.wheel-stage {
  display: grid;
  width: 100%;
  place-items: center;
}

.wheel-stage .wheel {
  width: min(470px, 100%);
  aspect-ratio: 1;
  height: auto;
}

/* -------------------------------------------------------------- actions */

.action-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.action-row {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.action-card {
  position: relative;
  display: grid;
  align-content: center;
  height: 330px;
  padding: 26px 22px 22px;
  border: 1px solid rgb(25 25 29 / 0.05);
  border-radius: 28px;
  background:
    radial-gradient(92% 124% at 50% 99%, rgb(221 226 238 / 0.4) 59%, rgb(187 197 221 / 0.4) 100%),
    var(--white);
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.action-row[data-active="true"] .action-card {
  border-color: rgb(245 78 0 / 0.35);
  box-shadow: 0 0 0 3px rgb(245 78 0 / 0.08);
}

/* The position on the ring, which is the real ordering device in the app. */
.action-card__pos {
  position: absolute;
  top: 16px;
  left: 18px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.action-mock {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 10px 30px rgb(30 40 70 / 0.08);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.action-mock__from {
  color: var(--secondary);
}

.action-mock__from mark {
  border-radius: 3px;
  background: var(--app-selection);
  color: var(--ink);
}

.action-mock__to {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
}

.action-mock__bar {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  translate: 0 0.16em;
  background: var(--accent);
}

.action-row__caption {
  color: #5e616e;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.action-row__name {
  color: #2e3038;
  font-weight: 500;
}

.works-in {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-top: 88px;
}

.works-in__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 52px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 1rem;
}

.works-in__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.works-in__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* ---------------------------------------------------------------- tones */

.tones-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.tone-shot {
  display: grid;
  place-items: center;
  padding: 40px 28px;
  border: 1px solid rgb(25 25 29 / 0.05);
  border-radius: 32px;
  background: radial-gradient(92% 126% at 50% 100%, #dde2ee 59%, #bbc5dd 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5);
}

.tone-window {
  width: min(100%, 400px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.05),
    0 24px 60px rgb(30 40 70 / 0.18);
}

.tone-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--grey);
  color: var(--tertiary);
  font-size: 0.75rem;
}

.tone-window__dots {
  display: inline-flex;
  gap: 5px;
}

.tone-window__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d2d2d7;
}

.tone-rows {
  margin: 0;
  padding: 6px;
  list-style: none;
}

.tone-row {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 9px;
}

.tone-row + .tone-row {
  position: relative;
}

.tone-row + .tone-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 1px;
  background: var(--hairline);
}

.tone-row[data-active="true"] {
  background: rgb(245 78 0 / 0.07);
}

.tone-row[data-active="true"]::before,
.tone-row[data-active="true"] + .tone-row::before {
  display: none;
}

.tone-row__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tone-row__name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Sized to sit beside a tone name on one line. */
.badge {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The verbatim instruction the app sends. Mono, because it is a runtime value. */
.tone-row__instruction {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.tone-row--add .tone-row__name {
  color: var(--accent);
  font-weight: 500;
}

.tones-copy .band-head {
  margin-bottom: 40px;
}

.stat-list {
  display: grid;
}

.stat {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}

.stat:last-child {
  border-bottom: 1px solid var(--hairline);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  color: var(--secondary);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.stat__title {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat__desc {
  color: rgb(94 97 110 / 0.85);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ faq */

.display-section--faq {
  font-size: 2.5rem;
}

.faq {
  display: grid;
}

.faq__item {
  border-bottom: 1px solid #e4e4e7;
}

.faq__item:first-child {
  border-top: 1px solid #e4e4e7;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__chevron {
  flex: none;
  color: var(--secondary);
  transition: transform 220ms var(--ease);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__a {
  max-width: 60em;
  padding: 0 0 22px;
  color: #5e616e;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.faq__a a {
  color: var(--accent);
}

.faq__a a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------- download */

/* The closing band and the footer sit on one soft wash that runs off the bottom of the page. */
.cta {
  position: relative;
  overflow-x: clip;
  background: linear-gradient(to bottom, var(--paper) 0%, #eef0f6 100%);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.cta__title {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta__sub {
  margin-top: 4px;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  background: linear-gradient(to right in oklab, #626275 0%, #a4a6b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.download {
  display: grid;
  gap: 20px;
}

.download__card {
  display: grid;
  justify-items: start;
  gap: 10px;
  width: min(100%, 460px);
}

.download__card .btn--primary {
  margin-top: 6px;
  min-height: 48px;
  padding-inline: 26px;
  border-radius: 12px;
  background: #2b2b30;
  box-shadow:
    inset -1px -1px 4px rgb(0 0 0 / 0.65),
    inset -0.5px -0.5px 1px rgb(255 255 255 / 0.35),
    5px 7px 7px rgb(119 133 164 / 0.43),
    1px 1px 3px rgb(0 0 0 / 0.2);
  font-weight: 500;
}

.download__card .btn--primary:hover {
  background: #3a3a40;
}

/* In the closing band the panel is left-aligned, so its footnotes follow. */
.cta .download__others {
  width: min(100%, 460px);
}

.cta .download__others > summary {
  margin: 0;
}

.cta .fine-print {
  margin: 32px 0 0;
  text-align: left;
}

/* Three keycaps, floating at a tilt: the shortcut rendered as an object. */
.cta__keys {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
}

.bigkey {
  position: absolute;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #e9ecf4 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.9),
    inset 0 -4px 0 rgb(180 188 208 / 0.45),
    0 24px 50px rgb(90 105 145 / 0.28),
    0 4px 10px rgb(90 105 145 / 0.12);
  color: #a2a8b8;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

.bigkey--win {
  left: 6%;
  top: 44%;
  rotate: -12deg;
}

.bigkey--ctrl {
  left: 40%;
  top: 8%;
  rotate: 7deg;
}

.bigkey--r {
  left: 62%;
  top: 52%;
  rotate: 18deg;
  background: linear-gradient(145deg, #fff3ec 0%, #ffd8c3 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.9),
    inset 0 -4px 0 rgb(245 78 0 / 0.28),
    0 24px 50px rgb(245 78 0 / 0.22),
    0 4px 10px rgb(90 105 145 / 0.12);
  color: var(--accent);
}

/* ------------------------------------------------------------- footer */

.site-footer {
  padding-block: 40px 20px;
  background: #e6e9f2;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 36px 32px;
  padding-block: 8px 40px;
}

.site-footer__blurb {
  max-width: 22em;
  margin-top: 14px;
  color: var(--secondary);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer-col ul {
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  color: #2e3038;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 160ms var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid rgb(25 25 29 / 0.06);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.6);
  color: #2e3038;
  font-size: 0.8125rem;
}

.site-footer__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb344;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgb(25 25 29 / 0.1);
  color: var(--secondary);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1280px) {
  .action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --band: 92px;
  }

  .tones-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__keys {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  :root {
    --band: 76px;
  }

  .nav__links {
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: rgb(255 255 255 / 0.97);
  }

  .nav__links[hidden] {
    display: none;
  }

  .nav__link {
    padding-block: 14px;
    border-bottom: 1px solid var(--separator);
    font-size: 1rem;
  }

  .nav__end {
    margin-left: auto;
  }

  .nav__toggle {
    display: grid;
  }

  /* Match Cluely: floating Get is desktop-only; mobile keeps the in-nav CTA. */
  .float-cta {
    display: none;
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .how-card__title {
    font-size: 1.5rem;
  }

  .stat {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 22px 0;
  }

  .site-footer__top,
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .display-section--faq {
    font-size: 1.875rem;
  }

  .demo__stage {
    min-height: 370px;
  }

  .band-head {
    margin-bottom: 48px;
  }

  .display-hero {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .display-hero {
    font-size: clamp(1.875rem, 8.8vw, 2.5rem);
  }

  .works-in__list {
    gap: 12px 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --band: 64px;
    --gutter: 20px;
  }

  .action-list,
  .download__list,
  .site-footer__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-card {
    height: 300px;
  }

  .demo__hint {
    justify-content: flex-start;
  }

  .demo__stage {
    min-height: 330px;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* 118px keys at left: 62% hang past a ~320px viewport once rotated. */
  .cta__keys {
    overflow: hidden;
  }

  .bigkey {
    width: 92px;
    height: 92px;
    font-size: 18px;
  }

  .bigkey--r {
    left: 58%;
  }
}

/* ---------------------------------------------------------- scroll reveal */

/*
 * Below-fold entrance. Hidden only when the <head> script has marked <html class="js">,
 * so a visitor with JavaScript off still sees every section. Play-once is data-revealed,
 * set by reveal.js. Hero, nav, demo, and footer stay out of this.
 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (min-width: 769px) {
  .how-grid > [data-reveal]:nth-child(2),
  .action-list > [data-reveal]:nth-child(2),
  .stat-list > [data-reveal]:nth-child(2),
  .faq > [data-reveal]:nth-child(2) {
    --reveal-delay: 70ms;
  }

  .action-list > [data-reveal]:nth-child(3),
  .stat-list > [data-reveal]:nth-child(3),
  .faq > [data-reveal]:nth-child(3) {
    --reveal-delay: 140ms;
  }

  .action-list > [data-reveal]:nth-child(4),
  .faq > [data-reveal]:nth-child(4) {
    --reveal-delay: 210ms;
  }

  .action-list > [data-reveal]:nth-child(5) {
    --reveal-delay: 280ms;
  }

  .faq > [data-reveal]:nth-child(5) {
    --reveal-delay: 280ms;
  }

  .faq > [data-reveal]:nth-child(6) {
    --reveal-delay: 350ms;
  }
}

/* ------------------------------------------------------- reduced motion */

/*
 * Mirrors the app rule in overlay.css: nonessential transforms and animation come off
 * entirely, and the spinner switches from a spin to the breathe pulse.
 */
@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;
  }

  .rp-loader[data-visible="true"] .rp-spin {
    animation: rp-breathe 1600ms ease-in-out infinite !important;
    animation-duration: 1600ms !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }

  .demo__frame[data-state="replaced"] .demo__caret {
    animation: none;
    opacity: 1;
  }

  .hero-phrase__from,
  .hero-phrase__to,
  .hero-phrase__mark,
  .hero-phrase__cursor {
    animation: none !important;
  }

  .hero-phrase__from {
    opacity: 0 !important;
  }

  .hero-phrase__to {
    opacity: 1 !important;
  }

  .hero-phrase__mark,
  .hero-phrase__cursor {
    opacity: 0 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------- legal page: policy body */

/*
 * Two columns on a desktop: a sticky contents rail and the policy itself. The
 * rail becomes a card above the policy on anything narrower, so the reading
 * order is the same either way and no markup is duplicated.
 */
.legal-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.legal-aside {
  padding: 22px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--white);
}

.legal-toc__label {
  color: var(--tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.34;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.legal-toc a::before {
  content: counter(legal-toc) ".";
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
}

.legal-toc a:hover {
  background: var(--grey);
  color: var(--ink);
}

/* Set by legal.js as each section passes the upper third of the viewport. */
.legal-toc a[aria-current="true"] {
  background: var(--grey);
  color: var(--ink);
  font-weight: 500;
}

.legal-toc a[aria-current="true"]::before {
  color: var(--accent);
}

.legal-aside__foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.legal-aside__help {
  color: var(--tertiary);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.legal-aside__mail {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 0.875rem;
}

.legal-aside__mail:hover {
  text-decoration: underline;
}

.legal-aside__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--secondary);
  font-size: 0.875rem;
}

.legal-aside__top:hover {
  color: var(--ink);
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 72px;
  }

  /* The rail rides along, and scrolls itself if the list outgrows the viewport. */
  .legal-aside {
    position: sticky;
    top: 28px;
    max-height: calc(100vh - 56px);
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: transparent;
  }

  .legal-toc a {
    padding-inline: 8px;
  }
}

@media (max-width: 1023px) {
  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }

  /* Section 12 and the end-of-policy row already carry the address. */
  .legal-aside__foot {
    display: none;
  }
}

@media (max-width: 560px) {
  .legal-toc ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------- policy sections */

.legal-stack {
  display: grid;
}

.legal-section {
  padding-block: 44px;
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  padding-bottom: 0;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--hairline);
}

.legal-prose {
  max-width: 40em;
}

/* The sections that carry tables need the full column, not the reading measure. */
.legal-prose--wide {
  max-width: none;
}

.legal-section__title {
  color: var(--ink);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

.legal-section__num {
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
}

/* Deep-link handle for citing a section. Pointer devices only; noise on touch. */
.legal-section__anchor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .legal-section__anchor {
    display: inline;
    color: var(--tertiary);
    font-weight: 400;
    opacity: 0;
    transition: opacity 160ms var(--ease);
  }

  .legal-section:hover .legal-section__anchor,
  .legal-section__anchor:focus-visible {
    opacity: 1;
  }

  .legal-section__anchor:hover {
    color: var(--accent);
  }
}

.legal-prose p,
.legal-prose li {
  color: var(--secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.legal-section__title + p,
.legal-section__title + ul,
.legal-section__title + .legal-table-wrap {
  margin-top: 18px;
}

.legal-prose p + p,
.legal-prose p + ul,
.legal-prose ul + p,
.legal-prose ol + p,
.legal-prose p + ol,
.legal-prose .legal-table-wrap + p {
  margin-top: 1em;
}

.legal-prose ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal-prose ol {
  padding-left: 1.4em;
  list-style: decimal;
}

.legal-prose li + li {
  margin-top: 0.45em;
}

.legal-prose a {
  color: var(--accent);
  overflow-wrap: break-word;
}

.legal-prose a:hover {
  text-decoration: underline;
}

.legal-prose h3 {
  margin-top: 1.9em;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.legal-section__title + h3 {
  margin-top: 1.1em;
}

.legal-prose h3 + p,
.legal-prose h3 + ul {
  margin-top: 0.55em;
}

/* The one paragraph in section 5 that readers most often miss gets a marker. */
.legal-prose p.legal-callout {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgb(245 78 0 / 0.05);
  color: var(--ink);
}

.legal-prose p.legal-endmark {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.legal-endmark__link {
  font-weight: 500;
}

.legal-prose .legal-endmark__top {
  margin-left: auto;
  color: var(--secondary);
}

.legal-prose .legal-endmark__top:hover {
  color: var(--ink);
}

/* ----------------------------------------------------------- policy tables */

.legal-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 15px 24px 15px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.legal-table thead th {
  padding-top: 0;
  border-bottom-color: var(--separator);
  color: var(--tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td {
  padding-bottom: 0;
  border-bottom: 0;
}

/* The row header is the thing being described, so it reads as the row's title. */
.legal-table tbody th {
  width: 30%;
  padding-right: 28px;
  color: var(--ink);
  font-weight: 600;
}

.legal-table--pairs tbody th {
  width: 40%;
}

@media (min-width: 721px) and (hover: hover) {
  .legal-table tbody tr:hover {
    background: rgb(245 245 247 / 0.7);
  }
}

@media (max-width: 720px) {
  /*
   * Below this the columns cannot hold a readable measure, so each row becomes
   * its own labelled card and the header row is carried by data-label instead.
   */
  .legal-table-wrap {
    overflow: visible;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .legal-table tbody tr {
    padding: 18px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    background: var(--white);
  }

  .legal-table tbody tr + tr {
    margin-top: 12px;
  }

  .legal-table th,
  .legal-table td,
  .legal-table tbody tr:last-child th,
  .legal-table tbody tr:last-child td {
    padding: 0;
    border: 0;
  }

  /* The percentage widths from the table layout would squeeze a stacked cell. */
  .legal-table tbody th,
  .legal-table--pairs tbody th {
    width: auto;
    padding-right: 0;
    font-size: 1.0625rem;
  }

  .legal-table td {
    margin-top: 12px;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--tertiary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

/* ------------------------------------------------------------------ print */

/* A privacy policy gets saved and printed. Drop the chrome, keep the text. */
@media print {
  .nav,
  .float-cta,
  .read-progress,
  .skip-link,
  .legal-aside,
  .legal-section__anchor,
  .legal-endmark,
  .site-footer__cols,
  .site-footer__status {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .band,
  .band + .band {
    padding-block: 0;
  }

  .wrap {
    max-width: none;
    padding-inline: 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-prose,
  .legal-prose--wide,
  .intro {
    max-width: none;
  }

  .legal-prose p,
  .legal-prose li,
  .legal-table th,
  .legal-table td,
  .legal-prose a {
    color: #000;
  }

  .legal-prose a[href^="mailto:"]::after,
  .legal-prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    color: #444;
    font-size: 0.85em;
    word-break: break-all;
  }

  .legal-section {
    padding-block: 20px;
  }

  .legal-section__title {
    break-after: avoid;
    page-break-after: avoid;
  }

  .legal-table-wrap,
  .privacy-item,
  .legal-table tbody tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
