/* ---------- 1. Reset ---------- */

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

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

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

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

/* ---------- 2. Tokens ---------- */

:root {
  /* Color — light only */
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --focus-ring: #1d1d1f;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Spacing — 8px base unit */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4.5rem;   /* 72px */
  --space-7: 7rem;     /* 112px */
  --space-8: 9.5rem;   /* 152px */

  /* Layout */
  --container-w: 1120px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 420ms;
  --dur-slow: 800ms;
}

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

/* ---------- 3. Base / typography ---------- */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}

h1 {
  font-size: clamp(3.25rem, 6vw + 1.5rem, 7rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 2.4vw + 1.1rem, 3.25rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
}

::selection {
  background: var(--text);
  color: var(--bg);
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-2);
  z-index: 300;
  background: var(--text);
  color: var(--bg);
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ---------- 4. Layout utilities ---------- */

.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

main section {
  padding-block: var(--space-8);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

/* ---------- 5. Shared components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.7rem 1.35rem;
  border-radius: 980px;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:hover {
  opacity: 0.82;
}

.btn:active {
  transform: scale(0.985);
}

.link-underline {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease);
}

.link-underline:hover {
  border-color: var(--text);
}

/* ---------- 6. Reveal on scroll ---------- */

/* Hidden only while the GSAP motion layer runs (the .anim class is set in <head> and removed if motion.js
   doesn't start), so the page never goes blank. motion.js fades each element in with ScrollTrigger. */
.anim .reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* ---------- 7. Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease),
    backdrop-filter var(--dur-base) var(--ease);
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand-owner {
  color: var(--text-tertiary);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.nav-brand:hover .nav-brand-owner {
  color: var(--text-secondary);
}

.nav-brand-sep {
  color: var(--line-strong);
  font-weight: 400;
}

.nav-brand-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.nav-logo {
  width: 22px;
  height: 22px;
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- 8. Hero ---------- */

.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero-logo {
  width: clamp(72px, 6vw + 40px, 104px);
  height: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 18px 30px rgba(91, 111, 134, 0.35));
}

.hero-lede {
  font-size: clamp(1.25rem, 1.1vw + 1rem, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-secondary);
  max-width: 22ch;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ---------- 9. Product screenshot ---------- */

.shot-section {
  padding-top: 0 !important;
  padding-bottom: var(--space-8) !important;
}

.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 28px -12px rgba(0, 0, 0, 0.16),
    0 40px 80px -40px rgba(0, 0, 0, 0.22);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 820;
  object-fit: cover;
}

/* Screenshot leads with a slightly deeper, slower entrance than body copy. */
.anim .shot.reveal,
.anim .showcase.reveal {
  transform: translateY(36px);
}

/* ---------- 9b. Showcase video ---------- */

.showcase {
  margin: 0;
}

.showcase-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 28px -12px rgba(0, 0, 0, 0.16),
    0 40px 80px -40px rgba(0, 0, 0, 0.22);
}

.showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.showcase-toggle,
.showcase-fs {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 24, 27, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-base) var(--ease),
    width var(--dur-base) var(--ease), height var(--dur-base) var(--ease);
}

.showcase-toggle[hidden],
.showcase-fs[hidden],
.showcase[data-state="idle"] .showcase-fs {
  display: none;
}

.showcase-fs {
  right: 68px;
}

.showcase-fs svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showcase-frame:hover .showcase-toggle,
.showcase-frame:hover .showcase-fs,
.showcase-toggle:focus-visible,
.showcase-fs:focus-visible,
.showcase[data-state="paused"] .showcase-toggle,
.showcase[data-state="paused"] .showcase-fs,
.showcase[data-state="idle"] .showcase-toggle {
  opacity: 1;
}

.showcase-toggle:focus-visible,
.showcase-fs:focus-visible {
  outline-color: #fff;
}

.showcase-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.showcase-toggle .i-pause,
.showcase[data-state="playing"] .showcase-toggle .i-play {
  display: none;
}

.showcase[data-state="playing"] .showcase-toggle .i-pause {
  display: block;
}

