:root {
  --surface-dark: #0b0f14;
  --surface-dark-2: #141a21;
  --surface-dark-3: #1c242d;
  --on-dark: #f8fafc;
  --muted-dark: #8a94a3;
  --border-dark: #232c36;

  --surface-light: #e3ebf0;
  --surface-card: #f8fafb;
  --on-light: #1c2931;
  --muted-light: #5b6b76;
  --border-light: #c5d2db;
  --slate-deep: #203d50;

  --brand: #a3ff47;
  --brand-on: #07130a;
  --brand-on-strong: #0b0f14;
  --brand-readable: #3e9a16;
  --brand-hover: #b6ff6d;
  --teal: #00d1c6;
  --teal-deep: #008f88;
  --btn-teal: #006e68;
  --btn-teal-hover: #005851;
  --hero-lede: #c5ced8;
  --amber: #f9a825;

  --max: 1180px;
  --radius: 18px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;

  /* Theme tokens (default = dark navy/slate — brand charcoal, not pitch black) */
  --page-bg: #0b0f14;
  --page-fg: #f8fafc;
  --header-bg: rgba(11, 15, 20, 0.92);
  --header-border: rgba(232, 238, 244, 0.08);
  --nav-link: #9aa6b5;
  --nav-link-active: #f8fafc;
  --soft-bg: #141a21;
  --soft-fg: #f8fafc;
  --soft-muted: #8a94a3;
  --deep-bg: #0b0f14;
  --deep-fg: #f8fafc;
  --card-bg: rgba(20, 26, 33, 0.92);
  --card-border: rgba(232, 238, 244, 0.1);
  --card-muted: #8a94a3;
  --ghost-bg: transparent;
  --ghost-fg: #f8fafc;
  --ghost-border: rgba(232, 238, 244, 0.38);
  --download-bg: rgba(255, 255, 255, 0.04);
  --download-border: rgba(232, 238, 244, 0.12);
  --footer-bg: #0b0f14;
  --eyebrow: var(--teal);
  /* Keep legacy surface-card theme-aware (was always light → pale text on white) */
  --surface-card: #141a21;
}

html[data-theme="light"] {
  --page-bg: #f3f7f6;
  --page-fg: #152028;
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: rgba(32, 61, 80, 0.1);
  --nav-link: #5b6b76;
  --nav-link-active: #152028;
  --soft-bg: #ffffff;
  --soft-fg: #152028;
  --soft-muted: #5b6b76;
  --deep-bg: #e8f2f0;
  --deep-fg: #152028;
  --card-bg: #ffffff;
  --card-border: rgba(32, 61, 80, 0.12);
  --card-muted: #5b6b76;
  --ghost-bg: #ffffff;
  --ghost-fg: #152028;
  --ghost-border: rgba(32, 61, 80, 0.22);
  --download-bg: rgba(255, 255, 255, 0.82);
  --download-border: rgba(32, 61, 80, 0.12);
  --footer-bg: #0b0f14;
  --hero-lede: #3d4d58;
  --eyebrow: var(--teal-deep);
  --surface-card: #ffffff;
  --surface-light: #f3f7f6;
  --on-light: #152028;
  --muted-light: #5b6b76;
  --border-light: rgba(32, 61, 80, 0.12);
}

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

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

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--page-fg);
  background: var(--page-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-on);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--page-fg);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

html[data-theme="light"] .site-header .brand {
  color: var(--on-light);
}

.site-footer .brand {
  color: var(--on-dark);
}

.brand img {
  width: 34px;
  height: 31px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--header-border);
  background: transparent;
  color: var(--page-fg);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.65rem;
  flex-wrap: nowrap;
}

.nav a {
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.15rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--nav-link-active);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--brand);
}

.theme-toggle {
  width: 64px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 198, 0.35);
  background: rgba(20, 26, 33, 0.72);
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 143, 136, 0.35);
  box-shadow: 0 1px 4px rgba(21, 48, 56, 0.08);
}

.theme-toggle:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 209, 198, 0.16);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.theme-toggle-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100%;
  line-height: 1;
}

