/* ------------------------------------------------------------
      BaroView Landing Page — single-file (HTML + CSS + JS)
      - Plain CSS + JS
      - Warm/Cool theme switch like your screenshots
      - “Liquid glass” look using backdrop-filter, highlights, noise,
        and subtle interactive specular movement.
    -------------------------------------------------------------*/

:root {
  /* spacing */
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 18px;
  --pad: clamp(16px, 2.5vw, 26px);
  --max: 1120px;

  /* typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 420ms;

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-2: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  --glass-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.16);

  /* theme defaults = warm */
  --bg1: #f7d57a;
  --bg2: #f4a86f;
  --bg3: #ef6d63;

  --accent: #ffffff;
  --text: rgba(255, 255, 255, 0.96);
  --text-dim: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.58);

  --surface: rgba(255, 255, 255, 0.1);
  --surface-strong: rgba(255, 255, 255, 0.16);

  --btn: rgba(255, 255, 255, 0.16);
  --btn-hover: rgba(255, 255, 255, 0.22);

  --mount-1: rgba(255, 255, 255, 0.82);
  --mount-2: rgba(255, 255, 255, 0.55);
  --mount-3: rgba(0, 0, 0, 0.15);

  --nav: rgba(255, 255, 255, 0.12);
  --nav-strong: rgba(255, 255, 255, 0.18);

  --meta-theme-color: #f4a86f;

  /* interactive highlight (updated by JS) */
  --lx: 50%;
  --ly: 20%;
  --tiltX: 0deg;
  --tiltY: 0deg;
}

[data-theme="cool"] {
  --bg1: #8ff0ee;
  --bg2: #6fd9ef;
  --bg3: #6fb9f0;

  --text: rgba(255, 255, 255, 0.96);
  --text-dim: rgba(255, 255, 255, 0.8);
  --text-faint: rgba(255, 255, 255, 0.6);

  --surface: rgba(255, 255, 255, 0.1);
  --surface-strong: rgba(255, 255, 255, 0.15);

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-2: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.2);

  --mount-1: rgba(255, 255, 255, 0.8);
  --mount-2: rgba(255, 255, 255, 0.52);
  --mount-3: rgba(0, 0, 0, 0.16);

  --meta-theme-color: #6fd9ef;
}
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  background: transparent; /* moved to fixed layers */
}

/* Better readability on cool theme (keep white) */
[data-theme="cool"] body {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

[data-theme="cool"] .sub,
[data-theme="cool"] .section-sub,
[data-theme="cool"] .feat p,
[data-theme="cool"] .li span,
[data-theme="cool"] .toggle label {
  color: rgba(255, 255, 255, 0.86);
}

/* Subtle animated “liquid” drift */
.bg-drift {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(
      600px 500px at 30% 35%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 520px at 70% 30%,
      rgba(255, 255, 255, 0.1),
      transparent 62%
    ),
    radial-gradient(
      900px 720px at 55% 70%,
      rgba(255, 255, 255, 0.1),
      transparent 65%
    );
  filter: blur(18px);
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
  animation: drift 12s var(--ease) infinite alternate;
}
@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
}

/* top container */
.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

/* Glass utility */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-bg-2), var(--glass-bg));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* specular highlight & noise like “liquid glass” */
.glass::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
      900px 600px at var(--lx) var(--ly),
      rgba(255, 255, 255, 0.4),
      transparent 55%
    ),
    radial-gradient(
      700px 500px at calc(var(--lx) + 12%) calc(var(--ly) + 10%),
      rgba(255, 255, 255, 0.14),
      transparent 62%
    ),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.1),
      transparent 40%,
      rgba(255, 255, 255, 0.06)
    );
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}

/* Header */
header {
  padding: 18px 0 8px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.logo::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    50% 50% at 30% 30%,
    rgba(255, 255, 255, 0.55),
    transparent 60%
  );
  filter: blur(8px);
  transform: rotate(12deg);
}
.brand h1 {
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.2px;
}
.brand span {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 1px;
}

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