/* Before the first play (or with reduced motion), a larger centred play button. */
.showcase[data-state="idle"] .showcase-toggle {
  right: 50%;
  bottom: 50%;
  width: 76px;
  height: 76px;
  transform: translate(50%, 50%);
}

.showcase[data-state="idle"] .showcase-toggle svg {
  width: 28px;
  height: 28px;
}

.showcase figcaption {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  color: var(--text-tertiary);
}

/* ---------- 10. Features ---------- */

.features {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* The heading's <br> sets the break; a ch-based max-width here used to strand "keeps" on its own line. */
.features h2 {
  margin-bottom: var(--space-6);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--space-5);
}

.feature {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.feature h3 {
  margin-bottom: var(--space-1);
}

.feature p {
  font-size: 1rem;
  max-width: 34ch;
}

.features-note {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  max-width: 72ch;
}

/* ---------- 11. Made with ---------- */

.made-with {
  background: var(--bg);
}

.tech-list {
  font-size: clamp(1.375rem, 1.8vw + 0.8rem, 2.125rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: break-word;
}

.tech-item {
  color: var(--text);
}

.tech-sep {
  color: var(--text-tertiary);
  margin-inline: 0.35em;
}

/* ---------- 12. Downloads ---------- */

.download {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download h2 {
  margin-bottom: var(--space-6);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--space-4);
  transition: border-color var(--dur-base) var(--ease);
}

.download-card:hover {
  border-color: var(--line-strong);
}

.download-card h3 {
  margin-bottom: var(--space-1);
}

.download-card p {
  font-size: 1rem;
  max-width: 34ch;
  margin-bottom: var(--space-4);
}

.download-card .btn {
  margin-top: auto;
}

.download-size {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  margin-bottom: 0 !important;
}

.download-meta {
  margin-top: var(--space-5);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.download-meta-sub {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  max-width: 60ch;
}

/* ---------- 13. Source ---------- */

.source {
  background: var(--bg);
}

.source h2 {
  margin-bottom: var(--space-2);
}

.source-lede {
  font-size: 1.0625rem;
  max-width: 46ch;
  margin-bottom: var(--space-5);
}

.source-link {
  display: inline-block;
  font-size: clamp(1.375rem, 1.6vw + 0.7rem, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color var(--dur-fast) var(--ease);
}

.source-link:hover {
  border-color: var(--text);
}

.source-arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease);
}

.source-link:hover .source-arrow {
  transform: translateX(4px);
}

/* ---------- 14. Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-4);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.footer-brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ---------- 15. Responsive ---------- */

@media (max-width: 900px) {
  main section {
    padding-block: var(--space-7);
  }

  .shot-section {
    padding-bottom: var(--space-7) !important;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-4);
  }

  .feature p {
    max-width: 40ch;
  }

  .features h2 {
    margin-bottom: var(--space-5);
  }

  .download h2 {
    margin-bottom: var(--space-5);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  main section {
    padding-block: var(--space-6);
  }

  .hero {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .hero-lede {
    max-width: 18ch;
    margin-bottom: var(--space-4);
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .shot-section {
    padding-bottom: var(--space-6) !important;
  }

  .shot {
    border-radius: 10px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature p {
    max-width: 46ch;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: var(--space-3);
  }

  .nav-links {
    gap: var(--space-3);
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  .nav-brand-owner,
  .nav-brand-sep {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: var(--space-2);
  }
}

/* ---------- 16. 2.1 additions: hero copy, facts, what's new, tour, principles, keys, FAQ, checksums ---------- */

.hero-sub {
  max-width: 52ch;
  margin-bottom: var(--space-4);
  font-size: 1.125rem;
}

.facts {
  padding-block: 0 !important;
  margin-top: calc(var(--space-6) * -1);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: var(--space-4) var(--space-3);
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact dt {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.fact dd {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.whatsnew h2,
.tour h2,
.principles h2,
.keys h2,
.faq h2 {
  margin-bottom: var(--space-5);
}

.new-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.new-card,
.principle {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-base) var(--ease);
}

.new-card:hover {
  border-color: var(--line-strong);
}

.new-card h3,
.principle h3 {
  margin-bottom: var(--space-1);
}

.new-card p,
.principle p {
  font-size: 0.9688rem;
}

.principles,
.faq {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.principle {
  background: var(--bg);
}

/* Tour */

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
}

.tour-tabs button {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.tour-tabs button:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
}

.tour-tabs button[aria-selected="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.tour-panel {
  margin: 0;
}

/* Tour: screenshot and description side by side (stacked on phones). */
.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
}

.tour-media {
  border-radius: 16px;
  overflow: hidden;
  background: #161618;
  box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px -28px rgba(0, 0, 0, 0.35);
}

/* Every screenshot is shown as a 3:2 app window (the Wi-Fi shot is cropped to fit). */
.tour-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top left;
}

.tour-copy h3 {
  font-size: clamp(1.75rem, 1.4vw + 1.1rem, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.tour-copy p {
  font-size: 1.125rem;
  max-width: 38ch;
  color: var(--text-secondary);
}

.tour-lede {
  margin-top: calc(var(--space-4) * -1);
  margin-bottom: var(--space-4);
  color: var(--text-tertiary);
}

.js .tour-panel[hidden] {
  display: none;
}

/* Keyboard */

.key-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-5);
  list-style: none;
}

.key-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
}

.key-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 8.5rem;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.18rem 0.5rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

/* FAQ and checksums */

.faq-list {
  max-width: 760px;
}

.faq-list details,
.checksums {
  border-bottom: 1px solid var(--line);
}

.faq-list summary,
.checksums summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.faq-list summary::-webkit-details-marker,
.checksums summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after,
.checksums summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
}

.faq-list details[open] summary::after,
.checksums[open] summary::after {
  content: "\2212";
}

.faq-list details p,
.checksums p {
  padding-bottom: 1.1rem;
  max-width: 62ch;
}

.checksums {
  max-width: 760px;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.checksums pre {
  margin: 0 0 var(--space-2);
  padding: var(--space-2);
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 900px) {
  .facts {
    margin-top: calc(var(--space-5) * -1);
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .new-grid,
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .key-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .new-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:first-child,
  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
  }

  .tour-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .tour-tabs button {
    white-space: nowrap;
  }

  .nav-links a:nth-child(-n + 4) {
    display: none;
  }
}

/* ---------- Policy sections (code signing, privacy) ---------- */

.policy {
  border-top: 1px solid var(--line);
}

.policy h2 {
  margin-bottom: var(--space-4);
}

.policy-body {
  max-width: 760px;
}

.policy-body p {
  margin-bottom: var(--space-2);
  max-width: 68ch;
}

.policy-body strong {
  color: var(--text);
  font-weight: 600;
}

.policy-body ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.policy-body li {
  margin-bottom: 0.6rem;
  max-width: 68ch;
}

/* ---------- 17. Motion layer: statement (React Bits ScrollReveal), SpotlightCard, SplitText ---------- */

.statement {
  padding-block: var(--space-7) !important;
}

.statement-text {
  font-size: clamp(2rem, 3.4vw + 1rem, 4.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 22ch;
}

.scroll-reveal {
  display: block;
}

.scroll-reveal .word {
  display: inline-block;
}

/* React Bits SpotlightCard. The card keeps its own padding and border; the component adds the light layers. */
[data-rb="spotlight"].rb-mounted {
  padding: 0;
  border-color: transparent;
}

.spotlight-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  padding: var(--space-4);
  border-radius: 14px;
  background-color: var(--spotlight-card-surface);
}

.spotlight-card__light,
.spotlight-card__border,
.spotlight-card__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.spotlight-card__light {
  z-index: -1;
  opacity: 0;
}

.spotlight-card__border,
.spotlight-card__edge {
  z-index: 1;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.spotlight-card__border {
  background: var(--spotlight-card-border);
}

.spotlight-card__edge {
  opacity: 0;
}

.spotlight-card__content h3 {
  margin-bottom: var(--space-1);
}

.spotlight-card__content p {
  font-size: 0.9688rem;
}

.split-parent {
  line-height: inherit;
}

@media (max-width: 900px) {
  .tour-panel {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .tour-media {
    max-width: 680px;
  }
}