.theme-toggle-sun,
.theme-toggle-moon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  opacity: 0.42;
  transition:
    opacity 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.theme-toggle-sun {
  color: #f0a43a;
}

.theme-toggle-moon {
  color: #d7e2ef;
}

html[data-theme="light"] .theme-toggle-sun {
  opacity: 1;
  color: #e8891a;
  background: rgba(248, 168, 37, 0.18);
}

html[data-theme="dark"] .theme-toggle-moon {
  opacity: 1;
  color: #f8fafc;
  background: rgba(0, 209, 198, 0.18);
}

html[data-theme="light"] .theme-toggle-moon {
  color: #4a5d6c;
}

html[data-theme="dark"] .theme-toggle-sun {
  color: #f6b24d;
}

.nav .btn {
  margin-left: 0.2rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Beat .nav a colour rules so lime CTA never becomes pale/white-on-lime */
.nav .btn-primary,
.nav .btn-primary:visited,
.nav .btn-primary:hover,
.nav .btn-primary:focus-visible,
.nav .btn-primary:active {
  color: var(--brand-on-strong);
  background: var(--brand);
}

.nav .btn-primary:hover,
.nav .btn-primary:focus-visible {
  background: var(--brand-hover);
  color: var(--brand-on-strong);
}

.nav-unavailable {
  margin: 0.15rem 0 0;
  max-width: 16rem;
  color: var(--muted-dark);
  font-size: 0.8rem;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary,
.btn-primary:visited {
  background: var(--brand);
  color: var(--brand-on-strong);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-hover);
  color: var(--brand-on-strong);
  box-shadow: 0 6px 16px rgba(163, 255, 71, 0.22);
}

.btn-primary:active {
  color: var(--brand-on-strong);
  background: var(--brand);
}

.btn-secondary,
.btn-secondary:visited {
  background: rgba(20, 26, 33, 0.92);
  color: #ffffff;
  border-color: rgba(232, 238, 244, 0.42);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(32, 42, 54, 0.98);
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.62);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-secondary:active {
  color: #ffffff;
  background: rgba(20, 26, 33, 0.96);
}

.btn-secondary-light,
.btn-secondary-light:visited {
  background: var(--surface-card);
  color: var(--on-light);
  border-color: var(--border-light);
}

.btn-secondary-light:hover,
.btn-secondary-light:focus-visible {
  background: #ffffff;
  color: var(--on-light);
  border-color: var(--slate-deep);
  box-shadow: 0 6px 14px rgba(32, 61, 80, 0.1);
}

.btn-teal,
.btn-teal:visited {
  background: var(--btn-teal);
  color: #ffffff;
}

.btn-teal:hover,
.btn-teal:focus-visible {
  background: var(--btn-teal-hover);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 110, 104, 0.28);
}

.btn-teal:active {
  color: #ffffff;
  background: var(--btn-teal);
}

.btn-ghost,
.btn-ghost:visited {
  background: transparent;
  color: var(--ghost-fg);
  border-color: var(--ghost-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 209, 198, 0.08);
  border-color: var(--teal);
  color: var(--ghost-fg);
}

html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .btn-ghost:focus-visible {
  background: rgba(0, 143, 136, 0.08);
}

.btn[hidden],
.btn.is-hidden,
.btn[aria-disabled="true"] {
  display: none !important;
}

.hero {
  position: relative;
  overflow: clip;
  color: var(--page-fg);
  padding: 3.25rem 1.25rem 4.5rem;
  background: var(--page-bg);
}

