/* New BDS Showcase Stylesheet (newbds.aurionapps.dev)
   Tokens from BDS-01 & New BDS Design Brief v0.3:
   Cobalt Blue (#0061D4, #0057C8, #003A8C), Deep Slate Ink (#22253F), Body Charcoal (#373B49),
   Paper (#F2F3F7), Sheet (#FFFFFF), Divider (#E1E4EB), Focus (#0050B3).
   Self-hosted Overpass (400, 600, 700, 800), >= 12px floor, WCAG 2.2 AA (>= 4.5:1) everywhere. */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/overpass-400.woff2") format("woff2");
}
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/overpass-600.woff2") format("woff2");
}
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/overpass-700.woff2") format("woff2");
}
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/overpass-800.woff2") format("woff2");
}
/* Four distinct static weights (400 Regular, 600 SemiBold, 700 Bold, 800 ExtraBold), Latin subset,
   built from the New BDS app TTFs under the SIL Open Font License (fonts/OFL.txt). */

:root {
  --cobalt: #0061D4;
  --cobalt-top: #0057C8;
  --cobalt-deep: #003A8C;
  --cobalt-edge: #00469C;
  --cobalt-soft: #EAF3FF;
  --cobalt-ink: #0047A6;
  --focus: #0050B3;

  --ink: #22253F;
  --body: #373B49;
  --mute: #52586A;

  --paper: #F2F3F7;
  --sheet: #FFFFFF;
  --line: #E1E4EB;
  --line-strong: #C5CBD8;
  --ok-ink: #0F6E43;
  --ok-bg: #E8F6EF;

  --shadow-card: 0 1px 2px rgba(34, 37, 63, 0.07), 0 6px 20px rgba(34, 37, 63, 0.06);
  --shadow-stage: 0 2px 6px rgba(34, 37, 63, 0.08), 0 18px 44px rgba(12, 24, 58, 0.16);
  --shadow-pop: 0 12px 32px rgba(34, 37, 63, 0.18);

  --font: "Overpass", Carlito, Calibri, "Segoe UI", Arial, sans-serif;
  --topbar-h: 54px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--sheet);
  color: var(--body);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3, p, ol, ul, figure {
  margin: 0;
}

button, a {
  font-family: inherit;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Avoid one-word orphan lines in running copy */
.hero-lead,
.install-steps li,
.install-note,
.sec-head p,
.pillar-card p,
.tour-desc,
.chapter-pill span {
  text-wrap: pretty;
}
/* Must out-rank ".chapter-pill span" because text-wrap resets text-wrap-mode */
.chapter-pill .nobr {
  white-space: nowrap;
}

/* Focus outlines: >= 7.3:1 on light grounds, white on Cobalt band */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 200;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  transform: translateY(-160%);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------------- Top Bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 155, 255, 0.38) 0%, transparent 40%),
    linear-gradient(100deg, var(--cobalt-top) 0%, var(--cobalt) 46%, var(--cobalt-deep) 100%);
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(8, 22, 58, 0.18);
}

