:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --border: #38383a;
  --text: #ffffff;
  --text-secondary: #98989d;
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-muted: rgba(var(--accent-rgb), 0.15);
  --max-width: 42rem;
  --radius: 12px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

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

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle-btn {
  padding: 0.3rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}

.lang-toggle-btn:hover {
  color: var(--text);
}

.lang-toggle-btn.is-active {
  background: var(--accent);
  color: #000;
}

main {
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.hero .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.btn-spacer {
  display: inline-block;
  width: 0.5rem;
}

.elite-panel {
  margin-bottom: 2rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.12) 0%, var(--card) 45%);
}

.elite-panel-inner {
  padding: 1.5rem;
}

.elite-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.elite-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.elite-panel p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.elite-features {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.elite-features li {
  margin-bottom: 0.35rem;
}

.elite-pricing {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.elite-pricing div {
  display: grid;
  gap: 0.15rem;
}

.elite-pricing dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.elite-pricing dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.elite-note {
  margin: 0;
  font-size: 0.85rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 540px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card a.stretch {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-doc h1 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.legal-doc .updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.legal-doc h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
}

.legal-doc p.lead {
  color: var(--text);
  font-size: 1.05rem;
}

.legal-doc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.5rem;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

.legal-doc td {
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--accent);
  color: #000;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
}

/* —— Showcase presentation deck —— */

.showcase-page {
  --showcase-max-width: 96rem;
}

.showcase-header-inner,
.showcase-main {
  max-width: calc(var(--showcase-max-width) + 4rem);
}

.showcase-main {
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.app-download-card {
  max-width: 28rem;
  margin: 0 0 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: var(--card);
  overflow: hidden;
}

.app-download-card-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.app-download-card-link:hover {
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.06);
}

.app-download-card-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.app-download-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  text-align: left;
}

.app-download-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.app-download-card-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.app-download-card-url {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.4;
}

.app-download-card--center {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin: 0;
}

.showcase-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.showcase-chrome .home-header {
  position: static;
  transition: none;
}

body.showcase-chrome-hidden .showcase-chrome {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.showcase-toolbar {
  position: relative;
  top: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 1.5rem;
  margin: 0 auto;
  max-width: calc(var(--showcase-max-width) + 4rem);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-counter {
  margin-left: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.showcase-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.showcase-dot.is-active {
  background: var(--accent);
}

.showcase-slide {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 7rem;
}

body.showcase-chrome-hidden .showcase-slide {
  scroll-margin-top: 1rem;
}

.showcase-slide:last-of-type {
  border-bottom: none;
}

.showcase-step {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-headline {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  max-width: 28rem;
}

.showcase-slide--title .showcase-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.showcase-caption {
  margin: 0;
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.showcase-caption--lead {
  color: var(--text);
  font-size: 1.05rem;
}

.showcase-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 24rem;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.showcase-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
}

.showcase-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.showcase-slide--split {
  display: block;
  padding: clamp(2rem, 4vh, 3.5rem) 0;
  text-align: left;
}

.showcase-slide-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 36rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.showcase-slide-grid--reverse {
  grid-template-columns: minmax(0, 36rem) auto;
}

.showcase-slide-grid--reverse > :first-child {
  grid-column: 2;
  grid-row: 1;
}

.showcase-slide-grid--reverse > :last-child {
  grid-column: 1;
  grid-row: 1;
}

.showcase-slide--split .phone-frame {
  flex-shrink: 0;
  margin: 0;
  height: min(78vh, 860px);
  width: auto;
  max-width: min(440px, 40vw);
}

.showcase-slide--split .phone-frame img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

.showcase-slide--split .showcase-text-panel {
  flex-shrink: 0;
  margin: 0;
  width: min(320px, 28vw);
  max-height: min(70vh, 620px);
}

.showcase-text-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 40rem;
  text-align: left;
}

.showcase-text-column .showcase-step {
  margin: 0;
  text-align: left;
}

.showcase-text-column .showcase-headline {
  margin: 0;
  text-align: left;
  max-width: none;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.2;
}

.showcase-text-column .showcase-caption {
  margin: 0;
  text-align: left;
  max-width: none;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.showcase-closing-links {
  margin: 0.5rem 0 0;
}

.phone-frame {
  margin: 0;
  padding: 0.65rem;
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-width: min(280px, 72vw);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.showcase-text-panel {
  width: min(280px, 72vw);
  margin: 0.5rem 0;
}

.showcase-lock-mock,
.showcase-ftms-mock,
.showcase-mobility-mock {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.showcase-mobility-timer {
  margin: 0 0 0.35rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.showcase-mobility-phase {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--info, #64d2ff);
}

.showcase-mobility-path {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.showcase-mobility-path li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.showcase-mobility-path li.is-active {
  color: var(--text);
  background: rgba(100, 210, 255, 0.12);
  border-color: rgba(100, 210, 255, 0.35);
}

.showcase-mobility-path li.is-rest span:first-child {
  font-style: italic;
}

.showcase-mobility-path span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.showcase-buddy-mock {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.showcase-buddy-chip {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
}

.showcase-buddy-quote {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  line-height: 1.45;
}

.showcase-buddy-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.showcase-lock-time {
  margin: 0 0 1rem;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.showcase-live-activity {
  padding: 0.85rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.showcase-la-title {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.showcase-la-timer {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.showcase-la-detail {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.showcase-ftms-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.showcase-ftms-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
  text-align: left;
}

.showcase-ftms-stats dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.showcase-ftms-stats dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.showcase-ftms-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.showcase-site-footer {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .showcase-main {
    padding: 0 1.5rem 3rem;
  }

  .showcase-slide-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .showcase-slide-grid--reverse > :first-child,
  .showcase-slide-grid--reverse > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .showcase-text-column {
    align-items: center;
    text-align: center;
    max-width: 28rem;
  }

  .showcase-text-column .showcase-step,
  .showcase-text-column .showcase-headline,
  .showcase-text-column .showcase-caption {
    text-align: center;
  }

  .showcase-slide--split .phone-frame {
    max-width: min(240px, 72vw);
    max-height: none;
  }

  .showcase-slide--split .showcase-text-panel {
    width: min(240px, 72vw);
    max-height: none;
  }
}

/* Cookie consent + QR overlay */

.showcase-consent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  max-width: min(18rem, calc(100vw - 2.5rem));
  border-radius: var(--radius);
  background: rgba(28, 28, 30, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  transition: max-width 0.25s ease, padding 0.25s ease;
}

.showcase-consent.is-collapsed {
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.showcase-consent-body {
  padding: 0.85rem 1rem 1rem;
}

.showcase-consent.is-collapsed .showcase-consent-body {
  display: none;
}

.showcase-consent-message {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.showcase-consent-message a {
  color: var(--accent);
}

.showcase-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.showcase-consent-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.showcase-consent-btn--allow {
  background: var(--accent);
  color: #000;
}

.showcase-consent-btn--deny {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.showcase-consent-btn--qr {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
}

.showcase-consent-btn:hover {
  filter: brightness(1.08);
}

.showcase-consent-pill {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  color: var(--accent);
}

.showcase-consent.is-collapsed .showcase-consent-pill {
  display: flex;
}

.showcase-consent-pill svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* QR modal */

.showcase-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.showcase-qr-modal[hidden] {
  display: none;
}

.showcase-qr-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  max-width: min(22rem, 100%);
}

.showcase-qr-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.showcase-qr-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.showcase-qr-modal-image {
  display: block;
  width: 260px;
  height: 260px;
  padding: 0.5rem;
  border-radius: 10px;
  background: #fff;
}

.showcase-qr-modal-url {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
  text-align: center;
}

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

  .showcase-chrome {
    transition: none;
  }
}

/* —— Marketing home page —— */

.home-page {
  --home-max: 68rem;
}

.home-page main {
  max-width: none;
  padding: 0;
}

.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-header-inner {
  max-width: calc(var(--home-max, 68rem) + 4rem);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.home-chrome-hidden .home-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Subpages (privacy, terms, support) share the fixed home header */

body.subpage main {
  padding-top: 6rem;
}

@media (max-width: 768px) {
  body.subpage main {
    padding-top: 8rem;
  }
}

.home-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.home-hero-bg,
.home-feature-bg {
  position: absolute;
  inset: -25%;
  background: center / cover no-repeat;
  transform: scale(1.4);
  filter: blur(32px) brightness(0.32) saturate(1.15);
  pointer-events: none;
}

.home-feature-bg--gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    #000;
  filter: none;
  transform: none;
  inset: 0;
}

.home-hero-vignette,
.home-feature-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.85) 88%);
  pointer-events: none;
}

.home-hero-inner,
.home-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: center;
}

.home-hero-logo {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.home-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-hero-lead,
.home-feature-lead,
.home-cta-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.home-hero .app-download-card {
  margin: 2rem auto 0;
  text-align: left;
}

.home-feature {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.home-feature-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--home-max);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.home-feature--reverse .home-feature-inner {
  flex-direction: row-reverse;
}

.home-feature-copy {
  flex: 1;
  min-width: min(100%, 18rem);
  max-width: 22rem;
}

.home-feature-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.home-device {
  flex-shrink: 0;
  margin: 0;
}

.home-device.phone-frame {
  max-width: min(260px, 34vw);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.home-device--mock .showcase-text-panel {
  width: min(260px, 34vw);
  margin: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.home-cta {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.home-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(var(--accent-rgb), 0.14), transparent 70%);
  pointer-events: none;
}

.home-cta-inner {
  margin: 0 auto;
}

.home-cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-cta .app-download-card {
  margin: 2rem auto 0;
  text-align: left;
}

.home-cta-secondary {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.home-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.home-footer p {
  margin: 0.4rem 0;
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem !important;
}

.home-footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.home-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .home-feature-inner,
  .home-feature--reverse .home-feature-inner {
    flex-direction: column;
    text-align: center;
  }

  .home-feature-copy {
    max-width: 28rem;
  }

  .home-device.phone-frame,
  .home-device--mock .showcase-text-panel {
    max-width: min(240px, 72vw);
    width: min(240px, 72vw);
  }

  .home-feature {
    min-height: auto;
    padding: 4.5rem 1.25rem;
  }

  .home-hero {
    padding: 5.5rem 1.25rem 3.5rem;
  }
}

/* ---- App Store badge ---- */

.home-store-badge {
  margin: 1.5rem 0 0;
}

.home-store-badge img {
  height: 56px;
  width: auto;
  display: inline-block;
}

.home-store-badge a:hover {
  opacity: 0.85;
}

/* ---- How it works ---- */

.home-steps {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.home-steps-inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.home-steps-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 2rem;
}

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

.home-steps-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: left;
}

.home-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
}

.home-steps-grid h3 {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.home-steps-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Pricing ---- */

.home-pricing {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.home-pricing-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.home-pricing-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 2rem;
}

.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.home-pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
}

.home-pricing-card--elite {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.12);
}

.home-pricing-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.home-pricing-price {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.home-pricing-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-pricing-card li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.55rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.home-pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.home-pricing-note {
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ---- For gyms teaser ---- */

.home-gyms {
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent 70%);
  text-align: center;
}

.home-gyms-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.home-gyms-title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.75rem;
}

.home-gyms-lead {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* ---- FAQ ---- */

.home-faq {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.home-faq-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.home-faq-inner > .home-eyebrow,
.home-faq-title {
  text-align: center;
}

.home-faq-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 1.75rem;
}

.home-faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0.65rem 0;
  padding: 0;
  overflow: hidden;
}

.home-faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.home-faq details[open] summary::after {
  content: "−";
}

.home-faq details p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .home-steps-grid,
  .home-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-header {
    transition: none;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
