/* ==========================================================================
   HealthCapsule - Brand / Sales Page
   Paleta derivada da logo: verde-esmeralda da capsula + verde folha + branco.
   ========================================================================== */

:root {
  --brand: #0bb07b;
  --brand-deep: #0c8450;
  --brand-dark: #067a58;
  --brand-light: #7ce0bb;
  --brand-tint: #e9faf3;
  --ink: #14231d;
  --ink-soft: #4a635a;
  --muted: #7d938a;
  --line: #dcece5;
  --bg: #f4faf7;
  --card: #ffffff;
  --amber: #f0a91b;
  --shadow-sm: 0 2px 8px rgba(11, 140, 100, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 140, 100, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 140, 100, 0.16);
  --radius: 20px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.9vw, 2.6rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.02rem, 1.9vw, 1.22rem); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-tint);
  padding: 7px 15px; border-radius: 999px; border: 1px solid #cbeddd;
}

.section { padding: clamp(58px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { margin: 16px 0 14px; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 17px 34px; border-radius: 14px; border: none;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; box-shadow: 0 10px 26px rgba(11, 176, 123, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 176, 123, 0.42); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--brand-deep); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-light); }
.btn-lg { font-size: 1.12rem; padding: 20px 42px; }
.btn-block { width: 100%; }

