:root {
  /* White Carbon theme, matching the app from 2.5. */
  --screen: #ffffff;
  --surface: #f4f4f4;
  --surface-raised: #ffffff;
  --ink: #161616;
  --muted: #525252;
  --muted-strong: #393939;
  --line: #e0e0e0;
  --accent: #0f62fe;
  --accent-hover: #0043ce;
  --accent-soft: #edf5ff;
  --cta-ink: #ffffff;
  --green: #24a148;
  --green-light: #defbe6;
  --red: #da1e28;
  --red-light: #fff1f1;
  --yellow: #b28600;
  --yellow-light: #fcf4d6;
  --radius: 0px;
  --radius-pill: 0px;
  --shadow: none;
  --shadow-hover: none;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --font-body: var(--font);
  --carousel-border: #161616;
  --lightbox-bg: rgba(22, 22, 22, 0.86);
  --header-bg: #ffffff;
  /* The glass tokens are kept as names so existing rules resolve, but they are flat now. */
  --glass-blur: 0px;
  --glass-saturate: 100%;
  --glass-fill: #ffffff;
  --glass-fill-hover: #f4f4f4;
  --glass-fill-active: #edf5ff;
  --glass-border: #e0e0e0;
  --glass-border-soft: #e0e0e0;
  --glass-highlight: transparent;
  --glass-shadow: none;
  --glass-inset: none;
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.94, 0.6, 1);
  --duration-fast: 0.16s;
  --duration-base: 0.28s;
  --duration-ui: 0.22s;
  --duration-reveal: 0.42s;
  --duration-slow: 0.45s;
  --motion-rise-sm: 12px;
  --motion-rise-md: 14px;
  --motion-stagger-step: 0.05s;
  --motion-panel-lift: -2px;
  --motion-press-scale: 0.97;
  --motion-press-duration: 0.08s;

  --layout-gutter: clamp(24px, 4vw, 40px);
  --layout-prose: 48rem;
  --layout-wide: 64rem;
  /* Header, footer, and chapter sections share Chapter 4 (#features) width */
  --layout-site: var(--layout-wide);

  /* Legacy aliases used across HTML pages */
  --white: var(--surface);
  --bg: var(--screen);
  --text: var(--muted);
  --text-heading: var(--ink);
  --text-secondary: var(--muted);
  --border: var(--line);
  --blue: var(--accent);
  --blue-hover: var(--accent-hover);
  --blue-light: var(--accent-soft);
}

html {
  color-scheme: light;
  --site-header-offset: 88px;
  scroll-padding-top: var(--site-header-offset);
  overflow-x: clip;
  scrollbar-gutter: stable;
}

.lang-picker {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--screen);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.menu-open {
  overscroll-behavior: none;
}

body.menu-open {
  overscroll-behavior: none;
  touch-action: none;
}

.container {
  max-width: calc(var(--layout-site) + (2 * var(--layout-gutter)));
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}
.header .container { position: relative; }

/* Story chapter page standard — docs/WEBSITE-PAGE-STANDARD.md */

.reveal {
  opacity: 0;
  transform: translateY(var(--motion-rise-sm));
  transition:
    opacity var(--duration-reveal) var(--ease-out-soft),
    transform var(--duration-reveal) var(--ease-out-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: calc(var(--motion-stagger-step) * 1); }
.reveal-delay-2 { transition-delay: calc(var(--motion-stagger-step) * 2); }
.reveal-delay-3 { transition-delay: calc(var(--motion-stagger-step) * 3); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(var(--motion-rise-sm));
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--duration-reveal) var(--ease-out-soft),
    transform var(--duration-reveal) var(--ease-out-soft);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: calc(var(--motion-stagger-step) * 0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: calc(var(--motion-stagger-step) * 1); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: calc(var(--motion-stagger-step) * 2); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: calc(var(--motion-stagger-step) * 3); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: calc(var(--motion-stagger-step) * 4); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: calc(var(--motion-stagger-step) * 5); }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: calc(var(--motion-stagger-step) * 6); }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: calc(var(--motion-stagger-step) * 7); }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: calc(var(--motion-stagger-step) * 8); }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: calc(var(--motion-stagger-step) * 9); }
.reveal-stagger.is-visible > *:nth-child(n+11) { transition-delay: calc(var(--motion-stagger-step) * 9); }

.reveal-stagger--tight {
  --motion-stagger-step: 0.045s;
}

.chapter-body.reveal-stagger > p,
.chapter-body.reveal-stagger > blockquote {
  margin-bottom: 0;
}

.chapter-body.reveal-stagger > p:not(:last-child),
.chapter-body.reveal-stagger > blockquote:not(:last-child) {
  margin-bottom: 1.25rem;
}

@keyframes motion-rise-in {
  from {
    opacity: 0;
    transform: translateY(var(--motion-rise-sm));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-stats.reveal.is-visible > div {
  animation: motion-rise-in var(--duration-reveal) var(--ease-out-soft) backwards;
}

.chapter-stats.reveal.is-visible > div:nth-child(1) { animation-delay: calc(var(--motion-stagger-step) * 1); }
.chapter-stats.reveal.is-visible > div:nth-child(2) { animation-delay: calc(var(--motion-stagger-step) * 2); }
.chapter-stats.reveal.is-visible > div:nth-child(3) { animation-delay: calc(var(--motion-stagger-step) * 3); }

.release-timeline.reveal.is-visible > .release-item {
  animation: motion-rise-in var(--duration-reveal) var(--ease-out-soft) backwards;
}

.release-timeline.reveal.is-visible > .release-item:nth-child(1) { animation-delay: calc(var(--motion-stagger-step) * 0); }
.release-timeline.reveal.is-visible > .release-item:nth-child(2) { animation-delay: calc(var(--motion-stagger-step) * 1); }
.release-timeline.reveal.is-visible > .release-item:nth-child(3) { animation-delay: calc(var(--motion-stagger-step) * 2); }
.release-timeline.reveal.is-visible > .release-item:nth-child(4) { animation-delay: calc(var(--motion-stagger-step) * 3); }
.release-timeline.reveal.is-visible > .release-item:nth-child(5) { animation-delay: calc(var(--motion-stagger-step) * 4); }
.release-timeline.reveal.is-visible > .release-item:nth-child(6) { animation-delay: calc(var(--motion-stagger-step) * 5); }
.release-timeline.reveal.is-visible > .release-item:nth-child(7) { animation-delay: calc(var(--motion-stagger-step) * 6); }
.release-timeline.reveal.is-visible > .release-item:nth-child(8) { animation-delay: calc(var(--motion-stagger-step) * 7); }
.release-timeline.reveal.is-visible > .release-item:nth-child(n+9) { animation-delay: calc(var(--motion-stagger-step) * 7); }

.motion-interactive {
  transition:
    opacity var(--duration-fast) var(--ease-apple),
    color var(--duration-fast) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    border-color var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .reveal-stagger > *,
  .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chapter-stats.reveal.is-visible > div,
  .release-timeline.reveal.is-visible > .release-item {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

  .mobile-download-bar {
    transition: none;
  }

  .mobile-download-bar.mobile-download-bar--visible {
    transform: none;
  }

  .motion-interactive {
    transition: none;
  }
}

.chapter-eyebrow,
.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#hero {
  scroll-margin-top: 0;
}

.story-chapter {
  scroll-margin-top: var(--site-header-offset);
  padding: 5rem var(--layout-gutter) 5.5rem;
}

.story-chapter + .story-chapter {
  padding-top: 2.5rem;
}

.hero-chapter + .story-chapter {
  padding-top: 3rem;
}

@media (min-width: 640px) {
  .hero-chapter + .story-chapter {
    padding-top: 3.5rem;
  }
}

.story-chapter__inner {
  max-width: var(--layout-wide);
  margin: 0 auto;
}

.story-chapter--wide .story-chapter__inner {
  max-width: var(--layout-wide);
}

.story-chapter--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chapter-header {
  margin-bottom: 2.5rem;
}

.chapter-title,
.section-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.chapter-lead,
.section-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted-strong);
  line-height: 1.65;
  text-wrap: pretty;
}

.chapter-body {
  color: var(--muted-strong);
}

.chapter-proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter-proof-item {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.chapter-proof-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.chapter-proof-item__title {
  display: inline;
  color: var(--ink);
  font-weight: 600;
}

.chapter-proof-item__title::after {
  content: ". ";
}

.chapter-proof-item__text {
  color: var(--muted-strong);
}

.chapter-bridge {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.story-chapter:has(.chapter-bridge) {
  padding-bottom: 4rem;
}

.chapter-bridge__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition:
    gap var(--duration-base) var(--ease-out-soft),
    color var(--duration-base) var(--ease-apple);
}

.chapter-bridge__link:hover {
  gap: 0.65rem;
  color: var(--accent-hover);
}

.chapter-bridge__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out-soft);
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-apple);
}

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

.chapter-teaser {
  margin-top: 1.25rem;
}

.chapter-pull-quote {
  margin: 2rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--ink);
}

.chapter-pull-quote p {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.path-arc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.625rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.path-arc__step {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.path-arc__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.path-arc__connector {
  font-size: 0.875rem;
  color: var(--muted);
}

.path-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.path-step:first-child {
  border-top: none;
  padding-top: 0;
}

.path-step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--screen);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.path-step__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.path-step__body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-strong);
}

