/* Landing page do MedSala (medsala.site). Mesma identidade do app: verde-escuro, ECG, Bricolage + Atkinson. */
:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #e9efec;
  --text: #12201c;
  --muted: #55665f;
  --border: #d7e0dc;
  --primary: #0b7a62;
  --primary-hover: #096651;
  --primary-soft: #dcefe8;
  --escuro: #0f1e1a;
  --escuro-2: #16302a;
  --claro-fg: #c9d8d2;
  --menta: #3fcfa8;
  --cm: #2563eb;
  --cir: #d0302b;
  --ped: #15803d;
  --go: #b123c4;
  --prev: #c26a05;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --raio: 18px;
  --sombra: 0 1px 2px rgb(15 30 26 / 6%), 0 18px 40px -18px rgb(15 30 26 / 28%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1311;
    --surface: #121c19;
    --surface-2: #19261f;
    --text: #e2ebe7;
    --muted: #93a7a0;
    --border: #24352f;
    --primary: #3fcfa8;
    --primary-hover: #5fdcb9;
    --primary-soft: #143329;
    --escuro: #08100e;
    --escuro-2: #10201b;
    --cm: #7aa7ff;
    --cir: #ff8a80;
    --ped: #5fd28a;
    --go: #e88af2;
    --prev: #f5b04c;
    --sombra: 0 1px 2px rgb(0 0 0 / 30%), 0 18px 40px -18px rgb(0 0 0 / 70%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.25rem; }
.largura { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .largura { padding: 0 32px; } }
.estreito { max-width: 820px; }
.pular { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 0.5rem 1rem; border-radius: 8px; z-index: 50; }
.pular:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.grande { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
.btn.primario { background: var(--menta); color: #05231b; }
.btn.primario:hover { background: #63ddb9; }
.btn.claro { color: #fff; border-color: rgb(255 255 255 / 35%); }
.btn.claro:hover { border-color: #fff; }
.btn.fantasma { color: #fff; }
.btn.fantasma:hover { background: rgb(255 255 255 / 10%); }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgb(15 30 26 / 92%); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(255 255 255 / 8%); }
@media (prefers-color-scheme: dark) { .topo { background: rgb(8 16 14 / 92%); } }
.topo-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.logo span { color: var(--menta); }
.topo-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.topo-nav a { color: var(--claro-fg); text-decoration: none; font-size: 0.95rem; }
.topo-nav a:hover { color: #fff; }
.topo-acoes { display: flex; gap: 0.5rem; }
@media (max-width: 860px) {
  .topo-nav { display: none; }
  .topo-acoes { margin-left: auto; }
  .so-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--escuro); color: var(--claro-fg); padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 30rem at 85% 10%, rgb(63 207 168 / 14%), transparent 60%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.selo { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--menta); margin: 0 0 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--menta); }
.ecg { width: min(320px, 70%); height: 28px; color: var(--menta); margin: 1.2rem 0 0.4rem; }
.ecg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ecg 2.2s ease-out 0.3s forwards; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
.hero-sub { font-size: 1.15rem; max-width: 34rem; margin: 0.8rem 0 1.8rem; }
.hero-sub strong { color: #fff; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-nota { font-size: 0.9rem; color: #8fa59d; margin: 1rem 0 0; }
.hero-tela { margin: 0; position: relative; padding-bottom: 2rem; }
.hero-tela .janela { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero-celular { position: absolute; right: -12px; bottom: 0; width: 26%; min-width: 120px; border-radius: 22px; border: 6px solid #22332e; box-shadow: 0 24px 48px -16px rgb(0 0 0 / 70%); }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-tela .janela { transform: none; }
  .hero-celular { right: 4px; width: 28%; }
}

/* Moldura de navegador nas capturas de tela */
.janela { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--border); }
.hero .janela { border-color: #22332e; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 70%); }
.janela-barra { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1b2a26; }
.janela-barra i { width: 10px; height: 10px; border-radius: 50%; background: #3a4c46; }
.janela-barra span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: #8fa59d; background: #0f1e1a; padding: 2px 10px; border-radius: 6px; }

/* ---------- Faixa das áreas ---------- */
.areas { background: var(--surface); border-bottom: 1px solid var(--border); }
.areas-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.area { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--c); font-size: 0.98rem; }
.area::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--c); }

/* ---------- Seções ---------- */
.secao { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sobretitulo { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin: 0 0 0.7rem; }

.passos { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: passo; }
.passos li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); padding: 1.5rem; }
.passos .num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-family: var(--font-mono); font-weight: 700; margin-bottom: 1rem; }
.passos p { color: var(--muted); margin: 0.5rem 0 0; }
@media (max-width: 800px) { .passos { grid-template-columns: 1fr; } }

.recursos { background: var(--surface-2); }
.recurso { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 7vw, 5rem); }
.recurso.invertido { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.recurso.invertido .recurso-texto { order: 2; }
.recurso-texto p { color: var(--muted); margin: 0.75rem 0 0; }
.recurso h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
@media (max-width: 860px) {
  .recurso, .recurso.invertido { grid-template-columns: 1fr; }
  .recurso.invertido .recurso-texto { order: 0; }
}
.lista { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.lista li { position: relative; padding-left: 1.7rem; }
.lista li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b7a62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }

.extras { list-style: none; padding: 0; margin: clamp(3rem, 7vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.extras li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); padding: 1.3rem 1.4rem; }
.extras h3 { font-size: 1.08rem; }
.extras p { color: var(--muted); margin: 0.4rem 0 0; font-size: 0.97rem; }
@media (max-width: 900px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }

.privacidade-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.5rem, 5vw, 3rem); }
@media (max-width: 800px) { .privacidade-in { grid-template-columns: 1fr; } }
.privacidade .largura { padding-left: 16px; padding-right: 16px; }

details { border-bottom: 1px solid var(--border); padding: 0.2rem 0; }
details:first-of-type { margin-top: 2rem; border-top: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 1rem 2.5rem 1rem 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--primary); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 1.1rem; max-width: 65ch; }

.cta-final { background: var(--escuro); padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 20rem at 50% 120%, rgb(63 207 168 / 20%), transparent 70%); }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.cta-final h2 { color: #fff; max-width: 20ch; }

.rodape { background: var(--escuro); border-top: 1px solid rgb(255 255 255 / 8%); color: #8fa59d; padding: 2rem 0; font-size: 0.92rem; }
.rodape-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.rodape nav a { color: var(--claro-fg); text-decoration: none; }
.rodape nav a:hover { color: #fff; text-decoration: underline; }
.rodape p { margin: 0; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ecg path { animation: none; stroke-dashoffset: 0; }
  .btn:hover { transform: none; }
}
