/* ============================================================
   BiteLytic — Global Stylesheet
   bitelytic.vercel.app
   ============================================================ */

/* ── Reset & variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #000000;
  --bg-2:    #0d0d0f;
  --bg-card: #1c1c1e;
  --border:  #2c2c2e;
  --text:    #ffffff;
  --text-2:  rgba(255,255,255,.82);
  --text-3:  #8e8e93;
  --green:   #30d158;
  --yellow:  #ffd60a;
  --red:     #ff453a;
  --r-sm:    10px;
  --r:       18px;
  --r-lg:    24px;
  --max-w:   1100px;
  --hh:      68px;
  --ease:    cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Layout helpers ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.035em; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-3); line-height: 1.65; max-width: 540px; }

/* ══════════════════════════
   HEADER
══════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--hh);
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 200;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  flex-shrink: 0; margin-right: auto;
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; font-size: 14px; color: var(--text-3);
  border-radius: 8px; transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.header-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; background: var(--text); color: var(--bg);
  border-radius: 22px; font-size: 14px; font-weight: 600;
  white-space: nowrap; margin-left: 8px; transition: opacity .2s var(--ease);
}
.header-btn:hover { opacity: .88; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; padding: 8px; width: 36px; height: 36px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .25s var(--ease); transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── App Store badge ── */
.badge-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; background: var(--text); color: var(--bg);
  border-radius: 14px; transition: opacity .2s, transform .2s;
}
.badge-store:hover { opacity: .9; transform: translateY(-1px); }
.badge-store .ap-icon { width: 22px; height: 22px; flex-shrink: 0; }
.badge-store .ap-text { line-height: 1.2; }
.badge-store .ap-text small { display: block; font-size: 10px; font-weight: 500; }
.badge-store .ap-text strong { display: block; font-size: 18px; font-weight: 700; }

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero { padding: calc(var(--hh) + 72px) 0 80px; overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 64px; }
.hero-copy { flex: 1; min-width: 0; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(48,209,88,.1);
  border: 1px solid rgba(48,209,88,.22); border-radius: 22px;
  font-size: 12px; font-weight: 600; color: var(--green);
  letter-spacing: .03em; margin-bottom: 28px;
}
.hero-pill-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

.hero-title {
  font-size: clamp(46px, 7vw, 80px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.045em; margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--text-3); }
.hero-sub { font-size: 19px; color: var(--text-3); line-height: 1.65; max-width: 440px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.hero-note-check { color: var(--green); font-weight: 700; }

/* ── Phone mockup ── */
.hero-visual { flex-shrink: 0; }
.phone-outer {
  width: 240px; height: 490px; background: #080808;
  border-radius: 46px; border: 1.5px solid rgba(255,255,255,.13);
  box-shadow: 0 48px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.09);
  overflow: hidden; display: flex; flex-direction: column; padding: 0 12px 12px;
}
.phone-island {
  width: 90px; height: 30px; background: #000;
  border-radius: 0 0 20px 20px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.phone-cam { width: 9px; height: 9px; background: #1a1a1a; border-radius: 50%; border: 1.5px solid #242424; }
.phone-screen { flex: 1; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; margin-bottom: 2px; }
.mock-time { font-size: 13px; font-weight: 600; }
.mock-icons { font-size: 10px; color: var(--text-2); }
.mock-score-card {
  background: linear-gradient(150deg,#1e1e20,#252527);
  border-radius: 18px; padding: 16px; text-align: center;
  border: 1px solid rgba(255,255,255,.05);
}
.mock-score-val { font-size: 52px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -.04em; }
.mock-score-lbl { font-size: 11px; color: var(--text-3); margin-top: 3px; letter-spacing: .05em; text-transform: uppercase; }
.mock-meals { display: flex; flex-direction: column; gap: 6px; }
.mock-meal {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.04);
  border-radius: 11px; padding: 9px 11px;
  display: flex; align-items: center; justify-content: space-between;
}
.mock-meal-l { display: flex; align-items: center; gap: 8px; }
.mock-meal-emoji { font-size: 18px; line-height: 1; }
.mock-meal-name { font-size: 12px; color: var(--text-2); font-weight: 500; }
.mock-score { font-size: 13px; font-weight: 700; }
.sc-hi { color: var(--green); }
.sc-md { color: var(--yellow); }
.sc-lo { color: var(--red); }
.mock-streak {
  background: rgba(255,214,10,.07); border: 1px solid rgba(255,214,10,.14);
  border-radius: 11px; padding: 9px 11px;
  display: flex; align-items: center; gap: 8px;
}
.mock-streak-fire { font-size: 16px; }
.mock-streak-txt { font-size: 12px; color: var(--text-2); flex: 1; }
.mock-streak-n { font-size: 13px; font-weight: 700; color: var(--yellow); }

/* ══════════════════════════
   HOW IT WORKS
══════════════════════════ */
.how { background: var(--bg-2); }
.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 56px;
}
.step { background: var(--bg-card); padding: 40px 32px 44px; }
.step-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--text-3); margin-bottom: 24px; }
.step-icon { font-size: 38px; margin-bottom: 18px; line-height: 1; }
.step-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.step-desc { font-size: 15px; color: var(--text-3); line-height: 1.65; }

/* ══════════════════════════
   FEATURES
══════════════════════════ */
.feat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 56px;
}
.feat-card { background: var(--bg-card); padding: 36px 28px; }
.feat-icon { font-size: 34px; margin-bottom: 18px; line-height: 1; }
.feat-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.feat-desc { font-size: 14px; color: var(--text-3); line-height: 1.65; }