.hero-atmosphere {
  position: absolute;
  inset: -10% -5% -20%;
  pointer-events: none;
  background:
    radial-gradient(56% 48% at 78% 42%, rgba(0, 209, 198, 0.28), transparent 62%),
    radial-gradient(42% 40% at 88% 18%, rgba(163, 255, 71, 0.22), transparent 58%),
    radial-gradient(38% 36% at 12% 78%, rgba(0, 209, 198, 0.1), transparent 70%),
    linear-gradient(165deg, #0b0f14 0%, #141a21 55%, #1c242d 100%);
  opacity: 1;
}

html[data-theme="light"] .hero-atmosphere {
  background:
    radial-gradient(60% 50% at 82% 38%, rgba(0, 209, 198, 0.22), transparent 64%),
    radial-gradient(48% 42% at 92% 12%, rgba(163, 255, 71, 0.2), transparent 60%),
    radial-gradient(40% 38% at 8% 86%, rgba(0, 143, 136, 0.1), transparent 70%),
    linear-gradient(165deg, #f7fbfa 0%, #eef6f4 45%, #e4f0ed 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-theme="light"] .hero-kicker {
  color: var(--teal-deep);
}

.hero h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 13ch;
}

.hero-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.18em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(0, 209, 198, 0.85));
  transform: rotate(-1.5deg);
  z-index: -1;
  opacity: 0.95;
}

.hero .lede {
  margin: 1.15rem 0 0;
  max-width: 38ch;
  color: var(--hero-lede);
  font-size: 1.06rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.site-status {
  padding: 1rem 1.25rem 0;
}

.site-status-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--download-border);
  background: var(--download-bg);
}

.site-status-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-status-inner p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 70ch;
}

html[data-theme="light"] .site-status-inner p {
  color: var(--muted-light);
}

.site-status-aside {
  margin: 1rem 0 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
  max-width: 60ch;
}

html[data-theme="light"] .site-status-aside {
  color: var(--muted-light);
}

.hero-unavailable {
  margin: 0.85rem 0 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

html[data-theme="light"] .hero-unavailable {
  color: var(--muted-light);
}

.hero-download {
  margin-top: 1.85rem;
  max-width: 22.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--download-border);
  background: var(--download-bg);
}

.hero-download .qr-feature {
  margin-top: 0;
  max-width: none;
  gap: 0.8rem;
  align-items: center;
}

