/* RigSpark × Sparky. Tokens live in brand/tokens/tokens.css; see design/README.md. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  background: var(--paper-50);
  color: var(--ink-900);
  font: 400 17px/1.47 var(--font-ui);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
code {
  font: 500 0.84em var(--font-mono);
  letter-spacing: 0;
  background: var(--paper-100);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
:focus-visible {
  outline: 3px solid var(--spark-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}
.skip:focus {
  top: 12px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -3px;
}
.i svg {
  width: 100%;
  height: 100%;
}

/* Layout and type */
.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}
.wide {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 22px;
}
.center {
  text-align: center;
}
.narrow {
  max-width: 660px;
  margin: 14px auto 0;
}
.eyebrow {
  font: 600 21px/1.2 var(--font-display);
  letter-spacing: 0.011em;
  color: var(--ink-900);
}
.eyebrow.amber {
  color: var(--spark-700);
}
.eyebrow.on-night {
  color: var(--spark-300);
}
.eyebrow + .h2 {
  margin-top: 8px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.display {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  color: var(--ink-500);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.lead b {
  color: var(--ink-900);
  font-weight: 600;
}
.muted {
  color: var(--ink-500);
}
.fine {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 14px;
}
.fine a {
  text-decoration: underline;
}

/* Actions */
.ctas {
  display: flex;
  gap: 16px 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--spark-500);
  color: var(--ink-900);
  font: 500 17px var(--font-ui);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition:
    background 0.2s,
    transform 0.2s var(--motion-spring);
}
.pill:hover {
  background: var(--spark-300);
  transform: scale(1.03);
}
.pill.sm {
  font-size: 12px;
  padding: 4px 11px;
}
/* Clean download pills: one solid primary, one quiet secondary. */
.pill.dark {
  background: var(--ink-900);
  color: #fff;
}
.pill.dark:hover {
  background: var(--ink-700);
}
.pill.soft {
  background: var(--paper-100);
  color: var(--ink-900);
}
.pill.soft:hover {
  background: var(--paper-200);
}
.pill .i {
  width: 18px;
  height: 18px;
  vertical-align: 0;
}
.more {
  color: var(--spark-700);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
}
.more::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  margin-left: 4px;
  transition: transform 0.2s;
}
.more:hover {
  text-decoration: underline;
}
.more:hover::after {
  transform: translateX(3px);
}
.night .more {
  color: var(--spark-300);
}

/* Reveal: only hidden when JS can reveal it again. */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--motion-ease),
    transform 1s var(--motion-ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Local nav */
.lnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.lnav-inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 21px var(--font-display);
  letter-spacing: -0.01em;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  color: var(--ink-700);
  letter-spacing: -0.01em;
}
.nav-links a:hover {
  color: var(--spark-700);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  margin-left: auto;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink-900);
  transition: transform 0.25s var(--motion-ease);
}
.nav-toggle span:first-child {
  top: 16px;
}
.nav-toggle span:last-child {
  top: 23px;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 76px 0 0;
  text-align: center;
}
.hero > .wrap {
  max-width: 1240px;
}
.hero .display {
  margin-top: 10px;
  font-size: clamp(44px, 7vw, 88px);
}
.hero .lead {
  max-width: 680px;
  margin: 18px auto 0;
}
.newchip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.newchip::after {
  content: "›";
}
.newchip b {
  color: var(--spark-700);
  font-weight: 600;
}
.newchip:hover {
  color: var(--ink-900);
}
.ctas.get {
  gap: 12px;
  margin-top: 32px;
}
.ctas.get .pill {
  height: 48px;
  padding: 0 26px;
}
.ctas.get .pill:hover {
  transform: none;
}
/* Edition tag inside the primary download button. */
.get-edition {
  margin-left: 2px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--spark-500);
  color: var(--ink-900);
  font: 600 11px var(--font-ui);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.get-label {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .ctas.get .get-primary {
    gap: 6px;
    padding: 0 18px;
    font-size: 16px;
  }
  .get-edition {
    padding: 3px 7px;
    font-size: 10px;
  }
}
/* Too narrow for the tag; the note under the button still names the edition. */
@media (max-width: 379px) {
  .get-edition {
    display: none;
  }
}
.get-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-500);
}

