/*
 * Air Mouse product site.
 *
 * Shares its design language with the other Azayn product sites (e.g. dev.health.azayn.com): dark surfaces,
 * Geist, floating pill navigation, glass cards with gradient hairlines, big tight headings. The token names below
 * (--color-*, --font-family-*, --shadow-*) are the same as the Health site's, so the shared neutrals can later be
 * lifted into a common azayn.com stylesheet. Only the brand colours differ: Air Mouse is azure, not green.
 */

@font-face {
  font-family: "Geist Variable";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Brand (Air Mouse). Primary is the dark-theme accent from docs/branding.md. */
  --color-primary: #3db2ff;
  --color-primary-hover: #63c2ff;
  --color-secondary: #6e8bff;
  --color-accent: #8b5cf6;

  /* Shared Azayn neutrals (identical to the Health site). */
  --color-background: #0b0d10;
  --color-background-secondary: #10141a;
  --color-surface: #15191e;
  --color-surface-2: #1d232b;
  --color-border: #313a46;
  --color-divider: #242b34;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #b4bec9;
  --color-text-tertiary: #8993a0;
  --color-text-disabled: #5d6673;
  --color-text-inverse: #0b0d10;
  --color-success: #2ecc71;
  --color-warning: #f4b740;
  --color-error: #f25f5c;
  --progress-track: #232a33;

  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --glow-primary: 0 0 14px rgb(61 178 255 / 0.28);
  --glow-primary-strong: 0 0 24px rgb(61 178 255 / 0.4);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.35);
  --shadow-xl: 0 20px 48px rgb(0 0 0 / 0.45);

  --font-family-base: "Geist Variable", "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100dvh;
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.mono { font-family: var(--font-family-mono); }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 64rem; }

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

.site-header { position: sticky; top: 0; z-index: 50; padding: 1rem 1rem 0; }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(11 13 16 / 0.6);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.brand-mark img { width: 1.35rem; height: auto; }
.brand-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgb(255 255 255 / 0.05); color: var(--color-text-primary); }
@media (min-width: 48rem) { .nav-links { display: flex; } }

/* ------------------------------------------------------------------ */
/* Buttons & small elements                                             */
/* ------------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.95); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-light { background: var(--color-text-primary); color: var(--color-text-inverse); }
.btn-primary {
  overflow: hidden;
  background-image: var(--gradient-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--glow-primary-strong);
}
.btn-glass {
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.05);
  color: var(--color-text-primary);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgb(255 255 255 / 0.1); transform: none; }

/* The light sweep across the primary button. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.45), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: sheen 3.8s ease-in-out 1.2s infinite;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dot { position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem; }
.dot::before, .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-primary); }
.dot::before { animation: pulse 2.4s ease-out infinite; }

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgb(61 178 255 / 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}
.pill-new { background: var(--gradient-primary); color: var(--color-text-inverse); font-weight: 700; }
.pill-warn { background: rgb(244 183 64 / 0.15); color: var(--color-warning); }

.gradient-text {
  background-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.caption { font-size: 0.75rem; text-align: center; color: var(--color-text-disabled); }
.tiny-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

/* ------------------------------------------------------------------ */
/* Glass cards with a gradient hairline                                 */
/* ------------------------------------------------------------------ */

.card {
  position: relative;
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.03);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.04) 40%, rgb(61 178 255 / 0.2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
a.card:hover, .card.hoverable:hover { background: rgb(255 255 255 / 0.055); }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgb(61 178 255 / 0.25), rgb(110 139 255 / 0.25));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: var(--color-primary);
}
.icon-tile svg { width: 1.375rem; height: 1.375rem; }

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

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 4rem 0 6rem; }
@media (min-width: 40rem) { .hero { padding-top: 6rem; } }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0, #000 30%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 0, #000 30%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite; }
.orb-1 { top: -10rem; left: 8%; width: 34rem; height: 34rem; background: rgb(61 178 255 / 0.25); filter: blur(120px); }
.orb-2 { top: 2.5rem; right: 4%; width: 30rem; height: 30rem; background: rgb(110 139 255 / 0.25); filter: blur(120px); animation-delay: -8s; }
.orb-3 { top: 28rem; left: 38%; width: 26rem; height: 26rem; background: rgb(139 92 246 / 0.2); filter: blur(130px); animation-delay: -15s; }
.hero-fade { position: absolute; inset: auto 0 0; height: 10rem; background: linear-gradient(to top, var(--color-background), transparent); }