.feature-stack {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-stack__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-stack__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.feature-stack__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-stack__copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.feature-stack__copy p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-strong);
}

.feature-stack__copy a {
  color: var(--accent);
  text-decoration: none;
}

.feature-stack__copy a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.pricing-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 2rem;
  padding: 1.75rem 0;
  border-block: 1px solid var(--line);
}

.pricing-terms div {
  text-align: center;
}

.pricing-terms dt {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.pricing-terms dd {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  pointer-events: none;
  transition: transform var(--duration-fast) linear;
}

.surface-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  transition:
    border-color var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}

.surface-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.surface-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

@media (max-width: 900px) {
  .surface-grid--3,
  .surface-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .surface-grid--2,
  .surface-grid--3,
  .surface-grid--4 {
    grid-template-columns: 1fr;
  }
}

.chapter-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}

.chapter-stats div {
  text-align: center;
}

.chapter-stats dt {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.chapter-stats dd {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.footer-dot-wave-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 95% 88% at 50% 62%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 95% 88% at 50% 62%, #000 0%, transparent 76%);
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* Release notice banner (part of sticky header chrome) */
.release-notice-banner {
  background: var(--surface);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.header:not(.header--scrolled) .release-notice-banner {
  background: color-mix(in srgb, var(--surface) 88%, var(--screen));
  border-top-color: var(--line);
}
.header--scrolled .release-notice-banner {
  background: var(--surface);
  border-top-color: var(--line);
}
.release-notice-banner[hidden],
.release-notice-banner.is-hidden {
  display: none !important;
}
.release-notice-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.release-notice-banner-text {
  font-size: 0.875rem;
  font-weight: 500;
}
.release-notice-banner-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.release-notice-banner-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--ease-out-soft);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
  transition: border-color var(--duration-fast) var(--ease-apple);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-apple);
  pointer-events: none;
}
.header--scrolled::before {
  opacity: 1;
}
.header--scrolled {
  border-bottom-color: color-mix(in srgb, var(--line) 55%, transparent);
}
.header:has(.release-notice-banner:not([hidden]):not(.is-hidden)) {
  border-bottom-color: transparent;
}
.header--scrolled:has(.release-notice-banner:not([hidden]):not(.is-hidden)) {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) var(--ease-apple);
}
.logo:hover { opacity: 0.88; }
.logo img { height: 32px; width: 32px; border-radius: 8px; object-fit: cover; }
.header .logo img.logo-mark,
.footer .logo img.logo-mark {
  height: 36px;
  width: auto;
  min-width: 36px;
  border-radius: 0;
  object-fit: contain;
}
.logo-text { line-height: 1.2; }

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-links {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow: hidden;
}
.nav-links::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 38%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}
.nav-links::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid var(--glass-border-soft);
  pointer-events: none;
  z-index: 0;
}
.nav-glass-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: var(--radius-pill);
  background: var(--glass-fill-active);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
  transition:
    transform 0.38s var(--ease-spring),
    width 0.38s var(--ease-spring),
    height 0.38s var(--ease-spring),
    opacity var(--duration-fast) var(--ease-apple);
}
.nav-glass-indicator.is-visible {
  opacity: 1;
}
.nav-links a:not(.nav-cta),
.nav-links .nav-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 38px;
  padding: 0 14px;
  font-size: 0.8125rem;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition:
    color var(--duration-fast) var(--ease-apple),
    background var(--duration-base) var(--ease-apple);
}
.nav-links a:not(.nav-cta):hover {
  color: var(--ink);
  background: var(--glass-fill-hover);
}
.nav-links a:not(.nav-cta).is-active,
.nav-links a:not(.nav-cta)[aria-current="page"],
.nav-links a:not(.nav-cta)[aria-current="true"] {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 14px;
  height: 38px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 92%, #ffffff 8%) 0%,
    var(--accent) 100%
  );
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 8px rgba(41, 151, 255, 0.28);
  transition:
    background var(--duration-base) var(--ease-apple),
    opacity var(--duration-fast) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft),
    box-shadow var(--duration-base) var(--ease-apple);
}
.nav-cta:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}
.nav-cta:hover,
.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
  opacity: 0.94;
}
.nav a:focus-visible,
.btn:focus-visible,
.carousel-btn:focus-visible,
.screenshot-rail-btn:focus-visible,
.screenshot-slide:focus-visible,
.screenshot-showcase__nav:focus-visible,
.screenshot-showcase__dot:focus-visible,
.faq-question:focus-visible,
.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  transition:
    border-color var(--duration-base) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft),
    box-shadow var(--duration-base) var(--ease-apple);
}
.mobile-menu-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-border));
  background: var(--glass-fill-hover);
}
.mobile-menu-btn.is-open {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-border));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--glass-fill));
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.mobile-menu-btn:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}
.mobile-menu-btn svg { width: 22px; height: 22px; color: var(--ink); }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out-soft);
}
.mobile-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.header.header--menu-open {
  z-index: 220;
  border-bottom-color: var(--line);
}

.mobile-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu-layer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: var(--mobile-nav-top, var(--site-header-offset));
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.mobile-nav.open {
  pointer-events: none;
}

.mobile-nav-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-height: min(72vh, 28rem);
  background: color-mix(in srgb, var(--screen) 78%, var(--glass-fill));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translate3d(0, -100%, 0);
  transition: transform var(--duration-ui) var(--ease-out-soft);
  pointer-events: auto;
}
.mobile-nav.open .mobile-nav-panel {
  transform: translate3d(0, 0, 0);
}

.mobile-nav-links {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: calc(var(--layout-site) + (2 * var(--layout-gutter)));
  margin-inline: auto;
  padding: 8px var(--layout-gutter) 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 14px;
  border: 1px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-apple),
    border-color var(--duration-fast) var(--ease-apple),
    color var(--duration-fast) var(--ease-apple);
}

.mobile-nav-links a:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-soft);
  color: var(--ink);
}

.mobile-nav-links a.is-active,
.mobile-nav-links a[aria-current="page"],
.mobile-nav-links a[aria-current="true"] {
  background: var(--glass-fill-active);
  border-color: var(--glass-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.mobile-nav-footer {
  width: 100%;
  max-width: calc(var(--layout-site) + (2 * var(--layout-gutter)));
  margin-inline: auto;
  padding: 14px var(--layout-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
}

.mobile-nav .nav-cta--mobile {
  width: 100%;
  margin-top: 0;
  padding: 14px 20px;
  font-size: 0.9375rem;
  text-align: center;
}

.mobile-nav-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel,
  .mobile-nav-backdrop,
  .nav-glass-indicator {
    transition: none;
  }

  .mobile-nav.open .mobile-nav-panel {
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-links,
  .mobile-menu-btn {
    background: color-mix(in srgb, var(--surface) 92%, var(--screen));
  }

  .nav-glass-indicator {
    background: var(--surface-raised);
  }
}

@media (max-width: 900px) {
  .nav--desktop { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 901px) {
  .mobile-menu-layer,
  .mobile-nav,
  .mobile-nav-backdrop { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 6vw, 80px);
  background: var(--screen);
  border-bottom: 1px solid var(--line);
}

.hero-dot-wave-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 42%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 42%, #000 0%, transparent 72%);
}

.hero-dot-wave,
.hero-dot-wave--canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-dot-wave--css {
  background-image: radial-gradient(circle at center, rgba(200, 200, 208, 0.32) 1.25px, transparent 1.25px);
  background-size: 12px 12px;
  opacity: 0.88;
}

.hero-chapter {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 60px);
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
  text-align: center;
}

.hero--home .hero-chapter__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: var(--layout-wide);
  flex-direction: column;
  align-items: center;
}

.hero-chapter__content {
  display: flex;
  width: 100%;
  max-width: var(--layout-wide);
  flex-direction: column;
  align-items: center;
}

.hero-chapter__content--animating .hero-app-mark,
.hero-chapter__content--animating .hero-identity,
.hero-chapter__content--animating .hero-stats,
.hero-chapter__content--animating .hero-actions,
.hero-chapter__content--animating .hero-offer {
  opacity: 0;
  transform: translateY(var(--motion-rise-sm));
}

.hero-chapter__content--ready .hero-app-mark,
.hero-chapter__content--ready .hero-identity,
.hero-chapter__content--ready .hero-stats,
.hero-chapter__content--ready .hero-actions,
.hero-chapter__content--ready .hero-offer {
  animation: motion-rise-in var(--duration-reveal) var(--ease-out-soft) forwards;
}

.hero-chapter__content--ready .hero-identity { animation-delay: calc(var(--motion-stagger-step) * 1); }
.hero-chapter__content--ready .hero-stats { animation-delay: calc(var(--motion-stagger-step) * 2); }
.hero-chapter__content--ready .hero-actions { animation-delay: calc(var(--motion-stagger-step) * 3); }
.hero-chapter__content--ready .hero-offer { animation-delay: calc(var(--motion-stagger-step) * 4); }

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(var(--motion-rise-sm));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-app-mark {
  position: relative;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  perspective: 220px;
  -webkit-tap-highlight-color: transparent;
}

.hero-app-mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-app-mark__bounce {
  display: block;
  transform-origin: center bottom;
}

.hero-app-mark__coin {
  display: block;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.hero-app-mark__coin img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  backface-visibility: hidden;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-app-mark--spinning .hero-app-mark__bounce {
  animation: mario-coin-bounce 0.58s forwards;
}

.hero-app-mark--spinning .hero-app-mark__coin {
  animation: mario-coin-spin 0.58s linear forwards;
}

.hero-app-mark--spinning .hero-app-mark__coin img {
  animation: mario-coin-shadow 0.58s forwards;
}

@keyframes mario-coin-bounce {
  0% {
    transform: translate3d(0, 0, 0) scale(1, 1);
    animation-timing-function: cubic-bezier(0.18, 0.85, 0.28, 1);
  }
  26% {
    transform: translate3d(0, -42px, 0) scale(1, 1);
    animation-timing-function: cubic-bezier(0.55, 0, 0.95, 0.45);
  }
  48% {
    transform: translate3d(0, 0, 0) scale(1.08, 0.9);
    animation-timing-function: cubic-bezier(0.22, 0.85, 0.32, 1);
  }
  62% {
    transform: translate3d(0, -12px, 0) scale(1, 1);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.5);
  }
  76% {
    transform: translate3d(0, 0, 0) scale(1.04, 0.96);
    animation-timing-function: cubic-bezier(0.34, 1.25, 0.64, 1);
  }
  88% {
    transform: translate3d(0, -3px, 0) scale(1, 1);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.55);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }
}