/* The app itself, framed as a macOS window under the hero. */
.hero-app {
  position: relative;
  margin-top: 64px;
  padding-bottom: 24px;
}
.hero-app::before {
  content: "";
  position: absolute;
  inset: 12% 6% -4%;
  background: radial-gradient(60% 55% at 50% 40%, rgba(255, 173, 0, 0.28), rgba(255, 173, 0, 0) 70%);
  filter: blur(30px);
  z-index: -1;
}
.win {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 30px 80px -20px rgba(0, 0, 0, 0.35),
    0 12px 30px -12px rgba(0, 0, 0, 0.25);
}
.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: #2a2a2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.win-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.win-bar i:nth-child(2) {
  background: #febc2e;
}
.win-bar i:nth-child(3) {
  background: #28c840;
}
.win-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 12px var(--font-ui);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
}
.win img {
  width: 100%;
}

/* Scroll-scrubbed turntable */
.spin {
  height: 260vh;
  position: relative;
}
.spin .stick {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 24px;
  overflow: hidden;
}
/* Captions share one grid cell above the stage; Sparky is sized to the height that remains. */
.spin .stage {
  position: relative;
  width: min(780px, 92vw, calc((100vh - 52px - 200px) * 799 / 629));
  aspect-ratio: 799 / 629;
}
.spin .stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spin .cap {
  grid-area: 1 / 1;
  text-align: center;
  font: 600 clamp(24px, 3.2vw, 40px) / 1.15 var(--font-display);
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s,
    transform 0.5s var(--motion-ease);
  pointer-events: none;
  padding: 0 22px;
}
.spin .cap.on {
  opacity: 1;
  transform: none;
}
.spin .cap small {
  display: block;
  font: 500 17px var(--font-ui);
  color: var(--ink-500);
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.spin .stage {
  grid-row: 2;
}
/* Without JS or with reduced motion, the turntable is a still image with all captions. */
html:not(.js) .spin,
.js.still .spin {
  height: auto;
  padding: 48px 0 24px;
}
html:not(.js) .spin .stick,
.js.still .spin .stick {
  position: static;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
html:not(.js) .spin .cap,
.js.still .spin .cap {
  position: static;
  opacity: 1;
  transform: none;
}

/* Lineup */
.lineup {
  background: var(--paper-100);
  padding: 120px 0 100px;
  overflow: hidden;
}
.lineup .imgs {
  margin: 56px auto 0;
  max-width: min(1100px, 100%);
}
.moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 12px auto 0;
  padding: 0 22px;
  text-align: center;
}
.moods b {
  display: block;
  font: 600 24px var(--font-display);
  letter-spacing: -0.02em;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}
.dot-yes {
  background: var(--spark-500);
}
.dot-slow {
  background: var(--spark-300);
}
.dot-no {
  background: #ff5a45;
}
.moods p {
  color: var(--ink-500);
  font-size: 15px;
  margin-top: 6px;
  padding: 0 10px;
}

/* Ask Sparky configurator */
.ask {
  padding: 140px 0;
}
.config {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
.viewer {
  background: var(--paper-100);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.viewer img {
  position: absolute;
  width: 92%;
  left: 4%;
  top: 9%;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.45s var(--motion-ease),
    transform 0.6s var(--motion-spring);
}
.viewer img.on {
  opacity: 1;
  transform: none;
}
.verdict-tag {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 22px;
  font: 600 14px var(--font-ui);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 8px;
  align-items: center;
}
.verdict-tag i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.tag-yes {
  background: var(--spark-500);
}
.tag-slow {
  background: var(--spark-300);
}
.tag-no {
  background: #ff5a45;
}
.step {
  padding: 22px 0;
  border-bottom: 1px solid var(--paper-200);
}
.step:first-child {
  padding-top: 0;
}
.step h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.step .muted {
  font-size: 14px;
  margin-bottom: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips button {
  cursor: pointer;
  background: #fff;
  font: 500 15px var(--font-ui);
  padding: 11px 16px;
  border: 1.5px solid var(--paper-300);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.chips button:hover {
  border-color: var(--ink-400);
}
.chips button[aria-pressed="true"] {
  border-color: var(--spark-600);
  box-shadow: 0 0 0 1px var(--spark-600) inset;
}
.result {
  margin-top: 24px;
  background: var(--paper-100);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.result .say {
  font: 600 28px/1.15 var(--font-display);
  letter-spacing: -0.025em;
}
.result .why {
  color: var(--ink-500);
  font-size: 15px;
  margin-top: 6px;
}
.gauge {
  height: 6px;
  border-radius: 6px;
  background: var(--paper-300);
  overflow: hidden;
  margin: 18px 0 8px;
}
.gauge i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  transition:
    width 0.7s var(--motion-ease),
    background 0.3s;
}
.gauge-yes {
  background: var(--verdict-yes);
}
.gauge-slow {
  background: var(--spark-600);
}
.gauge-no {
  background: var(--verdict-no);
}
.legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 12px var(--font-mono);
  color: var(--ink-500);
}
.legend + .legend {
  margin-top: 4px;
}
.result .speed {
  margin-top: 12px;
  font: 500 13px/1.5 var(--font-mono);
  color: var(--ink-700);
}
.cli {
  margin-top: 14px;
  font: 500 13px/1.7 var(--font-mono);
  color: var(--ink-700);
}
.cli b {
  color: var(--spark-700);
  font-weight: 600;
}

/* Author display rules otherwise override the hidden attribute. */
#ask [hidden] {
  display: none !important;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 6px 0 10px;
  background: var(--paper-100);
  border-radius: var(--radius-pill);
}
.seg button {
  cursor: pointer;
  border: 0;
  background: none;
  font: 500 13px var(--font-ui);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-700);
}
.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
}
.empty-new {
  padding: 14px 16px;
  border: 1.5px dashed var(--paper-300);
  border-radius: var(--radius-sm);
}

/* Night sections */
.night {
  background: #000;
  color: var(--night-text);
}
.night .lead,
.night .muted {
  color: var(--night-muted);
}
.night code {
  background: var(--night-800);
  color: var(--night-text);
}
.night :focus-visible {
  outline-color: var(--spark-300);
}

/* How it works */
.how {
  padding: 140px 0 120px;
}
.terminal {
  margin: 64px auto 0;
  max-width: 860px;
  background: var(--night-800);
  border: 1px solid #2c2c2e;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #2c2c2e;
  color: var(--night-muted);
  font: 500 12px var(--font-ui);
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3c;
}
.term-bar span {
  margin-left: 8px;
}
.term-body {
  font: 400 13px/1.6 var(--font-mono);
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--night-text);
}
.t-acc {
  color: var(--spark-300);
}
.t-dim {
  color: #8e8e93;
}
.t-yes {
  color: #30d158;
}
.t-slow {
  color: var(--spark-300);
}
.t-no {
  color: #ff6961;
}
.terminal figcaption,
.demo figcaption {
  font-size: 13px;
  color: var(--night-muted);
  padding: 12px 22px 16px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 48px auto 0;
  counter-reset: step;
}
.steps li {
  font-size: 15px;
  color: var(--night-muted);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 600 13px var(--font-mono);
  color: var(--spark-300);
  margin-bottom: 8px;
}
.steps b {
  color: var(--night-text);
  font-weight: 600;
}
.demo {
  margin: 96px auto 0;
  max-width: 980px;
}
.demo video {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--night-800);
}
.demo figcaption {
  text-align: center;
}

