/* Tema "farmácia & clínica": azul-marinho, verde-água hospitalar, branco limpo e um toque coral */
:root {
  --navy: #0b2545; --deep: #13497a; --primary: #0f8b8d; --accent: #2ec4b6; --soft: #e8f7f6;
  --coral: #ef476f; --bg: #f5f9fb; --ink: #10243a; --muted: #5b6b7c; --line: #dbe7ee;
  --radius: 18px; --shadow: 0 14px 40px -20px rgba(11, 37, 69, 0.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
a { color: var(--primary); }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; }
.brand span { line-height: 1.1; }
.brand small { font: 600 12px 'Inter', sans-serif; color: var(--primary); letter-spacing: 0.3px; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar nav a:hover { color: var(--primary); }

.hero { position: relative; overflow: hidden; color: #fff; padding: 88px 24px 120px;
  background: radial-gradient(900px 480px at 85% -10%, rgba(46, 196, 182, 0.55) 0%, transparent 60%),
    linear-gradient(155deg, var(--deep), var(--navy)); }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -110px; width: 520px; height: 440px;
  background: url('deco.svg') no-repeat center / contain; opacity: 0.12; transform: rotate(-10deg); }
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(46, 196, 182, 0.18); color: #9ff0e6; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 760px; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { max-width: 620px; color: #d3e4f2; font-size: 1.12rem; margin: 0 0 28px; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--accent), #7ee6d9); color: var(--navy); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(46, 196, 182, 0.8); cursor: pointer; font-size: 1rem; }
.cta:hover { transform: translateY(-1px); }
.cta.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); box-shadow: none; margin-left: 6px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #b5cde2; font-size: 14px; }

main { max-width: 1080px; margin: -70px auto 0; padding: 0 24px 64px; position: relative; z-index: 2; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 0; margin: 0 0 40px;
  list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); font-weight: 600; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px;
  border-radius: 10px; background: var(--soft); color: var(--primary); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; }

.panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .panel { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.card .hint { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
form.card { display: grid; gap: 12px; border-top: 4px solid var(--primary); }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f9fcfd; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.btn { font: inherit; font-weight: 700; padding: 13px 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--deep)); color: #fff; }
.btn:hover { filter: brightness(1.08); }
.price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--primary); }

.track h3 { font-size: 1.1rem; margin-bottom: 10px; }
#log { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
#log li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
#log li::before { content: '✚'; color: var(--primary); font-weight: 800; }
#log li.err { background: #fdecef; } #log li.err::before { content: '⚠️'; }
#log:empty::after { content: 'O andamento aparece aqui em tempo real.'; color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 36px; }
.product { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer;
  box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; display: flex; flex-direction: column; gap: 6px; }
.product .price { margin-top: auto; }
.product:hover { transform: translateY(-2px); }
.product.on { border-color: var(--primary); outline: 3px solid rgba(46, 196, 182, 0.35); }
.product .box { position: relative; height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, #f1fbfa, #dff1f5); overflow: hidden; }
.product .box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--primary); }
.product .cat { font-size: 11px; font-weight: 700; color: var(--deep); text-transform: uppercase; letter-spacing: 0.6px; }
.product p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.product small { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.rx-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--coral); padding: 2px 9px;
  border-radius: 999px; width: fit-content; }

footer { background: var(--navy); color: #9fb3c8; text-align: center; padding: 28px 16px; font-size: 13px; }
footer a { color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; }
