/* ═══════════════════════════════════════════════════
   TotalBodyIQ — Landing page
   Dark · Premium · Apple-inspired
   ═══════════════════════════════════════════════════ */

:root {
  --bg:       #07111f;
  --bg2:      #0c1a2c;
  --surface:  rgba(14, 24, 40, 0.80);
  --line:     rgba(255,255,255,0.07);
  --line2:    rgba(255,255,255,0.13);
  --tx:       #f0f4fa;
  --tx2:      #b0bfd4;
  --tx3:      #7e93ac;
  --acc:      #8ac5f2;
  --acc2:     #67aee5;
  --acc-pale: #c8e4fb;
  --green:    #6ed8a0;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --pill: 999px;
  --mw: 1140px;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--tx); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6; font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
.skip-link { position: absolute; left: 16px; top: -60px; background: #fff; color: #000; padding: 10px 16px; border-radius: var(--r-sm); z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 16px; }

.container { width: min(100% - 48px, var(--mw)); margin-inline: auto; }
.s { padding-block: clamp(100px, 12vw, 180px); }


/* ═══════════════════
   HEADER
   ═══════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,17,31,0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(7,17,31,0.94); border-bottom-color: var(--line2); }
.header-bar { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; box-shadow: 0 4px 14px rgba(138,197,242,0.10); }
.brand-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.03em; }
.desk-nav { display: flex; gap: 28px; margin-left: auto; }
.desk-nav a { font-size: 0.86rem; font-weight: 500; color: var(--tx3); transition: color .2s; }
.desk-nav a:hover { color: var(--tx); }
.desk-cta { margin-left: 8px; }

.menu-btn {
  display: none; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg2);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.menu-btn span { width: 15px; height: 1.5px; border-radius: 2px; background: var(--tx); transition: transform .2s; }
.menu-btn.is-active span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn.is-active span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mob-menu { display: none; border-top: 1px solid var(--line); }
.mob-menu.is-open { display: block; }
.mob-menu-inner { display: flex; flex-direction: column; gap: 16px; padding: 20px 0 28px; }
.mob-menu-inner a { font-size: 1rem; font-weight: 520; color: var(--tx2); transition: color .2s; }
.mob-menu-inner a:hover { color: var(--tx); }


/* ═══════════════════
   BUTTONS
   ═══════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: var(--pill);
  font-weight: 620; font-size: 0.91rem; letter-spacing: -0.01em;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 0.84rem; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 1rem; }
.btn-accent {
  background: linear-gradient(180deg, var(--acc), var(--acc2));
  color: #0b1524; box-shadow: 0 8px 24px rgba(103,174,229,0.20);
}
.btn-accent:hover { box-shadow: 0 12px 32px rgba(103,174,229,0.30); }
.btn-ghost { border: 1px solid var(--line2); color: var(--tx); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
.full-w { width: 100%; }

.pill {
  display: inline-block; margin-bottom: 18px;
  padding: 5px 14px; border-radius: var(--pill);
  font-size: 0.8rem; font-weight: 620;
  background: rgba(138,197,242,0.08);
  border: 1px solid rgba(138,197,242,0.13);
  color: var(--acc-pale);
}

.centered-intro {
  text-align: center; max-width: 640px; margin-inline: auto;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.centered-intro h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 740; line-height: 1.06; letter-spacing: -0.04em; margin-bottom: 18px;
}
.centered-intro p {
  font-size: 1.06rem; line-height: 1.74; color: var(--tx2); max-width: 54ch; margin-inline: auto;
}


/* ═══════════════════════════════════════════════
   iPHONE 16 PRO FRAME
   Titanium body · Glass reflection · Dynamic Island
   ═══════════════════════════════════════════════ */
.iphone {
  --phone-w: 280px;
  width: var(--phone-w);
  flex-shrink: 0;
}
.iphone-bezel {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--phone-w) * 0.133);  /* ~37px at 280px */
  background:
    linear-gradient(165deg,
      #4a4a4c 0%,
      #2c2c2e 8%,
      #1c1c1e 20%,
      #2a2a2c 50%,
      #1c1c1e 80%,
      #3a3a3c 95%,
      #4a4a4c 100%
    );
  padding: calc(var(--phone-w) * 0.032);  /* ~9px */
  box-shadow:
    /* Outer titanium edge highlight */
    0 0 0 0.5px rgba(255,255,255,0.15),
    0 0 0 1px rgba(0,0,0,0.6),
    /* Depth shadow */
    0 20px 60px rgba(0,0,0,0.50),
    0 8px 20px rgba(0,0,0,0.35),
    /* Ambient glow */
    0 0 40px rgba(138,197,242,0.04);
  overflow: hidden;
}