/* ══════════════════════════
   PRICING
══════════════════════════ */
.pricing { background: var(--bg-2); }
.pricing-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 660px; margin: 56px auto 0;
}
.p-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px 28px 28px;
}
.p-card.featured { border-color: rgba(255,255,255,.18); background: #111114; }
.p-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 18px;
}
.p-badge.save { background: rgba(48,209,88,.15); color: var(--green); }
.p-badge.pop  { background: rgba(255,214,10,.12); color: var(--yellow); }
.p-plan { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.p-price { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.p-price sup { font-size: 22px; font-weight: 600; vertical-align: super; }
.p-price .period { font-size: 16px; font-weight: 400; color: var(--text-3); }
.p-note { font-size: 13px; color: var(--text-3); margin: 8px 0 24px; line-height: 1.5; }
.p-cta {
  display: block; text-align: center; padding: 13px;
  border-radius: 12px; font-size: 15px; font-weight: 600; transition: opacity .2s;
}
.p-cta:hover { opacity: .85; }
.p-card.featured .p-cta { background: var(--text); color: var(--bg); }
.p-card:not(.featured) .p-cta { border: 1px solid var(--border); color: var(--text); }
.pricing-note { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 22px; }
.pricing-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 28px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-links a {
  padding: 7px 13px; font-size: 14px; color: var(--text-3);
  border-radius: 8px; transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-heart { font-size: 13px; color: var(--text-3); }

/* ══════════════════════════
   INNER PAGES
══════════════════════════ */
.page-top {
  padding: calc(var(--hh) + 60px) 0 52px;
  border-bottom: 1px solid var(--border);
}
.page-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}
.page-top h1 {
  font-size: clamp(34px,5vw,56px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.08; margin-bottom: 14px;
}
.page-top p { font-size: 17px; color: var(--text-3); max-width: 500px; line-height: 1.65; }

.page-body { padding: 64px 0 96px; }
.page-inner { max-width: 720px; }

.page-body h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -.025em;
  margin: 44px 0 14px; padding-top: 4px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p { font-size: 16px; color: var(--text-2); line-height: 1.78; margin-bottom: 14px; }
.page-body ul, .page-body ol { margin: 2px 0 14px 20px; }
.page-body li { font-size: 16px; color: var(--text-2); line-height: 1.78; margin-bottom: 6px; }
.page-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.page-body strong { color: var(--text); font-weight: 600; }

.info-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 18px 20px; margin: 16px 0 20px;
}
.info-box p { margin-bottom: 0; font-size: 15px; }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
}
.contact-card h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.contact-card > p { font-size: 15px; color: var(--text-3); margin-bottom: 24px; line-height: 1.6; }
.email-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; background: var(--text); color: var(--bg);
  border-radius: 12px; font-size: 15px; font-weight: 600; transition: opacity .2s;
}
.email-btn:hover { opacity: .88; }
.response-note { margin-top: 14px; font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }

/* ── FAQ ── */
.faq-wrap h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 16px 18px;
  font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: rgba(255,255,255,.03); }
.faq-chevron { flex-shrink: 0; color: var(--text-3); transition: transform .3s var(--ease); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  font-size: 14px; color: var(--text-3); line-height: 1.7;
  max-height: 0; overflow: hidden; padding: 0 18px;
  transition: max-height .35s var(--ease), padding .3s var(--ease);
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 18px 16px; }

/* ══════════════════════════
   WAITLIST
══════════════════════════ */
.waitlist { background: var(--bg-2); }
.waitlist-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.waitlist-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.1; margin-bottom: 14px;
}
.waitlist-sub { font-size: 17px; color: var(--text-3); line-height: 1.65; margin-bottom: 36px; }

.waitlist-form {
  display: flex; gap: 8px;
  max-width: 440px; margin: 0 auto 16px;
}
.waitlist-input {
  flex: 1; min-width: 0;
  padding: 13px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px;
  font: inherit; font-size: 15px; outline: none;
  transition: border-color .2s var(--ease);
}
.waitlist-input:focus { border-color: rgba(255,255,255,.3); }
.waitlist-input::placeholder { color: var(--text-3); }

.waitlist-btn {
  padding: 13px 22px;
  background: var(--text); color: var(--bg);
  border: none; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.waitlist-btn:hover { opacity: .88; }
.waitlist-btn:disabled { opacity: .45; cursor: default; }

.waitlist-success {
  color: var(--green); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 12px;
}
.waitlist-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: rgba(48,209,88,.15);
  border-radius: 50%; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.waitlist-error { color: var(--red); font-size: 14px; margin-bottom: 12px; }
.waitlist-note { font-size: 13px; color: var(--text-3); }

/* ══════════════════════════
   ANIMATIONS
══════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-up.in-view { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --hh: 60px; }
  .section { padding: 64px 0; }
  .nav {
    display: none; position: fixed; top: var(--hh); left: 0; right: 0;
    background: rgba(0,0,0,.97); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 16px; color: var(--text-2); }
  .header-btn { margin: 6px 0 0; text-align: center; justify-content: center; border-radius: 12px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero { padding: calc(var(--hh) + 48px) 0 60px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 48px; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 17px; }
  .hero-visual { align-self: center; }
  .phone-outer { width: 210px; height: 430px; border-radius: 40px; }
  .steps { grid-template-columns: 1fr; border-radius: var(--r); }
  .feat-grid { grid-template-columns: 1fr; border-radius: var(--r); }
  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-layout { grid-template-columns: 1fr; }
  .page-inner { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .phone-outer { width: 192px; height: 395px; }
}