/* iOS-like toggle */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.toggle label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
  user-select: none;
  white-space: nowrap;
}
.switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background var(--dur) var(--ease);
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  transition: transform var(--dur) var(--ease);
}
[data-theme="cool"] .switch {
  background: rgba(0, 0, 0, 0.12);
}
[data-theme="cool"] .switch::after {
  transform: translate(18px, -50%);
}

/* Hero */
.hero {
  padding: clamp(26px, 4vw, 54px) 0 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  padding: clamp(20px, 3vw, 30px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14);
}

.headline {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.3vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.sub {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.45;
  max-width: 62ch;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--btn);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 220ms var(--ease), background 220ms var(--ease);
  text-decoration: none;
  user-select: none;
}
.btn:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px) scale(0.99);
}

.btn.primary {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
}

.pill {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.92;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* App preview */
.phone {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.device {
  aspect-ratio: 9 / 19.5;
  width: min(360px, 100%);
  margin: 0 auto;
  border-radius: 38px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.25);
  padding: 10px;
}
.screen {
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04)
    ),
    linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg3));
  position: relative;
}
.status {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  mix-blend-mode: soft-light;
  user-select: none;
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0.85;
  filter: blur(0.1px);
}

.hero-ui {
  position: absolute;
  inset: 0;
  padding: 22px 18px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}
.big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 26px;
}
.big .value {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}
.big .unit {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}
.coords {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}
.pin {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  margin-top: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pin svg {
  opacity: 0.85;
}

.mountains {
  position: relative;
  margin-top: 10px;
  height: 42%;
  border-radius: 18px;
  overflow: hidden;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}
.mountains svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.tile {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.tile .n {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tile .l {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0.95;
}
.dock {
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 8px;
}
.dock .ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.dock svg {
  opacity: 0.9;
}

/* Sections */
section {
  padding: 22px 0;
}
.section-title {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.section-sub {
  margin: 0 0 18px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 70ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feat {
  padding: 18px;
  border-radius: var(--r-md);
}
.feat .icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
}
.feat h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.feat p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.45;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 18px;
  border-radius: var(--r-lg);
}

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.li b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.li span {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
}

/* Footer */
footer {
  padding: 18px 0 34px;
  color: var(--text-faint);
  font-size: 12px;
}

/* micro interactions */
.lift {
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
    border-color 260ms var(--ease);
}
.lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.26);
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .bg-drift {
    animation: none;
  }
  .btn,
  .lift,
  .switch,
  .glass {
    transition: none !important;
  }
}

#why .split {
  grid-template-columns: 1fr;
}

.bg-base {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(
      1200px 800px at 25% 10%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 75% 20%,
      rgba(255, 255, 255, 0.14),
      transparent 62%
    ),
    linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg3));
}

/* Screenshot showcase */
/* Single screenshot showcase (one phone slot) */
/* Single screenshot showcase (one phone slot) */
.screenshots {
  padding: 18px;
}

.shot-one {
  height: 70vh; /* 👈 max height relative to viewport */
  max-height: 70vh;
  aspect-ratio: 9 / 18.5; /* iPhone-like ratio */
  margin: 0 auto;

  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.06);

  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-one img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;

  display: block;
  object-fit: contain;

  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}

/* Fade animation when swapping images */
.shot-one img.is-fading {
  opacity: 0;
  transform: translateY(6px) scale(0.99);
}

.shot-labels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* optional “unit” pill button */
.pill-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.92);
}
.pill-btn:hover {
  background: rgba(0, 0, 0, 0.16);
}
.pill-btn:active {
  transform: scale(0.99);
}

/* --------------------------
        MOBILE NAV FIX (desktop unchanged)
        ---------------------------*/
@media (max-width: 520px) {
  header {
    padding: 14px 0 10px;
  }

  .topbar {
    flex-wrap: wrap; /* allow wrapping cleanly */
    align-items: center;
    gap: 12px;
  }

  .brand {
    flex: 1 1 100%; /* brand goes full width */
    min-width: 0;
  }

  .brand span {
    max-width: 32ch; /* prevent super tall header */
  }

  .controls {
    flex: 1 1 100%; /* controls on second row */
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .toggle {
    flex: 1 1 auto; /* toggle can shrink */
    justify-content: space-between;
    padding: 10px 12px;
    min-width: 0;
  }

  .toggle label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 52%;
  }

  .btn {
    padding: 11px 12px; /* slightly tighter */
    border-radius: 14px;
  }

  /* Make "Get the app" not overflow */
  .controls > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Optional: hide the small "iOS" pill to save width */
  .controls > .btn .pill {
    display: none;
  }
}