/* Dynamic Island */
.iphone-island {
  position: absolute;
  top: calc(var(--phone-w) * 0.040);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--phone-w) * 0.310);
  height: calc(var(--phone-w) * 0.082);
  background: #000;
  border-radius: var(--pill);
  z-index: 10;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.05),
    inset 0 0 2px rgba(0,0,0,0.8);
}
/* Camera lens dot */
.iphone-island::after {
  content: '';
  position: absolute;
  right: calc(var(--phone-w) * 0.028);
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--phone-w) * 0.028);
  height: calc(var(--phone-w) * 0.028);
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a2e 30%, #0d0d15 60%, #000 100%);
  box-shadow: 0 0 2px rgba(50,50,80,0.5), inset 0 0 1px rgba(100,100,160,0.3);
}

/* Screen */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-w) * 0.110);
  overflow: hidden;
  background: #000;
  z-index: 2;
}
.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Glass reflection overlay */
.iphone-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.12) 0%,
      rgba(255,255,255,0.04) 20%,
      transparent 45%,
      transparent 60%,
      rgba(255,255,255,0.02) 80%,
      rgba(255,255,255,0.06) 100%
    );
  mix-blend-mode: screen;
}

/* Vignette for light-background screenshots */
.iphone-screen--light::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 90% at 50% 50%, transparent 55%, rgba(7,17,31,0.35) 100%);
}