.hero-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero-copy { text-align: center; }
@media (min-width: 64rem) { .hero-copy { text-align: left; } }

h1 {
  margin-top: 1.75rem;
  font-size: clamp(3rem, 8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 .gradient-text { display: block; }
.lede {
  max-width: 32rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
@media (min-width: 64rem) { .lede { margin-inline: 0; } }

.cta-row { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .cta-row { flex-direction: row; justify-content: center; } }
@media (min-width: 64rem) { .cta-row { justify-content: flex-start; } }

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}
@media (min-width: 64rem) { .checks { justify-content: flex-start; } }
.checks li { display: inline-flex; align-items: center; gap: 0.5rem; }
.checks svg { width: 1rem; height: 1rem; color: var(--color-primary); }

/* Phone mockup */
.stage { position: relative; width: 17.5rem; margin-inline: auto; }
@media (min-width: 40rem) { .stage { width: 19rem; } }
.stage-glow { position: absolute; inset: -2.5rem; z-index: -1; border-radius: 50%; background: rgb(61 178 255 / 0.2); filter: blur(64px); }
.phone {
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 3rem;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.05));
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
}
.phone-screen { position: relative; overflow: hidden; border-radius: 2.5rem; background: var(--color-background); }
.phone-notch { position: absolute; top: 0.625rem; left: 50%; z-index: 20; width: 6rem; height: 1.5rem; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone-body { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 3rem 1rem 1.25rem; }
.phone-body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14rem;
  background: radial-gradient(ellipse at 50% 0, rgb(61 178 255 / 0.22), transparent 70%);
}
.phone-body > * { position: relative; }
.phone-head { display: flex; align-items: center; justify-content: space-between; }
.phone-title { font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgb(46 204 113 / 0.15);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-success);
}
.status-chip::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }

.viewfinder {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 85%, rgb(61 178 255 / 0.18), transparent 65%),
    linear-gradient(to bottom, #131a22, #0d1116);
}
.viewfinder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bone { stroke: rgb(255 255 255 / 0.55); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.joint { fill: rgb(255 255 255 / 0.85); }
.tip { fill: var(--color-primary); }
.tip-ring { fill: none; stroke: var(--color-primary); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.tracking-tag {
  position: absolute;
  left: 0.625rem;
  bottom: 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgb(11 13 16 / 0.7);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.privacy-tag {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgb(11 13 16 / 0.7);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  font-size: 0.6rem;
  color: var(--color-text-tertiary);
}

.phone-row { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 0.875rem; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 1.25rem; background: rgb(255 255 255 / 0.04); }
.phone-row b { font-size: 0.875rem; }
.stop-btn { padding: 0.375rem 0.75rem; border-radius: 999px; background: rgb(242 95 92 / 0.15); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; color: var(--color-error); }

/* Floating glass notes around the phone */
.float-card {
  position: absolute;
  z-index: 10;
  display: none;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 1rem;
  background: rgb(11 13 16 / 0.7);
  padding: 0.875rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: float 7s ease-in-out infinite;
}
.float-left { bottom: 11rem; left: -11rem; width: 12.5rem; animation-duration: 10s; animation-delay: -3s; }
.float-right { top: 7rem; right: -11.5rem; width: 13rem; animation-delay: -5s; }
@media (min-width: 85rem) { .float-card { display: block; } }
.float-card p:not(.tiny-label) { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-text-secondary); }
.float-card .mono { font-size: 0.7rem; line-height: 1.6; color: var(--color-text-secondary); }
.float-card .k { color: var(--color-text-tertiary); }
.float-card .v { color: var(--color-primary); }
.float-flow { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.875rem; }
.float-flow svg { width: 1rem; height: 1rem; color: var(--color-text-tertiary); }

.stage-caption { margin-top: 2rem; }

/* ------------------------------------------------------------------ */
/* Capability marquee                                                   */
/* ------------------------------------------------------------------ */

.marquee-band { border-block: 1px solid rgb(255 255 255 / 0.05); padding-block: 1.5rem; }
.fade-x {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
}
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; align-items: center; gap: 1rem; padding-right: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-secondary);
}
.chip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c, var(--color-primary)); }

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

