/* ── Fonts ───────────────────────────────────────── */
@font-face {
  font-family: 'Grtsk Tera';
  src: url('assets/fonts/grtsk_tera.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Body font: Inter via system stack (-apple-system, BlinkMacSystemFont, 'Segoe UI') */

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* ── Tokens ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #F2F2F2;
  --bg-white:   #FFFFFF;
  --bg-footer:  #E8E8E4;

  /* Better design system */
  --blue:       #0047E0;
  --blue-deep:  #003ECB;
  --gold:       #FFD54F;
  --gold-deep:  #F5C400;
  --teal:       #26A69A;
  --gray-950:   #191919;
  --gray-900:   #242424;
  --red:        #D00D00;

  /* Text (on light bg) */
  --text:         #191919;
  --text-mid:     rgba(25, 25, 25, 0.55);
  --text-muted:   rgba(25, 25, 25, 0.35);

  /* Borders */
  --border:     rgba(25, 25, 25, 0.10);

  --radius-xl:  28px;
  --radius-lg:  20px;
  --radius-pill:999px;

  --max-w: 1040px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Shared ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  z-index: 300;
}
.skip-nav:focus { top: 0.5rem; }

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 242, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.125rem;
}

.nav__logo {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.15s;
}
.nav__link:hover { color: var(--text); }
.nav__link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.375rem;
  background: var(--gray-950);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.12s;
  min-height: 2.5rem;
}
.nav__cta:hover { opacity: 0.82; transform: translateY(-1px); }
.nav__cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 4rem 0 0;
  text-align: center;
  overflow: hidden;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: clamp(3rem, 8.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: var(--text);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 1.375rem;
}

.hero__headline em {
  font-style: normal;
  color: var(--blue);
}

.hero__sub {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-mid);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.60;
}

/* Store buttons */
.hero__store-btns {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--gray-950);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.12s;
  min-height: 2.875rem;
  white-space: nowrap;
}
.store-btn:hover { opacity: 0.82; transform: translateY(-1px); }
.store-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.store-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }
.store-btn__sub {
  display: block;
  font-size: 0.5rem;
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 0.1rem;
}
.store-btn__label { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.1; }

.hero__social-proof {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.125rem;
}
.hero__social-proof strong { color: var(--text-mid); font-weight: 500; }
.hero__stars { color: var(--gold-deep); }

/* Hero visual — mascot + phone */
.hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.hero__phone {
  width: clamp(200px, 26vw, 280px);
  border-radius: 36px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.06),
    0 24px 60px rgba(0,0,0,0.14),
    0 8px 20px rgba(0,0,0,0.08);
  display: block;
}

/* ── Press ──────────────────────────────────────── */
.press {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
}

.press__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.press__label {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* .press__badge removed — replaced by .press__logo SVGs */

.press__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.press__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.38;
  transition: opacity 0.15s;
  color: var(--text);
}

.press__logo:hover { opacity: 0.65; }
.press__logo:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

.press__logo-icon {
  display: block;
  flex-shrink: 0;
}