.hero-download .qr-stage-hero {
  width: 92px;
  min-height: 92px;
  padding: 0.4rem;
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.hero-download .qr-placeholder {
  gap: 0.3rem;
}

.hero-download .qr-placeholder-mark {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background:
    linear-gradient(#0b0f14, #0b0f14) 6px 6px / 12px 12px no-repeat,
    linear-gradient(#0b0f14, #0b0f14) 46px 6px / 12px 12px no-repeat,
    linear-gradient(#0b0f14, #0b0f14) 6px 46px / 12px 12px no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(11, 15, 20, 0.12) 0 2px,
      transparent 2px 7px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(11, 15, 20, 0.12) 0 2px,
      transparent 2px 7px
    ),
    #eef2f5;
  opacity: 0.92;
}

.hero-download .qr-feature .qr-canvas {
  width: 72px;
  height: 72px;
}

.hero-download .qr-placeholder-label {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.hero-download .store-soon {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--muted-dark);
  opacity: 1;
}

html[data-theme="light"] .hero-download .store-soon {
  color: var(--muted-light);
}

.hero-device {
  display: grid;
  justify-items: center;
  align-content: center;
  position: relative;
  min-height: 100%;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 12% 10% 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 209, 198, 0.28), transparent 62%),
    radial-gradient(circle at 58% 62%, rgba(163, 255, 71, 0.16), transparent 58%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.hero-launch .phone-frame-hero {
  width: min(100%, 354px);
  z-index: 1;
  transform: none;
  padding: 0.68rem;
  border-radius: 38px;
  background: linear-gradient(165deg, #222b35 0%, #0b0f14 55%, #151d26 100%);
  border: 1px solid rgba(232, 238, 244, 0.22);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 209, 198, 0.08);
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 2.4rem;
  }

  .hero-launch .phone-frame-hero {
    width: min(100%, 318px);
  }
}

@media (min-width: 1400px) {
  .hero-launch .phone-frame-hero {
    width: min(100%, 372px);
  }
}

html[data-theme="light"] .hero-launch .phone-frame-hero {
  box-shadow:
    0 26px 48px rgba(21, 48, 56, 0.18),
    0 0 0 1px rgba(0, 143, 136, 0.1);
}

.hero-launch .phone-frame-hero .phone-screen {
  border-radius: 26px;
}

.hero-launch .phone-frame-hero .phone-chrome {
  padding: 0.28rem 0 0.45rem;
}

.hero-launch .phone-frame-hero .phone-speaker {
  width: 64px;
  height: 6px;
}

.hero-launch .phone-frame-hero .phone-home {
  width: 72px;
  height: 4px;
  margin: 0.55rem auto 0.1rem;
}

.section {
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-dark,
.section-deep {
  background: var(--deep-bg);
  color: var(--deep-fg);
}

.section-light,
.section-soft {
  background: var(--soft-bg);
  color: var(--soft-fg);
}

.section-card {
  background: var(--surface-card);
  color: var(--page-fg);
}

body[data-page="safety"] .page-hero {
  padding-top: 2.75rem;
  padding-bottom: 2rem;
}

body[data-page="safety"] .app-login-note {
  margin-top: 1.75rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--soft-muted);
  font-size: 1.02rem;
}

.section-dark .section-head p,
.section-deep .section-head p {
  color: var(--soft-muted);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--eyebrow);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.section-deep .eyebrow {
  color: var(--teal);
}

html[data-theme="light"] .section-deep .eyebrow {
  color: var(--teal-deep);
}

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

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

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

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

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

.section-dark .card,
.section-deep .card {
  background: var(--card-bg);
  border-color: var(--card-border);
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0.55rem 0 0;
  color: var(--card-muted);
  font-size: 0.95rem;
}

.section-dark .card p,
.section-deep .card p {
  color: var(--card-muted);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-accent {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--brand-readable);
  margin-bottom: 0.9rem;
}

.section-dark .card-accent {
  background: var(--brand);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.steps-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.steps-flow .step {
  grid-template-columns: 1fr;
  min-height: 100%;
  background: rgba(163, 255, 71, 0.06);
  border-color: rgba(0, 209, 198, 0.16);
}

html[data-theme="light"] .steps-flow .step {
  background: rgba(0, 209, 198, 0.07);
  border-color: rgba(0, 143, 136, 0.16);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--slate-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.steps-flow .step::before {
  background: linear-gradient(135deg, var(--teal-deep), #0b0f14);
  box-shadow: 0 0 0 3px rgba(163, 255, 71, 0.18);
}

html[data-theme="light"] .steps-flow .step::before {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.step p {
  margin: 0.4rem 0 0;
  color: var(--card-muted);
}

.page-hero {
  padding: 3.25rem 1.25rem 2.5rem;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(0, 209, 198, 0.16), transparent 55%),
    radial-gradient(50% 60% at 0% 100%, rgba(163, 255, 71, 0.1), transparent 50%),
    linear-gradient(160deg, #0b0f14, #1c242d);
  color: var(--on-dark);
}

html[data-theme="light"] .page-hero {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(0, 209, 198, 0.18), transparent 55%),
    radial-gradient(50% 60% at 0% 100%, rgba(163, 255, 71, 0.14), transparent 50%),
    linear-gradient(160deg, #f7fbfa, #e7f1ef);
  color: var(--on-light);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.page-back a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.page-back a:hover,
.page-back a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

html[data-theme="light"] .page-back a {
  color: var(--teal-deep);
}

.page-return-note {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted-dark);
}

html[data-theme="light"] .page-return-note {
  color: var(--muted-light);
}

.page-hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0.9rem 0 0;
  max-width: 42rem;
  color: var(--muted-dark);
  font-size: 1.05rem;
}

html[data-theme="light"] .page-hero p {
  color: var(--muted-light);
}

/* Keep eyebrow accent — .page-hero p must not mute TRUST / section kickers */
.page-hero .eyebrow {
  margin-bottom: 0.55rem;
  color: var(--teal);
}

html[data-theme="light"] .page-hero .eyebrow {
  color: var(--teal-deep);
}

.page-hero .band-note {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(163, 255, 71, 0.14);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
}

html[data-theme="light"] .page-hero .band-note {
  background: rgba(0, 143, 136, 0.1);
  color: var(--teal-deep);
}

.pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(249, 168, 37, 0.18);
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero .pending,
.cta-band .pending {
  color: #f0c36a;
  background: rgba(249, 168, 37, 0.16);
}

.policy-intro {
  display: grid;
  gap: 1.35rem;
}

.page-hero-compact .page-hero-inner > p {
  max-width: 38rem;
}

.policy-notice-compact {
  padding: 0.95rem 1.1rem;
}

.policy-notice-compact p {
  margin: 0.35rem 0 0;
}

.policy-card-grid {
  display: grid;
  gap: 1rem;
}

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

.policy-card {
  margin: 0;
  padding: 1.2rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: grid;
  gap: 0.55rem;
  scroll-margin-top: 5.5rem;
}

.policy-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #042f2e;
  background: linear-gradient(145deg, rgba(0, 209, 198, 0.95), rgba(0, 180, 170, 0.82));
  box-shadow: 0 0 0 1px rgba(0, 209, 198, 0.25);
}

/* Lime reserved for CTAs / selected states — policy icons stay teal via .policy-card-icon */

.policy-card h2 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--soft-fg);
}

.policy-summary {
  margin: 0;
  color: var(--soft-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 42ch;
}

html[data-theme="dark"] .policy-summary {
  color: #b7c0cc;
}

.policy-more {
  margin-top: 0.25rem;
}

.policy-more > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
}

.policy-more > summary::-webkit-details-marker {
  display: none;
}

.policy-more > summary::after {
  content: "+";
  margin-left: 0.45rem;
  font-weight: 800;
}

.policy-more[open] > summary::after {
  content: "–";
}

.policy-more .policy-points {
  margin-top: 0.65rem;
}

.policy-category-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .policy-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.policy-category-card {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: grid;
  gap: 0.55rem;
}

.policy-category-card h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.policy-category-card > p {
  margin: 0;
  color: var(--soft-fg);
  font-size: 0.95rem;
  line-height: 1.5;
}

.policy-availability {
  color: var(--muted-fg, var(--soft-fg)) !important;
  font-size: 0.88rem !important;
  font-weight: 600;
}

.policy-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.policy-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--soft-fg);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.policy-jump a:hover,
.policy-jump a:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.policy-notice {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 198, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 209, 198, 0.1), rgba(163, 255, 71, 0.06));
  color: var(--soft-fg);
}

