/* Layout: página editorial alinhada à esquerda; fundo de "placa de treino" milimetrada no topo,
   agenda de turmas em linhas (data grande à esquerda), páginas de curso com painel de inscrição fixo. */
:root {
  /* Tema único, claro e "hospitalar": fundo branco, faixas em cinza-gelo, azul-petróleo só em botões e detalhes. */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1b2d38;
  --muted: #536772;
  --line: #e1e8ea;
  --grid: rgba(25, 172, 182, .07);
  --accent: #08717a;
  --brand: #19acb6;
  --accent-ink: #ffffff;
  --accent-soft: #e6f5f6;
  --band: #f4f7f8;
  --band-ink: #1b2d38;
  --band-muted: #536772;
  --signal: #9a5b00;
  --signal-soft: #fbefd9;
  color-scheme: light;

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-1: clamp(2.9rem, 1.6rem + 4.6vw, 5.4rem);
  --s-2: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  --s-3: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  --s-4: 1.125rem;
  --s-5: 1rem;
  --s-6: .875rem;
  --s-7: .75rem;

  --wrap: 1180px;
  --r: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--s-5)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font: 500 var(--s-7)/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.display { font-family: var(--f-display); font-size: var(--s-2); line-height: 1.05; letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--accent); }
.lead { font-size: var(--s-4); color: var(--muted); max-width: 60ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--s-6)/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- topo ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; }
.brand span { display: grid; line-height: 1.1; min-width: 0; }
.brand small { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand b { font: 400 1.45rem/1 var(--f-display); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: var(--s-6); font-weight: 500; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav .btn { min-height: 44px; margin-left: 8px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
    font: 600 var(--s-6)/1 var(--f-body); cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav:not(.open) { display: none; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: var(--s-5); }
  .nav .btn { margin: 8px 0 0; min-height: 48px; }
}

/* ---------- hero (placa de treino milimetrada) ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--grid) 220%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--grid) 220%, transparent) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero .wrap { position: relative; display: grid; gap: 40px; padding-block: 56px 64px; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); align-items: end; padding-block: 84px 88px; } }
.hero h1 { font-family: var(--f-display); font-size: var(--s-1); line-height: .98; letter-spacing: -.02em; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.suture { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 70px; pointer-events: none; color: var(--brand); opacity: .55; }
.suture .thread { stroke-dasharray: 2400; stroke-dashoffset: 0; animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) both; }
.suture .knot { animation: pop .4s ease both; }
@keyframes draw { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .suture .thread, .suture .knot { animation: none; } }

.next {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; display: grid; gap: 16px; box-shadow: 0 18px 40px -28px rgba(15, 42, 59, .45);
}
.next-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.next-head .eyebrow { white-space: nowrap; }
.next h2 { font-family: var(--f-display); font-size: var(--s-3); line-height: 1.1; }
.next dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: var(--s-6); }
.next dt { color: var(--muted); font-family: var(--f-mono); font-size: var(--s-7); letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.next dd { margin: 0; font-weight: 500; }

.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-s="andamento"], .status[data-s="breve"] { background: var(--signal-soft); color: var(--signal); }
.status[data-s="encerrada"] { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ---------- faixa de provas ---------- */
.proofs { border-bottom: 1px solid var(--line); background: var(--surface); }
.proofs ul { display: grid; gap: 0; }
@media (min-width: 760px) { .proofs ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proofs li { padding-block: 22px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.proofs li:first-child { border-top: 0; }
@media (min-width: 760px) {
  .proofs li { border-top: 0; border-left: 1px solid var(--line); padding-inline: 24px; }
  .proofs li:first-child { border-left: 0; padding-left: 0; }
}
.proofs b { font-weight: 600; }
.proofs span { color: var(--muted); font-size: var(--s-6); }

/* ---------- seções ---------- */
.section { padding-block: 72px; }
@media (min-width: 980px) { .section { padding-block: 104px; } }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }
@media (min-width: 980px) { .section-head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; } }

/* ---------- agenda de turmas ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font: 500 var(--s-6)/1 var(--f-body); cursor: pointer;
}
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.agenda { border-top: 1px solid var(--ink); }
.row {
  display: grid; gap: 18px; padding-block: 30px; border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) { .row { grid-template-columns: 170px minmax(0, 1fr) 230px; gap: 36px; align-items: start; } }
.when { display: grid; gap: 4px; align-content: start; }
.when .d { font: 400 clamp(2.4rem, 2rem + 1.6vw, 3.3rem)/.9 var(--f-display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.when .m { font: 500 var(--s-7)/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.when .tbd { font: 400 1.6rem/1.05 var(--f-display); font-style: italic; color: var(--muted); }
.row .body { display: grid; gap: 12px; min-width: 0; }
.row .area { font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.row h3 { font: 400 var(--s-3)/1.1 var(--f-display); }
.row h3 a { text-decoration: none; }
.row h3 a:hover { color: var(--accent); }
.row p { color: var(--muted); max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: var(--s-7); font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.row .side { display: grid; gap: 12px; align-content: start; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: var(--s-6); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.row[hidden] { display: none; }

/* ---------- professor ---------- */
.prof { display: grid; gap: 40px; }
@media (min-width: 900px) { .prof { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; } }
.portrait {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r); position: relative; overflow: hidden;
  background: var(--band); color: var(--band-ink); display: grid; place-items: center;
}
.portrait::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 10px 10px, 10px 10px;
}
@media (max-width: 899px) { .portrait { aspect-ratio: 16 / 10; } }
.portrait .mono { position: relative; font: 400 clamp(5rem, 4rem + 5vw, 8rem)/1 var(--f-display); font-style: italic; }
.portrait figcaption { position: absolute; left: 18px; bottom: 16px; font: 500 var(--s-7)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
.prof .bio { display: grid; gap: 16px; color: var(--muted); max-width: 62ch; }
.prof-facts { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .prof-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prof-facts li { padding-block: 18px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .prof-facts li { border-bottom: 0; padding-right: 16px; } }
.prof-facts b { font: 400 2.2rem/1 var(--f-display); color: var(--accent); }
.prof-facts span { font-weight: 600; font-size: var(--s-6); }
.prof-facts small { color: var(--muted); font-size: var(--s-7); }

/* ---------- passos ---------- */
.band { background: var(--band); color: var(--band-ink); border-block: 1px solid var(--line); }
.band .eyebrow { color: var(--accent); }

.band .lead, .band p { color: var(--band-muted); }
.steps { display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 var(--s-6)/1 var(--f-mono); color: var(--accent); }
.steps b { font: 400 var(--s-3)/1.1 var(--f-display); color: var(--band-ink); }

/* ---------- centro ---------- */
.centro { display: grid; gap: 40px; }
@media (min-width: 940px) { .centro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.centro figure { margin: 0; display: grid; gap: 12px; }
.centro figure img { border-radius: var(--r); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); border: 1px dashed var(--line); background: var(--surface);
  display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: var(--s-7);
  font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.list-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.list-cols li { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--s-6); font-weight: 500; }
.stack { display: grid; gap: 28px; }
.stack h3 { font: 400 var(--s-3)/1.1 var(--f-display); margin-bottom: 10px; }
.stack p { color: var(--muted); }

/* ---------- novidades ---------- */
.soon { display: grid; gap: 28px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (min-width: 900px) { .soon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 44px; gap: 48px; } }
.soon ul { display: flex; flex-wrap: wrap; gap: 8px; }
.soon li { padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: var(--s-6); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding-block: 20px; font: 400 1.35rem/1.25 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--f-body); color: var(--accent); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 66ch; }

/* ---------- valores ---------- */
.values { display: flex; flex-wrap: wrap; gap: 10px 26px; font: 400 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--f-display); }
.values li { display: flex; align-items: center; gap: 26px; }
.values li:not(:last-child)::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- página de curso ---------- */
.course-hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.course-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 8px 8px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.course-hero .wrap { position: relative; padding-block: 40px 52px; display: grid; gap: 18px; }
.crumbs { font-size: var(--s-6); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.course-hero h1 { font: 400 var(--s-2)/1.04 var(--f-display); letter-spacing: -.015em; max-width: 22ch; }
.course-hero .lead { max-width: 64ch; }
.course { display: grid; gap: 48px; padding-block: 56px 96px; }
@media (min-width: 980px) { .course { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; } }
.course main { display: grid; gap: 56px; min-width: 0; }
.block { display: grid; gap: 18px; }
.block > h2 { font: 400 var(--s-3)/1.1 var(--f-display); }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308717a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; margin-top: 2px; }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; gap: 4px; padding-block: 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .kv div { grid-template-columns: 170px 1fr; gap: 20px; } }
.kv dt { color: var(--muted); font-size: var(--s-6); }
.kv dd { margin: 0; }