@keyframes mario-coin-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(1260deg);
  }
}

@keyframes mario-coin-shadow {
  0%, 100% {
    box-shadow:
      0 4px 28px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.06);
    animation-timing-function: ease-out;
  }
  26% {
    box-shadow:
      0 22px 28px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.08);
    animation-timing-function: ease-in;
  }
  48% {
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-app-mark--spinning .hero-app-mark__bounce {
    animation: mario-coin-bounce-reduced 0.4s var(--ease-apple) forwards;
  }

  .hero-app-mark--spinning .hero-app-mark__coin {
    animation: none;
  }

  .hero-app-mark--spinning .hero-app-mark__coin img {
    animation: none;
  }

  @keyframes mario-coin-bounce-reduced {
    0%, 100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    45% {
      transform: translate3d(0, -10px, 0) scale(1.03);
    }
  }
}

.hero-identity {
  width: 100%;
  max-width: var(--layout-wide);
}

.availability-pill,
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.availability-pill::before,
.hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}

.hero--home h1 {
  font-family: var(--font);
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-role {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted-strong);
  text-wrap: pretty;
}

.hero-trust {
  margin: 0 0 28px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.hero--home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  width: 100%;
  max-width: none;
  margin: 0 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.hero-stat-value {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  margin: 0;
  max-width: 11rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-wrap: pretty;
  color: var(--muted-strong);
}

.hero-narrative {
  width: 100%;
  max-width: 32rem;
  margin-bottom: 28px;
}

.hero-bridge {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.hero-support-text {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-strong);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-offer {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 2.5rem;
  transform: translateX(-50%);
  background: var(--line);
  animation: scroll-cue-pulse 2s var(--ease-apple) infinite;
  transition:
    opacity 0.45s var(--ease-apple),
    transform 0.45s var(--ease-apple);
}

.hero-scroll-cue {
  bottom: max(1.75rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
}

.scroll-cue--hidden {
  animation: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
}

@keyframes scroll-cue-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

.juice-btn {
  transition:
    transform var(--duration-fast) var(--ease-out-soft),
    opacity var(--duration-fast) var(--ease-apple),
    border-color var(--duration-fast) var(--ease-apple),
    background var(--duration-fast) var(--ease-apple);
}

.juice-btn:hover {
  opacity: 0.88;
}

.juice-btn--ghost:hover {
  border-color: var(--muted);
}

.juice-btn:active {
  opacity: 1;
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}

.hero p:not(.hero-role):not(.hero-trust):not(.hero-bridge):not(.hero-support-text):not(.hero-offer):not(.hero-disclaimer) {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .hero-stat-label {
    min-height: 0;
    font-size: 0.875rem;
  }

  .hero-bridge {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .hero-support-text {
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chapter__content--animating .hero-app-mark,
  .hero-chapter__content--animating .hero-identity,
  .hero-chapter__content--animating .hero-stats,
  .hero-chapter__content--animating .hero-narrative,
  .hero-chapter__content--animating .hero-actions,
  .hero-chapter__content--animating .hero-offer,
  .hero-chapter__content--animating .hero-disclaimer,
  .hero-chapter__content--ready .hero-app-mark,
  .hero-chapter__content--ready .hero-identity,
  .hero-chapter__content--ready .hero-stats,
  .hero-chapter__content--ready .hero-narrative,
  .hero-chapter__content--ready .hero-actions,
  .hero-chapter__content--ready .hero-offer,
  .hero-chapter__content--ready .hero-disclaimer {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .scroll-cue {
    animation: none;
    opacity: 0.35;
  }

  .juice-btn:hover,
  .juice-btn:active {
    opacity: 1;
    transform: none;
  }

  .surface-card:hover,
  .feature-card.surface-card:hover {
    transform: none;
  }

  .feature-card.surface-card:hover .feature-icon {
    transform: none;
  }

  .btn:active {
    transform: none;
  }

  .faq-answer,
  .faq-answer-inner {
    transition: none;
  }

  .faq-item.open .faq-answer-inner {
    opacity: 1;
    transform: none;
  }

  .mobile-nav-panel {
    transform: translateY(-100%);
  }

  .mobile-nav.open .mobile-nav-panel {
    transform: none;
  }

  .mobile-menu-layer,
  .mobile-nav,
  .mobile-nav-backdrop,
  .mobile-nav.open .mobile-nav-links a {
    transition: none;
    animation: none;
  }

  .page-home .chapter-proof-item:hover,
  .page-home .path-step:hover,
  .page-home .feature-stack__item:hover,
  .page-about .feature-stack__item:hover,
  .footer-links a:hover,
  .mobile-download-bar,
  .mobile-download-bar.mobile-download-bar--visible,
  .nav-cta:active,
  .screenshot-showcase__nav:active,
  .screenshot-showcase__dot:active,
  .social-icon:active,
  .carousel-btn:active {
    transform: none;
  }

  .page-releases .release-dot,
  .page-releases .release-card,
  .page-releases .release-header,
  .page-releases .release-toggle svg,
  .page-releases .release-item--collapsible details.release-card .release-body,
  .page-releases .release-item--collapsible .release-body-inner {
    transition: none;
  }

  .page-releases .release-item:has(details[open]) .release-dot {
    transform: none;
    box-shadow: none;
  }

  .page-releases .release-item--collapsible details.release-card[open] .release-body {
    grid-template-rows: 1fr;
  }

  .page-releases .release-item--collapsible details.release-card[open] .release-body-inner {
    opacity: 1;
    padding: 1.25rem 1.5rem;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 8px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    opacity var(--duration-fast) var(--ease-apple),
    border-color var(--duration-base) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
  border: none;
  cursor: pointer;
}

.btn:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { opacity: 0.88; }
.btn-secondary:hover { border-color: var(--muted); background: var(--surface); }
.btn-secondary:active { opacity: 0.92; }
.btn-primary {
  background: var(--ink);
  color: var(--cta-ink);
  border-radius: var(--radius-pill);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.btn svg { width: 18px; height: 18px; }

/* Value props */
.value-props {
  padding-bottom: 4rem;
  background: transparent;
  border: none;
}

.value-props .chapter-header {
  margin-bottom: 2rem;
}

/* Legacy value-prop row (other pages) */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-prop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  border: none;
  background: transparent;
}

.value-prop h3 {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.value-prop p {
  font-size: 0.9375rem;
  color: var(--muted-strong);
  line-height: 1.55;
}

/* Stats band */
.stats {
  padding: 0;
  background: transparent;
}

.stats .chapter-header {
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
}

.stat {
  text-align: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.stat-value {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Section (legacy pages) */
.section {
  padding: 96px 0;
}

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

.section-header {
  text-align: left;
  max-width: none;
  margin: 0 0 2.5rem;
}

.chapter-header {
  text-align: left;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card--step {
  text-align: left;
  height: 100%;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--screen);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.feature-icon--center {
  margin: 0 0 20px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  height: 100%;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.feature-card.surface-card {
  padding: 1.25rem 1.5rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform var(--duration-fast) var(--ease-out-soft);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

#how-to-use .features-grid,
#features .chart-grid--showcase {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.feature-stack {
  margin-top: 0;
}

#how-to-use .feature-card,
#features .feature-card {
  border-top: none;
  padding-top: 0;
}

/* Screenshot showcase carousel */
.screenshots {
  background: var(--screen);
  overflow: hidden;
}

.screenshots .chapter-header {
  margin-bottom: 2rem;
}

.screenshot-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.screenshot-showcase__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.screenshot-showcase__viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.screenshot-rail {
  display: flex;
  gap: clamp(14px, 2.5vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
  padding: 1.25rem max(1rem, calc(50% - clamp(110px, 14vw, 140px)));
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-rail::-webkit-scrollbar {
  display: none;
}

.screenshot-slide {
  flex: 0 0 auto;
  width: clamp(210px, 28vw, 280px);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  transform: scale(0.9);
  opacity: 0.42;
  transition:
    transform var(--duration-base) var(--ease-out-soft),
    opacity var(--duration-base) var(--ease-out-soft),
    border-color var(--duration-base) var(--ease-apple);
}

.screenshot-slide.is-active {
  transform: scale(1);
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.screenshot-slide:hover {
  opacity: 0.88;
}

.screenshot-slide.is-active:hover {
  opacity: 1;
}

.screenshot-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-showcase__nav {
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--screen));
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--duration-base) var(--ease-apple),
    color var(--duration-base) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}

.screenshot-showcase__nav:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.screenshot-showcase__nav:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}

.screenshot-showcase__nav svg {
  width: 20px;
  height: 20px;
}

.screenshot-showcase__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.screenshot-showcase__caption {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.screenshot-showcase__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.screenshot-showcase__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  cursor: pointer;
  transition:
    width var(--duration-base) var(--ease-out-soft),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}

.screenshot-showcase__dot:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}

.screenshot-showcase__dot.is-active {
  width: 22px;
  background: var(--accent);
}

.screenshot-hint {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .screenshot-showcase__stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .screenshot-showcase__nav {
    display: none;
  }

  .screenshot-showcase__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .screenshot-rail {
    scroll-padding-inline: 1.25rem;
    padding-inline: 1.25rem;
  }

  .screenshot-slide {
    width: min(72vw, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-rail {
    scroll-behavior: auto;
  }

  .screenshot-slide {
    transition: none;
  }

  .screenshot-slide.is-active {
    transform: none;
  }
}

/* Legacy carousel */
.carousel-container {
  max-width: 320px;
  margin: 0 auto;
}
.carousel {
  border-radius: 44px;
  overflow: hidden;
  background: var(--surface);
  border: 8px solid var(--carousel-border);
}
.carousel-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out-soft);
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  cursor: pointer;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    border-color var(--duration-base) var(--ease-apple),
    color var(--duration-base) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.carousel-btn:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}

.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots {
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}
.carousel-dot:hover {
  background: var(--muted);
}
.carousel-dot.active {
  background: var(--accent);
}

.mobile-download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 12px var(--layout-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--screen) 92%, transparent);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--duration-base) var(--ease-out-soft),
    opacity var(--duration-base) var(--ease-out-soft);
}

.mobile-download-bar .btn {
  width: 100%;
  max-width: var(--layout-wide);
}

html.menu-open .mobile-download-bar {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-download-bar.mobile-download-bar--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 769px) {
  .mobile-download-bar {
    display: none !important;
  }
}

/* Signup Form */
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.signup-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration-base) var(--ease-apple);
}
.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.signup-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.signup-form button {
  padding: 14px 24px;
  background: var(--ink);
  color: var(--cta-ink);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity var(--duration-fast) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}
.signup-form button:hover {
  opacity: 0.92;
}
.signup-form button:active {
  opacity: 1;
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}
.signup-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.signup-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 16px;
}
.signup-success {
  color: var(--green);
  font-size: 0.875rem;
  margin-top: 16px;
}

/* Pricing */
.pricing-card {
  max-width: none;
  margin: 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 28px 36px;
  align-items: start;
  transition: border-color var(--duration-base) var(--ease-apple);
}

.pricing-card:hover {
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}
.pricing-main {
  padding-right: 12px;
}
.pricing-details {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.pricing-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.pricing-amount {
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.pricing-desc {
  margin: 16px 0 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-note {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted-strong);
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-heading);
}
.pricing-features svg { 
  width: 20px; 
  height: 20px; 
  color: var(--green);
  flex-shrink: 0;
}
.pricing-cta {
  width: auto;
  min-width: 220px;
  padding: 14px 24px;
  font-size: 0.9375rem;
}

/* FAQ */
.faq { background: var(--screen); }
.faq-grid { max-width: 100%; margin: 0; }
.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition: background var(--duration-base) var(--ease-apple);
}
.faq-item:hover {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.faq-item.open {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 6px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-heading);
  transition: color var(--duration-fast) var(--ease-apple);
}
.faq-question:hover { color: var(--blue); }
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform var(--duration-fast) var(--ease-out-soft);
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-ui) var(--ease-out-soft);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 6px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity var(--duration-ui) var(--ease-out-soft),
    transform var(--duration-ui) var(--ease-out-soft);
}
.faq-item.open .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}
.faq-answer-inner a { color: var(--accent); transition: color var(--duration-fast) var(--ease-apple); }
.faq-answer-inner a:hover { text-decoration: underline; }