.policy-notice-kicker {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="light"] .policy-notice-kicker {
  color: var(--teal-deep);
}

.policy-notice p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
  color: var(--soft-fg);
  font-size: 1rem;
}

.policy-notice-aside {
  margin-top: 0.7rem !important;
  color: var(--soft-muted) !important;
  font-size: 0.92rem !important;
}

.policy-topic {
  max-width: 46rem;
}

.policy-topic h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--soft-fg);
}

.section-deep .policy-topic h2 {
  color: var(--deep-fg);
}

.policy-lede {
  margin: 0.7rem 0 0;
  max-width: 48ch;
  color: var(--soft-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

html[data-theme="dark"] .policy-lede,
html[data-theme="dark"] .section-deep .policy-lede {
  color: #b7c0cc;
}

.policy-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.policy-points li {
  position: relative;
  padding: 0.65rem 0.9rem 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--soft-fg);
  font-size: 0.94rem;
  line-height: 1.45;
  border-left: 3px solid var(--brand);
}

.section-deep .policy-points li {
  color: var(--deep-fg);
}

/* Legacy list cards (kept for older references) */
.policy-banner {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--soft-muted);
  font-size: 0.95rem;
}

.policy-list {
  display: grid;
  gap: 0.85rem;
}

.policy-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--soft-fg);
}

.policy-item strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--soft-fg);
}

.policy-item span {
  color: var(--soft-muted);
  font-size: 0.9rem;
}

#safeguarding,
#privacy,
#terms,
#parents,
#consent-reporting,
#complaints {
  scroll-margin-top: 5.5rem;
}

body[data-page="safety"] .section-soft,
body[data-page="safety"] .section-deep {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}

body[data-page="safety"] .policy-intro {
  gap: 1.1rem;
}

.policy-notice a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