.prog { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .prog { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 0; } }
.prog li { padding: 18px 0; display: grid; gap: 4px; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 640px) {
  .prog li { padding: 22px 18px 0 0; border-bottom: 0; border-top: 2px solid var(--line); }
  .prog li:last-child { border-top-color: var(--accent); }
  .prog li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
}
.prog small { font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.prog b { font: 400 1.4rem/1.1 var(--f-display); }
.prog span { color: var(--muted); font-size: var(--s-6); }

.days { display: grid; gap: 10px; }
.day { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.day summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.day summary::-webkit-details-marker { display: none; }
.day summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.day[open] summary::after { transform: rotate(45deg); }
.slots-time { border-top: 1px solid var(--line); }
.slots-time li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: baseline; font-size: var(--s-6); }
.slots-time li:last-child { border-bottom: 0; }
.slots-time time { font: 500 var(--s-6)/1.4 var(--f-mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.slots-time li.i { color: var(--muted); font-style: italic; }
.slots-time li.i time { color: var(--muted); }
.kind { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.kind.p { background: var(--accent); color: var(--accent-ink); }
.kind.t { border: 1px solid var(--accent); color: var(--accent); }
.legend { display: flex; gap: 14px; align-items: center; font-size: var(--s-7); color: var(--muted); flex-wrap: wrap; }
.mini-prof { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.mini-prof .av { width: 56px; height: 56px; border-radius: 50%; background: var(--band); color: var(--band-ink); display: grid; place-items: center; font: italic 400 1.5rem/1 var(--f-display); }
.mini-prof p { color: var(--muted); font-size: var(--s-6); }
.empty { color: var(--muted); font-style: italic; }

/* painel de inscrição */
.panel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 18px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(15, 42, 59, .5); }
.panel .price { font: 400 2.6rem/1 var(--f-display); font-variant-numeric: lining-nums; }
.panel .price small { display: block; font: 500 var(--s-7)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.panel .facts dd { text-align: right; }
.panel form { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel label { display: grid; gap: 6px; font-size: var(--s-6); font-weight: 500; }
.panel input, .panel select {
  min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 0 12px; font: 400 var(--s-5)/1 var(--f-body); width: 100%;
}
.panel input:focus, .panel select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.panel .note { font-size: var(--s-7); color: var(--muted); }
.panel .phone { font-family: var(--f-mono); font-size: var(--s-6); color: var(--ink); user-select: all; }
@media (max-width: 979px) { .panel { position: static; } }

/* barra fixa de inscrição no celular */
.mbar { display: none; }
@media (max-width: 979px) {
  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .mbar b { font: 400 1.5rem/1 var(--f-display); }
  .mbar small { display: block; font-size: var(--s-7); color: var(--muted); }
  .mbar .btn { min-height: 46px; }
  body.has-mbar { padding-bottom: 76px; }
}

/* ---------- rodapé ---------- */
.foot { background: var(--band); color: var(--band-ink); padding-block: 64px 32px; border-top: 1px solid var(--line); }
.foot .grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .foot .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .foot .grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.foot h4 { margin: 0 0 14px; font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.foot p, .foot li { color: var(--band-muted); font-size: var(--s-6); }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--band-ink); }
.foot a:hover { color: var(--accent); }
.foot .brand b { color: var(--band-ink); }
.foot .brand small { color: var(--band-muted); }
.foot .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--s-7); color: var(--band-muted); }
.sel { user-select: all; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; z-index: 24; width: 56px; height: 56px; border-radius: 50%;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(10, 124, 134, .7);
}
.wa-float svg { width: 26px; height: 26px; }
body.has-mbar .wa-float { display: none; }

/* ---------- modo revisão (#revisao) ---------- */
.revisao [data-pend] { outline: 2px dashed var(--signal); outline-offset: 3px; border-radius: 4px; position: relative; }
.revisao [data-pend]::after {
  content: attr(data-pend); position: absolute; top: -10px; right: -10px; z-index: 2;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--signal); color: var(--surface);
  font: 600 11px/20px var(--f-mono); text-align: center;
}
.rev-panel {
  position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 24px)); max-height: 42vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--signal); border-radius: var(--r); padding: 16px 18px; font-size: var(--s-6);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
}
.rev-panel h4 { margin: 0 0 4px; font: 600 var(--s-6)/1.3 var(--f-body); color: var(--signal); }
.rev-panel ol { margin: 10px 0 0; padding-left: 26px; display: grid; gap: 6px; color: var(--muted); }
.rev-panel button { margin-top: 12px; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }

/* itens que só aparecem no modo revisão */
.rev-only, .rev-only-grid { display: none !important; }
.revisao .rev-only { display: inline !important; }
.revisao dt.rev-only, .revisao dd.rev-only { display: block !important; }
.revisao .rev-only-grid { display: grid !important; }

/* parceiros (prova de credibilidade) */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 18px; border-top: 1px solid var(--line); font-size: var(--s-6); color: var(--muted); }
.partners b { font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partners span { font-weight: 600; color: var(--ink); }

/* chamada final */
.final { display: grid; gap: 24px; }
@media (min-width: 860px) { .final { grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 48px; } }
.final .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn-ghost { background: transparent; color: var(--band-ink); border-color: var(--line); }
.band .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* agenda: link secundário abaixo do botão */
.row .more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: var(--s-6); font-weight: 600; color: var(--accent); text-decoration: none; }
.row .more svg, .others svg { width: 16px; height: 16px; }
.row .more:hover { text-decoration: underline; }

/* preço e inscrição logo no topo da página do curso (celular e tablet; no desktop o painel lateral já cumpre isso) */
.buybox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px;
  padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(15, 42, 59, .5); }
.buybox > div { display: grid; gap: 2px; }
.buybox small { font: 500 var(--s-7)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.buybox b { font: 400 2.2rem/1 var(--f-display); font-variant-numeric: lining-nums; }
.buybox > div > span { color: var(--muted); font-size: var(--s-6); }
.buybox b span { font: inherit; color: inherit; }
.buybox .btn { flex: 1 1 220px; }
@media (min-width: 980px) { .buybox { display: none; } }

/* outras turmas */
.others { display: grid; gap: 14px; }
@media (min-width: 720px) { .others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.other { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.other:hover { border-color: var(--accent); transform: translateY(-2px); }
.other .area { font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.other b { font: 400 1.5rem/1.15 var(--f-display); }
.other .meta { color: var(--muted); font-size: var(--s-6); }
.other .status { justify-self: start; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .other, .other:hover { transition: none; transform: none; } }

/* home institucional: foto do hospital no topo */
.hero-photo { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(15, 42, 59, .45); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); font-size: var(--s-6); }
.hero-photo figcaption span { color: var(--muted); }

/* áreas de ensino */
.areas { display: grid; gap: 14px; }
@media (min-width: 720px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.area-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.area-card .area { font: 500 var(--s-7)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.area-card b { font: 400 1.9rem/1.05 var(--f-display); }
.area-card p { color: var(--muted); font-size: var(--s-6); }
.area-card .go, .more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--s-6); font-weight: 600; color: var(--accent); text-decoration: none; }
.area-card .go svg, .more-link svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .area-card, .area-card:hover { transition: none; transform: none; } }

/* contato */
.contacts { display: grid; gap: 14px; }
@media (min-width: 860px) { .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .main-contact { grid-column: 1 / -1; } }
.contact { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.contact b { font: 400 1.6rem/1.15 var(--f-display); overflow-wrap: anywhere; }
.contact p { color: var(--muted); font-size: var(--s-6); }
.main-contact { background: var(--band); }
.main-contact b { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.main-contact .btn { justify-self: start; margin-top: 6px; }

/* vários professores por curso */
.mini-profs { display: grid; gap: 22px; }
@media (min-width: 720px) { .mini-profs.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-profs.cols .mini-prof { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* celular: topo e abertura compactos (sem vão branco antes do título) */
@media (max-width: 599px) {
  .top .wrap { min-height: 60px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: .75rem; letter-spacing: .04em; white-space: nowrap; }
  .brand b { font-size: 1.3rem; }
  .menu-btn { min-height: 44px; }
  .hero .wrap { padding-block: 24px 48px; gap: 28px; }
  .hero h1 { margin-top: 12px; }
  .hero .lead { margin-top: 16px; }
  .hero .ctas { margin-top: 22px; }
  .course-hero .wrap { padding-block: 22px 36px; gap: 14px; }
  .eyebrow { letter-spacing: .08em; }
  .hide-sm { display: none; }
}

.menu-btn svg { width: 20px; height: 20px; flex: none; }
/* telas bem estreitas (celulares pequenos ou com fonte ampliada) */
@media (max-width: 419px) {
  .menu-btn { width: 44px; padding: 0; justify-content: center; flex: none; }
  .menu-txt { display: none; }
  .top .wrap { gap: 10px; }
  .brand { gap: 10px; }
  .brand small { letter-spacing: 0; }
  .hero .eyebrow::before, .course-hero .eyebrow::before { display: none; }
  .hero .eyebrow { letter-spacing: .04em; }
}

/* filtro de público: no celular vira uma faixa única que desliza para o lado */
@media (max-width: 599px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 4px; scroll-padding-inline: 16px;
    mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; white-space: nowrap; padding: 0 16px; }
}

/* programação hora a hora: no celular o selo Teórica/Prática desce para baixo do texto */
.slots-time li > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 599px) {
  .slots-time li { grid-template-columns: 50px minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px; }
  .slots-time li > .kind { grid-column: 2; justify-self: start; }
  .slots-time li > span:empty { display: none; }
}
