:root {
  --page: #f4f5f7;
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --ink: #19191f;
  --ink-soft: #3b3b44;
  --muted: #6d6f78;
  --muted-2: #8a8d96;
  --line: #dfe1e7;
  --line-soft: #eceef3;
  --accent: #6f55b5;
  --accent-strong: #563f99;
  --accent-soft: #eee9fb;
  --blue: #3868a8;
  --green: #2f8a60;
  --amber: #a96c1e;
  --danger: #a84646;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 1px rgba(20, 20, 24, 0.05), 0 18px 48px rgba(20, 20, 24, 0.08);
  --shadow-window: 0 1px 1px rgba(20, 20, 24, 0.04), 0 18px 42px rgba(20, 20, 24, 0.13);
  --max: 1120px;
  /* Motion tokens — strong curves instead of weak built-in easings.
     ease-out: entering/exiting UI, hover, press; feels responsive.
     ease-in-out: on-screen movement (carousel dissolve, zoom). */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-ui: 200ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 420px),
    var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(111, 85, 181, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 225, 231, 0.72);
  background: rgba(244, 245, 247, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 11px;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(25, 25, 31, 0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(25, 25, 31, 0.14);
  /* Only transform + background animate — box-shadow stays static to keep it off the paint path. */
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #050508;
  box-shadow: 0 10px 22px rgba(25, 25, 31, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    transform: translateY(-1px);
  }
}

.nav-cta:active {
  transform: scale(0.97);
}

.nav-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(111, 85, 181, 0.32), 0 7px 18px rgba(25, 25, 31, 0.14);
}

.section,
.hero,
.page-hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 76px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 138, 96, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-copy,
.page-copy {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions,
.page-actions,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card-actions.start {
  justify-content: flex-start;
}

.support-grid .support-card .card-actions {
  margin-top: auto;
  padding-top: 30px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-cta .hero-actions {
  margin-top: 0;
}

.hero-cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 1px rgba(20, 20, 24, 0.04), 0 8px 20px rgba(20, 20, 24, 0.06);
  /* box-shadow animates paint — keep it static; let transform/border/bg carry the feedback. */
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.button:hover,
.button:focus-visible {
  border-color: #cfd2da;
  box-shadow: 0 1px 1px rgba(20, 20, 24, 0.04), 0 12px 26px rgba(20, 20, 24, 0.09);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(111, 85, 181, 0.28), 0 1px 1px rgba(20, 20, 24, 0.04), 0 8px 20px rgba(20, 20, 24, 0.06);
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #050508;
}

.button.subtle {
  background: transparent;
  box-shadow: none;
}

.hero-shot-wrap {
  margin: 44px auto 0;
  max-width: 980px;
}

/* Hero feature carousel ------------------------------------------------ */
.hero-carousel {
  margin: 44px auto 0;
  max-width: 980px;
}

.hero-carousel-frame {
  position: relative;
  aspect-ratio: 2184 / 1624;
}

.hero-carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  /* A dissolve is on-screen movement — ease-in-out feels like a real crossfade; 900ms dragged. */
  transition: opacity 520ms var(--ease-in-out), visibility 0s linear 520ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms var(--ease-in-out), visibility 0s;
  z-index: 1;
}

.hero-carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.hero-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(20, 20, 24, 0.04), 0 8px 20px rgba(20, 20, 24, 0.05);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.hero-tab:hover,
.hero-tab:focus-visible {
  color: var(--ink);
  border-color: #cfd2da;
}

@media (hover: hover) and (pointer: fine) {
  .hero-tab:hover {
    transform: translateY(-1px);
  }
}

.hero-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(111, 85, 181, 0.16);
}

.hero-tab.is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 7px 18px rgba(25, 25, 31, 0.18);
}

.shot-body-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Product screenshot presentation modes */
.shot {
  display: block;
  max-width: 100%;
  height: auto;
}

/* App windows that already include macOS chrome */
.shot-window {
  border-radius: 14px;
  box-shadow: var(--shadow-window);
}

