/* ─── Hero ───────────────────────────────────────────────── */
.hero-section {
  background: var(--ink);
  padding-top: calc(var(--nav-height) + 80px);
  overflow: hidden;
  position: relative;
}
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 80% 40%, rgba(11,94,62,0.15) 0%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end; padding-bottom: 0;
}
.hero-content { padding-bottom: 80px; }
.hero-section h1 { color: #fff; }
.hero-section h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--green-mid); letter-spacing: 0; }
.hero-underline { position: relative; display: inline-block; }
.hero-underline::after {
  content: ''; position: absolute; left: 0; bottom: -6px; right: 0;
  height: 4px; background: var(--gold); border-radius: 2px;
}
.hero-proof { display: flex; align-items: center; gap: 14px; }
.hero-avatars { display: flex; }
.hero-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 800; color: #fff;
  margin-left: -8px;
}
.hero-avatar:first-child { margin-left: 0; }

/* Hero visual */
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-float-card {
  position: absolute; background: #fff; border-radius: var(--r-lg);
  padding: 14px 18px; box-shadow: var(--shadow-lg); z-index: 2;
  border: 1px solid rgba(0,0,0,0.06);
}
.hero-float-card-1 { right: -20px; top: 20px; min-width: 160px; }
.hero-float-card-2 { left: -20px; bottom: 60px; min-width: 150px; }
.float-card-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; font-family: var(--font-display); margin-bottom: 4px; }
.float-card-value { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.float-card-change { font-size: 11px; color: var(--green-mid); font-weight: 600; margin-top: 3px; }
.float-card-tag { display: inline-block; background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); font-family: var(--font-display); margin-top: 5px; }