/* CTA */
.cta-section {
  text-align: center;
  background: var(--screen);
  border-top: 1px solid var(--line);
}

.cta-section.story-chapter {
  padding-top: 5rem;
  padding-bottom: 5.5rem;
}

.cta-section .story-chapter__inner {
  display: flex;
  justify-content: center;
}

.cta-panel {
  margin-inline: auto;
  max-width: 28rem;
  padding: 0.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--screen);
  text-align: left;
}

.cta-section h2 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-section .signup-form {
  max-width: none;
  margin-top: 0;
}

/* Footer */
.footer {
  position: relative;
  isolation: isolate;
  background: var(--screen);
  padding: 0 0 32px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-accent {
  display: none;
}
.footer-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.footer-download-copy {
  max-width: 28rem;
}
.footer-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-download-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.25;
}
.footer-download-desc {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-app-cta {
  flex-shrink: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.lang-picker {
  width: 100%;
  max-width: 180px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color var(--duration-base) var(--ease-apple);
}
.footer-bottom .lang-picker {
  max-width: 140px;
  padding: 8px 32px 8px 10px;
  font-size: 0.8125rem;
  background-position: right 8px center;
  background-size: 14px;
}
.footer-bottom .lang-picker:hover,
.footer-bottom .lang-picker:focus {
  border-color: var(--accent);
}
.lang-picker:hover,
.lang-picker:focus {
  outline: none;
  border-color: var(--accent);
}
.lang-picker:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-picker option {
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-tagline { max-width: 22rem; }
.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color var(--duration-base) var(--ease-apple),
    color var(--duration-base) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}
.social-icon:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.social-icon:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.social-main:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}
.footer h3.footer-col-title,
.footer h4 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-block;
  transition:
    color var(--duration-fast) var(--ease-apple),
    opacity var(--duration-fast) var(--ease-apple),
    transform var(--duration-base) var(--ease-out-soft);
  opacity: 0.78;
}
.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-right .lang-picker {
  flex-shrink: 0;
}
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-apple);
  white-space: nowrap;
}
.footer-legal a:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  transition: border-color var(--duration-base) var(--ease-apple);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-form button {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cta-ink);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    opacity var(--duration-fast) var(--ease-apple),
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-out-soft);
}
.contact-form button:hover {
  opacity: 0.92;
}
.contact-form button:active {
  opacity: 1;
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press-duration);
}
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-note {
  font-size: 0.8125rem;
  margin-top: 10px;
}
.contact-note.success { color: var(--green); }
.contact-note.error { color: var(--red); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--lightbox-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-base) var(--ease-out-soft),
    visibility 0s linear var(--duration-base);
}
.lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--duration-base) var(--ease-out-soft),
    visibility 0s;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 24px;
  border: 1px solid var(--line);
  transform: scale(0.98);
  transition: transform var(--duration-ui) var(--ease-out-soft);
}
.lightbox.show img {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox img {
    transition: none;
  }

  .lightbox img {
    transform: none;
  }
}
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox img { border-radius: 16px; }
}

/* Desktop narrow / large tablet – home hero stats */
@media (max-width: 1000px) {
  .hero--home .hero-stats {
    max-width: 100%;
  }
}

