/* =====================================================================
   urbx — landing page styles
   Palette: BLACK · WHITE · BLUE only. No gradients anywhere.
   Default theme: solid black (dark). Light theme available via toggle.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --accent: #2563eb;      /* blue */
  --accent-2: #3b82f6;    /* lighter blue */
  --accent-soft: rgba(37, 99, 235, 0.14);
  --navy: #0b214a;        /* dark blue for icon tiles */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container: 1160px;
  --pad: clamp(20px, 5vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --phone-frame: #0a0a0a;
  color-scheme: dark;
}

/* Dark theme — SOLID BLACK */
[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-soft-2: #141414;
  --surface: #0b0b0b;
  --surface-2: #141414;
  --text: #ffffff;
  --text-soft: #a3a3a3;
  --text-faint: #6b6b6b;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.8);
  --nav-bg: rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}

/* Light theme — SOLID WHITE */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-soft-2: #e9ebef;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --text: #0a0a0a;
  --text-soft: #525252;
  --text-faint: #8a8a8a;
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.20);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.07);
  --nav-bg: rgba(255, 255, 255, 0.75);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* Hide scrollbars everywhere (still scrollable) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: 820px; }
.muted { color: var(--text-soft); }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 700px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 700;
}
.section__lead { margin-top: 18px; color: var(--text-soft); font-size: clamp(1rem, 2vw, 1.18rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}

.accent { color: var(--accent); } /* solid blue — replaces old gradient text */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .brand__logo { box-shadow: 0 0 0 1px var(--border); }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: 0.94rem; font-weight: 500; color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--text);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-12deg); }
.theme-toggle .icon { position: absolute; width: 19px; height: 19px; transition: opacity 0.3s, transform 0.4s var(--ease); }
.theme-toggle .icon path, .theme-toggle .icon g, .theme-toggle .icon circle { fill: none; stroke: currentColor; stroke-width: 2; }
.theme-toggle .icon--sun circle { fill: currentColor; stroke: none; }
[data-theme="dark"] .icon--sun { opacity: 0; transform: scale(0.6) rotate(-40deg); }
[data-theme="dark"] .icon--moon { opacity: 1; }
[data-theme="dark"] .icon--moon path { fill: currentColor; stroke: none; }
[data-theme="light"] .icon--moon { opacity: 0; transform: scale(0.6) rotate(40deg); }
[data-theme="light"] .icon--sun { opacity: 1; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px var(--pad) 24px; background: var(--bg); border-bottom: 1px solid var(--border); max-height: calc(100dvh - 64px); overflow-y: auto; }
.mobile-menu a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { border: none; margin-top: 12px; }
.mobile-menu.is-open { display: flex; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 0.84rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 700;
  margin: 26px 0 0;
}
.hero__sub { margin-top: 22px; font-size: clamp(1.02rem, 2.1vw, 1.22rem); color: var(--text-soft); max-width: 34em; }
.hero__sub strong { color: var(--text); font-weight: 700; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; transition: transform 0.25s var(--ease); }
.store-btn:hover { transform: translateY(-3px); }
.store-btn__img { height: 46px; width: auto; }
/* Apple badge: swap the image by theme (no filter / invert) */
.apple-badge__dark { display: none; }
[data-theme="dark"] .apple-badge__light { display: none; }
[data-theme="dark"] .apple-badge__dark { display: block; }

/* Dark mode: white rounded outline around the store badges */
[data-theme="dark"] .store-btn__img {
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #ffffff;
}
.store-btn--full { width: 100%; }
.store-btn--full .store-btn__img { height: 54px; }
.store-btn__hint { font-size: 0.74rem; letter-spacing: 0.02em; color: var(--text-faint); font-weight: 500; }

.hero__meta { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 40px); margin-top: 40px; }
.meta-item { display: flex; flex-direction: column; }
.meta-item__num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.meta-item__label { font-size: 0.82rem; color: var(--text-faint); }