/* Phone content */
.phone-app-content { padding: 14px; }
.phone-app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.phone-app-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; }
.phone-sync-badge { font-size: 10px; color: var(--green-mid); background: rgba(19,166,104,0.15); padding: 3px 8px; border-radius: var(--r-full); font-family: var(--font-display); font-weight: 600; }
.phone-child-card { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 10px; margin-bottom: 8px; border: 1px solid rgba(19,166,104,0.2); }
.phone-child-name { font-size: 12px; font-weight: 700; color: #fff; font-family: var(--font-display); }
.phone-child-meta { font-size: 10px; color: rgba(255,255,255,0.4); margin-bottom: 7px; }
.phone-dose-row { display: flex; gap: 4px; }
.dose-pip { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.dose-pip.done { background: var(--green-mid); }
.phone-stock-bar { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.phone-stock-label { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,0.4); margin-bottom: 5px; }
.phone-stock-track { background: rgba(255,255,255,0.08); border-radius: 100px; height: 5px; }
.phone-stock-fill { height: 100%; border-radius: 100px; background: var(--green-mid); }
.phone-action-btn { background: var(--green); border-radius: 8px; padding: 9px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; font-family: var(--font-display); }

/* ─── Bento Grid ─────────────────────────────────────────── */
.bento-grid { display: grid; grid-template-columns: repeat(6,1fr); grid-auto-rows: auto; gap: 16px; }
.bento-card { border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--border); background: var(--white); transition: all 0.3s; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-wide   { grid-column: span 4; }
.bento-narrow { grid-column: span 2; }
.bento-full   { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.bento-dark   { background: var(--ink-2); border-color: rgba(255,255,255,0.06); }
.bento-dark:hover { border-color: rgba(19,166,104,0.3); }
.bento-mint   { background: var(--green-light); border-color: rgba(11,94,62,0.15); }
.bento-green  { background: var(--green); border-color: var(--green); }
.bento-title  { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.3px; }
.bento-dark .bento-title, .bento-green .bento-title { color: #fff; }
.bento-desc   { font-size: 14px; color: var(--muted); line-height: 1.65; }
.bento-dark .bento-desc  { color: rgba(255,255,255,0.5); }
.bento-green .bento-desc { color: rgba(255,255,255,0.7); }
.bento-chips  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bento-chip   { background: rgba(19,166,104,0.12); color: var(--green-mid); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); font-family: var(--font-display); }

/* Mini dashboard in bento */
.mini-dashboard { background: #fff; border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--border); }
.mini-db-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mini-metric { border-radius: var(--r-md); padding: 12px; }
.mini-metric-label { font-size: 10px; color: var(--muted); font-family: var(--font-display); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.mini-metric-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); }
.mini-metric-change { font-size: 10px; color: var(--green-mid); margin-top: 2px; font-weight: 600; }
.mini-progress-card { background: var(--green); border-radius: var(--r-md); padding: 12px; margin-bottom: 10px; }
.mini-progress-label { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; }
.mini-progress-track { background: rgba(255,255,255,0.2); border-radius: 100px; height: 6px; }
.mini-progress-fill { height: 100%; border-radius: 100px; background: #fff; }
.mini-progress-sub { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.mini-list { display: flex; flex-direction: column; gap: 5px; }
.mini-list-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink); padding: 6px 8px; background: var(--sand); border-radius: var(--r-sm); }

/* ─── How It Works ───────────────────────────────────────── */
.how-section { background: var(--ink-2); }
.how-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.how-connector { position: absolute; top: 36px; left: 10%; right: 10%; height: 1px; background: rgba(255,255,255,0.08); }
.how-step { padding: 0 20px; }
.how-step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(19,166,104,0.12); border: 1px solid rgba(19,166,104,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--green-mid);
  margin-bottom: 24px; position: relative; z-index: 1;
}
.how-step-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.how-step-desc  { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; }

/* ─── GitHub Card ────────────────────────────────────────── */
.github-card { background: var(--ink-2); border-radius: var(--r-xl); padding: 28px; border: 1px solid rgba(255,255,255,0.07); }
.github-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.github-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.08); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.github-repo-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; }
.github-repo-sub  { font-size: 12px; color: rgba(255,255,255,0.4); }
.github-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.github-stat { background: rgba(255,255,255,0.05); border-radius: var(--r-md); padding: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.06); }
.github-stat-val { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff; }
.github-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.github-star-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; background: rgba(255,255,255,0.07); border-radius: var(--r-md);
  color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s;
}
.github-star-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ─── Pricing Preview ────────────────────────────────────── */
.pricing-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pricing-preview-card { border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--border); background: var(--white); position: relative; }
.pricing-preview-featured { background: var(--green); border-color: var(--green); }
.pricing-name  { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.pricing-preview-featured .pricing-name { color: #fff; }
.pricing-price { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--ink); line-height: 1; margin-top: 4px; }
.pricing-price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.pricing-preview-featured .pricing-price { color: #fff; }
.pricing-preview-featured .pricing-price span { color: rgba(255,255,255,0.6); }

/* ─── Newsletter ─────────────────────────────────────────── */
.newsletter-section { background: var(--sand); padding: 48px 0; }
.newsletter-box {
  background: var(--green); border-radius: var(--r-2xl); padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-input { width: 280px; background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #fff; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.6); box-shadow: none; background: rgba(255,255,255,0.2); }

/* ─── CTA Final ──────────────────────────────────────────── */
.cta-final-section { background: var(--green); padding: 96px 0; }

/* ─── Footer social btn ──────────────────────────────────── */
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 13px; transition: all .2s;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .bento-wide, .bento-narrow, .bento-full { grid-column: span 2; }
  .bento-full { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .pricing-preview { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .newsletter-box { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; }
}
@media (max-width: 768px) {
  .hero-content { padding-bottom: 60px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 16px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-narrow, .bento-full { grid-column: span 1; }
  .how-steps { grid-template-columns: 1fr; }
  .pricing-preview { max-width: 100%; }
}

/* ─── App Showcase ───────────────────────────────────────── */
.app-showcase { background: var(--sand); }
.showcase-logo {
  width: 60px; height: 60px; border-radius: 16px; background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; box-shadow: var(--shadow-md);
}
.showcase-logo svg { width: 38px; height: 38px; }
.phone-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 44px; flex-wrap: wrap;
}
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone-fig .app-shot {
  width: 234px; height: auto;
  filter: drop-shadow(0 24px 42px rgba(20,40,30,0.20));
}
.phone-fig-lift { margin-bottom: 30px; }
.phone-cap {
  margin-top: 18px; font-size: 13px; color: var(--muted); font-weight: 500;
}
@media (max-width: 768px) {
  .phone-row { gap: 24px; }
  .phone-fig .app-shot { width: 62%; }
  .phone-fig-lift { margin-bottom: 0; }
}
