/*
 * ThreVox landing - static site, no framework.
 * Tokens mirror docs/design/ui-design-system.md (dark industrial, flat, no gradients).
 */

:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface-2: #1c2230;
  --border: #2a3242;
  --text: #f4f6fb;
  --muted: #99a2b5;
  --primary: #6d5ef6;
  --primary-600: #5a4be6;
  --primary-400: #8b7dff;
  --live: #22d3a6;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f5556b;
  --info: #38bdf8;
  --lamp-stop: #ef4444;
  --lamp-warning: #f59e0b;
  --lamp-protect: #f97316;
  --lamp-mil: #e0a100;

  /* illustration shades local to these pages */
  --bezel: #10141c;
  --screen: #070a0f;
  --idle: #566073;
  --live-40: rgba(34, 211, 166, 0.4);

  --radius: 8px;
  --h1-size: clamp(38px, 4.8vw, 56px);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Semi Condensed", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--primary); color: #ffffff; }

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

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.topline { height: 2px; background: var(--primary); }

/* ------------------------------ header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark,
.brand-wordmark { flex: none; }

.brand-chip {
  font: 500 9.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--live);
  border: 1px solid var(--live-40);
  border-radius: 999px;
  padding: 3px 8px;
}

/* The auto margin keeps the links against the tools on the right; collapsed, the nav leaves the
   row and the tools take the right edge on their own. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font: 500 14px var(--font-sans);
  white-space: nowrap;
  transition: color 0.15s;
}

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

/* The nav's muted link color would otherwise win over the button's own text color. */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

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

.icon-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.icon-btn:hover,
.lang-menu[open] > .icon-btn {
  color: var(--text);
  background: var(--surface-2);
}

/* The language menu is a <details>, so it opens without JavaScript; landing.js only adds closing
   on an outside click and on Escape. Each language is named in itself, so the trigger is the
   glyph alone and reads the same on both editions. */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 168px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.lang-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text);
  font: 500 14px var(--font-sans);
  text-decoration: none;
}

.lang-list a:hover { background: var(--surface); }

.lang-list a::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
}

.lang-list a[aria-current="page"]::before {
  background-color: var(--primary-400);
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 500 15px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

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

.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--primary-400); background: var(--surface); }
.btn-ghost svg { transition: transform 0.15s; }
.btn-ghost:hover svg { transform: translateX(2px); }

.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }

/* ------------------------------ hero ------------------------------ */

.hero {
  border-bottom: 1px solid var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%231a2029'/%3E%3C/svg%3E");
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 56px;
  align-items: start;
}

/* The pictures start level with the top of the headline's capitals, not with the kicker above
   it: past the kicker's 12px line and the headline's 20px top margin, plus the room Barlow
   leaves above its capitals at a 1.06 line height (0.21em, measured on the rendered page). */
.hero-side { margin-top: calc(32px + 0.21 * var(--h1-size)); }

.hero-side > .play-link {
  display: flex;
  width: fit-content;
  margin-top: 30px;
}

h1 {
  font: 600 var(--h1-size)/1.06 var(--font-display);
  letter-spacing: -0.015em;
  margin: 20px 0;
}

.lede {
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 46px;
}

/* plain-language proof points under the hero buttons */
.proof-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.proof-list li {
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.proof-list b {
  display: block;
  font: 600 15px/1.3 var(--font-sans);
  color: var(--text);
}

.proof-list span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Hardware pictures: a swipeable carousel, with the 3D model as one more view that loads only
   when the visitor asks for it. Without JavaScript the track is a plain scrollable strip. */
.hero-media { margin: 0; max-width: 640px; }

.media-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.carousel-track.is-enhanced { scrollbar-width: none; }
.carousel-track.is-enhanced::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }

.slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.carousel-nav[hidden] { display: none; }
.carousel-nav:hover { border-color: var(--primary-400); background: var(--surface-2); }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

.media-box model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--surface);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.media-box.is-3d model-viewer { visibility: visible; opacity: 1; transition: opacity 0.3s; }
.media-box.is-3d .carousel-nav { display: none; }

.media-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.media-thumbs[hidden] { display: none; }

.thumb {
  position: relative;
  flex: 1 1 0;
  max-width: 76px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}

.thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: #3a4560; }
.thumb[aria-current="true"] { border-color: var(--primary-400); box-shadow: inset 0 0 0 1px var(--primary-400); }

.thumb-3d {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.08em;
}

.thumb-3d svg { color: var(--primary-400); }
.thumb-3d[aria-busy="true"] { cursor: progress; }
.thumb-3d[aria-busy="true"] svg { animation: thumb-spin 1.2s linear infinite; }