html[data-theme="light"] .policy-notice a {
  color: var(--teal-deep);
}

.policy-doc-board {
  display: grid;
  gap: 0.85rem;
}

.policy-doc-board-compact {
  margin-top: 2rem;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.policy-doc-board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--soft-fg);
}

.policy-doc-board-lede,
.policy-doc-board-footer {
  margin: 0.55rem 0 0;
  color: var(--soft-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.policy-doc-board-footer a {
  color: var(--teal);
  font-weight: 700;
}

html[data-theme="light"] .policy-doc-board-footer a {
  color: var(--teal-deep);
}

.policy-doc-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.policy-doc-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .policy-doc-list li {
  background: rgba(32, 61, 80, 0.04);
}

.policy-doc-list span {
  color: var(--soft-fg);
  font-weight: 700;
  font-size: 0.95rem;
}

.policy-doc-list em {
  color: var(--soft-muted);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.4;
}

.policy-doc-status {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.policy-doc-status h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--soft-fg);
}

.policy-doc-state {
  margin: 0.45rem 0 0;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-doc-status > p:not(.policy-doc-state) {
  margin: 0.55rem 0 0;
  color: var(--soft-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.policy-doc-approach {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.policy-doc-approach:hover,
.policy-doc-approach:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

html[data-theme="light"] .policy-doc-approach {
  color: var(--teal-deep);
}

body[data-page="policies"] .section-soft {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}

.cta-band {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--slate-deep);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p {
  margin: 0.35rem 0 0;
  color: rgba(248, 250, 252, 0.78);
  max-width: 36rem;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

/* CTA band is always dark slate — secondary must never inherit light-theme ghost fill */
.cta-band .btn-ghost,
.cta-band .btn-ghost:link,
.cta-band .btn-ghost:visited,
.cta-band .btn-ghost:hover,
.cta-band .btn-ghost:focus-visible,
.cta-band .btn-ghost:active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(248, 250, 252, 0.7) !important;
}

.cta-band .btn-ghost:hover,
.cta-band .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--brand) !important;
  box-shadow: none;
}

.cta-band .btn-primary,
.cta-band .btn-primary:visited {
  background: var(--brand);
  color: var(--brand-on-strong);
}

/* Legacy secondary-light on dark slate band (About and similar) */
.cta-band .btn-secondary-light,
.cta-band .btn-secondary-light:link,
.cta-band .btn-secondary-light:visited,
.cta-band .btn-secondary-light:hover,
.cta-band .btn-secondary-light:focus-visible,
.cta-band .btn-secondary-light:active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(248, 250, 252, 0.7) !important;
  box-shadow: none;
}

.cta-band .btn-secondary-light:hover,
.cta-band .btn-secondary-light:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--brand) !important;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--muted-dark);
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.25rem;
}

.footer-grid h3 {
  margin: 0 0 0.65rem;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--muted-dark);
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.footer-grid a:hover {
  color: var(--on-dark);
}

.footer-legal {
  border-top: 1px solid var(--border-dark);
  padding-top: 1rem;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.legal-disclosure {
  max-width: 36rem;
}

.legal-dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.legal-dl > div {
  display: grid;
  gap: 0.2rem;
}

.legal-dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.legal-dl dd {
  margin: 0;
  font-size: 1rem;
  color: var(--soft-fg);
  line-height: 1.45;
}

.legal-aside {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--soft-muted);
  max-width: 42ch;
}

.app-login-note {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft-muted);
  max-width: 36ch;
}

html[data-theme="dark"] .app-login-note {
  color: #9aa6b4;
}

