/* ============================================================
   Medix Health — Home (storefront)
   Identidade visual: navy escuro, painéis em papel quente,
   acento âmbar.
   ============================================================ */

:root {
  --ink: #e8efe6;
  --muted: #b7c4b4;
  --dim: #7e8d7c;
  --night: #141c28;
  --night-2: #1d2838;
  --panel: #f4f1ea;
  --paper: #fffdf8;
  --lamp: #e2a23a;
  --lamp-2: #8a5a12;
  --line: #d9d2c4;
  --text: #1c241c;
  --text-2: #3d4a3e;
  --disp: "Roboto", "Segoe UI", Arial, sans-serif;
  --ui: "Roboto", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--panel);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }

.container { width: 92%; max-width: 1080px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; background: var(--lamp); color: var(--night); padding: 8px 14px; z-index: 1000; }

h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.15; }
section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lamp-2);
  margin-bottom: 10px;
}
.section-intro { color: var(--text-2); max-width: 720px; margin-bottom: 32px; }
.highlight { color: var(--lamp-2); }
.center { text-align: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--lamp);
  color: var(--night);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #eab456; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-ghost:hover { background: rgba(20, 28, 40, 0.06); }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--night);
  color: var(--ink);
  padding: 16px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--disp); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.logo-apex { color: var(--ink); }