@keyframes thumb-spin { to { transform: rotate(360deg); } }

/* Opens the trailer dialog (landing.js); without JavaScript it is a plain link to the video file. */
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  color: var(--text);
  text-decoration: none;
  font: 500 15px var(--font-sans);
}

.play-icon {
  display: inline-flex;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-400);
  transition: border-color 0.15s, background-color 0.15s;
}

.play-link:hover .play-icon { border-color: var(--primary-400); background: var(--surface); }

.play-time {
  color: var(--muted);
  font: 400 12px var(--font-mono);
  letter-spacing: 0.08em;
}

.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  color: var(--muted);
  font: 400 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cluster { display: block; width: 100%; height: auto; }

.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 0;
  color: var(--muted);
  font: 400 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* registration marks on framed panels */
.frame { position: relative; }

.mark { position: absolute; width: 11px; height: 11px; }
.mark::before, .mark::after { content: ""; position: absolute; background: var(--idle); }
.mark::before { left: 5px; top: 0; width: 1px; height: 11px; }
.mark::after { left: 0; top: 5px; width: 11px; height: 1px; }
.mark.tl { top: -5px; left: -5px; }
.mark.tr { top: -5px; right: -5px; }
.mark.bl { bottom: -5px; left: -5px; }
.mark.br { bottom: -5px; right: -5px; }

/* fonts used inside inline SVG illustrations */
.svg-mono { font-family: var(--font-mono); }
.svg-display { font-family: var(--font-display); }

/* ------------------------------ sections ------------------------------ */

.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 104px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before { content: ""; width: 22px; height: 1px; background: var(--primary-400); }
.kicker b { color: var(--primary-400); font-weight: 500; }

h2 {
  font: 600 clamp(30px, 4vw, 42px)/1.15 var(--font-display);
  letter-spacing: -0.01em;
  margin: 18px 0 16px;
}

.section-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------ cards ------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.card:hover { border-color: #3a4560; }

/* ------------------------------ feature cards ------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.feature-grid.four { grid-template-columns: repeat(4, 1fr); }

.feature { padding: 26px; }

.feature-icon {
  width: 26px;
  height: 26px;
  stroke: var(--primary-400);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon .fill { fill: var(--primary-400); stroke: none; }

.feature h3 { font: 600 17px/1.35 var(--font-sans); margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ------------------------------ text + illustration rows ------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 56px;
  align-items: center;
}

/* Alternate the illustration side; the copy still comes first in the markup and on phones. */
.split-reverse { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }
.split-reverse > :first-child { order: 2; }

.split-visual { max-width: 720px; }
.mock { display: block; width: 100%; height: auto; }

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

.check-list li {
  position: relative;
  padding-left: 27px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%2322d3a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.check-list b { color: var(--text); font-weight: 600; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--primary-400);
  text-decoration: none;
  font: 500 15px var(--font-sans);
  transition: color 0.15s;
}

.text-link:hover { color: var(--text); }
.text-link svg { transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(2px); }

/* ------------------------------ how it works ------------------------------ */

.steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step { padding: 26px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-400);
  font: 500 14px var(--font-mono);
}