/* —— Premium mobile showcase & Get the App —— */
.section-showcase {
  background:
    radial-gradient(980px 520px at 92% 12%, rgba(0, 209, 198, 0.16), transparent 58%),
    radial-gradient(640px 360px at 6% 88%, rgba(163, 255, 71, 0.09), transparent 52%),
    linear-gradient(165deg, #0b0f14 0%, #121820 48%, #1a2430 100%);
  color: var(--on-dark);
  padding: 4.25rem 1.25rem 5rem;
  overflow: hidden;
}

.section-showcase .section-inner {
  max-width: min(1180px, 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "device copy";
  gap: 2.75rem 3.5rem;
  align-items: center;
}

.showcase-device {
  grid-area: device;
}

.showcase-copy {
  grid-area: copy;
}

.showcase-copy h2,
.get-app-copy h2,
.get-app-qr-panel h2 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin: 0.35rem 0 0.75rem;
  max-width: 14ch;
}

.showcase-lede,
.showcase-copy > p,
.get-app-copy > p,
.get-app-qr-panel > p {
  margin: 0;
  color: var(--hero-lede);
  max-width: 32ch;
  line-height: 1.55;
  font-size: 1.05rem;
}

.showcase-actions,
.get-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.75rem;
}

.showcase-unavailable {
  margin: 0;
  width: 100%;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.store-badge {
  flex: 1 1 160px;
  max-width: 220px;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 238, 244, 0.18);
  background: rgba(20, 26, 33, 0.88);
  display: grid;
  gap: 0.2rem;
}

.section-light .store-badge {
  background: var(--surface-card);
  border-color: var(--border-light);
  color: var(--on-light);
}

.store-badge-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.store-badge strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.store-badge span:last-child {
  font-size: 0.8rem;
  color: var(--muted-dark);
}

.section-light .store-badge span:last-child {
  color: var(--muted-light);
}

.store-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 1.65rem 0 0;
  padding: 0;
  color: rgba(232, 238, 244, 0.42);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.store-soon-sep {
  opacity: 0.55;
}

.qr-feature {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.85rem;
  padding: 0;
  max-width: 22rem;
  border: none;
  background: transparent;
}

.qr-feature-copy h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.qr-feature-copy p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 20ch;
}

.qr-feature-copy a {
  color: var(--teal);
  font-weight: 600;
}

.qr-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 244, 0.14);
  background: rgba(20, 26, 33, 0.55);
}

.qr-inline-copy {
  flex: 1 1 180px;
}

.qr-inline-copy h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.qr-inline-copy p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
  max-width: 34ch;
}

.qr-inline-copy a {
  color: var(--teal);
  font-weight: 600;
}

.qr-stage {
  width: 200px;
  min-height: 200px;
  flex: 0 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(232, 238, 244, 0.2);
  background: #fff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 209, 198, 0.06);
  display: grid;
  place-items: center;
  padding: 0.95rem;
}

.qr-feature .qr-stage {
  width: 112px;
  min-height: 112px;
  padding: 0.45rem;
  border: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-download .qr-stage.qr-stage-hero {
  width: 92px;
  min-height: 92px;
  padding: 0.35rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.qr-stage-compact {
  width: 148px;
  min-height: 148px;
  padding: 0.65rem;
}

.qr-placeholder {
  text-align: center;
  display: grid;
  gap: 0.5rem;
  place-items: center;
}

.qr-placeholder-grid {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.12) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(11, 15, 20, 0.12) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(135deg, #e8eef4, #f8fafb);
  box-shadow: inset 0 0 0 8px #0b0f14, inset 0 0 0 14px #fff;
  opacity: 0.9;
}

.qr-feature .qr-placeholder-grid {
  width: 96px;
  height: 96px;
}

.qr-stage-compact .qr-placeholder-grid {
  width: 72px;
  height: 72px;
  box-shadow: inset 0 0 0 6px #0b0f14, inset 0 0 0 11px #fff;
}

.qr-placeholder-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0f14;
}

.qr-placeholder-note,
.qr-live-caption {
  margin: 0;
  font-size: 0.72rem;
  color: #5b6b76;
}

.qr-live {
  display: grid;
  gap: 0.55rem;
  place-items: center;
  width: 100%;
}

.qr-live[hidden],
.qr-placeholder[hidden] {
  display: none !important;
}

.qr-canvas {
  width: 168px;
  height: 168px;
}

.qr-feature .qr-canvas {
  width: 128px;
  height: 128px;
}

.qr-stage-compact .qr-canvas {
  width: 120px;
  height: 120px;
}

.qr-canvas img,
.qr-canvas canvas,
.qr-canvas table {
  max-width: 100%;
  height: auto;
}

.showcase-device {
  display: grid;
  justify-items: center;
  position: relative;
  justify-self: center;
}

.showcase-device::before {
  content: "";
  position: absolute;
  inset: 8% 12% auto;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 198, 0.22), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 292px);
  padding: 0.72rem;
  border-radius: 36px;
  background: linear-gradient(160deg, #1c242d, #0b0f14 55%, #142028);
  border: 1px solid rgba(232, 238, 244, 0.18);
  box-shadow:
    0 36px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 209, 198, 0.1);
}