/* Numbers */
.nums {
  padding: 140px 0;
}
.nums .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.nums dt {
  font: 700 clamp(48px, 6vw, 80px) / 1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--spark-600);
}
.nums dd {
  margin-top: 12px;
  color: var(--ink-500);
}

/* Feature tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}
.tile {
  min-height: 600px;
  padding: 56px 32px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--paper-100);
}
.tile h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.tile p {
  font-size: clamp(19px, 1.8vw, 24px);
  margin-top: 6px;
  color: var(--ink-700);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.tile .ctas {
  margin-top: 18px;
  gap: 22px;
}
.tile .shot {
  margin-top: auto;
  width: min(92%, 620px);
  max-height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(24px);
  transition: transform 1s var(--motion-ease);
}
.tile:hover .shot {
  transform: translateY(8px);
}
.tile.night {
  background: #000;
  color: var(--night-text);
}
.tile.night p {
  color: var(--night-muted);
}
.tile.amber {
  background: linear-gradient(180deg, var(--spark-50), var(--peach-100));
}
.tile .art {
  margin-top: auto;
  width: min(70%, 440px);
}
.badge-new {
  font: 600 12px var(--font-ui);
  color: var(--spark-700);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.night .badge-new {
  color: var(--spark-300);
}

/* Privacy */
.privacy {
  padding: 140px 0 120px;
  overflow: hidden;
}
.privacy .art {
  width: min(520px, 80vw);
  margin: 48px auto 0;
  filter: drop-shadow(0 30px 60px rgba(255, 173, 0, 0.18));
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 72px;
}
.pillars .i {
  width: 34px;
  height: 34px;
  color: var(--spark-300);
  margin-bottom: 14px;
}
.pillars h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pillars p {
  font-size: 15px;
  color: var(--night-muted);
}