/* ----------------------------------------------------
   MOBILE HEADER: hard stop all overflow (desktop unchanged)
        -----------------------------------------------------*/
/* ----------------------------------------------------
    MOBILE HEADER: hard stop all overflow (desktop unchanged)
    -----------------------------------------------------*/
@media (max-width: 560px) {
  /* 1) Make sure the header area can never create horizontal scroll */
  html,
  body {
    overflow-x: hidden;
  }

  .wrap {
    width: calc(
      100% - 24px
    ); /* a little more predictable than var(--pad) on tiny screens */
    margin: 0 auto;
  }

  header {
    padding: 12px 0 10px;
  }

  /* 2) Force the topbar to be 2 clean rows */
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* brand row */
  .brand {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .brand h1 {
    font-size: 16px;
  }
  .brand span {
    font-size: 12px;
    max-width: 34ch;
    line-height: 1.25;
  }

  /* controls row */
  .controls {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto; /* toggle gets remaining space, CTA keeps natural width */
    gap: 10px;
    align-items: center;
  }

  /* 3) Make the toggle pill shrink nicely */
  .toggle {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    gap: 10px;
  }

  .toggle label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .switch {
    flex: none;
  }

  /* 4) Make the CTA button never overflow */
  .controls > .btn {
    padding: 10px 12px;
    border-radius: 14px;
    white-space: nowrap;
    max-width: 100%;
  }

  /* remove the iOS pill on very small screens (saves space) */
  .controls > .btn .pill {
    display: none;
  }

  /* 5) If the user’s screen is REALLY narrow, stack controls vertically */
  @media (max-width: 360px) {
    .controls {
      grid-template-columns: 1fr;
    }
    .controls > .btn {
      width: 100%;
      justify-content: center;
    }
  }
}

/* ----------------------------------------------------
   MOBILE NAVBAR REDESIGN (desktop unchanged)
    -----------------------------------------------------*/
@media (max-width: 560px) {
  header {
    padding: 10px 0 10px;
  }

  /* Make the header look like one compact glass bar */
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
  }

  /* Brand becomes compact */
  .brand {
    gap: 10px;
    min-width: 0;
  }

  .logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .brand h1 {
    font-size: 15px;
    line-height: 1;
  }

  .brand span {
    display: none; /* hide tagline in navbar on mobile */
  }

  /* Controls: compact row */
  .controls {
    width: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
  }

  /* Toggle becomes smaller */
  .toggle {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    gap: 8px;
  }

  .toggle label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
  }

  .label-desktop {
    display: none;
  }
  .label-mobile {
    display: inline;
  }

  .switch {
    width: 42px;
    height: 26px;
  }

  .switch::after {
    width: 20px;
    height: 20px;
  }

  /* Button becomes more compact */
  .controls > .btn {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }

  .controls > .btn .pill {
    display: none;
  }
}

/* Fallback (if you didn’t add the label spans) */
@media (max-width: 560px) {
  .toggle label {
    white-space: nowrap;
  }
}

/* --------------------------
   LEGAL SECTIONS
    ---------------------------*/
.legal-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
}
.legal-link:hover {
  text-decoration: underline;
}

.legal-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 70ch;
}
.legal-sub {
  margin: 18px 0 6px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Mobile label swap */
.label-mobile {
  display: none;
}
@media (max-width: 560px) {
  .label-desktop {
    display: none;
  }
  .label-mobile {
    display: inline;
  }
}

/* ---------------------------------------
   Disable hover / tilt on legal pages
----------------------------------------*/
.legal-page .lift:hover {
  transform: none !important;
  box-shadow: var(--glass-shadow-soft) !important;
  border-color: var(--glass-border) !important;
}

.legal-page [data-glass] {
  transform: none !important;
}

/* Also disable pointer-driven tilt */
.legal-page [data-glass]::before {
  opacity: 0.65; /* keep glass highlight, but static */
}