/* Floating overlays (keyboard, confirmation sheets) — asset already owns chrome */
.shot-overlay {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Compact panels and sheets — asset already owns chrome */
.shot-panel {
  max-width: min(100%, 480px);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.overlay-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

/* Legacy aliases */
.story-shot {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  box-shadow: var(--shadow-window);
}

.story-shot-flat {
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(20, 20, 24, 0.18);
}

.shot-frame {
  max-width: 100%;
  border: 1px solid rgba(201, 204, 214, 0.86);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fbfbfc, #f0f1f4);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.traffic {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.traffic span:nth-child(1) {
  background: #ff6258;
}

.traffic span:nth-child(2) {
  background: #ffbd2e;
}

.traffic span:nth-child(3) {
  background: #27c93f;
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.window-state {
  padding-right: 14px;
  color: var(--green);
}

.shot-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 520px;
  background: #f7f8fa;
}

.shot-sidebar {
  border-right: 1px solid var(--line-soft);
  background: #f1f2f5;
  padding: 18px 14px;
}

.side-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.side-heading.spaced {
  margin-top: 22px;
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-radius: 9px;
  padding: 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.side-item.active {
  background: white;
  box-shadow: 0 1px 2px rgba(20, 20, 24, 0.05);
  color: var(--ink);
}

.side-pill {
  min-width: 26px;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-align: center;
  font-size: 11px;
}

.shot-main {
  padding: 22px;
}

.shot-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
}

.mock-panel {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: white;
  box-shadow: 0 1px 1px rgba(20, 20, 24, 0.03);
}

.mock-panel.pad {
  padding: 18px;
}

.mock-panel.stack-after {
  margin-top: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title h3,
.panel-title h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.status-chip,
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.status-chip.violet,
.mini-chip.violet {
  background: var(--accent-strong);
  color: #fff;
}

.status-chip.amber,
.mini-chip.amber {
  background: var(--amber);
  color: #fff;
}

.remote-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 148px;
}

.remote-device {
  position: relative;
  width: 54px;
  height: 132px;
  margin: 0 auto;
  border-radius: 26px;
  background: linear-gradient(180deg, #25252b, #09090d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 24px rgba(20, 20, 24, 0.18);
}

.remote-device::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #34343c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.remote-device::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 26px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #42424b;
}

.remote-buttons {
  position: absolute;
  top: 56px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 8px;
  transform: translateX(-50%);
}

.remote-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #494954;
}

.remote-meta {
  display: grid;
  gap: 8px;
}

.metric-row,
.action-row,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.metric-row:first-child,
.action-row:first-child,
.setting-row:first-child {
  border-top: 0;
}

.metric-row span:last-child,
.action-row span:last-child,
.setting-row span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assignment-list {
  display: grid;
  gap: 9px;
}

.assignment {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0 10px;
  background: #fbfbfc;
  font-size: 13px;
  font-weight: 700;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid #d7dae2;
  border-radius: 7px;
  padding: 0 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 20, 24, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.profile {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: #fbfbfc;
}

.profile strong {
  display: block;
  font-size: 13px;
}

.profile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.keyboard-grid span {
  min-height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfbfc;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.keyboard-grid span.focus {
  border-color: rgba(111, 85, 181, 0.45);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(111, 85, 181, 0.1);
}

.voice-strip {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 78px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbfbfc;
}

.voice-strip span {
  flex: 1;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 85, 181, 0.72), rgba(56, 104, 168, 0.58));
}

.voice-strip span:nth-child(1) { height: 20%; }
.voice-strip span:nth-child(2) { height: 48%; }
.voice-strip span:nth-child(3) { height: 70%; }
.voice-strip span:nth-child(4) { height: 38%; }
.voice-strip span:nth-child(5) { height: 88%; }
.voice-strip span:nth-child(6) { height: 56%; }
.voice-strip span:nth-child(7) { height: 76%; }
.voice-strip span:nth-child(8) { height: 32%; }
.voice-strip span:nth-child(9) { height: 62%; }
.voice-strip span:nth-child(10) { height: 44%; }
.voice-strip span:nth-child(11) { height: 74%; }
.voice-strip span:nth-child(12) { height: 30%; }

.transcript-box {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px;
  background: white;
  color: var(--ink-soft);
  font-size: 14px;
}

.transcript-box mark {
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 1px 4px;
}

.ai-flow {
  display: grid;
  gap: 10px;
}

.ai-step {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: #fbfbfc;
}

.ai-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.ai-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.confirmation {
  border-color: rgba(111, 85, 181, 0.28);
  background: #f9f6ff;
}

.section {
  padding: 96px 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2,
.page-section h2 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-heading p,
.page-section > p {
  color: var(--muted);
  font-size: 17px;
}

/* Features: text left, image right; scroll focus zooms in-slot only.
   Short duration so the zoom tracks the scroll instead of trailing it —
   scroll-linked motion should feel responsive, not catch up. */
.feature-stack {
  --feature-zoom-ease: var(--ease-out);
  --feature-zoom-duration: 200ms;
  --feature-media-h: 300px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-block {
  /*
    Right column + fixed media height always reserve the focused footprint,
    so zoom never reflows copy or stretches gaps between blocks.
  */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 24px 36px;
  align-items: start;
}

.feature-copy {
  min-width: 0;
  max-width: 520px;
  /* Vertically center copy against the fixed media slot */
  padding-top: clamp(12px, calc((var(--feature-media-h) - 160px) / 2), 64px);
}

.feature-copy h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.feature-points {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  border-radius: 999px;
  background: var(--accent);
}

/*
  Fixed media slot: layout size never changes. Zoom is transform-only
  so neighboring text blocks keep a stable vertical rhythm.
*/
.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--feature-media-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  overflow: visible;
}

.feature-media .shot {
  display: block;
  width: auto;
  height: auto;
  max-width: 230px;
  max-height: 190px;
  object-fit: contain;
  background: transparent;
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--feature-zoom-duration) var(--feature-zoom-ease);
}

/* Remote control: light framing still helps a rectangular crop */
.feature-media .shot-window {
  border-radius: 10px;
  max-width: 210px;
  max-height: 200px;
  box-shadow: 0 10px 28px rgba(20, 20, 24, 0.14);
  /* transform only — the shadow stays constant so nothing repaints each frame during zoom. */
  transition: transform var(--feature-zoom-duration) var(--feature-zoom-ease);
}

/* Typing / post-processing / AI: no CSS crop, shadow, or backing */
.feature-media .shot-overlay,
.feature-media .shot-panel {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.feature-media .shot-overlay {
  max-width: 270px;
  max-height: 160px;
}

.feature-media .shot-panel {
  max-width: 250px;
  max-height: 130px;
}

.feature-media-wide .shot-overlay {
  max-width: 300px;
  max-height: 130px;
}

/* Scroll focus: pure scale — no layout box changes */
.feature-media.is-active .shot {
  transform: scale(1.48);
}

.feature-media.is-active .shot-window {
  transform: scale(1.52);
}

.feature-media.is-active .shot-overlay {
  transform: scale(1.42);
}

.feature-media.is-active .shot-panel {
  transform: scale(1.55);
}

.feature-media-wide.is-active .shot-overlay {
  transform: scale(1.38);
}

/* Legacy story aliases (kept for any remaining pages) */
.story-list {
  display: grid;
  gap: 28px;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 30px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(223, 225, 231, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 1px 1px rgba(20, 20, 24, 0.03);
}

.story-row:nth-child(even) .story-copy {
  order: -1;
}

.story-row-overlay {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.story-copy h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.story-copy p {
  color: var(--muted);
  font-size: 16px;
}

.story-points {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.story-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.story-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.mini-window .shot-body {
  display: block;
  min-height: auto;
  padding: 16px;
}

.mini-window .window-top {
  min-height: 32px;
}

.mini-window .window-title {
  position: static;
  transform: none;
  font-size: 11px;
}

.mini-window .window-state {
  font-size: 11px;
}

.pricing-grid,
.support-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Long-form legal text: readable measure, generous leading, anchored headings. */
.legal-prose {
  max-width: 760px;
  margin: 0 auto;
}

.legal-prose > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.legal-prose h2 {
  margin: 40px 0 14px;
  scroll-margin-top: 88px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.legal-prose h2:first-of-type {
  margin-top: 28px;
}

.legal-prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.legal-prose ul li {
  margin-bottom: 6px;
}

.legal-prose ul li:last-child {
  margin-bottom: 0;
}

.legal-prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

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

.legal-prose table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  border-radius: 10px;
}

.legal-prose table th,
.legal-prose table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.legal-prose table thead th {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.legal-prose table tbody tr:last-child td {
  border-bottom: none;
}

.legal-prose table td code,
.legal-prose table th code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
}

.legal-prose table td:first-child {
  white-space: nowrap;
}

.legal-prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
}

.support-grid .support-card {
  display: flex;
  flex-direction: column;
}

.step-card,
.price-card,
.support-card,
.legal-card,
.faq-card,
.callout,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 1px rgba(20, 20, 24, 0.03);
}

.step-card,
.support-card,
.legal-card {
  padding: 20px;
}

/* How-it-works vertical timeline ---------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 16px;
  padding-bottom: 16px;
}

/* connector line runs down the node rail, centered at 14px */
.timeline-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step:last-child::before {
  display: none;
}

/* optional steps render the connector dashed — same axis, same rhythm */
.timeline-step.is-optional::before {
  background: transparent;
  border-left: 2px dashed var(--line);
  width: 0;
}

.timeline-node {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--page);
}

.timeline-step.is-optional .timeline-node {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px dashed var(--line);
  box-shadow: 0 0 0 4px var(--page);
}

.timeline-body h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.3;
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.step-card h3,
.support-card h3,
.legal-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step-optional {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(20, 20, 24, 0.05);
  border-radius: 999px;
  padding: 1px 6px;
}

.step-card p,
.support-card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.price-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card .card-actions {
  margin-top: auto;
  padding-top: 24px;
}

.price-card.highlight {
  border-color: rgba(111, 85, 181, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 255, 0.72));
}

/* Billing toggle inside the subscription card */
.plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(20, 20, 24, 0.06);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 18px;
  align-self: center;
}