/* Card gallery */
.gallery {
  padding: 140px 0 120px;
  background: var(--paper-100);
  overflow: hidden;
}
.gal-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.arrows {
  display: flex;
  gap: 12px;
}
.arrows button {
  cursor: pointer;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-200);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-700);
  transition: background 0.2s;
}
.arrows button:hover {
  background: var(--paper-300);
}
.scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 48px max(22px, calc((100vw - 1216px) / 2)) 30px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar {
  display: none;
}
.scroller:focus-visible {
  outline-offset: -3px;
}
.card {
  flex: 0 0 372px;
  min-height: 500px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.4s var(--motion-ease),
    box-shadow 0.4s;
}
.card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-float);
}
.card .k {
  font: 600 12px var(--font-ui);
  color: var(--ink-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card.soon .k::after {
  content: " · Next release";
  color: var(--spark-700);
}
.card h3 {
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-top: 8px;
  font-weight: 700;
}
.card p {
  color: var(--ink-500);
  margin-top: 10px;
  font-size: 16px;
}
.card .ico {
  margin-top: auto;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--spark-50);
  display: grid;
  place-items: center;
  color: var(--spark-700);
}
.card .ico .i {
  width: 38px;
  height: 38px;
}

/* Compare */
.compare {
  padding: 140px 0;
}
.cmp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
}
.cmp .col {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
}
.cmp .us {
  background: var(--paper-100);
}
.cmp .them {
  border: 1px solid var(--paper-300);
}
.cmp .col > img {
  width: 120px;
  margin: 0 auto 18px;
}
.cmp .ph {
  width: 96px;
  height: 96px;
  margin: 12px auto 30px;
  border-radius: 26px;
  background: var(--paper-100);
  display: grid;
  place-items: center;
  color: var(--ink-500);
}
.cmp .ph .i {
  width: 44px;
  height: 44px;
}
.cmp h3 {
  font-size: 28px;
  letter-spacing: -0.025em;
}
.cmp h3 + .muted {
  margin-top: 6px;
}
.cmp ul {
  margin-top: 26px;
  text-align: left;
}
.cmp li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--paper-200);
  font-size: 16px;
}
.cmp .m {
  flex: none;
  width: 18px;
  text-align: center;
  font-weight: 700;
}
.cmp .y {
  color: var(--verdict-yes);
}
.cmp .n,
.cmp li.dim {
  color: var(--ink-500);
}

