/* ============================================================
   Subtitles — site styles
   Light palette on :root, dark under both the media query and
   an explicit [data-theme] so the toggle wins in either direction.
   ============================================================ */

:root {
  --bg:            #ffffff;
  --bg-alt:        #f6f6f8;
  --surface:       #ffffff;
  --surface-2:     #fbfbfc;
  --text:          #131316;
  --text-dim:      #61616b;
  --text-faint:    #8b8b95;
  --border:        rgba(18, 18, 24, 0.10);
  --border-strong: rgba(18, 18, 24, 0.16);
  --accent:        #5150d4;
  --accent-soft:   rgba(88, 86, 214, 0.10);
  --accent-text:   #4a48c9;
  --btn-fg:        #ffffff;
  --shadow-sm:     0 1px 2px rgba(16, 16, 28, 0.05), 0 1px 3px rgba(16, 16, 28, 0.04);
  --shadow-lg:     0 24px 60px -20px rgba(16, 16, 28, 0.28), 0 8px 20px -12px rgba(16, 16, 28, 0.16);
  --header-bg:     rgba(255, 255, 255, 0.72);

  --radius:        14px;
  --radius-lg:     20px;
  --wrap:          1120px;

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

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0a0a0c;
    --bg-alt:        #101013;
    --surface:       #141417;
    --surface-2:     #17171b;
    --text:          #f3f3f5;
    --text-dim:      #a0a0ac;
    --text-faint:    #74747f;
    --border:        rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent:        #7a78ff;
    --accent-soft:   rgba(122, 120, 255, 0.14);
    --accent-text:   #9d9bff;
    --btn-fg:        #0a0a0c;
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg:     0 30px 70px -24px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
    --header-bg:     rgba(10, 10, 12, 0.72);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:            #0a0a0c;
  --bg-alt:        #101013;
  --surface:       #141417;
  --surface-2:     #17171b;
  --text:          #f3f3f5;
  --text-dim:      #a0a0ac;
  --text-faint:    #74747f;
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent:        #7a78ff;
  --accent-soft:   rgba(122, 120, 255, 0.14);
  --accent-text:   #9d9bff;
  --btn-fg:        #0a0a0c;
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 30px 70px -24px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --header-bg:     rgba(10, 10, 12, 0.72);

  color-scheme: dark;
}

/* ─────────────────────────── base ─────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.14; letter-spacing: -0.022em; margin: 0; font-weight: 640; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
svg { display: block; }

a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

kbd {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.85em;
  line-height: 1;
  padding: 0.32em 0.5em;
  min-width: 1.9em;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus { left: 24px; }

/* ─────────────────────────── header ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-right: auto;
}
.brand-icon { border-radius: 7px; }
.brand-name { font-size: 17px; }

.nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; grid-area: 1 / 1; }

/* moon in light mode (click to go dark), sun in dark mode */
.icon-sun { display: none; }
.icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

@media (max-width: 720px) {
  .nav { gap: 18px; font-size: 14px; }
  .nav a:not(.nav-gh) { display: none; }
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 8vw, 88px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 620px;
  background:
    radial-gradient(58% 50% at 50% 42%, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  font-size: clamp(2.15rem, 6.2vw, 3.85rem);
  font-weight: 660;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
}

.lede {
  max-width: 34em;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--text-dim);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 16px;
  font-weight: 550;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--btn-fg);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--text-faint); }

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}
/* ── gumroad overlay, de-branded ──────────────────────────────
   Adding .gumroad-button is what binds the checkout overlay, and it drags
   Gumroad's entire button skin along with it: black background, hot pink on
   hover, 4px radius, their own font, no shadow, different padding and leading.
   It also appends <span class="logo-full"> and paints a GUMROAD wordmark into
   it, so the button reads "Buy for $9 GUMROAD".

   Every property below is one their stylesheet actually sets — measured, not
   guessed. !important throughout because their CSS is injected at runtime and
   always lands after this file: source order cannot win here, only specificity
   plus weight. It also arrives async, so without this the button renders
   correctly for a beat and then turns pink.

   If a Gumroad update changes the skin, the tell is the buy button drifting
   from .btn-primary — compare the two CTAs against "View the source". */