/* Large Tablet (900px) */
@media (max-width: 900px) {
  .value-props-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #how-to-use .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .container { padding: 0 var(--layout-gutter); }
  .hero--home h1 { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  #how-to-use .steps-grid { grid-template-columns: 1fr; }
  .footer-download {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0 28px;
    margin-bottom: 36px;
  }
  .footer-app-cta { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  html {
    --site-header-offset: 108px;
  }

  .container { padding: 0 var(--layout-gutter); }
  .hero-chapter {
    min-height: auto;
    padding: 32px 0 56px;
  }
  .hero--home h1 { font-size: 1.875rem; line-height: 1.06; }
  .hero-role { font-size: 0.9375rem; }
  .hero-trust { margin-bottom: 24px; }
  .hero--home .hero-stats {
    padding: 20px 0;
    margin-bottom: 28px;
    gap: 10px 12px;
  }
  .hero-stat-value { font-size: 1.125rem; }
  .hero-stat-label {
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.35;
  }
  .hero-bridge { font-size: 1rem; }
  .hero-support-text { font-size: 0.875rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 20rem; }
  .hero-scroll-cue { display: none; }
  .btn { width: 100%; justify-content: center; padding: 14px 20px; min-height: 48px; }
  .story-chapter {
    padding: 3rem var(--layout-gutter) 3.5rem;
  }

  .hero-chapter + .story-chapter {
    padding-top: 3rem;
  }

  .chapter-title,
  .section-title { font-size: 1.375rem; }

  .chapter-lead,
  .section-desc { font-size: 0.875rem; }

  .chapter-stats {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.5rem 0;
  }

  .chapter-stats div {
    text-align: left;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .chapter-stats div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .pricing-terms {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.25rem 0;
  }

  .pricing-terms div {
    text-align: left;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .pricing-terms div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .path-arc {
    gap: 0.375rem 0.5rem;
  }

  .feature-stack__item {
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem 1rem;
  }

  .feature-card.surface-card { padding: 1rem 1.125rem; }
  .feature-icon { width: 40px; height: 40px; margin-bottom: 16px; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.8125rem; }
  .carousel-container { max-width: 240px; }
  .carousel { border-width: 5px; border-radius: 28px; }
  .carousel-nav { gap: 12px; margin-top: 20px; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-dot { width: 8px; height: 8px; }
  .signup-form { flex-direction: column; gap: 12px; }
  .signup-form input { width: 100%; padding: 14px 16px; min-height: 48px; }
  .signup-form button { width: 100%; padding: 14px 20px; min-height: 48px; }
  .pricing-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px;
  }
  .pricing-main { padding-right: 0; }
  .pricing-details {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
  .pricing-cta { width: 100%; min-width: 0; }
  .pricing-amount { font-size: 2.25rem; }
  .pricing-features li { padding: 8px 0; font-size: 0.875rem; }
  .faq-question { padding: 16px; font-size: 0.875rem; min-height: 48px; }
  .faq-answer-inner { padding: 0 16px 16px; font-size: 0.875rem; }
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 0.9375rem; }
  .footer { padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { width: 100%; }
  .footer-bottom-right { width: 100%; }
  .footer-bottom-right .lang-picker { max-width: 100%; width: 100%; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .footer h4 { margin-bottom: 12px; }
  .footer-links li { margin-bottom: 2px; }
  .footer-links a { font-size: 0.875rem; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; padding-top: 24px; }
  .footer-bottom-right { justify-content: center; }
  .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-legal a { margin: 0 8px; }
  .contact-form input,
  .contact-form textarea { padding: 14px; min-height: 48px; }
  .contact-form button { min-height: 48px; }
  .lightbox { padding: 12px; }
  .lightbox img { border-radius: 12px; }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  .container { padding: 0 var(--layout-gutter); }
  .logo span { font-size: 1rem; }
  .hero--home h1 { font-size: 1.625rem; }
  .section-title { font-size: 1.25rem; }
  .pricing-card { padding: 24px 16px; }
  .pricing-amount { font-size: 2rem; }
}

/* Ensure touch targets are at least 44px */
@media (max-width: 768px) {
  .nav a, .footer-links a, .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .social-icon svg {
    width: 18px;
    height: 18px;
  }
  .social-share {
    flex-wrap: wrap;
  }
}

/* Home page — app-aligned surfaces (post-hero) */
.page-home .chapter-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-home .chapter-proof-item {
  padding: 1.125rem 1.125rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color var(--duration-base) var(--ease-apple),
    transform var(--duration-base) var(--ease-out-soft);
}

.page-home .chapter-proof-item:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.page-home .chapter-proof-item::before {
  top: 1.125rem;
  left: 1.125rem;
}

.page-home .chapter-proof-item__title,
.page-home .chapter-proof-item__text {
  display: block;
}

.page-home .chapter-proof-item__title {
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.page-home .chapter-proof-item__title::after {
  content: "";
}

.page-home .chapter-proof-item__text {
  padding-left: 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.page-home #proof .chart-stack {
  margin-top: 0.25rem;
}

.page-home .chapter-pull-quote {
  border-left-color: var(--accent);
}

.page-home .path-arc {
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, var(--screen));
}

.page-home .path-step {
  padding: 1rem 1.125rem;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  transition:
    border-color var(--duration-base) var(--ease-apple),
    transform var(--duration-base) var(--ease-out-soft);
}

.page-home .path-step:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
}

.page-home .path-step:first-child {
  padding-top: 1rem;
}

.page-home .path-step-list .path-step:last-child {
  margin-bottom: 0;
}

.page-home .path-step__marker {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--screen));
}

.page-home .feature-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.75rem;
  border-top: 0;
}

.page-home .feature-stack__item {
  padding: 1rem 1.125rem;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--screen) 24%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  transition:
    border-color var(--duration-base) var(--ease-apple),
    transform var(--duration-base) var(--ease-out-soft);
}

.page-home .feature-stack__item:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
}

.page-home .feature-stack__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.page-home .pricing-card {
  box-shadow: none;
}

.page-home .pricing-card--solo {
  max-width: 42rem;
  margin-inline: 0;
}

.page-home .pricing-card--solo .pricing-main {
  padding-right: 0;
}

.page-home .pricing-card--solo .pricing-details {
  border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.page-home .pricing-note {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted-strong);
}

.page-home .footer-download {
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--line) 75%, transparent);
}

@media (max-width: 900px) {
  .page-home .chapter-proof-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page-home .path-arc {
    padding: 0.625rem 0.75rem;
  }

  .page-home .path-step {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.875rem;
    padding: 0.875rem;
  }
}

