/* beta — beta.fit
   Black monolith. Anton display, Geist body. One focal element per section. */

@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #050506;
  --bg-card: #0d0d0f;
  --ink: #f5f5f6;
  --ink-2: #b9b9bf;
  --ink-3: #8a8a92;
  --ink-4: #5c5c64;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --shine: rgba(255, 255, 255, 0.22);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Geist', -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sub {
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 56ch;
}

.ghost-word {
  -webkit-text-stroke: 1px var(--line-strong);
  color: transparent;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: auto;
  margin: 0;
  height: 56px;
  padding: 0 12px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(5, 5, 6, 0.8);
  border-color: var(--line-strong);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.wordmark .mark {
  width: 30px;
  height: 30px;
  display: block;
}
.modal-panel .wordmark {
  justify-content: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.badge-store {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  animation: badgeGlow 3.2s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.08)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.26)); }
}
.pill-os {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill-apple {
  width: 11px;
  height: 13px;
  fill: currentColor;
  margin-top: -2px;
}
.badge-store:hover { transform: translateY(-2px); }
.badge-store svg { display: block; }
.badge-store.small svg { height: 36px; width: auto; }
.badge-store text { fill: #fff; font-family: var(--body); }
.badge-store .badge-t1 { font-size: 9px; font-weight: 500; opacity: 0.85; }
.badge-store .badge-t2 { font-size: 15.5px; font-weight: 600; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-open .menu-btn span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 99;
  background: rgba(5, 5, 6, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--pad) 28px;
}
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.menu-open .mobile-menu { display: block; animation: menuIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

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

.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(40px, 7vh, 90px);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px 8px 13px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: linear-gradient(180deg, var(--glass-strong), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 26px rgba(0, 0, 0, 0.35);
}
.pill::before {
  content: '';
  position: absolute;
  top: -1px; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(60px, 7.5vw, 112px);
  margin: 26px 0 22px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: riseUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }

@keyframes riseUp { to { transform: translateY(0); } }

@keyframes fadeRise {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}
.hero .pill { animation: fadeRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
.hero .sub { animation: fadeRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards; }
.hero .store-row { animation: fadeRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards; }
.hero-notify { margin-top: 20px; animation: fadeRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards; }

@keyframes phoneIn {
  from { opacity: 0; translate: 0 90px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes bob {
  from { translate: 0 0; }
  to { translate: 0 -10px; }
}
.hero-phones { animation: bob 5.5s ease-in-out 1.6s infinite alternate; }
.hero-phones .phone.main { animation: phoneIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards; }
.hero-phones .phone.back { animation: phoneIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards; }

@keyframes breathe {
  from { opacity: 0.7; scale: 1; }
  to { opacity: 1; scale: 1.08; }
}
.hero-glow { animation: breathe 9s ease-in-out infinite alternate; }

.hero .sub { margin-bottom: 34px; }

.store-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-note { font-size: 13px; color: var(--ink-4); }

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

/* ---------- phone frame ----------
   Real iPhone 15 Pro frame baked into the images (MockUPhone device art);
   the wrapper only handles size, position, and shadow. */

.phone {
  position: relative;
  width: clamp(230px, 25vw, 312px);
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.6));
}
.phone img { width: 100%; height: auto; display: block; }

.hero-phones .phone.main {
  z-index: 2;
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-phones .phone.back {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(18%) rotate(7deg) scale(0.88);
  z-index: 1;
  opacity: 0.92;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
  .hero-phones:hover .phone.main { transform: rotate(-1deg) translateY(-8px); }
  .hero-phones:hover .phone.back { transform: translateX(21%) rotate(8.5deg) scale(0.88) translateY(-4px); }
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 30s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span i {
  font-style: normal;
  color: var(--ink);
  font-size: 0.55em;
}
@keyframes slide { to { transform: translateX(-50%); } }

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

section { position: relative; }
.section-pad { padding: clamp(80px, 12vh, 150px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.section-head h2 {
  font-size: clamp(40px, 6vw, 76px);
  margin: 18px 0 16px;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
}
.step {
  padding: clamp(26px, 3vw, 40px);
  border-left: 1px solid var(--line);
  transition: background 0.3s;
}
.step:first-child { border-left: 0; }
.step:hover { background: var(--glass-strong); }
.step .num {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.step h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 14px 0 10px;
}
.step p { font-size: 14.5px; color: var(--ink-3); }

/* feature splits */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(90px, 14vh, 170px); }
.feature .copy .eyebrow { display: block; margin-bottom: 16px; }
.feature .copy h2 {
  font-size: clamp(38px, 5vw, 64px);
  margin-bottom: 18px;
}
.feature .copy p { color: var(--ink-2); max-width: 46ch; }
.feature .copy ul { margin-top: 24px; display: grid; gap: 12px; }
.feature .copy li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--ink-2);
  font-size: 15px;
}
.feature .copy li::before {
  content: '';
  width: 14px; height: 1.5px;
  background: var(--ink);
  flex: none;
  transform: translateY(-4px);
}
.feature.flip .copy { order: 2; }
.feature .visual { display: flex; justify-content: center; }
.feature .visual .phone { width: clamp(230px, 23vw, 290px); }

/* testimonials */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}
.quote:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.quote::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
}
.quote .stars {
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
}
.quote p { font-size: 15.5px; color: var(--ink-2); }
.quote .who {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote .who .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  flex: none;
}
.quote .who .avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.quote .who b { font-size: 14px; font-weight: 600; display: block; line-height: 1.3; }
.quote .who small { font-size: 12.5px; color: var(--ink-4); }

/* numbers band */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--glass);
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.band-cell {
  padding: clamp(34px, 4vw, 56px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
  text-align: center;
}
.band-cell:first-child { border-left: 0; }
.band-cell .big {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1;
}
.band-cell .label {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* faq */

.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 500;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink-2); }
.faq-item summary .ix {
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
.faq-item summary .ix::before,
.faq-item summary .ix::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: inherit;
}
.faq-item summary .ix::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .ix { transform: rotate(45deg); background: var(--glass-strong); }
.faq-item .a {
  padding: 0 60px 26px 0;
  color: var(--ink-3);
  max-width: 70ch;
}

/* final cta */

.final {
  text-align: center;
  padding: clamp(110px, 18vh, 200px) 0;
  position: relative;
  overflow: hidden;
}
.final .bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(160px, 30vw, 460px);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.final h2 {
  font-size: clamp(52px, 9vw, 120px);
  margin-bottom: 26px;
}
.final .sub { margin: 0 auto 38px; }
.final .store-row { justify-content: center; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 44px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-brand .wordmark { display: block; margin-bottom: 12px; }
.foot-brand p { font-size: 13.5px; color: var(--ink-4); max-width: 34ch; }
.foot-links { display: flex; gap: clamp(32px, 5vw, 80px); }
.foot-links .col b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.foot-links .col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 5px 0;
  transition: color 0.2s;
}
.foot-links .col a:hover { color: var(--ink); }
.foot-base {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-4);
}

/* ---------- legal / support pages ---------- */

.page {
  padding-top: clamp(130px, 18vh, 190px);
  padding-bottom: clamp(80px, 12vh, 140px);
  max-width: 820px;
}
.page h1 { font-size: clamp(44px, 7vw, 84px); margin: 14px 0 10px; }
.page .updated { color: var(--ink-4); font-size: 13.5px; margin-bottom: 48px; }
.page section + section { margin-top: 40px; }
.page h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 10px;
}
.page p { color: var(--ink-2); }
.page a { text-decoration: underline; text-underline-offset: 3px; }

