:root {
  --bg: #071321;
  --bg-2: #0a1b2d;
  --surface: rgba(15, 34, 54, 0.82);
  --surface-solid: #0f2236;
  --surface-2: #122a42;
  --text: #eef7fb;
  --muted: #8fa8b9;
  --line: rgba(154, 198, 222, 0.15);
  --primary: #e63946;
  --primary-2: #2f6fe0;
  --primary-soft: rgba(230, 57, 70, 0.14);
  --danger: #ff7b7b;
  --warn: #ffc861;
  --ok: #59dfa5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

html[data-theme="light"] {
  --bg: #f2f7fa;
  --bg-2: #eaf2f6;
  --surface: rgba(255,255,255,.88);
  --surface-solid: #ffffff;
  --surface-2: #f5fafc;
  --text: #11283a;
  --muted: #617988;
  --line: rgba(16, 56, 79, 0.12);
  --primary: #c8202f;
  --primary-2: #1e5bc6;
  --primary-soft: rgba(200, 32, 47, 0.10);
  --shadow: 0 24px 70px rgba(51, 83, 100, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(198, 40, 52, .13), transparent 34%),
    radial-gradient(circle at 83% 23%, rgba(41, 98, 200, .14), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background .2s ease, color .2s ease;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.bg-orb { position: fixed; width: 360px; height: 360px; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; z-index: -1; }
.bg-orb-a { background: var(--primary); left: -160px; top: 18%; }
.bg-orb-b { background: var(--primary-2); right: -180px; top: 45%; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.brand > span:last-child > span { color: var(--primary); }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(230,57,70,.32); border-radius: 11px; background: var(--primary-soft); }
.brand-mark svg { width: 21px; fill: var(--primary); }
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; }
.brand-mark.small svg { width: 18px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(230,57,70,.32); background: var(--primary-soft); flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-logo.small { width: 32px; height: 32px; border-radius: 9px; }
.header-nav { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
.header-nav a:hover { color: var(--text); }
.theme-toggle { justify-self: end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: var(--surface); cursor: pointer; }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 72px; align-items: center; padding: 92px 0 72px; }
.eyebrow, .kicker { color: var(--primary); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--primary-soft); border: 1px solid rgba(230,57,70,.18); border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(230,57,70,.08); }
.hero h1 { margin: 22px 0 22px; max-width: 760px; font-size: clamp(48px, 6.5vw, 82px); line-height: .98; letter-spacing: -.06em; }
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 620px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 750; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff5f5; background: linear-gradient(135deg, var(--primary), #ff6f61); box-shadow: 0 12px 30px rgba(230, 57, 70, .15); }
.button-ghost { color: var(--text); background: var(--surface); border-color: var(--line); }
.button-full { width: 100%; }
.microcopy { margin-top: 18px; font-size: 12px !important; }

.hero-preview { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(20,51,76,.95), rgba(10,27,45,.88)); box-shadow: var(--shadow); padding: 28px; }
html[data-theme="light"] .hero-preview { background: linear-gradient(145deg, #fff, #f1f8fb); }
.hero-preview::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(230,57,70,.08), transparent 36%); pointer-events: none; }
.preview-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.preview-top > div { display: grid; gap: 4px; }
.preview-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(89,223,165,.2); color: var(--ok); font-size: 11px; background: rgba(89,223,165,.08); }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.preview-main { padding: 34px 0 28px; text-align: center; }
.preview-result { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 5px 0 -5px; }
.preview-result strong { font-size: 78px; line-height: 1; letter-spacing: -.06em; }
.preview-result span { color: var(--primary); font-size: 26px; font-weight: 800; }
.preview-sub { color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.preview-grid > div { display: grid; gap: 3px; padding: 16px; background: rgba(255,255,255,.02); }
.preview-grid > div + div { border-left: 1px solid var(--line); }
.preview-grid span { color: var(--muted); font-size: 12px; }
.preview-grid strong { font-size: 17px; }
.preview-status { margin-top: 14px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.preview-status span { color: var(--ok); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip > div { padding: 22px 16px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip strong { color: var(--primary); }
.trust-strip span { color: var(--muted); font-size: 12px; }

.calculator-section, .how-section, .faq-section { padding: 100px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 34px; }
.section-heading.centered { justify-content: center; text-align: center; }
.section-heading h2, .formula-card h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.04; }
.section-heading p { margin: 10px 0 0; color: var(--muted); }
.text-button { color: var(--muted); border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.text-button:hover { color: var(--text); }

.calculator-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 22px; align-items: start; }
.calc-card, .result-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.calc-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > label, .label-row label { font-size: 13px; font-weight: 750; }
.optional, .hint { color: var(--muted); font-size: 11px; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
input, select { width: 100%; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); outline: 0; }
input { height: 52px; padding: 0 14px; border-radius: 12px; }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, select:focus { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 0 0 4px var(--primary-soft); }
.input-unit { display: grid; grid-template-columns: 1fr auto; align-items: center; position: relative; }
.input-unit input { padding-right: 58px; grid-column: 1 / -1; grid-row: 1; }
.input-unit span { grid-column: 2; grid-row: 1; padding-right: 14px; color: var(--muted); font-size: 13px; font-weight: 750; pointer-events: none; }
.compound-input { display: grid; grid-template-columns: 1fr 94px; }
.compound-input input { border-radius: 12px 0 0 12px; border-right: 0; }
.compound-input select { border-radius: 0 12px 12px 0; padding: 0 12px; cursor: pointer; }
.field-help { margin: 0; color: var(--muted); font-size: 11px; }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.segmented button, .quick-water button { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 750; }
.segmented button { height: 44px; }
.segmented button:hover, .segmented button.is-active { color: var(--text); border-color: rgba(230,57,70,.42); background: var(--primary-soft); }
.quick-water { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quick-water > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.quick-water > div { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-water button { padding: 8px 10px; font-size: 12px; }
.quick-water button:hover { color: var(--text); border-color: rgba(230,57,70,.32); }
.form-actions { margin-top: 24px; }

.result-card { padding: 28px; position: sticky; top: 20px; }
.result-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.result-head h3 { margin: 7px 0 0; font-size: 18px; }
.copy-button { border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); border-radius: 10px; height: 38px; padding: 0 12px; cursor: pointer; font-size: 12px; font-weight: 750; }
.copy-button:disabled { opacity: .4; cursor: default; }
.main-result { text-align: center; padding: 35px 0 22px; }
.main-result > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.main-number { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 5px; }
.main-number strong { font-size: clamp(64px, 8vw, 92px); line-height: 1; letter-spacing: -.07em; }
.main-number em { font-style: normal; color: var(--primary); font-size: 28px; font-weight: 800; }
.main-result p { margin: 2px 0 0; color: var(--muted); }

.syringe-wrap { padding: 8px 2px 26px; }
.syringe { height: 40px; display: grid; grid-template-columns: 8px 1fr 34px 78px; align-items: center; }
.syringe-cap { height: 20px; border-radius: 4px 0 0 4px; background: var(--muted); opacity: .35; }
.syringe-barrel { height: 30px; position: relative; overflow: hidden; border: 2px solid rgba(152, 184, 201, .38); border-radius: 5px; background: rgba(255,255,255,.04); }
.syringe-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, rgba(230,57,70,.18), rgba(230,57,70,.6)); transition: width .25s ease; }
.syringe-ticks { position: absolute; inset: 3px 7px; background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(152,184,201,.32) 9% 9.7%, transparent 9.7% 10%); }
.syringe-plunger { height: 16px; border-top: 2px solid rgba(152,184,201,.4); border-bottom: 2px solid rgba(152,184,201,.4); }
.syringe-needle { height: 2px; background: linear-gradient(90deg, rgba(152,184,201,.6), transparent); }
.syringe-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 4px; padding-right: 112px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.metric { padding: 16px; min-height: 90px; display: grid; align-content: center; }
.metric:nth-child(odd) { border-right: 1px solid var(--line); }
.metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { margin-top: 4px; font-size: 20px; }
.metric small { color: var(--muted); font-size: 10px; }
.status-box { margin-top: 14px; display: flex; gap: 10px; align-items: start; padding: 13px 14px; border-radius: 12px; font-size: 12px; }
.status-box p { margin: 0; }
.status-box.neutral { border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
.status-box.ok { color: var(--ok); border: 1px solid rgba(89,223,165,.2); background: rgba(89,223,165,.07); }
.status-box.warn { color: var(--warn); border: 1px solid rgba(255,200,97,.2); background: rgba(255,200,97,.07); }
.status-box.danger { color: var(--danger); border: 1px solid rgba(255,123,123,.2); background: rgba(255,123,123,.07); }
.status-icon { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-weight: 800; }

.how-section { padding-top: 110px; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.step-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-weight: 900; }
.step-card h3 { margin: 40px 0 8px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; }
.accent-card { border-color: rgba(230,57,70,.25); background: linear-gradient(150deg, var(--primary-soft), var(--surface)); }

.formula-section { padding: 0 0 70px; }
.formula-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), var(--primary-soft)); }
.formula-card p { color: var(--muted); max-width: 520px; }
.formula-stack { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.formula-stack > div { padding: 15px 17px; display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; }
.formula-stack > div + div { border-top: 1px solid var(--line); }
.formula-stack span { color: var(--muted); font-size: 11px; }
.formula-stack code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: var(--text); font-size: 12px; }