@media (min-width: 1100px) {
  .nav-links a:not(.nav-cta),
  .nav-links .nav-cta {
    padding: 0 11px;
    font-size: 0.75rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card.surface-card:hover {
    transform: translateY(var(--motion-panel-lift));
  }

  .feature-card.surface-card:hover .feature-icon {
    transform: scale(1.04);
  }

  .page-home .chapter-proof-item:hover,
  .page-home .path-step:hover,
  .page-home .feature-stack__item:hover,
  .footer-links a:hover {
    transform: translateX(2px);
  }

  .chapter-bridge__link:hover .chapter-bridge__arrow {
    transform: translateX(3px);
  }
}

/* ==========================================================================
   White Carbon theme (2.5)
   The site now matches the app: white ground, square corners, hairline rules,
   one blue, mono labels. These rules flatten what the earlier dark glass
   theme rounded, blurred or shadowed.
   ========================================================================== */

*,
*::before,
*::after {
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Phone captures and the founder portrait keep a light frame instead of a rounded bezel. */
.screenshots img,
.blink-showcase__shot img,
.lightbox img {
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent-soft);
}

.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.logo-mark {
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.chapter-eyebrow,
.hero-pill,
.hero-offer,
.hero-stat-label,
.release-date,
.release-badge,
.site-chart-card__title,
.blink-showcase__note {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chapter-eyebrow,
.hero-pill {
  color: var(--accent);
}

.hero-pill {
  background: transparent;
  border: 0;
  padding-inline: 0;
  box-shadow: none;
}

h1,
.chapter-title {
  font-weight: 300;
  letter-spacing: -0.02em;
}

h1 strong,
.chapter-title strong {
  font-weight: 600;
}

/* Hero mark: Blink himself, no coin, no shadow. */
.hero-app-mark,
.hero-app-mark__coin,
.hero-app-mark__bounce {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.hero-app-mark img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* Buttons: flat fill, darker on hover and press, no scale. */
.btn,
.nav-cta,
.juice-btn {
  box-shadow: none !important;
  transform: none !important;
  border: 1px solid transparent;
}

.btn-primary,
.nav-cta {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.btn-primary:active,
.nav-cta:active {
  background: #002d9c !important;
}

/* Panels: white, one hairline, no lift. */
.hero-stat,
.chapter-proof-item,
.site-chart-card,
.release-card,
.faq-item,
.blink-point {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: none;
}

.story-chapter--alt {
  background: var(--surface);
}

/* Blink chapter */
.blink-showcase {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 32px;
}

.blink-showcase__shot {
  margin: 0;
}

.blink-showcase__shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.blink-showcase__note {
  margin-top: 16px;
  font-size: 0.6875rem;
  color: var(--muted);
}

.blink-showcase__mark {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}

.blink-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.blink-point {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-top: 2px solid var(--ink);
  margin-top: -1px;
}

.blink-point:first-child {
  border-top-color: var(--accent);
}

.blink-point__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.blink-point__text {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .blink-showcase {
    grid-template-columns: 1fr;
  }

  .blink-showcase__shot {
    max-width: 260px;
  }

  .hero--home {
    background-size: 48px 48px;
    background-position:
      right 0 top 0, right 48px top 0, right 96px top 0,
      right 0 top 48px, right 48px top 48px, right 0 top 96px;
  }
}

/* Header navigation: plain links on the white bar, selected state is an underline. */
.nav-links {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 4px;
  overflow: visible;
}

.nav-links::before,
.nav-links::after {
  display: none;
}

.nav-links a:not(.nav-cta) {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--ink);
  background: var(--surface) !important;
}

.nav-links a:not(.nav-cta)[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.hero-app-mark img,
.hero-app-mark__coin img {
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}

/* The dot field stays as a faint texture; the tile cluster carries the brand. */
.hero-dot-wave-wrap {
  opacity: 0.35;
}

.hero-stat {
  border-top: 2px solid var(--ink);
}

.hero-stat-value {
  font-weight: 300;
}

.hero h1,
#hero-heading {
  font-weight: 300;
}

.footer [data-hero-dot-wave],
.footer-dot-wave,
.footer .hero-dot-wave-wrap {
  opacity: 0.25;
}

/* ==========================================================================
   Home page 2.5: hero with a live Blink, the film, plans
   Motion follows the app: one entrance (fade with an 8px rise, 0.28s,
   Carbon productive easing), short staggers, no scale and no bounce on UI.
   ========================================================================== */

:root {
  --ease-out-soft: cubic-bezier(0.2, 0, 0.38, 0.9);
  --duration-reveal: 0.28s;
  --duration-base: 0.2s;
  --motion-rise-sm: 8px;
  --motion-rise-md: 8px;
  --motion-stagger-step: 0.04s;
  --motion-panel-lift: 0px;
  --motion-press-scale: 1;
}

@keyframes carbon-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes carbon-tile {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink-peek {
  from { transform: translateY(62%); }
  to { transform: translateY(0); }
}

@keyframes blink-hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(4%) scale(1.06, 0.92); }
  45% { transform: translateY(-16%) scale(0.96, 1.05); }
  72% { transform: translateY(0) scale(1.05, 0.94); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* Buttons */
.carbon-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.08s ease-out, color 0.08s ease-out;
}

.carbon-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.carbon-btn__arrow {
  margin-left: 24px;
  font-size: 0.875rem;
}

.carbon-btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.carbon-btn--primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.carbon-btn--primary:active {
  background: #002d9c;
}

.carbon-btn--outline {
  background: #ffffff;
  color: var(--accent);
  border-color: var(--accent);
}

.carbon-btn--outline:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.carbon-btn:focus-visible,
.film-frame__play:focus-visible,
.home-hero__blink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 0;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(to right, transparent 0 71px, rgba(224, 224, 224, 0.55) 71px 72px),
    repeating-linear-gradient(to bottom, transparent 0 71px, rgba(224, 224, 224, 0.55) 71px 72px),
    #ffffff;
}

.home-hero__tiles {
  position: absolute;
  top: 0;
  right: 0;
  width: 288px;
  height: 216px;
  pointer-events: none;
}

.home-hero__tiles i {
  position: absolute;
  width: 72px;
  height: 72px;
  opacity: 0;
  animation: carbon-tile 0.12s steps(1, end) forwards;
}

.home-hero__tiles i:nth-child(1) { right: 0; top: 0; background: #0f62fe; animation-delay: 0.1s; }
.home-hero__tiles i:nth-child(2) { right: 72px; top: 0; background: #4589ff; animation-delay: 0.17s; }
.home-hero__tiles i:nth-child(3) { right: 0; top: 72px; background: #0043ce; animation-delay: 0.24s; }
.home-hero__tiles i:nth-child(4) { right: 144px; top: 0; background: #a6c8ff; animation-delay: 0.31s; }
.home-hero__tiles i:nth-child(5) { right: 72px; top: 72px; background: #d0e2ff; animation-delay: 0.38s; }
.home-hero__tiles i:nth-child(6) { right: 0; top: 144px; background: #edf5ff; animation-delay: 0.45s; }
.home-hero__tiles i:nth-child(7) { right: 216px; top: 0; background: #edf5ff; animation-delay: 0.52s; }
.home-hero__tiles i:nth-child(8) { right: 144px; top: 72px; background: #edf5ff; animation-delay: 0.59s; }

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.home-hero__copy {
  padding-bottom: clamp(32px, 6vw, 72px);
}

.home-hero__copy > * {
  animation: carbon-rise 0.28s var(--ease-out-soft) backwards;
}

.home-hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.home-hero__copy > :nth-child(2) { animation-delay: 0.09s; }
.home-hero__copy > :nth-child(3) { animation-delay: 0.13s; }
.home-hero__copy > :nth-child(4) { animation-delay: 0.17s; }
.home-hero__copy > :nth-child(5) { animation-delay: 0.21s; }
.home-hero__copy > :nth-child(6) { animation-delay: 0.25s; }

.home-hero__eyebrow,
.home-hero__offer,
.home-hero__fine,
.film-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.home-hero h1 strong {
  display: block;
  font-weight: 600;
}

.home-hero__lead {
  max-width: 34rem;
  margin: 24px 0 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 32px;
}

.home-hero__offer {
  margin: 20px 0 0;
  color: var(--ink);
}

.home-hero__fine {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-hero__stage {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  padding-top: 124px;
  animation: carbon-rise 0.28s var(--ease-out-soft) 0.2s backwards;
}

.home-hero__phone {
  position: relative;
  z-index: 2;
  max-height: 470px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ink);
  border-bottom: 0;
  box-shadow: 12px 12px 0 var(--accent-soft);
}

.home-hero__phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  box-shadow: none;
}

.home-hero__blink {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 8px;
  width: 160px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  animation: blink-peek 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.55s backwards;
}

.blink-live {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 88%;
}

.blink-live.is-hopping {
  animation: blink-hop 0.52s cubic-bezier(0.3, 0, 0.3, 1);
}

.home-hero__bubble {
  position: absolute;
  z-index: 3;
  top: 52px;
  right: 172px;
  margin: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.875rem;
  white-space: nowrap;
  animation: carbon-rise 0.28s var(--ease-out-soft) 1.05s backwards;
}

.home-hero__bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 8px;
  border-left: 8px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.home-hero__stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  margin-bottom: 0;
  background: #ffffff;
  border-top: 2px solid var(--ink);
}

.home-hero__stat {
  padding: 20px 20px 28px;
  border-right: 1px solid var(--line);
}

.home-hero__stat:last-child {
  border-right: 0;
}

.home-hero__stat dt {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  color: var(--ink);
}

.home-hero__stat dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Film */
.film-frame {
  margin-top: 32px;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--accent-soft);
  background: #ffffff;
  aspect-ratio: 16 / 9;
}

.film-frame__play,
.film-frame iframe,
.film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
}

.film-frame__play {
  position: relative;
  background: #ffffff;
  cursor: pointer;
}

.film-frame__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.film-frame__button {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 20px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  transition: background-color 0.08s ease-out;
}

.film-frame__play:hover .film-frame__button {
  background: var(--accent-hover);
}

.film-note {
  margin: 28px 0 0;
  color: var(--muted);
}

/* Plans */
.plans-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.plans-table th,
.plans-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.plans-table tbody tr:last-child th,
.plans-table tbody tr:last-child td {
  border-bottom: 0;
}

.plans-table thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plans-table tbody th {
  font-weight: 400;
}

.plans-table th:nth-child(n + 2),
.plans-table td {
  width: 22%;
  font-family: var(--font-mono);
}

.plans-table thead .plans-table__premium {
  color: var(--accent);
}

.plans-table td:last-child {
  background: var(--accent-soft);
  color: var(--accent);
}

.plans-table__no {
  color: var(--muted) !important;
}

.plans-cta {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    padding-bottom: 0;
  }

  .home-hero__stage {
    width: min(100%, 300px);
  }

  .home-hero__phone {
    max-height: 360px;
  }

  .home-hero {
    padding-top: 88px;
  }

  .home-hero__tiles {
    transform: scale(0.45);
    transform-origin: top right;
  }

  .home-hero__actions .carbon-btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .home-hero__stats {
    grid-template-columns: 1fr;
  }

  .home-hero__stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .plans-table th:nth-child(n + 2),
  .plans-table td {
    width: 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__copy > *,
  .home-hero__stage,
  .home-hero__blink,
  .home-hero__bubble,
  .home-hero__tiles i,
  .blink-live.is-hopping {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================================
   Home sections, second pass: live Overview, numbered points, steps,
   feature list, carousel and FAQ in the same Carbon language.
   ========================================================================== */

/* Sound toggle */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.sound-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.sound-toggle__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.sound-toggle[aria-pressed="false"] .sound-toggle__dot {
  background: var(--line);
}

/* The storytelling "Continue" links are gone; the header and the page order do that job. */
.chapter-bridge,
.home-hero ~ .story-chapter .chapter-pull-quote {
  display: none;
}

/* Live Overview */
.overview-demo {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 #dde1e6;
}

.overview-demo__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--muted);
}

.overview-demo__bar img {
  width: 28px;
  height: 28px;
  border: 0;
  box-shadow: none;
}

.overview-demo__bar strong {
  color: var(--ink);
  font-weight: 600;
}

.overview-demo__site {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-demo__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.overview-demo__kpi {
  display: grid;
  gap: 6px;
  padding: 16px 20px 18px;
  text-align: left;
  background: #ffffff;
  border: 0;
  border-right: 1px solid var(--line);
  border-top: 3px solid transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.08s ease-out;
}

.overview-demo__kpi:last-child {
  border-right: 0;
}

.overview-demo__kpi:hover {
  background: var(--surface);
}

.overview-demo__kpi[aria-selected="true"] {
  background: var(--accent-soft);
  border-top-color: var(--accent);
}

.overview-demo__kpi-label,
.overview-demo__kpi-change,
.overview-demo__axis,
.overview-demo__note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-demo__kpi-label {
  color: var(--muted);
}

.overview-demo__kpi-value {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.overview-demo__kpi-change--up {
  color: var(--green);
}

.overview-demo__plot {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 24px 20px 20px;
  touch-action: pan-y;
  cursor: crosshair;
}

.overview-demo__axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--muted);
}

.overview-demo__plot svg {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  overflow: visible;
}

.overview-demo__grid {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.overview-demo__base {
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.overview-demo__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.overview-demo__area {
  fill: var(--accent);
  opacity: 0;
}

.overview-demo.is-drawn .overview-demo__line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.overview-demo.is-drawn .overview-demo__area {
  opacity: 0.1;
  transition: opacity 0.5s ease-out 0.6s;
}

.overview-demo__cursor {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.overview-demo__marker,
.overview-demo__callout {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.overview-demo__marker {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
}

.overview-demo__callout {
  padding: 3px 8px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.overview-demo.is-scrubbing .overview-demo__cursor,
.overview-demo.is-scrubbing .overview-demo__marker,
.overview-demo.is-scrubbing .overview-demo__callout {
  opacity: 1;
}

.overview-demo__note {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Why an app: three numbered points on one rule */
.value-props .chapter-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  counter-reset: point;
  border-top: 2px solid var(--ink);
}

.value-props .chapter-proof-item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 24px 28px 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  counter-increment: point;
}

.value-props .chapter-proof-item + .chapter-proof-item {
  padding-left: 24px;
}

.value-props .chapter-proof-item:last-child {
  border-right: 0;
}

.value-props .chapter-proof-item::before {
  content: "0" counter(point);
  position: static;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.value-props .chapter-proof-item__title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
}

.value-props .chapter-proof-item__text {
  color: var(--muted);
  line-height: 1.5;
}

/* Getting started: four steps across */
#how-to-use .path-arc {
  display: none;
}

#how-to-use .path-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

#how-to-use .path-step {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 20px 20px 24px 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

#how-to-use .path-step + .path-step {
  padding-left: 20px;
}

#how-to-use .path-step:last-child {
  border-right: 0;
}

#how-to-use .path-step::before,
#how-to-use .path-step::after {
  display: none;
}

#how-to-use .path-step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* What is inside: sample cards, then a ruled list of features */
#features .site-chart-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}

.feature-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  background: #ffffff;
}

.feature-stack__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 20px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color 0.08s ease-out;
}

.feature-stack__item:nth-child(2n) {
  border-right: 0;
}

.feature-stack__item:hover {
  background: var(--accent-soft);
  transform: none;
}

.feature-stack__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 0;
}

/* The app: carousel controls as square Carbon buttons */
.screenshot-showcase__nav {
  width: 48px;
  height: 48px;
  background: #ffffff !important;
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: background-color 0.08s ease-out, color 0.08s ease-out;
}

.screenshot-showcase__nav:hover {
  background: var(--ink) !important;
  color: #ffffff !important;
}

/* FAQ: one ruled list */
#faq .faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

#faq .faq-item:first-child {
  border-top: 2px solid var(--ink);
}

#faq .faq-question {
  font-size: 1.0625rem;
  padding-left: 0;
  padding-right: 0;
}

#faq .faq-question:hover {
  color: var(--accent);
}

#faq .faq-answer-inner {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 860px) {
  .overview-demo__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-demo__kpi:nth-child(2n) {
    border-right: 0;
  }

  .overview-demo__kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .overview-demo__site {
    display: none;
  }

  .value-props .chapter-proof-list,
  #how-to-use .path-step-list,
  .feature-stack {
    grid-template-columns: 1fr;
  }

  .value-props .chapter-proof-item,
  .value-props .chapter-proof-item + .chapter-proof-item,
  #how-to-use .path-step,
  #how-to-use .path-step + .path-step {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-stack__item {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-demo .overview-demo__line,
  .overview-demo .overview-demo__area {
    transition: none;
  }
}