/* Titanium side buttons (right = power, left = volume+silent) */
.iphone-bezel::before {
  content: '';
  position: absolute;
  right: -1.5px; top: 28%;
  width: 2px; height: 14%;
  border-radius: 0 1px 1px 0;
  background: linear-gradient(180deg, #5a5a5c, #3a3a3c, #5a5a5c);
  z-index: 20;
}
.iphone-bezel::after {
  content: '';
  position: absolute;
  left: -1.5px; top: 22%;
  width: 2px; height: 8%;
  border-radius: 1px 0 0 1px;
  background: linear-gradient(180deg, #5a5a5c, #3a3a3c, #5a5a5c);
  z-index: 20;
}


/* ═══════════════════
   1. HERO
   ═══════════════════ */
.s-hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: 0;
  min-height: 110vh;
  display: flex;
  align-items: flex-start;
  overflow: clip;
}
/* Gym background image — parallax */
.hero-bg {
  position: absolute;
  inset: -20% 0 0 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  opacity: 0.9;
  filter: saturate(0.8) brightness(0.7);
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7,17,31,0.85) 0%,
      rgba(7,17,31,0.55) 18%,
      rgba(7,17,31,0.15) 40%,
      transparent 55%,
      transparent 80%,
      var(--bg) 100%
    );
}
.hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-wrap--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 720px;
  margin-inline: auto;
}
.hero-copy h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 780; line-height: 0.94; letter-spacing: -0.055em;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(7,17,31,0.8), 0 4px 40px rgba(7,17,31,0.5);
}
.hero-sub {
  font-size: clamp(1.04rem, 1.2vw, 1.18rem);
  line-height: 1.74; color: var(--tx2); max-width: 48ch; margin-inline: auto; margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(7,17,31,0.9), 0 2px 24px rgba(7,17,31,0.6);
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-device {
  display: flex; justify-content: center; align-items: center;
}
.hero-device .iphone { --phone-w: 300px; }


/* ═══════════════════
   2. BODY INTELLIGENCE
   ═══════════════════ */
.s-intel {
  background: radial-gradient(ellipse 45% 50% at 50% 30%, rgba(138,197,242,0.04), transparent);
}
.phone-pair {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
  align-items: flex-start;
}
.phone-pair .iphone { --phone-w: 260px; }
.phone-pair .iphone:nth-child(2) { margin-top: 48px; }


/* ═══════════════════
   3 & 4. SPLIT SECTIONS
   ═══════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split-flip { direction: rtl; }
.split-flip > * { direction: ltr; }

.split-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 740; line-height: 1.06; letter-spacing: -0.04em; margin-bottom: 20px;
}
.split-copy p {
  font-size: 1.05rem; line-height: 1.74; color: var(--tx2); max-width: 44ch;
}
.split-copy p + p { margin-top: 14px; }

.split-phone { display: flex; justify-content: center; }
.split-phone .iphone { --phone-w: 280px; }

.s-guidance {
  background: radial-gradient(ellipse 40% 50% at 70% 50%, rgba(138,197,242,0.03), transparent);
}
.s-flex {
  background: radial-gradient(ellipse 40% 50% at 30% 50%, rgba(138,197,242,0.03), transparent);
}


/* ═══════════════════
   LIFESTYLE BANNER
   ═══════════════════ */
.s-lifestyle {
  padding-block: 0;
  position: relative;
  overflow: hidden;
}
.lifestyle-img {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}
.lifestyle-img img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.55;
  filter: saturate(0.7) brightness(0.75);
  border-radius: var(--r-lg);
}
.lifestyle-fade {
  position: absolute;
  pointer-events: none;
}
.lifestyle-fade-t {
  top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, var(--bg), transparent);
}
.lifestyle-fade-l {
  top: 0; left: 0; bottom: 0; width: 25%;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.lifestyle-fade-r {
  top: 0; right: 0; bottom: 0; width: 25%;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.lifestyle-fade-b {
  left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(180deg, transparent, var(--bg));
}


/* ═══════════════════
   5. PRICING
   ═══════════════════ */
.pricing-wrap { max-width: 820px; margin-inline: auto; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcard {
  padding: clamp(24px,3vw,36px); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  display: flex; flex-direction: column;
}
.pcard-pro {
  background: linear-gradient(180deg, rgba(18,30,48,0.96), rgba(12,22,38,0.96));
  border-color: rgba(138,197,242,0.15);
  box-shadow: 0 24px 60px rgba(77,144,206,0.10), 0 20px 50px rgba(0,0,0,0.28);
}
.pbadge {
  display: inline-flex; align-items: center; width: fit-content;
  height: 30px; padding: 0 13px; border-radius: var(--pill);
  font-size: 0.8rem; font-weight: 660;
  background: rgba(255,255,255,0.06); color: var(--tx2); margin-bottom: 16px;
}
.pbadge-pro {
  background: rgba(110,216,160,0.12); border: 1px solid rgba(110,216,160,0.16); color: #b9f0d0;
}
.pcard h3 { font-size: 1.1rem; font-weight: 680; letter-spacing: -0.02em; margin-bottom: 14px; }
.pprice { font-size: 2.4rem; font-weight: 780; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.pprice span { font-size: 1rem; font-weight: 500; color: var(--tx3); }
.palt { font-size: 0.86rem; color: var(--tx3); margin-bottom: 16px; }
.pcard ul { margin-bottom: 18px; flex: 1; }
.pcard li {
  font-size: 0.94rem; color: var(--tx2); line-height: 1.6;
  padding: 5px 0; border-bottom: 1px solid var(--line);
}
.pcard li:last-child { border-bottom: none; }
.pnote { font-size: 0.86rem; color: var(--tx3); margin-bottom: 18px; flex: 1; }


/* ═══════════════════
   6. FAQ
   ═══════════════════ */
.faq-wrap { max-width: 680px; margin-inline: auto; }
.faq-wrap > h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 740;
  letter-spacing: -0.04em; text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--r-sm); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--line2); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px; font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--tx3);
  transition: transform .2s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 0.96rem; color: var(--tx2); line-height: 1.72; }


