/* 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: 0.92;
}

.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: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
}
.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;
}
.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: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 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;
}
.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: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  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); } }

.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; }

/* ---------- 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-phones { padding: 0 8vw; }
  .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; }
}