.section { position: relative; padding-block: 5rem; }
@media (min-width: 40rem) { .section { padding-block: 7rem; } }
.section-tinted { overflow: hidden; }
.section-head { max-width: 42rem; margin-inline: auto; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head p:not(.eyebrow) {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
h3 { font-weight: 600; letter-spacing: -0.015em; }
.muted { color: var(--color-text-secondary); }

.band-glow { position: absolute; inset-inline: 0; top: 50%; z-index: -1; height: 24rem; transform: translateY(-50%); background: radial-gradient(ellipse at center, rgb(61 178 255 / 0.1), transparent 70%); }

/* Bento features */
.bento { display: grid; gap: 1rem; margin-top: 4rem; }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .span-4 { grid-column: span 4; }
  .span-2 { grid-column: span 2; }
}
.feature { display: flex; flex-direction: column; overflow: hidden; padding: 1.75rem; }
.feature-top { display: flex; align-items: center; justify-content: space-between; }
.feature h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.feature > p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.65; color: var(--color-text-secondary); }
.feature-demo { flex: 1; margin-top: 1.5rem; }

.meter + .meter { margin-top: 0.875rem; }
.meter-label { display: flex; justify-content: space-between; margin-bottom: 0.375rem; font-size: 0.75rem; color: var(--color-text-secondary); }
.meter-track { height: 0.5rem; overflow: hidden; border-radius: 999px; background: var(--progress-track); }
.meter-fill { height: 100%; border-radius: inherit; background: var(--gradient-primary); animation: grow 1.4s cubic-bezier(0.3, 0.8, 0.2, 1) both; transform-origin: left; }

.rows { display: grid; gap: 0.5rem; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.05);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.row b { color: var(--color-text-primary); font-weight: 500; }
.row span:last-child { font-size: 0.75rem; color: var(--color-text-tertiary); text-align: right; }

.toggle { display: inline-flex; align-items: center; width: 2.75rem; height: 1.5rem; padding: 0.125rem; border-radius: 999px; background: rgb(255 255 255 / 0.15); transition: background-color 0.3s; }
.toggle::after { content: ""; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; transition: transform 0.3s; }
.toggle.on { background: var(--color-primary); }
.toggle.on::after { transform: translateX(1.25rem); }

.palm-demo { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid rgb(255 255 255 / 0.05); border-radius: 1rem; background: rgb(255 255 255 / 0.03); }
.palm-demo svg { width: 3rem; height: 3rem; flex-shrink: 0; color: var(--color-primary); }
.palm-demo p { font-size: 0.875rem; font-weight: 600; }
.palm-demo small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--color-text-tertiary); }
.palm-demo .toggle { margin-left: auto; }

.positions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pos {
  display: grid;
  place-items: center;
  padding: 0.75rem 0.25rem;
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: center;
}
.pos.active { border-color: rgb(61 178 255 / 0.5); background: rgb(61 178 255 / 0.1); color: var(--color-primary); }

/* Modes */
.modes { display: grid; gap: 1.5rem; margin-top: 4rem; }
@media (min-width: 48rem) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { padding: 2rem; }
.mode h3 { margin-top: 1.5rem; font-size: 1.375rem; display: flex; align-items: center; gap: 0.625rem; }
.mode p { margin-top: 0.75rem; line-height: 1.65; color: var(--color-text-secondary); }
.mode ul { margin-top: 1.25rem; display: grid; gap: 0.5rem; font-size: 0.875rem; color: var(--color-text-secondary); }
.mode li { display: flex; gap: 0.625rem; }
.mode li::before { content: ""; flex-shrink: 0; width: 0.375rem; height: 0.375rem; margin-top: 0.5rem; border-radius: 50%; background: var(--color-primary); }

/* Steps */
.steps { position: relative; display: grid; gap: 1.5rem; margin-top: 4rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps-line { display: none; position: absolute; top: 3rem; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.2), transparent); }
@media (min-width: 48rem) { .steps-line { display: block; } }
.step { position: relative; padding: 2rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--color-background);
  box-shadow: 0 0 0 1px rgb(61 178 255 / 0.4), var(--glow-primary);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}
.step h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.step p { margin-top: 0.75rem; line-height: 1.65; color: var(--color-text-secondary); }