/* Story photo */
.story {
  position: relative;
  margin: 0 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: flex-start;
  color: #fff;
}
.story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
}
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 48%);
}
.story .txt {
  position: relative;
  z-index: 1;
  padding: 56px;
  max-width: 760px;
}
.story .txt p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(19px, 1.8vw, 24px);
  margin-top: 10px;
  font-weight: 500;
}

/* Install */
.install {
  padding: 140px 0 120px;
}
.get-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px 72px;
  align-items: start;
}
.get-copy .lead {
  margin-top: 16px;
  max-width: 460px;
}
.get-copy .fine {
  margin-top: 18px;
  max-width: 460px;
}
.get-copy .fine + .fine {
  margin-top: 6px;
}
.dl-rows {
  display: grid;
  gap: 10px;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 20px;
  background: var(--paper-100);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.dl-row:hover {
  background: var(--paper-200);
}
.dl-row .os-i {
  width: 22px;
  height: 22px;
  color: var(--ink-900);
}
.dl-txt {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.dl-txt b {
  font: 600 16px var(--font-ui);
  letter-spacing: -0.01em;
}
.dl-txt small {
  font-size: 13px;
  color: var(--ink-500);
}
.dl-tag {
  display: none;
  font: 600 11px var(--font-ui);
  letter-spacing: 0.02em;
  color: var(--spark-700);
  background: var(--spark-50);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.dl-row.is-current {
  background: #fff;
  border-color: var(--paper-300);
  box-shadow: var(--shadow-card);
}
.dl-row.is-current .dl-tag {
  display: inline-block;
}
.dl-go {
  width: 18px;
  height: 18px;
  color: var(--ink-500);
  transition: transform 0.2s var(--motion-ease);
}
a.dl-row:hover .dl-go {
  transform: translateY(2px);
  color: var(--ink-900);
}
.more-dl {
  margin-top: 10px;
  border-bottom: 0;
}
.more-dl > summary.dl-row {
  cursor: pointer;
  list-style: none;
  font: inherit;
  letter-spacing: inherit;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 20px;
}
.more-dl a {
  color: inherit;
  text-decoration: none;
}
.more-dl .fine a {
  text-decoration: underline;
}
.more-dl p {
  padding: 0;
  max-width: none;
}
.more-dl p.os-label {
  color: var(--ink-500);
}
.more-dl > summary::-webkit-details-marker {
  display: none;
}
.more-dl > summary::after {
  content: none;
}
.more-dl .os-i,
.more-dl .dl-txt b {
  color: var(--ink-700);
}
.more-dl[open] > summary .dl-go {
  transform: rotate(180deg);
}
.more-body {
  padding: 6px 2px 0;
}
.os {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.os-label {
  margin-top: 22px;
  font: 600 12px var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.more-body .dl {
  padding: 16px 8px;
  border-radius: var(--radius-sm);
}
.more-body .dl .i {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}
.more-body .dl b {
  font-size: 15px;
}
.more-body .dl span:not(.i) {
  font-size: 12px;
}
.sponsor {
  margin-top: 72px;
}
.dl {
  display: block;
  height: 100%;
  background: var(--paper-100);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.3s var(--motion-ease);
}
.dl:hover {
  background: var(--paper-200);
  transform: translateY(-3px);
}
.dl.is-current {
  border-color: var(--spark-500);
  background: var(--spark-50);
}
.dl .i {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}
.dl b {
  display: block;
  font: 600 19px var(--font-display);
  letter-spacing: -0.015em;
}
.dl span:not(.i) {
  font-size: 14px;
  color: var(--ink-500);
}
.cmds {
  margin-top: 20px;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 14px;
  padding: 10px 10px 10px 20px;
  margin-top: 12px;
}
.cmd small {
  font: 600 11px var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spark-300);
  white-space: nowrap;
  min-width: 112px;
}
.cmd code {
  background: none;
  color: #fff;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd .copy-btn {
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--ink-400);
  padding: 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.cmd .copy-btn:hover {
  color: #fff;
}
.cmd .copy-btn.done {
  color: #30d158;
}
.cmd :focus-visible {
  outline-color: var(--spark-300);
}

/* FAQ */
.faq {
  padding: 40px 0 140px;
}
.faq .list {
  max-width: 820px;
  margin: 48px auto 0;
}
details {
  border-bottom: 1px solid var(--paper-200);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 4px;
  font: 600 21px/1.3 var(--font-display);
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font: 300 30px/1 var(--font-ui);
  color: var(--ink-500);
  transition: transform 0.3s var(--motion-ease);
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 4px 26px;
  color: var(--ink-500);
  max-width: 700px;
}
details a {
  color: var(--spark-700);
  text-decoration: underline;
}

/* Closing CTA */
.cta {
  padding: 120px 0 0;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--paper-100));
  overflow: hidden;
}
.cta-title {
  font-size: clamp(44px, 6.4vw, 80px);
}
.cta .lead {
  margin-top: 14px;
}
.cta .art {
  width: min(560px, 86vw);
  margin: 40px auto 0;
}

/* Footer */
.footer {
  background: var(--paper-100);
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.33;
  padding: 24px 0 40px;
}
.fine2 {
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-300);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-300);
  color: var(--ink-900);
}
.fcols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 24px 0;
}
.fcols b {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
  margin-bottom: 10px;
}
.fcols a {
  display: block;
  margin-bottom: 9px;
}
.fcols a:hover {
  text-decoration: underline;
  color: var(--ink-900);
}
.legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--paper-300);
}