/* Third pass: fewer labels, a call to action where a visitor decides. */
.home-hero {
  border-bottom: 1px solid var(--line);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 32px;
}

.section-cta__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.overview-demo__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.overview-demo__note .sound-toggle {
  margin-top: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.feature-stack {
  margin-top: 32px;
}

.plans-table-wrap {
  border-color: var(--line);
}


/* Inner pages, shared: no dot field behind headings, quotes as a ruled aside. */
.story-chapter > .hero-dot-wave-wrap,
.page-guide .hero-dot-wave-wrap,
main .hero-dot-wave-wrap {
  display: none;
}

.chapter-pull-quote {
  margin: 32px 0;
  padding: 4px 0 4px 20px;
  border: 0;
  border-left: 3px solid var(--accent);
  background: transparent;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
}

/* About */
#founder .about-founder {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  margin-top: 32px;
}

#founder .about-founder__photo {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 0;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--accent-soft);
  background: #ffffff;
  overflow: hidden;
}

#founder .about-founder__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

#founder .about-founder__name {
  font-size: 1.75rem;
  font-weight: 300;
  margin: 0;
}

#founder .about-founder__role {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#founder .about-founder__bio {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
}

#founder .about-founder__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
}

#founder .about-founder__link:hover {
  background: var(--accent-soft);
}

#values .feature-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#values .feature-stack__item {
  grid-template-columns: 1fr;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

#values .feature-stack__item:last-child {
  border-right: 0;
}

@media (max-width: 860px) {
  #founder .about-founder,
  #values .feature-stack {
    grid-template-columns: 1fr;
  }

  #founder .about-founder__photo {
    max-width: 260px;
  }

  #values .feature-stack__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Releases */
.release-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: #ffffff;
}

.release-item--latest .release-card {
  border-top: 3px solid var(--accent);
  box-shadow: 12px 12px 0 var(--accent-soft);
}

.release-item--latest .release-version {
  font-size: 1.5rem;
  font-weight: 300;
}

.release-card .section-cta {
  margin-top: 24px;
}

.release-item--upcoming .release-card {
  border-top: 1px dashed var(--muted);
  background: transparent;
}

.release-dot {
  background: #ffffff;
  border: 2px solid var(--ink);
}

.release-dot.latest {
  background: var(--accent);
  border-color: var(--accent);
}

.release-badge {
  font-weight: 400;
}

.chapter-stats dt {
  font-weight: 300;
}

/* Research pass: say who it is for and what it needs, next to the button. */
.home-hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
}

.home-hero__trust,
.guide-cta-note {
  max-width: 34rem;
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.home-hero__qr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 8px 14px 8px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-hero__qr img {
  display: block;
  width: 84px;
  height: 84px;
  border: 0;
  box-shadow: none;
}

/* Someone already on a phone taps the button; the code is for desktop visitors. */
@media (max-width: 860px), (hover: none) {
  .home-hero__qr {
    display: none;
  }
}

/* ==========================================================================
   Footer: a blue call to action, then an ink footer with ruled columns.
   ========================================================================== */
.footer {
  position: relative;
  margin-top: 0;
  padding: 0 0 24px;
  background: #161616;
  color: #c6c6c6;
  border-top: 0;
}

.footer .footer-dot-wave-wrap {
  display: none;
}

.footer .footer-download {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  margin: 0 calc(var(--layout-gutter) * -1) 0;
  padding: clamp(28px, 5vw, 48px) var(--layout-gutter);
  background: var(--accent);
  border: 0;
  box-shadow: 0 0 0 100vmax var(--accent);
  clip-path: inset(0 -100vmax);
}

.footer .footer-download-blink {
  width: clamp(72px, 9vw, 120px);
  height: auto;
  border: 0;
  box-shadow: none;
}

.footer .footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d0e2ff;
}

.footer .footer-download-title {
  margin: 6px 0 4px;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
}

.footer .footer-download-desc {
  margin: 0;
  color: #edf5ff;
}