.press__logo-bar {
  display: block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

.press__logo-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── Feature Blocks (eda.so style) ──────────────── */
.blocks {
  padding: 1.5rem var(--pad-x);
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Row of two side-by-side blocks */
.blocks__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Full-width single block */
.blocks__full { width: 100%; }

.block {
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 2.5rem 2.5rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

/* Workout block — Blue */
.block--workout { background: var(--blue); color: #fff; }

/* Nutrition block — Gold */
.block--nutrition { background: var(--gold); color: var(--gray-950); }

/* Difference block — Dark, full width */
.block--difference {
  background: var(--gray-950);
  color: #fff;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  padding: 3rem 3.5rem;
  min-height: auto;
}

.block__eyebrow {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}

.block__title {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.block__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: auto;
}

.block__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  opacity: 0.80;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.block--nutrition .block__item {
  border-bottom-color: rgba(25,25,25,0.10);
  opacity: 0.70;
}

.block__item:last-child { border-bottom: none; }

.block__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.60;
  flex-shrink: 0;
}

/* Phone in colored block — floats at bottom */
.block__phone-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  align-items: flex-end;
  flex: 1;
}

.block__phone {
  width: clamp(140px, 18vw, 200px);
  border-radius: 24px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.08),
    0 20px 48px rgba(0,0,0,0.20);
  display: block;
}

/* Difference block layout */
.block--difference .block__copy { flex: 1; }

.block--difference .block__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.block__body {
  font-size: 0.9375rem;
  opacity: 0.60;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* Comparison table inside dark block */
.compare-row {
  display: flex;
  gap: 0.625rem;
}

.compare-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  min-width: 90px;
  text-align: center;
}

.compare-pill--muted {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.compare-pill--highlight {
  background: rgba(0, 71, 224, 0.25);
  border: 1px solid rgba(0, 71, 224, 0.50);
}

.compare-pill__icon { font-size: 1.25rem; }
.compare-pill__logo { border-radius: 10px; flex-shrink: 0; }
.compare-pill__name { font-size: 0.6875rem; font-weight: 500; opacity: 0.80; }
.compare-pill__tag  { font-size: 0.5625rem; opacity: 0.45; }

.compare-pill__app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.block--difference .block__phone-wrap {
  flex: none;
  margin-top: 0;
  align-items: center;
}

.block--difference .block__phone {
  width: clamp(160px, 16vw, 210px);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.12),
    0 24px 56px rgba(0,0,0,0.40);
}

/* ── Pricing ─────────────────────────────────────── */
.pricing {
  padding: 4.5rem 0;
  text-align: center;
}

.pricing__eyebrow {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing__title {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 2.25rem;
}

.pricing__cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem;
  min-width: 200px;
  flex: 1;
  max-width: 240px;
  text-align: left;
}

.pricing-card--premium {
  background: var(--gray-950);
  border-color: var(--gray-950);
  color: #fff;
}

.pricing-card__tier {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-card--premium .pricing-card__tier { color: rgba(255,255,255,0.40); }

.pricing-card__price {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.pricing-card--premium .pricing-card__price { color: #fff; }

.pricing-card__per {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-mid);
}

.pricing-card--premium .pricing-card__per { color: rgba(255,255,255,0.45); }

.pricing-card__divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 1.125rem 0;
}

.pricing-card--premium .pricing-card__divider { background: rgba(255,255,255,0.10); }

.pricing-card__list { display: flex; flex-direction: column; gap: 0.5rem; }

.pricing-card__list li {
  font-size: 0.8125rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card--premium .pricing-card__list li { color: rgba(255,255,255,0.65); }

.pricing-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.pricing-card--premium .pricing-card__list li::before { background: rgba(255,255,255,0.30); }

/* ── Roadmap teaser ─────────────────────────────── */
.roadmap-teaser {
  padding: 5rem 0;
  text-align: center;
}

.roadmap-teaser__eyebrow {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.roadmap-teaser__title {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.roadmap-teaser__sub {
  font-size: 0.9375rem;
  color: var(--text-mid);
  max-width: 380px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.roadmap-teaser__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gray-950);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.12s;
}
.roadmap-teaser__btn:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.roadmap-teaser__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ── Final CTA ──────────────────────────────────── */
.final-cta {
  padding: 5rem 0;
  text-align: center;
  background: var(--blue);
  color: #fff;
}

.final-cta__heading {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 2rem;
}

.final-cta .store-btn {
  background: #fff;
  color: var(--gray-950);
}

.final-cta .store-btn:hover { opacity: 0.90; }

.final-cta__btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: 'Grtsk Tera', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.footer__legal { font-size: 0.6875rem; color: var(--text-muted); }
.footer__legal a { color: var(--text-muted); transition: color 0.15s; }
.footer__legal a:hover { color: var(--text-mid); }
.footer__legal a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ── Scroll animations ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .blocks__row { grid-template-columns: 1fr; }

  .block--difference {
    flex-direction: column;
    padding: 2.5rem 1.75rem;
    gap: 2rem;
  }

  .block--difference .block__phone-wrap { justify-content: center; }
}

@media (max-width: 540px) {
  .hero__notify { flex-direction: column; }
  .hero__notify .notify-btn { text-align: center; }

  .hero__store-btns { flex-direction: column; align-items: center; }

  .block { padding: 2rem 1.75rem 0; min-height: 360px; }
  .block--difference { padding: 2rem 1.75rem; }

  .pricing__cards { flex-direction: column; align-items: center; }
  .pricing-card { max-width: 100%; width: 100%; }

  .nav__link { display: none; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