/* Data path diagram */
.path { margin-top: 1.5rem; padding: 1.5rem; }
@media (min-width: 40rem) { .path { padding: 2rem 2.5rem; } }
.path-title { text-align: center; font-size: 0.875rem; color: var(--color-text-tertiary); }
.path-flow { display: grid; gap: 0.5rem; margin-top: 1.5rem; align-items: stretch; }
@media (min-width: 64rem) { .path-flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0.75rem; } }
.node { padding: 1rem; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 1rem; background: rgb(11 13 16 / 0.6); text-align: center; }
.node b { display: block; font-size: 0.9375rem; }
.node span { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--color-text-tertiary); }
.node.phone-side { border-color: rgb(61 178 255 / 0.3); }
.arrow { display: grid; place-items: center; color: var(--color-text-disabled); }
.arrow svg { width: 1.25rem; height: 1.25rem; transform: rotate(90deg); }
@media (min-width: 64rem) { .arrow svg { transform: none; } }
.path-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; font-size: 0.8125rem; color: var(--color-text-tertiary); }
.path-note span { display: inline-flex; align-items: center; gap: 0.5rem; }
.path-note i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--color-primary); }
.path-note i.alt { background: var(--color-text-disabled); }

/* Privacy */
.panel { position: relative; overflow: hidden; border-radius: 2rem; padding: 2rem; background: linear-gradient(135deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.01)); }
@media (min-width: 40rem) { .panel { padding: 3.5rem; } }
.panel-glow { position: absolute; top: -8rem; right: -8rem; width: 24rem; height: 24rem; border-radius: 50%; background: rgb(61 178 255 / 0.15); filter: blur(100px); pointer-events: none; }
.split { position: relative; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 64rem) { .split { grid-template-columns: 1fr 1fr; } }
.points { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.points li { display: flex; gap: 1rem; }
.points .ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-top: 0.125rem; border-radius: 0.75rem; background: rgb(61 178 255 / 0.15); color: var(--color-primary); }
.points .ico svg { width: 1.25rem; height: 1.25rem; }
.points h3 { font-size: 1rem; }
.points p { margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.65; color: var(--color-text-secondary); }

.inspect { padding: 1.5rem; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 1.5rem; background: rgb(11 13 16 / 0.7); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: float 10s ease-in-out infinite; }
.inspect-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.inspect-head p { font-size: 0.875rem; font-weight: 600; }
.inspect-head small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--color-text-tertiary); }
.code { margin-top: 1rem; padding: 1rem; overflow-x: auto; border-radius: 0.75rem; background: rgb(255 255 255 / 0.03); font-family: var(--font-family-mono); font-size: 0.75rem; line-height: 1.8; color: var(--color-text-secondary); }
.code .k { color: var(--color-text-tertiary); }
.code .s { color: var(--color-primary); }
.code .n { color: #c4b5fd; }
.never { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.never li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; background: rgb(242 95 92 / 0.08); font-size: 0.8125rem; color: var(--color-text-secondary); }
.never svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; color: var(--color-error); }
.never-title { margin-top: 1.25rem; }

/* Download */
.os-grid { display: grid; gap: 1rem; margin-top: 4rem; }
@media (min-width: 48rem) { .os-grid { grid-template-columns: repeat(3, 1fr); } }
.os { display: flex; flex-direction: column; padding: 2rem; }
.os svg.os-ico { width: 2.25rem; height: 2.25rem; color: var(--color-text-primary); }
.os h3 { margin-top: 1.25rem; font-size: 1.25rem; }
.os-files { margin-top: 0.75rem; flex: 1; font-size: 0.875rem; line-height: 1.7; color: var(--color-text-secondary); }
.os-files .mono { font-size: 0.8125rem; color: var(--color-text-tertiary); }
.os-note { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--color-text-tertiary); }
.store {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.store[aria-disabled="true"] { pointer-events: none; }
.store .tiny-label { letter-spacing: 0.12em; }
.store b { font-size: 1.0625rem; color: var(--color-text-secondary); }
.store:not([aria-disabled="true"]) { background: var(--gradient-primary); border-color: transparent; }
.store:not([aria-disabled="true"]) b, .store:not([aria-disabled="true"]) .tiny-label { color: var(--color-text-inverse); }

.os-more { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.6; min-height: calc(3 * 1.6 * 0.8125rem); color: var(--color-text-tertiary); }
.os-more a, .checksums a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(61 178 255 / 0.4); }
.checksums { margin-top: 1.25rem; text-align: center; }
.notice { display: flex; gap: 1rem; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 1.25rem; font-size: 0.9375rem; line-height: 1.65; color: var(--color-text-secondary); }
.notice b { color: var(--color-text-primary); }
.notice .pill { align-self: flex-start; flex-shrink: 0; margin-top: 0.1rem; }
@media (max-width: 40rem) { .notice { flex-direction: column; gap: 0.75rem; } }