/* ═══════════════════
   7. CTA
   ═══════════════════ */
.s-cta {
  text-align: center;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(138,197,242,0.05), transparent);
}
.cta-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: 520px; margin-inline: auto;
}
.cta-icon {
  width: 60px; height: 60px; border-radius: 16px; object-fit: cover;
  box-shadow: 0 12px 32px rgba(138,197,242,0.16);
}
.cta-wrap h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 740;
  letter-spacing: -0.045em; line-height: 1.06;
}
.cta-wrap p { font-size: 1.04rem; color: var(--tx2); line-height: 1.72; max-width: 46ch; }


/* ═══════════════════
   FOOTER
   ═══════════════════ */
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 620; color: var(--tx3); }
.footer-brand img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.82rem; font-weight: 500; color: var(--tx3); transition: color .2s; }
.footer-links a:hover { color: var(--tx); }


/* ═══════════════════
   SCROLL REVEAL
   ═══════════════════ */
[data-reveal], [data-reveal-stagger] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible, [data-reveal-stagger].is-visible {
  opacity: 1; transform: translateY(0);
}


/* ═══════════════════
   TABLET ≤ 1024
   ═══════════════════ */
@media (max-width: 1024px) {
  .desk-nav, .desk-cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-copy h1 { max-width: none; }

  .phone-pair .iphone { --phone-w: 220px; }

  .split, .split-flip {
    grid-template-columns: 1fr; direction: ltr; gap: 48px;
  }
  .split-copy { text-align: center; }
  .split-copy p { max-width: none; margin-inline: auto; }
  .split-phone .iphone { --phone-w: 260px; }
}


/* ═══════════════════
   MOBILE ≤ 640
   ═══════════════════ */
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--mw)); }
  .s { padding-block: clamp(72px, 10vw, 120px); }
  .s-hero { padding-top: clamp(32px, 4vw, 56px); }

  .hero-copy h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero-device .iphone { --phone-w: 220px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .hero-bg img { object-position: 50% 30%; }

  .phone-pair { gap: 16px; }
  .phone-pair .iphone { --phone-w: 155px; }
  .phone-pair .iphone:nth-child(2) { margin-top: 28px; }

  .split-phone .iphone { --phone-w: 220px; }

  .price-cards { grid-template-columns: 1fr; gap: 14px; }

  .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ═══════════════════
   LARGE DESKTOP ≥ 1440
   ═══════════════════ */
@media (min-width: 1440px) {
  :root { --mw: 1280px; }
  .s { padding-block: 200px; }
  .s-hero { padding-top: 130px; padding-bottom: 120px; }
  .hero-copy h1 { font-size: 5.4rem; }
  .hero-device .iphone { --phone-w: 340px; }
  .phone-pair .iphone { --phone-w: 300px; }
  .split-phone .iphone { --phone-w: 320px; }
}


/* ═══════════════════
   LEGAL PAGES (legacy)
   ═══════════════════ */
.legal-page main { min-height: 100vh; }
.legal-shell { display: grid; gap: 18px; }
.legal-heading h1 { margin: 0 0 12px; font-size: clamp(2.2rem,5vw,4rem); letter-spacing: -0.05em; }
.legal-card { border-radius: var(--r-md); padding: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.28); }
.legal-card h2 { margin: 0 0 12px; font-size: 1.34rem; letter-spacing: -0.03em; }
.legal-card h3 { margin: 0 0 10px; font-size: 1.04rem; color: var(--tx); }
.legal-card p, .legal-card li { color: var(--tx2); line-height: 1.72; }
.legal-card a { color: var(--acc-pale); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.legal-columns { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.legal-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.cta-footnote a { color: var(--acc-pale); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .legal-columns { grid-template-columns: 1fr; } }