.logo-neuro { color: var(--lamp); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 0.92rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-cta { padding: 9px 16px; background: var(--lamp); color: var(--night); font-weight: 600; font-size: 0.92rem; }
.header-cta:hover { background: #eab456; }

/* ---- Hero ---- */
.hero { background: var(--panel); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.badge-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lamp-2); margin-bottom: 14px; }
.hero-headline { font-size: clamp(2.2rem, 4.5vw, 3.1rem); line-height: 1.08; margin-bottom: 18px; }
.hero-headline em { font-style: normal; color: var(--lamp-2); }
.hero-sub { font-size: 1.08rem; color: #3a463c; margin-bottom: 22px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badges span { font-size: 0.78rem; color: var(--text-2); border: 1px solid var(--line); background: var(--paper); padding: 5px 10px; }
.hero-image { background: var(--paper); border-top: 4px solid var(--lamp); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; min-height: 320px; max-height: 440px; object-fit: cover; display: block; }
.hero-image--logo { display: flex; align-items: center; justify-content: center; padding: 36px; }
.hero-image--logo img { height: auto; min-height: 0; max-height: 300px; object-fit: contain; }

/* ---- Stats ---- */
.stats-bar { background: var(--night); color: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 22px 16px; text-align: center; border-left: 1px solid #ffffff22; }
.stat-item:first-child { border-left: 0; }
.stat-number { display: block; font-family: var(--disp); font-size: 1.8rem; font-weight: 700; color: var(--lamp); line-height: 1.1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---- Products (storefront) ---- */
.shop { padding: 56px 0; background: var(--panel); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lamp);
}
.product-media { background: var(--panel); border-bottom: 1px solid var(--line); padding: 28px; display: flex; justify-content: center; align-items: center; min-height: 240px; }
.product-media img { max-height: 210px; width: auto; }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp-2); margin-bottom: 8px; }
.product-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.product-card .product-lead { color: var(--text-2); font-size: 0.95rem; margin-bottom: 10px; }
.product-ing { font-size: 0.78rem; color: var(--dim); line-height: 1.5; margin-bottom: 16px; }
.product-ing strong { color: var(--text-2); }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.product-meta span { font-size: 0.78rem; border: 1px solid var(--line); padding: 4px 10px; color: var(--text-2); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-price { font-family: var(--disp); line-height: 1; }
.product-price strong { font-size: 2rem; font-weight: 700; }
.product-price small { display: block; font-family: var(--ui); font-size: 0.75rem; color: var(--text-2); letter-spacing: 0.04em; }
.product-foot .btn-primary { padding: 13px 20px; }

/* ---- Why (dark band) ---- */
.why { padding: 56px 0; background: var(--night); color: var(--ink); }
.why .section-eyebrow, .why .highlight { color: var(--lamp); }
.why .section-intro { color: var(--muted); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why-card { background: var(--paper); color: var(--text); padding: 20px 18px; }
.why-card img { height: 46px; width: auto; margin-bottom: 12px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why-card p { font-size: 0.85rem; color: var(--text-2); }

/* ---- Guarantee ---- */
.guarantee { padding: 56px 0; background: var(--panel); }
.guarantee-inner { display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center; background: var(--paper); border-top: 4px solid var(--lamp); padding: 32px; }
.seal { width: 120px; height: 120px; background: var(--night); color: var(--lamp); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--disp); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.seal small { font-family: var(--ui); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); margin-top: 6px; }
.guarantee-content h2 { margin-bottom: 10px; }
.guarantee-content p { color: var(--text-2); margin-bottom: 0; }

/* ---- Support / company ---- */
.support { padding: 56px 0 10px; background: var(--panel); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.support-card { background: var(--paper); border: 1px solid var(--line); padding: 22px 20px; }
.support-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.support-card p, .support-card li { font-size: 0.9rem; color: var(--text-2); }
.support-card a { color: var(--lamp-2); }
.support-card a:hover { text-decoration: underline; }
.support-card .rows { display: grid; gap: 4px; }
.support-card .rows strong { color: var(--text); font-weight: 600; }

/* ---- Footer (compliance — conteúdo preservado) ---- */
.footer { background: var(--night); color: var(--muted); padding: 40px 0 30px; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer .logo { font-size: 1.4rem; margin-bottom: 4px; }
.footer-line { font-size: 0.9rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 0; margin: 4px 0; border-top: 1px solid #ffffff22; border-bottom: 1px solid #ffffff22; }
.footer-links a { font-size: 0.86rem; color: var(--ink); }
.footer-links a:hover { color: var(--lamp); }
.footer-fine { font-size: 0.72rem; line-height: 1.6; color: var(--dim); }
.footer-fine strong { color: var(--muted); }
.footer-copy { font-size: 0.78rem; color: var(--dim); margin-top: 4px; }

/* ---- Simple fact row (home) ---- */
.facts { background: var(--night); color: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 20px 16px; text-align: center; border-left: 1px solid #ffffff22; }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--disp); font-size: 1.15rem; color: var(--lamp); line-height: 1.2; }
.fact span { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---- Inner page head ---- */
.page-head { background: var(--night); color: var(--ink); padding: 48px 0; }
.page-head .section-eyebrow { color: var(--lamp); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.page-head p { color: var(--muted); max-width: 740px; margin-top: 12px; }

/* ---- Readable document (About, etc.) ---- */
.page { padding: 48px 0; background: var(--panel); }
.doc { max-width: 780px; }
.doc h2 { font-size: 1.45rem; margin: 30px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p { color: var(--text-2); margin-bottom: 14px; }
.doc .bullets { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.doc .bullets li { margin-bottom: 7px; color: var(--text-2); }

/* ---- Product detail (Products page) ---- */
.pd { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--lamp); margin-bottom: 28px; }
.pd-inner { display: grid; grid-template-columns: 300px 1fr; }
.pd-media { background: var(--panel); border-right: 1px solid var(--line); padding: 28px; display: flex; align-items: center; justify-content: center; }
.pd-media img { max-height: 260px; width: auto; }
.pd-info { padding: 26px 30px 28px; }
.pd-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp-2); margin-bottom: 6px; }
.pd-info h2 { font-size: 1.8rem; margin-bottom: 8px; }
.pd-info > p { color: var(--text-2); margin-bottom: 4px; }
.pd-label { font-family: var(--ui); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lamp-2); margin: 18px 0 6px; }
.ing-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ing-list span { font-size: 0.8rem; border: 1px solid var(--line); padding: 4px 9px; color: var(--text-2); }
.pd-use { font-size: 0.92rem; color: var(--text-2); }
.pd-note { font-size: 0.82rem; color: var(--text-2); background: var(--panel); border-left: 3px solid var(--lamp); padding: 10px 14px; margin-top: 16px; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.pd-price { font-family: var(--disp); font-size: 1.5rem; font-weight: 700; }
.pd-price small { font-family: var(--ui); font-size: 0.78rem; font-weight: 400; color: var(--text-2); }

/* ---- Opt-out form (bound to slip.js) ---- */
.optgrid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 24px; align-items: start; }
.optform { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--lamp); padding: 24px; }
.optform h3 { font-size: 1.2rem; margin-bottom: 12px; }
.optform label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.optform .hint { display: block; font-size: 0.8rem; color: var(--text-2); margin-bottom: 8px; }
.optform .sl-in { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); margin-bottom: 16px; }
.optform .sl-in:focus { outline: 3px solid var(--lamp); outline-offset: 1px; }
.optform .sl-go { width: 100%; }
.optform .sl-call { margin-top: 12px; font-size: 0.9rem; min-height: 1em; }
.optform .sl-call.is-bad { color: #9b2c2c; }
.optform .sl-call.is-good { color: var(--lamp-2); }
.optform p { font-size: 0.82rem; color: var(--text-2); margin-top: 12px; }
.sl-served { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--lamp); padding: 24px; }
.sl-served h3 { font-size: 1.2rem; margin-bottom: 8px; }
.sl-served p { color: var(--text-2); font-size: 0.92rem; }

/* ---- Disclaimer strip ---- */
.disclaimer { background: var(--panel); padding: 0 0 48px; }
.disclaimer .box { background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; font-size: 0.82rem; color: var(--text-2); max-width: 900px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 0 34px; gap: 26px; }
  .hero-image { order: -1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .trust-badges { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: 0; }
  .stat-item:nth-child(n+3) { border-top: 1px solid #ffffff22; }
  .product-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .guarantee-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 20px; }
  .support-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid #ffffff22; }
  .pd-inner { grid-template-columns: 1fr; }
  .pd-media { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  section h2 { font-size: 1.6rem; }
}