.plan-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-toggle button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 20, 24, 0.1);
}

.plan-toggle button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plan-toggle .save-badge {
  font-size: 11px;
  font-weight: 800;
  color: #1a8a3a;
}

.price-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 10px 0 6px;
  font-size: 24px;
}

.price {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.feature-list li::before {
  content: "+";
  display: inline-flex;
  width: 20px;
  color: var(--green);
  font-weight: 700;
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.callout h2,
.callout h3 {
  margin-bottom: 8px;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

/* Download page -------------------------------------------------------- */
.download-card {
  align-items: center;
}

.download-version-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.download-version {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.download-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.download-button {
  min-height: 52px;
  font-size: 16px;
  padding: 0 28px;
  white-space: nowrap;
}

/* Changelog page ------------------------------------------------------- */
.changelog-list {
  max-width: 760px;
  margin: 0 auto;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.changelog-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.changelog-version h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.changelog-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.changelog-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.changelog-body ul {
  margin: 0;
  padding-left: 20px;
}

.changelog-body li {
  margin-bottom: 6px;
}

.changelog-body li:last-child {
  margin-bottom: 0;
}

.changelog-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.faq-list {
  display: grid;
  gap: 10px;
}

details.faq-card {
  padding: 0;
}

details.faq-card summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 700;
}

details.faq-card summary::-webkit-details-marker {
  display: none;
}

details.faq-card summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 700;
  transition: transform var(--dur-ui) var(--ease-out);
}

details.faq-card[open] summary::after {
  content: "−";
}

details.faq-card p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Smooth open/close where supported; gracefully snaps on older browsers. */
@supports (interpolate-size: allow-keywords) {
  details.faq-card {
    interpolate-size: allow-keywords;
    transition: height var(--dur-ui) var(--ease-out);
  }
  details.faq-card p {
    transition: opacity var(--dur-ui) var(--ease-out);
    @starting-style {
      opacity: 0;
    }
  }
}

.page-hero {
  padding: 70px 0 42px;
}

.page-hero.center {
  text-align: center;
}

.page-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.form-card {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.check-field span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}

.field textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(111, 85, 181, 0.72);
  box-shadow: 0 0 0 4px rgba(111, 85, 181, 0.1);
}

.field small,
.form-note {
  color: var(--muted);
  font-size: 13px;
}

.check-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-success {
  display: none;
  border: 1px solid rgba(47, 138, 96, 0.24);
  border-radius: 12px;
  background: #eff7f2;
  color: #225d43;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
}

.form-success.is-visible {
  display: block;
}

.info-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.info-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.info-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 96px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(120px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-grid .brand {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 13px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-list .button {
  min-height: 40px;
}

@media (max-width: 980px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    position: absolute;
    top: 14px;
    right: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-carousel-tabs {
    gap: 6px;
  }

  .hero-tab {
    padding: 0 12px;
    font-size: 12px;
  }

  .shot-body,
  .shot-main-grid,
  .story-row,
  .two-column,
  .footer-grid,
  .callout {
    grid-template-columns: 1fr;
  }

  .story-row:nth-child(even) .story-copy {
    order: 0;
  }

  .feature-stack {
    --feature-media-h: 260px;
    gap: 24px;
    max-width: none;
  }

  .feature-block {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 42%);
    gap: 18px 24px;
  }

  .feature-media .shot {
    max-width: 200px;
    max-height: 160px;
  }

  .feature-media .shot-window {
    max-width: 180px;
    max-height: 170px;
  }

  .feature-media .shot-overlay {
    max-width: 230px;
    max-height: 140px;
  }

  .feature-media .shot-panel {
    max-width: 210px;
    max-height: 110px;
  }

  .feature-media-wide .shot-overlay {
    max-width: 250px;
    max-height: 110px;
  }

  .feature-media.is-active .shot {
    transform: scale(1.36);
  }

  .feature-media.is-active .shot-window {
    transform: scale(1.4);
  }

  .feature-media.is-active .shot-overlay {
    transform: scale(1.32);
  }

  .feature-media.is-active .shot-panel {
    transform: scale(1.42);
  }

  .feature-media-wide.is-active .shot-overlay {
    transform: scale(1.28);
  }

  .shot-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .section,
  .hero,
  .page-hero,
  .page-section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .hero-copy,
  .page-copy {
    max-width: none;
    font-size: 16px;
  }

  .hero-actions,
  .hero-cta,
  .page-actions,
  .card-actions {
    width: min(100%, 288px);
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions.start {
    margin-left: 0;
    margin-right: 0;
  }

  .button {
    width: 100%;
  }

  .nav-cta {
    display: none;
  }

  .nav-wrap {
    width: min(calc(100% - 28px), var(--max));
    min-width: 0;
    overflow: hidden;
  }

  .nav-links {
    max-width: 100%;
  }

  .story-row,
  .price-card,
  .form-card,
  .callout {
    padding: 18px;
  }

  .feature-stack {
    --feature-media-h: 200px;
    gap: 22px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-copy {
    padding-top: 0;
  }

  /*
    Inset the media from page edges so the focused image never
    sits flush against the left (or right) side of the viewport.
  */
  .feature-media {
    width: 100%;
    height: var(--feature-media-h);
    padding-inline: 20px;
    box-sizing: border-box;
    justify-self: stretch;
  }

  .feature-media .shot,
  .feature-media .shot-window,
  .feature-media .shot-overlay,
  .feature-media .shot-panel,
  .feature-media-wide .shot-overlay {
    max-width: min(100%, 240px);
    max-height: 140px;
  }

  .feature-media-wide .shot-overlay {
    max-width: min(100%, 280px);
    max-height: 110px;
  }

  .feature-media.is-active .shot {
    transform: scale(1.28);
  }

  .feature-media.is-active .shot-window {
    transform: scale(1.32);
  }

  .feature-media.is-active .shot-overlay {
    transform: scale(1.24);
  }

  .feature-media.is-active .shot-panel {
    transform: scale(1.34);
  }

  .feature-media-wide.is-active .shot-overlay {
    transform: scale(1.2);
  }

  .pricing-grid,
  .support-grid,
  .legal-grid,
  .profile-strip {
    grid-template-columns: 1fr;
  }

  .assignment {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .keyboard-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .window-title {
    display: none;
  }

  .shot-main {
    padding: 14px;
  }

  .shot-body,
  .shot-main,
  .shot-main-grid,
  .remote-card,
  .story-row,
  .story-copy {
    max-width: 100%;
    min-width: 0;
  }

  .shot-frame,
  .hero-shot-wrap,
  .story-list {
    max-width: 100%;
    overflow: hidden;
  }

  .shot-body,
  .shot-main-grid {
    overflow: hidden;
  }

  .remote-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .remote-device {
    width: 46px;
    height: 112px;
  }

  .remote-device::before {
    width: 28px;
    height: 28px;
  }

  .remote-buttons {
    top: 49px;
    gap: 6px;
  }

  .metric-row,
  .action-row,
  .setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 8px 0;
    align-items: flex-start;
  }

  .metric-row span,
  .action-row span,
  .setting-row span {
    min-width: 0;
  }

  .metric-row span:last-child,
  .action-row span:last-child,
  .setting-row span:last-child {
    text-align: right;
  }

  .mini-window .window-state {
    display: none;
  }
}

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

  .feature-media .shot,
  .feature-media .shot-window {
    transition: none;
  }
}