.footer .footer-app-cta {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  min-height: 56px;
  padding: 0 20px;
  background: #ffffff !important;
  color: var(--accent) !important;
  border: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.footer .footer-app-cta::after {
  content: "→";
}

.footer .footer-app-cta:hover {
  background: #edf5ff !important;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 0;
  margin-top: 0;
  padding: 0;
  border-bottom: 1px solid #393939;
}

.footer .footer-grid > div {
  padding: 32px 24px 32px 0;
  border-right: 1px solid #393939;
}

.footer .footer-grid > div + div {
  padding-left: 24px;
}

.footer .footer-grid > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.footer .logo-text {
  color: #ffffff;
}

.footer .footer-tagline,
.footer .footer-disclaimer {
  color: #a8a8a8;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer .footer-col-title,
.footer .social-label,
.footer .footer-bottom {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8d8d;
}

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

.footer .footer-links a {
  color: #f4f4f4;
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer .footer-links a:hover {
  color: #78a9ff;
  text-decoration: underline;
}

.footer .social-share {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-top: 16px;
}

.footer .social-label {
  margin-right: 10px;
}

.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #262626 !important;
  border: 0 !important;
  color: #f4f4f4 !important;
  box-shadow: none !important;
}

.footer .social-icon:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.footer .social-icon svg {
  width: 16px;
  height: 16px;
}

/* Carbon fields: filled, with a bottom rule */
.footer .contact-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer .contact-form input,
.footer .contact-form textarea,
.footer .lang-picker {
  width: 100%;
  padding: 11px 14px;
  background: #262626;
  border: 0;
  border-bottom: 1px solid #6f6f6f;
  color: #f4f4f4;
  font: inherit;
  font-size: 0.875rem;
  box-shadow: none;
}

.footer .contact-form input::placeholder,
.footer .contact-form textarea::placeholder {
  color: #8d8d8d;
}

.footer .contact-form input:focus,
.footer .contact-form textarea:focus,
.footer .lang-picker:focus {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

.footer .contact-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.footer .contact-form button::after {
  content: "→";
}

.footer .contact-form button:hover {
  background: var(--accent-hover);
}

.footer .contact-note {
  color: #a8a8a8;
  font-size: 0.8125rem;
}

.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding-top: 20px;
  border-top: 0;
}

.footer .lang-picker {
  width: auto;
  min-width: 180px;
}

@media (max-width: 960px) {
  .footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer .footer-grid > div,
  .footer .footer-grid > div + div {
    padding: 24px 16px 24px 0;
    border-right: 0;
    border-bottom: 1px solid #393939;
  }

  .footer .footer-grid > div:first-child,
  .footer .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer .footer-download {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .footer .footer-app-cta {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}

/* Metadata pass: the H1 is the promise; Blink is the line beneath it. */
.home-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 300;
}

.home-hero__tagline {
  margin: 12px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.home-hero__offer {
  max-width: 34rem;
  line-height: 1.6;
}

.plans-price-note {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The offer is a full sentence now, so it reads as text, not as a label. */
.home-hero__offer,
.section-cta__note {
  font-family: var(--font);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.section-cta__note {
  max-width: 30rem;
  color: var(--muted);
}

/* ==========================================================================
   QA pass: contrast, touch targets, focus, small layout faults
   ========================================================================== */

/* Green and footer labels did not meet 4.5:1 for small text. */
:root {
  --green: #198038;
}

.footer .footer-col-title,
.footer .social-label,
.footer .footer-bottom,
.footer .footer-bottom span {
  color: #a8a8a8 !important;
}

.footer .footer-eyebrow {
  color: #ffffff;
}

.footer .contact-form input::placeholder,
.footer .contact-form textarea::placeholder {
  color: #a8a8a8;
}

/* Keyboard focus is always visible. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer a:focus-visible,
.footer button:focus-visible,
.footer-download a:focus-visible {
  outline-color: #ffffff;
}

/* Touch targets */
.overview-demo__note .sound-toggle {
  min-height: 36px;
  padding: 0 4px;
}

.screenshot-showcase__dot {
  position: relative;
}

.screenshot-showcase__dot::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}

/* The two hero buttons sit side by side whenever there is room. */
@media (min-width: 861px) {
  .home-hero__actions {
    flex-wrap: nowrap;
  }

  .home-hero__actions .carbon-btn {
    white-space: nowrap;
  }

  .home-hero__actions .carbon-btn__arrow {
    margin-left: 16px;
  }
}

/* Footer links were spaced far apart on phones. */
.footer .footer-links {
  gap: 0;
}

.footer .footer-links a {
  display: inline-block;
  min-height: 0;
  padding: 7px 0;
  line-height: 1.35;
}

/* ==========================================================================
   Review fixes: feature cards, current nav item, footer Blink
   ========================================================================== */

/* Feature cards sit directly on the band: one ruled grid, no white sheet showing between them. */
main .feature-stack {
  gap: 0 !important;
  background: transparent !important;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
}

main .feature-stack .feature-stack__item {
  margin: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

main .feature-stack .feature-stack__item:hover {
  background: var(--accent-soft) !important;
}

/* Current page in the header: ink text on a blue underline, no box. */
.header .nav-links a:not(.nav-cta),
.header .nav-links a:not(.nav-cta)[aria-current="true"],
.header .nav-links a:not(.nav-cta).is-active {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  padding-top: 10px;
  padding-bottom: 8px;
}

.header .nav-links a:not(.nav-cta):hover {
  color: var(--ink);
  border-bottom-color: var(--line) !important;
}

.header .nav-links a:not(.nav-cta)[aria-current="true"],
.header .nav-links a:not(.nav-cta)[aria-current="page"],
.header .nav-links a:not(.nav-cta).is-active {
  color: var(--ink) !important;
  font-weight: 600;
  border-bottom-color: var(--accent) !important;
}

/* Footer call to action: Blink is live here too. */
.footer button.footer-download-blink {
  width: clamp(84px, 10vw, 132px);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.footer .footer-download-blink .blink-live {
  width: 100%;
  height: auto;
}

.home-hero__trust {
  margin-top: 16px;
  font-size: 0.875rem;
}

.home-hero__lead {
  margin-top: 20px;
}

/* Hero balance: the copy is centred against the phone instead of sitting at the bottom of a tall column. */
.home-hero {
  padding-top: clamp(32px, 4vw, 56px);
}

.home-hero__grid {
  align-items: center;
}

.home-hero__copy {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 13em;
}

.home-hero__lead {
  max-width: 30rem;
  font-size: 1.1875rem;
}

.home-hero__stage {
  padding-top: 112px;
  align-self: end;
}

.home-hero__phone {
  max-height: 440px;
}

@media (max-width: 860px) {
  .home-hero {
    padding-top: 88px;
  }

  .home-hero__copy {
    padding-bottom: 0;
  }

  .home-hero__phone {
    max-height: 360px;
  }
}

/* H1 says what this is: the product name in bold, the platform in light. */
.home-hero h1 {
  max-width: 12em;
}

.home-hero h1 strong {
  display: block;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-hero h1 span {
  display: block;
  font-weight: 300;
}

.home-hero__lead {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Each half of the H1 holds one line on desktop. */
@media (min-width: 861px) {
  .home-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
}

/* The sliding highlight behind the current nav item is gone; the underline alone marks it. */
.nav-glass-indicator {
  display: none !important;
}

.contact-form__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ==========================================================================
   Privacy control: always in the bottom left corner
   ========================================================================== */
.privacy-control {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100vw - 32px);
}

.privacy-control__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--accent-soft);
}

.privacy-control__button:hover {
  background: var(--ink);
  color: #ffffff;
}

.privacy-control__dot {
  width: 8px;
  height: 8px;
  background: #8d8d8d;
}

.privacy-control.is-on .privacy-control__dot {
  background: var(--green);
}

.privacy-card {
  width: 340px;
  max-width: 100%;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--ink);
  border-top: 3px solid var(--accent);
  box-shadow: 8px 8px 0 var(--accent-soft);
  color: var(--ink);
}

.privacy-card[hidden] {
  display: none;
}

.privacy-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privacy-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.privacy-card__close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-card__close:hover {
  background: var(--surface);
}

.privacy-card__body,
.privacy-card__note {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.privacy-card__note {
  font-size: 0.8125rem;
}

.privacy-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-card__label {
  font-weight: 600;
}

.privacy-card__status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.privacy-control.is-on .privacy-card__status {
  color: var(--green);
}

.privacy-card__actions {
  display: flex;
  gap: 1px;
  margin-top: 14px;
}

.privacy-card__allow,
.privacy-card__decline {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid var(--accent);
}

/* Both choices carry the same weight; the current one is the filled one. */
.privacy-card__allow,
.privacy-card__decline {
  background: #ffffff;
  color: var(--accent);
}

.privacy-card__allow[aria-pressed="true"],
.privacy-card__decline[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

.privacy-card__allow:hover,
.privacy-card__decline:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.privacy-card__allow[aria-pressed="true"]:hover,
.privacy-card__decline[aria-pressed="true"]:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.privacy-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--accent);
}

/* On phones the sticky download bar owns the bottom edge, so the button sits above it. */
@media (max-width: 860px) {
  .privacy-control {
    left: 12px;
    bottom: 84px;
  }
}

@media print {
  .privacy-control {
    display: none;
  }
}

.film-frame video {
  background: #ffffff;
  object-fit: contain;
}

/* App Store rating in the hero */
.home-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.home-hero__rating:hover {
  color: var(--accent);
}

.home-hero__stars {
  display: inline-flex;
  gap: 2px;
}

.home-hero__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.home-hero__star--empty svg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.home-hero__star--empty {
  display: inline-flex;
}

.home-hero__rating + .home-hero__trust {
  margin-top: 8px;
}

/* ==========================================================================
   Phone fixes: hero spacing, stacked buttons, compact privacy button
   ========================================================================== */
@media (max-width: 860px) {
  .home-hero {
    padding-top: 64px;
  }

  .home-hero__actions {
    gap: 12px;
  }

  /* Room for Blink to show his eyes above the phone. */
  .home-hero__stage {
    padding-top: 128px;
    margin-top: -24px;
  }

  /* A small square in the corner, so it stays in reach without sitting on the copy. */
  .privacy-control__button {
    width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--accent-soft);
  }

  .privacy-control__button > span[data-i18n] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .privacy-control__dot {
    width: 10px;
    height: 10px;
  }
}

/* Screenshot carousel on phones: previous and next sit on the edges of the stage. */
@media (max-width: 768px) {
  .screenshot-showcase__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    transform: translateY(-50%) !important;
  }

  .screenshot-showcase__nav--prev {
    left: 0;
  }

  .screenshot-showcase__nav--next {
    right: 0;
  }

  .screenshot-rail {
    padding-inline: calc(50% - min(36vw, 140px));
    scroll-padding-inline: 0;
  }
}

.film-frame__note {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.film-frame__note a {
  color: var(--accent);
}

.film-frame {
  position: relative;
}

.film-frame__note {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