.btn.gumroad-button {
  /* Their stylesheet redefines --accent on this element to "255 144 232" —
     their pink, as bare channels for rgb(var(--accent)). Same variable name
     this site uses. Every declaration here referencing var(--accent) therefore
     received three numbers, became invalid at computed-value time, and dropped
     to transparent with no shadow — which is why background could not be
     overridden by weight alone. `inherit` takes the value from the parent,
     where it is still this site's accent, and keeps the theme switch working. */
  --accent: inherit !important;

  background: var(--accent) !important;
  /* Pinned on both states below too. Their skin only forces black on :hover —
     against this button's dark indigo that is unreadable, and the icon follows
     because it strokes currentColor. */
  color: var(--btn-fg) !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  padding: 12px 22px !important;
  font: inherit !important;
  font-size: 16px !important;
  font-weight: 550 !important;
  line-height: 1.6 !important;
  box-shadow: 0 8px 20px -10px
              color-mix(in srgb, var(--accent) 80%, transparent) !important;
}
.btn.gumroad-button:hover,
.btn.gumroad-button:focus,
.btn.gumroad-button:active {
  background: color-mix(in srgb, var(--accent) 88%, var(--text)) !important;
  color: var(--btn-fg) !important;
}
.btn.gumroad-button .logo-full { display: none !important; }

.cta-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--text-faint);
}
.cta-note a:hover { color: var(--text); }

/* ─────────────────────────── demo ─────────────────────────── */

.demo { margin-top: clamp(44px, 7vw, 72px); }

.demo-screen {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0d11;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.demo-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding-inline: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}
.mb-right { display: inline-flex; align-items: center; gap: 13px; }

/* The glyph keeps its colour; the badge is a separate 6pt dot on the glyph's
   top-right corner, exactly as the app draws it. */
.mb-glyph {
  position: relative;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.82);
}
.mb-glyph svg { width: 15px; height: 13px; }
.mb-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5856d6;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* 1.8s each way, autoreversed, 1.0 → 0.25 — the app's "live" pulse. */
.mb-glyph.is-live .mb-dot {
  opacity: 1;
  animation: badge-pulse 3.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.mb-time { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.demo-stage {
  position: relative;
  aspect-ratio: 16 / 9.6;
}

/* desktop wallpaper behind the window */
.demo-desktop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 22% 8%, rgba(120, 116, 255, 0.34), transparent 70%),
    radial-gradient(52% 60% at 88% 96%, rgba(78, 74, 190, 0.30), transparent 72%),
    linear-gradient(158deg, #2a2b45 0%, #191a2a 46%, #101019 100%);
}

/* fake macOS windows — all three stacked, one fronted at a time. They share a
   bottom edge so the caption straddles the same line whichever is in front. */
.demo-window {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: clamp(7px, 1.1vw, 11px);
  overflow: hidden;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.34),
    0 14px 34px -10px rgba(0, 0, 0, 0.6);
  transition: filter 0.28s ease, box-shadow 0.28s ease;
  filter: brightness(0.62) saturate(0.8);
}
.win-meeting { inset: 5% 7% 13.5% 7%; }
.win-notes   { inset: 8% 3% 13.5% 11%; }
.win-player  { inset: 3% 11% 13.5% 3%; }

.demo-window.is-front {
  z-index: 4;
  filter: none;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.36),
    0 26px 60px -10px rgba(0, 0, 0, 0.72);
}
/* macOS greys the traffic lights out on an inactive window. */
.demo-window:not(.is-front) .lights i { background: rgba(255, 255, 255, 0.26); }
.demo-window:not(.is-front) .win-title { color: rgba(255, 255, 255, 0.3); }

.win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  height: clamp(22px, 3.4vw, 30px);
  padding-inline: clamp(9px, 1.4vw, 13px);
  background: linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.lights { display: inline-flex; gap: clamp(4px, 0.7vw, 6px); }
.lights i {
  width: clamp(7px, 1vw, 9px);
  height: clamp(7px, 1vw, 9px);
  border-radius: 50%;
  display: block;
}
.l-close { background: #ff5f57; }
.l-min   { background: #febc2e; }
.l-max   { background: #28c840; }
.win-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(9px, 1.25vw, 12px);
  font-weight: 550;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-content { position: relative; flex: 1; overflow: hidden; }

/* An abstract "something is playing" scene — no real video needed. */
.demo-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 58% at 26% 32%, rgba(112, 108, 255, 0.44), transparent 66%),
    radial-gradient(38% 52% at 74% 28%, rgba(255, 138, 106, 0.26), transparent 68%),
    radial-gradient(70% 80% at 50% 110%, rgba(20, 22, 38, 0.92), transparent 70%),
    linear-gradient(168deg, #1a1c2b 0%, #101119 52%, #0a0b10 100%);
}
.demo-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* player chrome along the bottom of the window */
.win-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.2vw, 12px);
  padding: clamp(6px, 1vw, 10px) clamp(10px, 1.6vw, 16px);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55) 55%);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(8.5px, 1.15vw, 11px);
  font-variant-numeric: tabular-nums;
}
.ctl-play svg { width: clamp(7px, 1vw, 10px); height: clamp(8px, 1.2vw, 12px); }
.ctl-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.ctl-track i {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
}