/* Responsive */
@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 20px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--paper-200);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    font-size: 17px;
    padding: 12px 0;
    border-bottom: 1px solid var(--paper-200);
  }
  .nav-cta {
    margin-left: auto;
  }
  .nav-toggle {
    order: 3;
    margin: 0 -8px 0 0;
  }
  .nav-links {
    background: #fff;
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 900px) {
  .config,
  .cmp,
  .get-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .get-grid {
    gap: 32px;
  }
  .hero-app {
    margin-top: 44px;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 540px;
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
  .nums .grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .os {
    grid-template-columns: repeat(3, 1fr);
  }
  .fcols {
    grid-template-columns: 1fr 1fr;
  }
  .story {
    min-height: 560px;
  }
  .story .txt {
    padding: 32px;
  }
  .arrows {
    display: none;
  }
  .card {
    flex-basis: 300px;
    min-height: 440px;
  }
  .moods p {
    font-size: 13px;
  }
  .ask,
  .how,
  .nums,
  .privacy,
  .gallery,
  .compare,
  .install {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
@media (max-width: 560px) {
  .pillars,
  .moods {
    grid-template-columns: 1fr;
  }
  .cmd small {
    display: none;
  }
  .ctas.get {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-inline: auto;
  }
  .ctas.get .pill {
    justify-content: center;
  }
  .hero-app {
    margin-top: 36px;
  }
  .win {
    border-radius: 10px;
  }
  .win-bar {
    height: 24px;
    gap: 6px;
    padding: 0 10px;
  }
  .win-bar i {
    width: 8px;
    height: 8px;
  }
  .win-bar span {
    font-size: 10px;
  }
  .dl-row {
    padding: 12px 16px;
    gap: 14px;
  }
  .dl-tag {
    font-size: 10px;
  }
}
/* Mobile: headline, visual, one action. Supporting copy stays on larger screens. */
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .display {
    font-size: 44px;
  }
  .h2 {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 17px;
  }
  .lead {
    font-size: 17px;
  }
  .hero {
    padding-top: 48px;
  }
  .newchip {
    font-size: 12px;
  }
  .hero .more[href="#demo"],
  .lineup .lead,
  .ask .lead,
  .step .muted,
  .how .lead,
  .how .terminal,
  .moods p,
  .tile p,
  .privacy .lead,
  .pillars p,
  .card p,
  .compare .lead,
  .cmp .them,
  .story .txt p,
  .install .lead,
  .cmd:nth-child(n + 3),
  .faq .lead,
  .cta .lead,
  .fcols > div:nth-child(n + 3) {
    display: none;
  }
  .spin .cap:not(:first-child) {
    display: none;
  }
  .js.still .spin {
    padding: 32px 0 0;
  }
  .js.still .spin .stick {
    gap: 12px;
  }
  .spin .stage {
    width: min(320px, 82vw);
  }
  .ask,
  .how,
  .nums,
  .privacy,
  .gallery,
  .compare,
  .install,
  .lineup {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .faq {
    padding-bottom: 64px;
  }
  .cta {
    padding-top: 64px;
  }
  .lineup .imgs {
    margin-top: 28px;
  }
  .moods {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .moods b {
    font-size: 17px;
  }
  .config {
    margin-top: 32px;
    gap: 20px;
  }
  .viewer {
    aspect-ratio: 4 / 3;
  }
  .viewer img {
    width: 70%;
    left: 15%;
    top: 6%;
  }
  .step {
    padding: 16px 0;
  }
  .step h3 {
    font-size: 19px;
    margin-bottom: 10px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -22px;
    padding: 2px 22px;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chips button {
    flex: none;
    font-size: 14px;
    padding: 9px 14px;
  }
  .result {
    padding: 18px;
  }
  .result .say {
    font-size: 22px;
  }
  .steps {
    margin-top: 32px;
  }
  .demo {
    margin-top: 40px;
  }
  .nums .grid {
    margin-top: 32px;
    gap: 28px 12px;
  }
  .nums dt {
    font-size: 44px;
  }
  .tile {
    min-height: 0;
    padding-top: 40px;
  }
  .tile h3 {
    font-size: 26px;
  }
  .tile .ctas {
    margin-top: 10px;
  }
  .tile .shot {
    margin-top: 28px;
    max-height: 220px;
  }
  .tile .art {
    margin-top: 16px;
    width: 60%;
  }
  .privacy .art {
    width: 60vw;
    margin-top: 28px;
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin-top: 32px;
  }
  .pillars .i {
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
  }
  .pillars h3 {
    font-size: 15px;
  }
  .scroller {
    padding-top: 24px;
    gap: 12px;
  }
  .card {
    flex-basis: 220px;
    min-height: 220px;
    padding: 22px;
  }
  .card h3 {
    font-size: 21px;
  }
  .card .ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .card .ico .i {
    width: 26px;
    height: 26px;
  }
  .cmp {
    margin-top: 32px;
  }
  .cmp .col {
    padding: 28px 22px;
  }
  .cmp .col > img {
    width: 88px;
  }
  .cmp h3 {
    font-size: 22px;
  }
  .cmp li {
    font-size: 15px;
    padding: 9px 0;
  }
  .cmp li:nth-child(n + 7) {
    display: none;
  }
  .cmd code {
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .story {
    min-height: 420px;
  }
  .story .txt {
    padding: 28px 24px;
  }
  .os {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 32px;
  }
  .dl {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-align: left;
  }
  .dl .i {
    width: 22px;
    height: 22px;
    margin: 0;
  }
  .dl b {
    font-size: 17px;
  }
  .dl span:not(.i) {
    margin-left: auto;
  }
  .faq .list {
    margin-top: 24px;
  }
  summary {
    font-size: 17px;
    padding: 18px 4px;
  }
  summary::after {
    font-size: 24px;
  }
  .cta-title {
    font-size: 36px;
  }
  .cta .art {
    width: 70vw;
    margin-top: 24px;
  }
  .fine2 {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
