/* ============================================================
   iNutri Guide — Shared Stylesheet
   ============================================================ */

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

:root {
  --primary:      #009e9a;
  --primary-light:#49ddd2;
  --primary-dark: #1d7f78;
  --bg:           #f4fffc;
  --surface:      #ffffff;
  --surface-alt:  #e9faf6;
  --text:         #14211f;
  --text-muted:   #3a514d;
  --outline:      #6f817d;
  --error:        #ba1a1a;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 4px 24px rgba(0,158,154,.12);
  --shadow-lg:    0 8px 40px rgba(0,158,154,.18);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,158,154,.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-alt);
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 18px !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

@media(max-width:720px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid rgba(0,158,154,.1);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 14px; border-radius: var(--radius); }
}

/* ============================================================
   CONTAINERS & LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,158,154,.1);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--surface-alt);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none !important;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--surface-alt); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(0,158,154,.2);
  background: var(--surface);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  transition: border .2s, box-shadow .2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,158,154,.12);
}

textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media(max-width:560px) { .form-row { grid-template-columns: 1fr; } }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 500;
  margin-top: 16px;
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-teal { background: var(--surface-alt); color: var(--primary); }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-purple { background: #f5f3ff; color: #7c3aed; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #edfaf8 0%, #f4fffc 60%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73,221,210,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media(max-width:800px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #0a0a0a;
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 18px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.app-store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  text-decoration: none;
}
.app-store-btn:active { transform: translateY(-1px) scale(1); }

.app-store-btn .store-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.app-store-btn .store-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.app-store-btn .store-meta small {
  font-size: .68rem;
  opacity: .65;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
}
.app-store-btn .store-meta strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* CTA section variant — on teal background */
.app-store-btn.btn-glass {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,.32);
  box-shadow: 0 4px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.22);
}
.app-store-btn.btn-glass:hover {
  background: rgba(255,255,255,.22);
  box-shadow: 0 12px 36px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 220px;
  height: 440px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0,158,154,.3), 0 4px 16px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.phone-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.phone-name { font-size: 1.1rem; font-weight: 700; }
.phone-tagline { font-size: .8rem; opacity: .8; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0;
  border-top: 1px solid rgba(0,158,154,.1);
  border-bottom: 1px solid rgba(0,158,154,.1);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.strip-item span { font-size: 1.2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media(max-width:720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand span { font-weight: 700; color: #fff; font-size: 1rem; }
.footer-desc { font-size: .875rem; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--primary-light); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--primary-light); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, #edfaf8 0%, #f4fffc 100%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid rgba(0,158,154,.1);
}

.page-hero .section-label { margin: 0 auto 16px; }

/* ============================================================
   PROSE (policy / tos pages)
   ============================================================ */
.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 10px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-alt);
}

.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 6px; }

.prose p { margin-bottom: 14px; color: var(--text-muted); line-height: 1.8; }

.prose ul {
  margin: 0 0 14px 20px;
  color: var(--text-muted);
  line-height: 1.9;
}

.prose a { color: var(--primary); }

.prose .notice {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 740px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid rgba(0,158,154,.12);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: transform .3s, background .2s;
  color: var(--primary);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer-inner {
  padding: 0 4px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.divider { border: none; border-top: 1px solid rgba(0,158,154,.1); margin: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* star rating */
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