.phones { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 48rem) { .phones { grid-template-columns: 1fr 1fr; } }
.phones .card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; }
.phones svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; color: var(--color-primary); }
.phones h3 { font-size: 1rem; }
.phones p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--color-text-secondary); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; max-width: 48rem; margin: 4rem auto 0; }
.faq details { padding: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--color-text-tertiary);
  border-bottom: 2px solid var(--color-text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 1.5rem 1.5rem; line-height: 1.7; color: var(--color-text-secondary); }
.faq .answer p + p { margin-top: 0.75rem; }
.faq code { padding: 0.1rem 0.4rem; border-radius: 0.375rem; background: rgb(255 255 255 / 0.07); font-family: var(--font-family-mono); font-size: 0.85em; }

/* Final CTA */
.cta-section { padding-bottom: 5rem; }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 2.5rem;
  text-align: center;
}
@media (min-width: 40rem) { .cta { padding: 7rem 4rem; } .cta-section { padding-bottom: 7rem; } }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg .wash { position: absolute; inset: 0; background: linear-gradient(135deg, rgb(61 178 255 / 0.25), var(--color-background) 50%, rgb(110 139 255 / 0.25)); }
.cta-bg .grid-bg { opacity: 0.6; }
.cta-bg .orb { width: 24rem; height: 24rem; filter: blur(110px); }
.cta-bg .orb-a { bottom: -10rem; left: 25%; background: rgb(61 178 255 / 0.3); }
.cta-bg .orb-b { top: -10rem; right: 25%; background: rgb(110 139 255 / 0.3); animation-delay: -9s; }
.cta-logo { display: grid; place-items: center; width: 4rem; height: 4rem; margin-inline: auto; border-radius: 1rem; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), var(--glow-primary-strong); }
.cta-logo img { width: 2.75rem; height: auto; }
.cta h2 { max-width: 40rem; margin: 2rem auto 0; font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.03em; }
.cta p { max-width: 32rem; margin: 1.25rem auto 0; font-size: 1.125rem; color: var(--color-text-secondary); }
.cta .cta-row { justify-content: center; margin-top: 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; padding-block: 3rem; }
@media (min-width: 48rem) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-inner .tag { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-text-tertiary); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--color-text-secondary); }
.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--color-text-primary); }
.footer-meta { font-size: 0.875rem; color: var(--color-text-tertiary); }
.footer-meta a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* Motion                                                               */
/* ------------------------------------------------------------------ */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift {
  0%, 100% { transform: translate(0) scale(1); }
  33% { transform: translate(4%, -6%) scale(1.08); }
  66% { transform: translate(-5%, 4%) scale(0.96); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { from { opacity: 0.7; transform: scale(0.6); } to { opacity: 0; transform: scale(2.4); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes grow { from { transform: scaleX(0.05); } }
@keyframes fingertip {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(10px, -6px); }
  65% { transform: translate(-6px, 4px); }
}

.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.3s; } .d4 { animation-delay: 0.4s; } .d25 { animation-delay: 0.25s; }
.float { animation: float 7s ease-in-out infinite; }
.finger-move { animation: fingertip 6s ease-in-out infinite; }

/* Scroll-driven reveal where supported; elsewhere content is simply visible. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 4% entry 38%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .float, .orb, .marquee, .dot::before, .tip-ring, .btn-primary::after, .meter-fill, .reveal, .inspect, .float-card, .finger-move { animation: none !important; }
  .tip-ring { opacity: 0; }
}

/* ------------------------------------------------------------------ */
/* Small helpers (kept as classes so the page needs no inline styles)   */
/* ------------------------------------------------------------------ */

.sprite { position: absolute; }
.float-card .tiny-label { margin: 0; }
.float-flow .v { color: var(--color-primary); }
.float-card .sample { margin-top: 0.5rem; }
.demo-caption { margin-top: 1rem; }

.w96 { width: 96%; }
.w92 { width: 92%; animation-delay: 0.1s; }
.w34 { width: 34%; animation-delay: 0.2s; }

.c1 { --c: #3db2ff; } .c2 { --c: #6e8bff; } .c3 { --c: #8b5cf6; } .c4 { --c: #38bdf8; }
.c5 { --c: #14b8a6; } .c6 { --c: #f4b740; } .c7 { --c: #ec4899; } .c8 { --c: #a3e635; }

/* ------------------------------------------------------------------ */
/* Pricing, thank-you and re-send pages                                 */
/* ------------------------------------------------------------------ */

.price-wrap { display: flex; justify-content: center; margin-top: 3.5rem; }
.price-card { position: relative; width: min(100%, 26rem); padding: 2.25rem; background: linear-gradient(to bottom, rgb(61 178 255 / 0.12), rgb(255 255 255 / 0.04) 45%, rgb(110 139 255 / 0.08)); box-shadow: var(--glow-primary-strong); }
.price-card::before { background: linear-gradient(145deg, rgb(61 178 255 / 0.7), rgb(255 255 255 / 0.08) 45%, rgb(110 139 255 / 0.5)); }
.price-flag { position: absolute; top: -0.75rem; left: 2rem; }
.price-card h3 { font-size: 1.125rem; }
.price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.25rem 0 0.5rem; }
.price .amount { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--color-text-tertiary); }
.list-check { display: grid; gap: 0.875rem; margin: 1.75rem 0 2rem; font-size: 0.9375rem; color: var(--color-text-secondary); }
.list-check li { display: flex; gap: 0.75rem; align-items: flex-start; }
.list-check svg { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; color: var(--color-primary); }
.buy-form { display: grid; }
.buy { width: 100%; }
.price-card .caption { margin-top: 0.875rem; }
.lost-key { margin-top: 1.5rem; }
.lost-key a, .page-card a, .answer a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(61 178 255 / 0.4); }

/* Shown only when the API redirects back to /#checkout-error or /#download-error. */
.flash { display: none; }
.flash:target { display: flex; }
.notice.flash:target { margin-top: 1.5rem; }
#checkout-error:target, #download-error:target { display: flex; }
.flash-ok { flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 1rem; background: rgb(46 204 113 / 0.1); border: 1px solid rgb(46 204 113 / 0.3); color: var(--color-text-secondary); font-size: 0.9375rem; }
.flash-ok b { color: var(--color-success); }

.page-bg { position: fixed; z-index: -1; }
.page { display: grid; place-items: center; min-height: calc(100dvh - 11rem); padding-block: 3rem; }
.page-card { width: min(100%, 38rem); padding: 2.5rem 2rem; }
@media (min-width: 40rem) { .page-card { padding: 3rem; } }
.page-title { margin-top: 0.75rem; font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.page-lede { margin: 1rem 0 0; font-size: 1.0625rem; }
.small { font-size: 0.875rem; margin-top: 1.5rem; }
.status-ok { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.5rem; border-radius: 1rem; background: rgb(46 204 113 / 0.12); box-shadow: inset 0 0 0 1px rgb(46 204 113 / 0.35); color: var(--color-success); }
.status-ok svg { width: 1.75rem; height: 1.75rem; }
.steps-list { counter-reset: n; display: grid; gap: 1rem; margin: 2rem 0 0; color: var(--color-text-secondary); }
.steps-list li { counter-increment: n; position: relative; padding-left: 2.75rem; line-height: 1.6; }
.steps-list li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 0.625rem; box-shadow: inset 0 0 0 1px rgb(61 178 255 / 0.45); color: var(--color-primary); font-weight: 700; font-size: 0.875rem; }
.steps-list b { color: var(--color-text-primary); }
.key-example { font-size: 0.8125rem; color: var(--color-primary); white-space: nowrap; }
.form { display: grid; gap: 0.75rem; margin-top: 2rem; }
.form label { font-size: 0.875rem; color: var(--color-text-secondary); }
.form input { width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--color-border); border-radius: 0.875rem; background: var(--color-background); color: var(--color-text-primary); font: inherit; }
.form input:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.form .btn { margin-top: 0.5rem; }