.faq-section { padding-top: 80px; }
.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 750; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--primary); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--muted); margin: 0; padding: 0 4px 22px; font-size: 14px; }

.notice-section { padding: 10px 0 80px; }
.notice-card { display: flex; align-items: start; gap: 16px; padding: 22px; border: 1px solid rgba(255,200,97,.18); border-radius: var(--radius-md); background: rgba(255,200,97,.055); }
.notice-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,200,97,.5); border-radius: 50%; color: var(--warn); font-weight: 900; }
.notice-card p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }
.site-footer { min-height: 120px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand > div { display: grid; }
.footer-brand span { color: var(--muted); font-size: 11px; }
.footer-copy { color: var(--muted); font-size: 11px; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 70px; }
  .hero-preview { max-width: 640px; width: 100%; }
  .calculator-layout { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .formula-card { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .shell, .site-header { width: min(calc(100% - 24px), var(--max)); }
  .site-header { height: 72px; }
  .hero { padding: 58px 0 56px; min-height: auto; }
  .hero h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-preview, .calc-card, .result-card { padding: 20px; border-radius: 22px; }
  .preview-result strong { font-size: 66px; }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .trust-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .calculator-section, .how-section, .faq-section { padding: 74px 0; }
  .section-heading { align-items: start; }
  .section-heading:not(.centered) { display: grid; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .syringe { grid-template-columns: 8px 1fr 24px 46px; }
  .syringe-scale { padding-right: 70px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 180px; }
  .step-card h3 { margin-top: 28px; }
  .formula-card { padding: 24px; }
  .formula-stack > div { grid-template-columns: 1fr; gap: 5px; }
  .site-footer { align-items: start; flex-direction: column; justify-content: center; }
}

.select-full select { height: 52px; padding: 0 14px; border-radius: 12px; cursor: pointer; }

/* WhatsApp */
.whats-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #052b14;
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whats-fab svg { width: 32px; height: 32px; fill: #ffffff; }
.whats-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 40px rgba(37,211,102,.34); }
.footer-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.footer-whats { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #25d366; }
.footer-whats:hover { text-decoration: underline; }
@media (max-width: 520px) { .whats-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; } .whats-fab svg { width: 28px; height: 28px; } }

/* Top nav CTA */
.nav-cta {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff5f5 !important;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, var(--primary), #ff6f61);
  box-shadow: 0 10px 24px rgba(230, 57, 70, .18);
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.06); }
@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .header-nav { display: flex; justify-content: flex-end; }
  .header-nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .nav-cta { font-size: 11px; padding: 7px 10px; white-space: normal; text-align: center; line-height: 1.15; }
}

/* Protocolos PDF */
.protocolos-section { padding: 20px 0 40px; scroll-margin-top: 100px; }
.protocolos-card {
  display: grid; grid-template-columns: 1.55fr .95fr; gap: 26px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.protocolos-banner { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.protocolos-cta { display: grid; gap: 20px; }
.protocolos-cta h2 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.06; }
.protocolos-cta p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.protocolos-cta .button-primary { background: linear-gradient(135deg, #25d366, #12a150); color: #04240f; }
.wa-icon { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 960px) { .protocolos-card { grid-template-columns: 1fr; } }
.price-block { margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(230,57,70,.28); border-radius: var(--radius-sm); background: var(--primary-soft); }
.price-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--primary); color: #fff5f5; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; }
.price-row strong { font-size: clamp(34px, 5vw, 46px); line-height: 1; letter-spacing: -.05em; color: var(--primary); }
.price-row span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.price-block small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