.topbar-in {
  height: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar :focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #FFFFFF;
  text-decoration: none;
  padding: 4px 6px 4px 2px;
  border-radius: 6px;
  flex: none;
}
.brand-lockup:hover {
  background: rgba(255, 255, 255, 0.12);
}
.brand-lockup img {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(8, 25, 68, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.share-box {
  position: relative;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(8, 25, 68, 0.28);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.share-btn:hover,
.share-btn[aria-expanded="true"] {
  background: rgba(8, 25, 68, 0.48);
  border-color: rgba(255, 255, 255, 0.62);
}
.share-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  width: min(268px, calc(100vw - 28px));
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.share-menu :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -2px;
}

.share-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-item:hover {
  background: var(--paper);
  color: var(--cobalt);
}
.share-item.is-copied {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.share-url {
  margin-top: 6px;
  padding: 8px 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.35;
  color: var(--mute);
  overflow-wrap: anywhere;
  user-select: all;
}

.lang-seg {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(8, 25, 68, 0.30);
}
.lang-seg button {
  height: 34px;
  min-width: 40px;
  padding: 0 11px;
  border: 0;
  background: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lang-seg button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}
.lang-seg button:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lang-seg button[aria-pressed="true"] {
  background: #FFFFFF;
  color: var(--cobalt-deep);
}
.lang-seg button:focus-visible {
  outline-offset: -3px;
}

/* ---------------- First Screen: Two-Column Stage ---------------- */
.first-screen {
  max-width: 1560px;
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(390px, 42fr);
  border-bottom: 1px solid var(--line);
}

/* Left Column (~58%): Pitch + Interactive Dual Video Demo Stage */
.pitch-col {
  min-width: 0;
  background: var(--sheet);
  padding: clamp(14px, 2vh, 26px) clamp(20px, 2.8vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Height-aware width cap so 16:9 stage + headline + pills always fit cleanly inside 100dvh at >= 980px */
.pitch-in {
  width: min(100%, 920px, max(440px, calc((100vh - 328px) * 16 / 9)));
  width: min(100%, 920px, max(440px, calc((100dvh - 328px) * 16 / 9)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.pitch-head h1 {
  font-size: clamp(23px, 1.55vw + 10px, 33px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin-top: 7px;
  font-size: clamp(13.5px, 0.3vw + 12px, 15px);
  line-height: 1.44;
  color: var(--body);
  max-width: 78ch;
}

.video-block {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.film-seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.film-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.film-btn + .film-btn {
  border-left: 1px solid var(--line-strong);
}
.film-btn:hover {
  background: var(--sheet);
  color: var(--cobalt);
}
.film-btn[aria-pressed="true"] {
  background: var(--cobalt);
  color: #FFFFFF;
}
.film-btn:focus-visible {
  outline-offset: -3px;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: var(--cobalt);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.explore-link:hover {
  text-decoration: underline;
  color: var(--cobalt-deep);
}
.explore-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0A2558;
  box-shadow: var(--shadow-stage);
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0A2558;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: none;
}
.video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fallback-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(10, 26, 64, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}
.video-stage.is-fallback .stage-video,
.video-stage.is-fallback .stage-play {
  display: none;
}
.video-stage.is-fallback .video-fallback {
  display: block;
}

/* 84x84px #0061D4 play overlay button */
.stage-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  padding: 0;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  background: var(--cobalt);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(6, 14, 40, 0.48);
}
.stage-play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}
.stage-play:hover {
  background: var(--cobalt-top);
}
.stage-play:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}
.video-stage.is-playing .stage-play {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .stage-play {
    transition: transform 140ms ease, background-color 140ms ease;
  }
  .stage-play:hover {
    transform: scale(1.05);
  }
  .stage-play:active {
    transform: scale(0.97);
  }
}

/* Clickable Chapter Jump Pills underneath the stage: one even rail of 5 (time above label) */
.chapter-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.chapter-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 9px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.video-stage:not(.is-playing) .stage-video {
  cursor: pointer;
}
.chapter-pill:hover {
  background: var(--cobalt-soft);
  border-color: var(--cobalt);
  color: var(--cobalt-ink);
}
.chapter-pill[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #FFFFFF;
}
.chapter-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--cobalt-ink);
}
.chapter-pill[aria-pressed="true"] .chapter-time {
  color: #FFFFFF;
}

/* Right Column (~42%): Direct Download Cards */
.dl-col {
  min-width: 0;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: clamp(12px, 1.8vh, 22px) clamp(16px, 2.2vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dl-stack {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.dl-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.dl-card-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.dl-card-head h2 svg {
  width: 18px;
  height: 18px;
  color: var(--cobalt);
  flex: none;
}

.dl-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.dl-meta-strip span {
  padding-right: 8px;
  margin-right: 8px;
  border-right: 1px solid var(--line-strong);
}
.dl-meta-strip span:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
  color: var(--ink);
  font-weight: 700;
}

.dl-android-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "cta qr"
    "steps qr";
  column-gap: 14px;
  align-items: start;
}
.dl-android-grid .dl-cta-stack {
  grid-area: cta;
}
.dl-android-grid .qr-wrap {
  grid-area: qr;
}
.dl-android-grid .install-steps {
  grid-area: steps;
}

.dl-cta-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-dl svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-dl-primary {
  background: var(--cobalt);
  color: #FFFFFF;
  border: 1.5px solid var(--cobalt);
  box-shadow: 0 2px 0 var(--cobalt-edge);
}
.btn-dl-primary:hover {
  background: var(--cobalt-top);
  border-color: var(--cobalt-top);
}
.btn-dl-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--cobalt-edge);
}

.btn-dl-secondary {
  margin-top: 10px;
  background: var(--sheet);
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
}
.btn-dl-secondary:hover {
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}

/* Crisp zero-padding QR card (45x45 modules -> 90x90px = exact 2px/module) */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.qr-card {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  line-height: 0;
}
.qr-card img {
  width: 90px;
  height: 90px;
  padding: 0;
  margin: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.qr-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  line-height: 1.1;
}

/* Expandable SHA-256 Checksum */
.sha-details {
  margin-top: 7px;
}
.sha-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cobalt-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.sha-details summary::-webkit-details-marker {
  display: none;
}
.sha-details summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 120ms ease;
}
.sha-details[open] summary::before {
  transform: rotate(90deg);
}
.sha-details summary:hover {
  text-decoration: underline;
}

.sha-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sha-box code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  user-select: all;
}
.btn-copy-sha {
  flex: none;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-copy-sha:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.btn-copy-sha.is-copied {
  background: var(--ok-bg);
  border-color: var(--ok-ink);
  color: var(--ok-ink);
}

.install-steps {
  margin-top: 8px;
  padding-left: 18px;
  display: grid;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.38;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}

.install-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--body);
}

/* ---------------- Below the Fold (#parts) ---------------- */
.parts-section {
  background: var(--paper);
  padding: clamp(36px, 5.5vh, 64px) clamp(16px, 3vw, 48px) clamp(44px, 6.5vh, 76px);
  scroll-margin-top: var(--topbar-h);
}

.parts-in {
  max-width: 1280px;
  margin: 0 auto;
}

.sec-head {
  max-width: 78ch;
}
.sec-head h2 {
  font-size: clamp(22px, 1.4vw + 14px, 30px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.sec-head p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.48;
  color: var(--body);
}

/* 3x2 Capability Grid */
.pillars-grid {
  list-style: none;
  margin-top: 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pillar-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-ic {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--cobalt-soft);
  color: var(--cobalt-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.pillar-ic svg {
  width: 19px;
  height: 19px;
}

.pillar-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.pillar-card p {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--body);
}

/* Interactive 6-Tab Dual-Device Workflow Tour */
.tour-block {
  margin-top: clamp(36px, 5.5vh, 56px);
  padding-top: clamp(28px, 4.5vh, 44px);
  border-top: 1px solid var(--line-strong);
}

.tour-tabs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tour-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-bottom: 3px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--body);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
}
.tour-tab:hover {
  color: var(--ink);
  background: var(--sheet);
  border-color: var(--cobalt);
}
.tour-tab[aria-selected="true"] {
  color: var(--cobalt-deep);
  border-color: var(--cobalt);
  border-bottom: 3px solid var(--cobalt);
  background: var(--sheet);
  box-shadow: 0 2px 6px rgba(0, 97, 212, 0.10);
}
.tour-tab:focus-visible {
  outline-offset: -3px;
}

.tour-desc {
  margin-top: 16px;
  min-height: 2.8em;
  max-width: 88ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.tour-stage {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(220px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.device-card {
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.device-cap {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.device-win-frame {
  aspect-ratio: 1280 / 800;
  background: var(--paper);
  overflow: hidden;
}
.device-win-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.device-phone-frame {
  aspect-ratio: 390 / 844;
  background: var(--paper);
  overflow: hidden;
}
.device-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--sheet);
  border-top: 1px solid var(--line);
  padding: 20px clamp(16px, 3vw, 48px);
}

.footer-in {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--mute);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}
.footer-brand img {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.footer-links a {
  color: var(--cobalt-ink);
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* ---------------- Responsive Breakpoints ---------------- */
/* Compact desktop height adjustment (e.g. 1280x800) so Screen 1 breathes with zero clip */
@media (min-width: 980px) and (max-height: 830px) {
  .pitch-col {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .pitch-in {
    width: min(100%, 860px, max(420px, calc((100dvh - 306px) * 16 / 9)));
  }
  .pitch-head h1 {
    font-size: clamp(22px, 1.4vw + 9px, 28px);
  }
  .hero-lead {
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.38;
  }
  .video-block {
    margin-top: 10px;
  }
  .dl-col {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .dl-stack {
    gap: 10px;
  }
  .dl-card {
    padding: 12px 14px;
  }
  .btn-dl {
    min-height: 40px;
  }
}

/* Below 980px: graceful single-column stack */
@media (max-width: 979.98px) {
  .first-screen {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .pitch-col {
    padding: 22px clamp(16px, 4vw, 32px) 24px;
  }
  .pitch-in {
    width: min(720px, 100%);
  }
  .dl-col {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px clamp(16px, 4vw, 32px) 28px;
  }
  .dl-stack {
    width: min(720px, 100%);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .device-phone {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Phones (390x844 and narrow viewports) */
@media (max-width: 620px) {
  .release-pill {
    display: none;
  }
  .share-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .share-btn {
    padding: 0 10px;
    min-width: 40px;
    justify-content: center;
  }
  .lang-seg button {
    min-width: 42px;
    height: 36px;
  }
  .pitch-head h1 {
    font-size: 24px;
  }
  .film-seg {
    width: 100%;
  }
  .film-btn {
    flex: 1;
    height: 40px;
    padding: 0 8px;
  }
  .stage-play {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
  }
  .stage-play svg {
    width: 28px;
    height: 28px;
  }
  .explore-link {
    display: none;
  }
  .chapter-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: clamp(16px, 4vw, 32px);
    margin-left: calc(-1 * clamp(16px, 4vw, 32px));
    margin-right: calc(-1 * clamp(16px, 4vw, 32px));
    padding: 0 clamp(16px, 4vw, 32px) 2px;
    scrollbar-width: none;
  }
  .chapter-row::-webkit-scrollbar {
    display: none;
  }
  .chapter-pill {
    scroll-snap-align: start;
  }
  .dl-android-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "cta"
      "steps";
  }
  /* Already on the phone: the QR hand-off is a desktop affordance */
  .dl-android-grid .qr-wrap {
    display: none;
  }
  .sha-box {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-copy-sha {
    min-height: 36px;
  }
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    border-bottom: 0;
  }
  .tour-tab {
    margin-bottom: 0;
    border: 1px solid var(--line);
    border-left: 4px solid transparent;
    border-radius: 6px;
    background: var(--sheet);
    min-height: 42px;
    padding: 8px 12px;
  }
  .tour-tab[aria-selected="true"] {
    border-color: var(--cobalt);
    border-left-width: 4px;
    border-radius: 6px;
    background: var(--cobalt-soft);
    color: var(--cobalt-deep);
  }
  .tour-desc {
    min-height: 0;
  }
}