/* Phone mockup — holds a real screenshot */
.hero__visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 320 / 650;
  border-radius: 46px; padding: 12px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--border);
  transition: transform 0.5s var(--ease);
}
.hero__visual:hover .phone { transform: translateY(-6px); }
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 3;
  box-shadow: 0 0 0 1px var(--border);
}
.phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; position: relative; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: -webkit-optimize-contrast; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* Marquee */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 18px 0; background: var(--bg-soft); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-faint); letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-33.33%); } }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy); margin-bottom: 20px;
}
.card__icon img { width: 32px; height: 32px; display: block; }
.card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Screenshot gallery (SWAP SLOTS) ---------- */
.shots { display: flex; justify-content: center; align-items: center; min-height: 520px; }
.shots__phone {
  position: relative;
  width: min(220px, 38vw); aspect-ratio: 240 / 490;
  border-radius: 32px; padding: 8px; background: var(--phone-frame);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--border);
  overflow: hidden;
}
.shots__phone .shot {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 24px;
  image-rendering: -webkit-optimize-contrast; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.shots__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 17px; border-radius: 12px; background: #000; z-index: 3;
  box-shadow: 0 0 0 1px var(--border);
}
.shots__phone--back { margin-right: -52px; transform: translateY(22px); opacity: 0.96; }
.shots__phone--back2 { margin-left: -52px; transform: translateY(22px); opacity: 0.96; }
.shots__phone--front { width: min(250px, 44vw); z-index: 2; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.step__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Stats ---------- */
.stats { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.stat__label { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Downloads ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.download-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.download-card__ribbon {
  position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 600;
  background: var(--accent); color: #fff; padding: 5px 12px; border-radius: var(--radius-pill);
}
.download-card__head { display: flex; align-items: center; gap: 16px; }
.os { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--bg-soft); border: 1px solid var(--border); }
.os svg { width: 28px; height: 28px; }
.os--apple svg path, .os--android svg path { fill: currentColor; }
.download-card__head h3 { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -0.02em; }
.download-card__head .muted { font-size: 0.86rem; }
.download-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-card__meta li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.download-card__meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.download-card__meta b { font-size: 0.94rem; font-weight: 600; }
.download-card__note { font-size: 0.84rem; color: var(--text-soft); margin-top: -4px; }
.download-card__note b { color: var(--text); }
.downloads__foot { text-align: center; margin-top: 28px; font-size: 0.85rem; }
.downloads__foot code { background: var(--bg-soft-2); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 4px 20px; transition: border-color 0.3s, background 0.3s; }
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { padding: 0 0 20px; color: var(--text-soft); font-size: 0.96rem; max-width: 62ch; }

/* ---------- CTA / waitlist ---------- */
.cta { padding: clamp(72px, 10vw, 130px) 0; }
.cta__inner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-xl); padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.cta__title { position: relative; font-family: var(--font-display); font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; margin-inline: auto; }
.cta__sub { position: relative; color: var(--text-soft); margin-top: 16px; font-size: clamp(1rem, 2vw, 1.12rem); }
.waitlist { position: relative; display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0; }
.waitlist__input {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s; min-width: 0;
}
.waitlist__input::placeholder { color: var(--text-faint); }
.waitlist__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.waitlist__input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14); }
.waitlist__msg { position: relative; margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; color: var(--accent); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(32px, 6vw, 72px); }
.footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer__brand .muted { font-size: 0.94rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-soft); background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer__social a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 600; }
.footer__col a { color: var(--text-soft); font-size: 0.94rem; width: fit-content; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.86rem; color: var(--text-soft);
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(0.9);
  pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top svg { width: 22px; height: 22px; }
.to-top svg path { fill: currentColor; }
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(140%);
  background: var(--accent); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 200;
  transition: transform 0.45s var(--ease); max-width: calc(100vw - 40px); text-align: center;
  pointer-events: none;
}
.toast.is-shown { transform: translateX(-50%) translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .pill__dot { animation: none; }
}

/* ---------- Responsive ---------- */

/* Tablet / small laptop */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: clamp(28px, 6vw, 56px); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-bottom: 56px; }
  .hero__sub { margin-inline: auto; }
  .store-row, .hero__meta { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 8px; }

  /* Flat phone on touch — avoids 3D overflow and sharpens rendering */
  .phone { width: min(300px, 74vw); transform: none; }
  .hero__visual:hover .phone { transform: none; }

  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  .section { padding: clamp(56px, 12vw, 84px) 0; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: clamp(1.7rem, 7.6vw, 2.35rem); }
  .section__lead { font-size: 1rem; }

  .brand__name { font-size: 1.2rem; }
  .nav__inner { height: 64px; }
  .brand__logo { width: 32px; height: 32px; }
  .mobile-menu { max-height: calc(100dvh - 64px); }

  .hero { padding-top: 20px; }
  .hero__title { font-size: clamp(2.3rem, 11.5vw, 3.1rem); margin-top: 20px; }
  .hero__sub { font-size: 1rem; }
  .hero__meta { gap: 18px 26px; margin-top: 32px; }
  .meta-item__num { font-size: 1.25rem; }

  /* Stack store buttons full-width for easy tapping */
  .store-row { flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
  .store-btn { width: 100%; max-width: 270px; }
  .store-btn__img { height: 48px; }

  .grid--features { grid-template-columns: 1fr; }
  .card { padding: 24px; }

  .shots { min-height: auto; gap: 24px; }
  .shots__phone--back, .shots__phone--back2 { display: none; }
  .shots__phone--front { width: min(300px, 80vw); }

  .download-card__meta { grid-template-columns: 1fr; }
  .download-card__head { gap: 12px; }
  .download-card__head h3 { font-size: 1.2rem; }

  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }

  .faq__item { padding: 4px 16px; }
  .faq__item summary { font-size: 1rem; padding: 16px 0; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; }

  .to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
  
  /* HIDE FIRST SCREENSHOT ON PHONES */
  .hero__visual .phone {
  display:none;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero__meta { justify-content: space-between; width: 100%; }
  .meta-item { min-width: 28%; }
  .download-card__meta { grid-template-columns: 1fr 1fr; }
  .pill { font-size: 0.78rem; }
}

/* Touch devices: no sticky hover states */
@media (hover: none) {
  .card:hover, .step:hover, .download-card:hover { transform: none; }
  .store-btn:hover { transform: none; }
}