.support-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  padding: clamp(28px, 4vw, 44px);
  margin: 18px 0 42px;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
}
.support-card .mail {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 40px);
  display: inline-block;
  margin: 6px 0 10px;
  text-decoration: none;
}
.support-card p { font-size: 14.5px; color: var(--ink-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }

/* ---------- waitlist modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.66);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.modal-panel {
  position: relative;
  width: min(352px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px 24px 24px;
  text-align: center;
  opacity: 0;
  translate: 0 28px;
  scale: 0.95;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    translate 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    scale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { opacity: 1; translate: 0 0; scale: 1; }

.modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-x:hover { background: var(--glass-strong); }
.modal-x::before,
.modal-x::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink-2);
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-phone {
  width: 92px;
  margin: 12px auto 4px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
  animation: bob 5s ease-in-out infinite alternate;
}
.modal-phone img { width: 100%; height: auto; display: block; }

.modal-panel h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 30px);
  margin: 8px 0 6px;
}
.modal-panel .lead { color: var(--ink-3); font-size: 13.5px; max-width: 32ch; margin: 0 auto 16px; }

.modal-form { display: grid; gap: 12px; }
.modal-form[hidden], .modal-fine[hidden] { display: none; }
.modal-form input {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 15px 22px;
  font: 500 15px var(--body);
  color: var(--ink);
  outline: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.modal-form input::placeholder { color: var(--ink-4); }
.modal-form input:focus { border-color: rgba(255, 255, 255, 0.4); background: var(--glass-strong); }
.modal-form .btn { width: 100%; }
.modal-form .btn[disabled] { opacity: 0.6; transform: none; cursor: wait; }

.modal-error {
  color: #f0a5a5;
  font-size: 13.5px;
  min-height: 18px;
  margin-top: 2px;
}
.modal-fine { margin-top: 14px; font-size: 12px; color: var(--ink-4); }
.modal-fine a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }

.modal-success { padding: 26px 0 10px; }
.modal-success .big {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 34px;
  margin-bottom: 8px;
}
.modal-success p { color: var(--ink-3); font-size: 14.5px; }

.link-quiet {
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font: 500 14px var(--body);
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s;
  background: linear-gradient(100deg, var(--ink-3) 42%, var(--ink) 50%, var(--ink-3) 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 3.2s linear infinite;
}
@keyframes shimmerText {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}
.link-quiet:hover { -webkit-text-fill-color: var(--ink); border-color: var(--ink-3); }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-group.in > * {
  opacity: 1;
  transform: none;
}
.reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-group.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group.in > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

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

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero-copy .store-row { justify-content: center; }
  .store-note { text-align: left; }
  /* Recenter the overlapping pair: the desktop offsets hang the back phone
     past the right edge of narrow viewports. */
  .hero-phones { padding: 0; }
  .hero-phones .phone.main { transform: translateX(-24%) rotate(-2.5deg); }
  .hero-phones .phone.back { transform: translateX(-18%) rotate(7deg) scale(0.88); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line); }
  .step:nth-child(3) { border-left: 0; }
  .feature { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .copy { order: 0; }
  .quotes { grid-template-columns: 1fr; max-width: 560px; }
  .band-grid { grid-template-columns: 1fr; }
  .band-cell { border-left: 0; border-top: 1px solid var(--line); }
  .band-cell:first-child { border-top: 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .nav-cta .badge-store { display: none; }
  .hero h1 { font-size: clamp(58px, 17vw, 88px); }
  .faq-item .a { padding-right: 0; }
}