.btn-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 250, 247, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand-logo { height: 38px; width: auto; }
.header-cta { display: inline-flex; align-items: center; gap: 16px; }
.header-price { font-weight: 800; color: var(--brand-deep); font-size: 0.98rem; white-space: nowrap; }
.header-cta .btn { padding: 12px 24px; font-size: 0.96rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(46px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 30% -30%;
  background: radial-gradient(closest-side, rgba(124, 224, 187, 0.34), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -20%; right: -22%; width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(closest-side, rgba(11, 176, 123, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero h1 { margin: 20px 0 18px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-points { margin-top: 30px; display: grid; gap: 12px; }
.hero-points li { list-style: none; display: flex; align-items: flex-start; gap: 11px; font-size: 0.99rem; color: var(--ink-soft); }
.hero-points svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }

/* ---------- Mockup do telefone (screenshot real do app) ---------- */
.phone-stage { display: flex; justify-content: center; }
/* O frame acompanha a largura da imagem: os badges ancoram nas bordas dela. */
.mockup-frame { position: relative; width: 100%; max-width: 340px; }
.mockup-img {
  width: 100%; height: auto;
  filter: drop-shadow(0 26px 50px rgba(11, 140, 100, 0.24));
}

.float-badge {
  position: absolute; background: #fff; border-radius: 15px; padding: 11px 15px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; z-index: 3;
}
.float-badge .fb-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-badge b { display: block; font-size: 0.9rem; line-height: 1.2; }
.float-badge span { font-size: 0.7rem; color: var(--muted); }
.fb-1 { top: 13%; left: -8%; }
.fb-2 { bottom: 15%; right: -8%; }

@media (max-width: 899px) {
  .float-badge { position: static; margin: 12px auto 0; max-width: 250px; }
  .mockup-frame { display: flex; flex-direction: column; align-items: center; max-width: 300px; }
  .mockup-img { order: -1; }
}

/* ---------- Faixa de credibilidade ---------- */
.strip { background: var(--ink); color: #cfe6dc; padding: 26px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; text-align: center; }
.strip b { display: block; color: #fff; font-size: 1.42rem; font-weight: 800; letter-spacing: -0.02em; }
.strip span { font-size: 0.82rem; opacity: 0.78; }

/* ---------- Problema ---------- */
.problem { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pain {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.pain .pain-ic {
  width: 42px; height: 42px; border-radius: 12px; background: #fff5e8; color: var(--amber);
  display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--ink-soft); font-size: 0.96rem; }

.bridge { margin-top: 40px; text-align: center; max-width: 640px; margin-inline: auto; }
.bridge p { font-size: clamp(1.06rem, 2.1vw, 1.3rem); font-weight: 600; color: var(--ink); }
.bridge .accent { color: var(--brand-deep); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-light); }
.feature-ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 17px;
  background: linear-gradient(140deg, var(--brand-tint), #d3f2e5);
  color: var(--brand-deep); display: flex; align-items: center; justify-content: center;
}
.feature h3 { margin-bottom: 9px; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Blocos alternados com mascote ---------- */
.showcase { display: grid; gap: clamp(30px, 5vw, 60px); align-items: center; }
.showcase + .showcase { margin-top: clamp(56px, 8vw, 96px); }
.showcase-art {
  position: relative; display: flex; justify-content: center; align-items: center;
  background: linear-gradient(150deg, var(--brand-tint), #ffffff);
  border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow-sm);
}
.showcase-art img { max-height: 290px; width: auto; filter: drop-shadow(0 16px 26px rgba(11, 140, 100, 0.18)); }

/* Prato com as etiquetas de macros que o scan devolve */
.plate-art { padding: 52px 30px; }
.plate-art .plate { max-height: 270px; border-radius: 50%; }
.scan-tag {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; color: var(--ink-soft);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.scan-tag b { color: var(--ink); font-weight: 800; }
.st-1 { top: 8%; right: 6%; }
.st-2 { top: 34%; left: 2%; }
.st-3 { bottom: 26%; right: 2%; }
.st-4 { bottom: 7%; left: 9%; }

@media (max-width: 460px) {
  .plate-art { padding: 44px 16px; }
  .scan-tag { font-size: 0.72rem; padding: 6px 11px; }
  .st-2 { left: -1%; } .st-3 { right: -1%; }
}
.showcase h2 { margin: 15px 0 14px; }
.showcase p { color: var(--ink-soft); }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 0.99rem; }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 26px 28px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -19px; left: 26px;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.06rem; box-shadow: 0 7px 16px rgba(11, 176, 123, 0.32);
}
.step h3 { margin: 10px 0 9px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Preco ---------- */
.pricing { background: linear-gradient(170deg, #0f2a22 0%, #0a3d2e 100%); color: #fff; }
.pricing .section-head h2 { color: #fff; }
.pricing .section-head .lead { color: #b9dccf; }
.pricing .eyebrow { background: rgba(255, 255, 255, 0.1); color: #8fe8c4; border-color: rgba(143, 232, 196, 0.3); }

.price-card {
  max-width: 560px; margin: 0 auto; background: #fff; color: var(--ink);
  border-radius: 26px; padding: clamp(30px, 4vw, 46px); box-shadow: var(--shadow-lg);
  text-align: center; position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-deep));
}
.price-tag { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 8px 0 6px; }
.price-tag .cur { font-size: 1.7rem; font-weight: 700; color: var(--brand-deep); margin-top: 10px; }
.price-tag .amt { font-size: clamp(3.5rem, 9vw, 4.7rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price-once {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-tint); color: var(--brand-deep); border: 1px solid #c2ead9;
  font-weight: 700; font-size: 0.92rem; padding: 9px 18px; border-radius: 999px; margin-bottom: 26px;
}
.includes { text-align: left; display: grid; gap: 13px; margin: 0 auto 30px; max-width: 400px; }
.includes li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 0.99rem; }
.includes svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.pay-note { margin-top: 18px; font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 13px; }
.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 24px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-weight: 700; font-size: 1.03rem; display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 2.4px solid var(--brand); border-bottom: 2.4px solid var(--brand);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq p { padding: 0 0 22px; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; }
.final-cta .cta-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(38px, 6vw, 66px) clamp(24px, 4vw, 54px); box-shadow: var(--shadow-md);
  max-width: 760px; margin: 0 auto;
}
.final-cta img.mark { width: 74px; margin: 0 auto 22px; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta .lead { margin-bottom: 32px; }

/* ---------- Rodape ---------- */
.site-footer { background: var(--ink); color: #a9c4b9; padding: 54px 0 40px; font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .flogo { height: 34px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; font-weight: 700; }
.site-footer a { color: #8fe8c4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.support-mail { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.disclaimer { max-width: 760px; font-size: 0.8rem; line-height: 1.6; opacity: 0.72; margin-top: 18px; }

/* ---------- Barra fixa (mobile) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 -6px 22px rgba(11, 140, 100, 0.09);
}
.sticky-buy .sb-price b { display: block; font-size: 1.16rem; font-weight: 800; line-height: 1.1; }
.sticky-buy .sb-price span { font-size: 0.71rem; color: var(--muted); }
.sticky-buy .btn { flex: 1; padding: 14px 20px; font-size: 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 899px) {
  .header-price { display: none; }
  body { padding-bottom: 84px; }
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.06fr 0.94fr; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase.reverse .showcase-art { order: 2; }
  .sticky-buy { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