.phone-frame-hero {
  width: min(100%, 354px);
  padding: 0.68rem;
  border-radius: 38px;
}

.phone-frame-compact {
  width: min(100%, 240px);
}

.phone-chrome {
  display: flex;
  justify-content: center;
  padding: 0.4rem 0 0.6rem;
}

.phone-speaker {
  width: 78px;
  height: 8px;
  border-radius: 999px;
  background: #2a3340;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #0b0f14;
  aspect-ratio: 390 / 844;
}

.phone-frame-hero .phone-screen {
  border-radius: 30px;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-home {
  width: 96px;
  height: 5px;
  margin: 0.7rem auto 0.2rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.22);
}

.showcase-caption {
  margin: 0;
  text-align: center;
  max-width: 32ch;
  color: var(--muted-dark);
  font-size: 0.82rem;
  line-height: 1.45;
}

.get-app-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.get-app-qr-panel {
  padding: 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-light);
  background: var(--surface-card);
}

.get-app-qr-panel .qr-stage {
  margin-top: 1rem;
  width: 100%;
  max-width: 220px;
}

.showcase-mini {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.showcase-mini p {
  color: var(--hero-lede);
  max-width: 40ch;
}

.showcase-mini .btn {
  margin-top: 1.1rem;
}

@media (max-width: 980px) {
  .hero-launch-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-device {
    order: -1;
  }

  .hero-launch .phone-frame-hero {
    width: min(72vw, 310px);
  }

  .hero h1 {
    max-width: 16ch;
  }
}

@media (max-width: 900px) {
  .showcase-grid,
  .get-app-layout,
  .showcase-mini {
    grid-template-columns: 1fr;
  }

  .section-showcase {
    padding: 4rem 1.15rem 4.5rem;
  }

  .showcase-grid {
    gap: 2.5rem;
    grid-template-areas:
      "device"
      "copy";
    grid-template-columns: 1fr;
  }

  .showcase-copy h2 {
    max-width: 16ch;
  }

  .showcase-lede {
    max-width: 36ch;
  }

  .phone-frame {
    width: min(100%, 260px);
  }

  .phone-frame-hero {
    width: min(82vw, 300px);
  }

  .hero-launch .phone-frame-hero {
    width: min(72vw, 290px);
  }

  .qr-feature {
    max-width: none;
    margin-top: 1.75rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

  .steps-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .qr-feature {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .qr-feature .qr-stage {
    width: 104px;
    min-height: 104px;
  }

  .hero-download .qr-stage.qr-stage-hero {
    width: 88px;
    min-height: 88px;
  }

  .phone-frame-hero,
  .hero-launch .phone-frame-hero {
    width: min(72vw, 290px);
  }

  .steps-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.1rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(14px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    margin: 0;
    min-height: 44px;
    justify-content: flex-start;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Subtle presentation motion */
@keyframes hs-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hs-phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-launch .hero-copy {
  animation: hs-fade-up 560ms ease-out both;
}

.hero-launch .hero-device {
  animation: hs-fade-up 680ms 80ms ease-out both;
}

.hero-launch .phone-frame-hero {
  animation: hs-phone-float 5.5s ease-in-out 0.8s infinite;
}

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

  .btn,
  .theme-toggle,
  .theme-toggle-sun,
  .theme-toggle-moon {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .hero-launch .hero-copy,
  .hero-launch .hero-device,
  .hero-launch .phone-frame-hero {
    animation: none;
  }
}