/* ── the call ─────────────────────────────────────────────── */

.win-meeting .win-content {
  display: flex;
  flex-direction: column;
  background: #16171d;
}
.meet-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4px, 0.7vw, 7px);
  padding: clamp(5px, 0.8vw, 8px);
  min-height: 0;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: clamp(4px, 0.7vw, 7px);
  background: linear-gradient(150deg, #262838, #191a24);
  border: 1.5px solid transparent;
  overflow: hidden;
}
.tile.is-speaking { border-color: #5856d6; }
.face {
  display: grid;
  place-items: center;
  width: clamp(20px, 3.4vw, 34px);
  height: clamp(20px, 3.4vw, 34px);
  border-radius: 50%;
  font-size: clamp(7px, 1.15vw, 11px);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
.f1 { background: linear-gradient(145deg, #6f6ae6, #4f4bc0); }
.f2 { background: linear-gradient(145deg, #d97a4e, #b1552f); }
.f3 { background: linear-gradient(145deg, #4c9d8c, #33756a); }
.f4 { background: linear-gradient(145deg, #8a6fb8, #5f4a8a); }
.tile em {
  position: absolute;
  left: clamp(4px, 0.7vw, 7px);
  bottom: clamp(3px, 0.5vw, 5px);
  font-style: normal;
  font-size: clamp(7px, 1.05vw, 10px);
  color: rgba(255, 255, 255, 0.6);
}
.tile.is-speaking em { color: rgba(255, 255, 255, 0.9); }

.meet-bar {
  flex: none;
  display: flex;
  justify-content: center;
  gap: clamp(5px, 0.9vw, 9px);
  padding: clamp(5px, 0.8vw, 9px);
  background: rgba(0, 0, 0, 0.3);
}
.meet-btn {
  display: grid;
  place-items: center;
  width: clamp(15px, 2.4vw, 24px);
  height: clamp(15px, 2.4vw, 24px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.85);
}
.meet-btn svg { width: 58%; height: 58%; }
.meet-btn.is-leave { background: #d9483f; color: #fff; }

/* ── the notes you switch to ──────────────────────────────── */

.win-notes .win-content { background: #17171a; }
.notes-body { display: flex; height: 100%; }
.notes-side {
  flex: none;
  width: 22%;
  max-width: 130px;
  padding: clamp(6px, 1vw, 11px) clamp(5px, 0.8vw, 9px);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9vw, 9px);
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.notes-side i {
  display: block;
  height: clamp(4px, 0.65vw, 6px);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
}
.notes-side i.is-on { background: rgba(255, 255, 255, 0.3); width: 80%; }

.notes-doc {
  flex: 1;
  padding: clamp(8px, 1.3vw, 15px) clamp(9px, 1.5vw, 17px);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.85vw, 9px);
  min-width: 0;
}
.notes-doc b {
  font-size: clamp(9px, 1.35vw, 13px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: clamp(1px, 0.3vw, 3px);
}
.notes-doc b.sub {
  font-size: clamp(8px, 1.15vw, 11px);
  color: rgba(255, 255, 255, 0.5);
  margin-top: clamp(3px, 0.6vw, 6px);
}
.notes-doc i {
  display: block;
  height: clamp(4px, 0.6vw, 6px);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.11);
}
.notes-caret {
  width: 1.5px;
  height: clamp(8px, 1.2vw, 12px);
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.65);
  animation: blink 1.05s steps(1) infinite;
}

/* ── ⌘-tab ────────────────────────────────────────────────── */

.demo-switcher {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) scale(0.94);
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 12px);
  padding: clamp(8px, 1.3vw, 14px);
  border-radius: clamp(10px, 1.6vw, 17px);
  background: rgba(38, 38, 44, 0.82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 46px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.demo-switcher.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.sw-app {
  display: grid;
  place-items: center;
  padding: clamp(4px, 0.7vw, 7px);
  border-radius: clamp(6px, 1vw, 11px);
  background: transparent;
  transition: background 0.12s ease;
}
.sw-app.is-selected { background: rgba(255, 255, 255, 0.22); }

.sw-icon {
  display: grid;
  place-items: center;
  width: clamp(26px, 4.4vw, 46px);
  height: clamp(26px, 4.4vw, 46px);
  border-radius: clamp(6px, 1vw, 11px);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 2px 5px rgba(0, 0, 0, 0.3);
}
.sw-icon svg { width: 62%; height: 62%; }
.i-meet   { background: linear-gradient(160deg, #4a8ef0, #2c5fc4); }
.i-notes  { background: linear-gradient(160deg, #ffd75e, #f0b429); }
.i-player { background: linear-gradient(160deg, #3a3b46, #1e1f27); }

/* The app name sits under the selection, as macOS shows it. */
.sw-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(-24px, -2.4vw, -14px);
  text-align: center;
  font-size: clamp(9px, 1.3vw, 13px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* The top layer, above every window and above the switcher — that is the whole
   point of it. Colours, radius, padding and the content-hugging width are the
   app's own: black at 0.72, white SF Rounded semibold, 14pt radius and 22×14pt
   insets at its 30pt default, with a floor so short lines don't jitter. */
.demo-overlay {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 5.5%;
  transform: translateX(-50%);
  width: fit-content;
  min-width: 4.67em;
  max-width: min(80%, 640px);
  padding: 0.47em 0.73em;
  border-radius: 0.47em;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: ui-rounded, "SF Pro Rounded", var(--font);
  font-size: clamp(14px, 2.45vw, 23px);
  line-height: 1.34;
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.demo-overlay.is-visible { opacity: 1; }

/* The in-flight word, before the recogniser commits it. */
.demo-overlay .tentative { color: rgba(255, 255, 255, 0.55); }

@keyframes blink { 50% { opacity: 0; } }

.demo-caption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}
.demo-caption kbd { font-size: 12px; padding: 0.24em 0.42em; }

/* ─────────────────────────── sections ─────────────────────── */

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  letter-spacing: -0.028em;
  margin-bottom: 16px;
  max-width: 20ch;
}
.section-lede {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.7vw, 1.09rem);
  text-wrap: pretty;
}
.section-lede + .section-lede { margin-top: 14px; }

/* use cases — more copy than the feature cards, and styled apart from them */

/* Three across or one down — two-up would leave the third stranded. */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: 48px;
}
@media (max-width: 980px) {
  .uses { grid-template-columns: 1fr; gap: 34px; }
  /* One column across a wide viewport would otherwise run to ~100 characters. */
  .use p:not(.use-num), .use h3 { max-width: 68ch; }
}

.use { position: relative; }
.use-num {
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.use-num::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.42;
}
.use h3 {
  font-size: clamp(1.06rem, 1.9vw, 1.2rem);
  font-weight: 620;
  letter-spacing: -0.018em;
  margin-bottom: 11px;
  text-wrap: balance;
}
.use p:not(.use-num) {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
}

.uses-note {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 62ch;
}
.uses-note strong { color: var(--text); font-weight: 600; }

/* feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }

.card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 9px;
}
.card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.62;
}
.card strong { color: var(--text); font-weight: 600; }

/* pipeline */

.pipeline {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 720px;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding-bottom: 30px;
}
.stage:last-child { padding-bottom: 0; }
.stage::before {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--border-strong), var(--border));
}
.stage:last-child::before { display: none; }

.stage-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}

.stage-body { padding-top: 6px; }
.stage-body h3 {
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.stage-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.62;
  max-width: 54ch;
}

.how-note {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 720px;
}

/* languages split */

.split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.menu-mock {
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  user-select: none;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 7px;
  color: var(--text);
  white-space: nowrap;
}
.menu-row .tick { color: var(--accent-text); font-size: 12px; width: 12px; }
.menu-row:not(.is-checked) { padding-left: 30px; }
.menu-row.is-checked { background: var(--accent-soft); font-weight: 550; }
.menu-hint { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.menu-arrow { margin-left: auto; color: var(--text-faint); font-size: 13px; line-height: 1; }
.menu-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 10px;
}
.menu-label {
  padding: 4px 10px 4px 12px;
  font-size: 12px;
  font-weight: 550;
  color: var(--text-faint);
  letter-spacing: 0.005em;
}

/* shortcuts */

.shortcuts {
  margin: 42px 0 0;
  display: grid;
  gap: 0;
  max-width: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.shortcut {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.shortcut:last-child { border-bottom: none; }
.shortcut dt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-dim);
}
.shortcut dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}
@media (max-width: 620px) {
  .shortcut { grid-template-columns: 1fr; gap: 8px; }
}

/* limits */

.limits {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.limits li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.62;
}
.limits li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.limits strong { color: var(--text); font-weight: 600; }

/* final cta */

.final-cta {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 460px;
  background: radial-gradient(50% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.final-cta > .wrap { position: relative; }
.final-icon { border-radius: 16px; margin-bottom: 24px; box-shadow: var(--shadow-lg); }
.final-cta h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  letter-spacing: -0.028em;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* footer */

.site-footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
}
.footer-brand img { border-radius: 5px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14.5px;
  margin-left: auto;
}
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note {
  flex-basis: 100%;
  font-size: 13.5px;
  color: var(--text-faint);
}
.footer-note a { color: inherit; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .footer-links { margin-left: 0; gap: 18px; }
  .btn { width: 100%; justify-content: center; }
  .cta { flex-direction: column; }
}