.step h3 { font: 600 17px/1.35 var(--font-sans); margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* The engineering detail stays on the page, folded away for everyone who does not need it. */
.under-hood {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.under-hood > summary {
  padding: 18px 24px;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.under-hood > summary:hover { color: var(--text); }

.under-hood > p {
  max-width: 860px;
  margin: 0;
  padding: 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.under-hood .pipeline-scroll { overflow-x: auto; margin: 28px 24px 0; padding-bottom: 8px; }
.under-hood .text-link { margin: 16px 24px 24px; }

.pipeline { display: block; min-width: 900px; width: 100%; height: auto; }

.pl-title { font: 600 13.5px var(--font-sans); fill: var(--text); text-anchor: middle; }
.pl-sub { font: 500 9.5px var(--font-mono); fill: var(--muted); letter-spacing: 1.5px; text-anchor: middle; }
.pl-note { font: 500 10px var(--font-mono); letter-spacing: 1px; }

/* shared disclosure styling: under-hood panel and FAQ */
.under-hood > summary,
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.under-hood > summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker { display: none; }

.under-hood > summary::after,
.faq-list summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}

details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

/* ------------------------------ phone ------------------------------ */

.phone-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.phone-modes h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  font: 600 16px/1.35 var(--font-sans);
}

.phone-modes h3 span {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
}

.phone-modes .check-list { margin-top: 14px; }
.phone-modes .check-list li { font-size: 14.5px; }

/* ------------------------------ hardware ------------------------------ */

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.model-grid .check-list { margin-bottom: 0; }

/* ------------------------------ spec and plan tables ------------------------------ */

.table-scroll { overflow-x: auto; margin: 20px 24px 24px; }

.spec-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec-table th,
.spec-table td,
.compare-table th,
.compare-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.spec-table tr:first-child th,
.spec-table tr:first-child td { border-top: 0; }

.spec-table th { width: 30%; min-width: 150px; color: var(--text); font-weight: 600; }
.spec-table td { color: var(--muted); }

.compare-table { min-width: 560px; }
.compare-table tbody th { color: var(--text); font-weight: 500; }

.compare-table thead th {
  border-top: 0;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.compare-table td {
  width: 15%;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.compare-table .group th {
  padding-top: 22px;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-400);
}

.compare-table td.yes { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%2322d3a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px; }
.compare-table td.addon { color: var(--primary-400); font-weight: 500; }

/* Text for screen readers where the table shows only a mark. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------ tiers ------------------------------ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.tier-chip {
  align-self: flex-start;
  margin: 0;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.chip-accent { color: var(--primary-400); border-color: var(--primary); }

.tier h3 { font: 600 24px var(--font-display); margin: 16px 0 8px; }

.tier-hw {
  margin: 0 0 10px;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
}
.tier-blurb { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.tier .check-list { margin: 18px 0 26px; }
.tier .check-list li { font-size: 14px; }

.tier-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font: 500 14.5px var(--font-sans);
  transition: color 0.15s;
}

.tier-cta:hover { color: var(--primary-400); }

.tier-featured { border-color: var(--primary); }

/* ------------------------------ 05 posture ------------------------------ */

.posture-list { margin-top: 44px; border-top: 1px solid var(--border); }

.posture-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.posture-icon {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  stroke: var(--primary-400);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.posture-row h3 { font: 600 17px var(--font-sans); margin: 0 0 8px; }
.posture-row p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 760px; }
.posture-row a, .faq-list a { color: var(--primary-400); }

/* ------------------------------ faq ------------------------------ */

.faq-list {
  max-width: 860px;
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

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

.faq-list summary {
  padding: 22px 0;
  font: 600 17px/1.4 var(--font-sans);
  color: var(--text);
}

.faq-list summary:hover { color: var(--primary-400); }

.faq-list p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ------------------------------ cta ------------------------------ */

.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 56px;
}

.cta-panel h2 { margin-bottom: 12px; }
.cta-panel .hero-cta { margin: 28px 0 0; }

/* ------------------------------ trailer ------------------------------ */

/* A modal <dialog>, so Escape, focus trapping and the backdrop come from the browser. The video
   letterboxes inside the viewport on any shape of screen, landscape phones included. */
.trailer-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.trailer-dialog::backdrop { background: rgba(5, 7, 11, 0.86); }
.trailer-dialog[open] { animation: trailer-in 0.18s ease-out; }
.trailer-dialog[open]::backdrop { animation: trailer-fade 0.18s ease-out; }

@keyframes trailer-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes trailer-fade { from { opacity: 0; } }

html:has(.trailer-dialog[open]) { overflow: hidden; }

.trailer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 6px 20px;
  border-bottom: 1px solid var(--border);
}

.trailer-title {
  margin: 0;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.trailer-close { border: 0; background: none; }

.trailer-frame { background: #000000; }

.trailer-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  background: #000000;
}

.trailer-note {
  margin: 0;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------ footer ------------------------------ */

.site-footer {
  margin-top: 104px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  margin: 16px 0 0;
}

.footer-col h4 {
  margin: 4px 0 14px;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #c6ccda;
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--primary-400); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-rev {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ------------------------------ responsive ------------------------------ */

/* The nav collapses early: the Spanish labels need most of the 1120 px row. */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 1024px) {
  .hero-grid, .split, .split-reverse { grid-template-columns: 1fr; gap: 48px; }
  .split-reverse > :first-child { order: 0; }
  .hero-media, .split-visual { max-width: 720px; }
  .hero-side { margin-top: 0; }
  .feature-grid, .feature-grid.four, .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0 0; }
  .feature-grid, .feature-grid.four, .tier-grid, .model-grid, .phone-modes { grid-template-columns: 1fr; }
  .cta-panel { padding: 36px 24px; }
  .table-scroll { margin-inline: 16px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .thumb-3d[aria-busy="true"] svg { animation: none; }
  .trailer-dialog[open],
  .trailer-dialog[open]::backdrop { animation: none; }
}
