/* Layout: herói azul-marinho com degradê; folha de respostas à esquerda, boletim à direita, curva TRI embaixo.
   Visual de tema único (marinho + creme), escolhido de propósito: não muda com o tema claro/escuro. */
:root {
  color-scheme: dark;
  --bg: oklch(0.248 0.083 263.3);        /* marinho */
  --bg-glow: oklch(0.385 0.13 258);       /* brilho do degradê */
  --surface: oklch(0.29 0.095 263);       /* painel */
  --raised: oklch(0.326 0.109 262.8);     /* campos */
  --fg: oklch(0.952 0.031 91);            /* creme */
  --muted: oklch(0.79 0.045 250);
  --line: oklch(1 0 90 / 0.14);
  --accent: oklch(0.836 0.072 218.8);     /* azul-claro */
  --brand-bar: oklch(0.2 0.07 263.3 / .6);
  --accent-soft: oklch(0.836 0.072 218.8 / 0.16);
  --on-cream: oklch(0.248 0.083 263.3);
  --lc: oklch(0.78 0.12 355);  /* Linguagens */
  --ch: oklch(0.84 0.13 78);   /* Humanas */
  --cn: oklch(0.82 0.11 165);  /* Natureza */
  --mt: oklch(0.76 0.12 295);  /* Matemática */
  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
.hero { background: radial-gradient(120% 90% at 85% 0%, var(--bg-glow), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-in, .wrap { max-width: 1120px; margin: 0 auto; box-sizing: border-box;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hero-in { padding-block: 44px 40px; display: grid; gap: 14px; justify-items: start; }
.wrap { padding-block: 28px 56px; display: grid; gap: 24px; }
.eyebrow { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
h1 { font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: 1.05; letter-spacing: 0; margin: 0; text-wrap: balance; max-width: 16ch; }
.lede { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; margin: 0; max-width: 34ch; }
h2.lede { font-weight: 400; letter-spacing: 0; }
.hero-in p.sub { margin: 0; color: var(--muted); max-width: 64ch; font-size: 15px; }

.grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 18px; min-width: 0; }
h2 { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin: 0; letter-spacing: -.01em; }

.area { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 12px; align-items: center; }
.area .dot { width: 12px; height: 12px; border-radius: 3px; }
.area label { font-weight: 600; }
.area .code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.area input[type=range] { grid-column: 2 / 3; width: 100%; accent-color: var(--c); }
.num { grid-column: 3; grid-row: 1 / 3; display: flex; align-items: baseline; gap: 4px; font-family: var(--f-mono); }
.num input { width: 78px; font: 600 20px var(--f-mono); text-align: right; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--fg); font-variant-numeric: tabular-nums; }
.num span { color: var(--muted); font-size: 13px; width: 3.3em; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* Média: típica em destaque e, ao lado, a faixa do pior ao melhor caso */
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 28px; align-items: center; }
@media (max-width: 480px) { .summary { grid-template-columns: 1fr; } }
.summary .k, .sisu-box .k { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.summary .main { display: grid; gap: 4px; }
.summary .main .v { font: 900 56px/1 var(--f-display); color: var(--fg); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.faixa { display: grid; gap: 8px; }
.faixa-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--raised), var(--accent)); }
.faixa-bar b { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 3px var(--surface); }
.faixa-ends { display: flex; justify-content: space-between; gap: 12px; }
.faixa-ends > div { display: grid; gap: 2px; }
.faixa-ends > div:last-child { text-align: right; }
.faixa-ends span { font: 800 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.faixa-ends small { font-size: 12px; color: var(--muted); }
.sub { color: var(--muted); font-size: 13px; }

.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.n, th.n { text-align: right; font-family: var(--f-mono); }
td.n b { font-size: 17px; }
td.lo, td.hi { color: var(--muted); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.cnt { display: block; font: 400 11px var(--f-mono); color: var(--muted); margin-left: 18px; }
.bar { position: relative; height: 10px; margin-top: 6px; margin-left: 18px; background: var(--bg); border-radius: 99px; }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.bar .full { opacity: .28; }
.bar .core { opacity: .7; }
.bar .mid { width: 3px; margin-left: -1.5px; top: -3px; bottom: -3px; background: var(--fg); border-radius: 1px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { font: 600 14px var(--f-body); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { border-color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--fg); color: var(--on-cream); border-color: var(--fg); }
.chart-scroll { overflow: hidden; }
svg text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; background: var(--c); }
.note { font-size: 13px; color: var(--muted); display: grid; gap: 6px; max-width: 82ch; }
.note p { margin: 0; }
.note a { color: var(--accent); }

/* Navegação e botões compartilhados */
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; }
.brand { font: 600 16px/1.25 var(--f-body); color: var(--fg); text-decoration: none; letter-spacing: 0; min-height: 40px; }
.brand small { font: inherit; color: inherit; margin-left: 0; letter-spacing: 0; }
.navlinks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topnav .btn.small { font: 600 16px/1.25 var(--f-body); letter-spacing: 0; min-height: 40px; padding: 9px 16px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--f-body); text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--fg); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--fg); color: var(--on-cream); border-color: var(--fg); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Chamada para o SISU dentro do simulador de notas */
.sisu-box { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.sisu-box .k { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sisu-box p { margin: 0; }
.sisu-n { font: 700 18px/1.3 var(--f-body); }
.sisu-n span { font: 900 40px/1 var(--f-display); color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 0 4px; }
.sisu-box .sub b { color: var(--fg); font-variant-numeric: tabular-nums; }
/* No celular a tabela de áreas cabe na tela: some a coluna de acertos (já está no painel ao lado) */
.faixa-m { display: none; }
@media (max-width: 520px) {
  table .col-ac, table .col-mm { display: none; }
  .faixa-m { display: block; font: 500 12px var(--f-mono); color: var(--muted); }
  td.n b { font-size: 15px; }
  td, th { padding-right: 4px; }
  .cnt, .bar { margin-left: 0; }
}
.sisu-box .btn { justify-self: start; }
.tri-call { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--fg) !important; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 14px var(--f-body); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .sisu-n span { display: block; margin: 6px 0 2px; } }

/* Top 3 cursos no quadro do SISU */
.sisu-top { display: grid; gap: 8px; }
.sisu-top ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: top; }
.sisu-top li { counter-increment: top; }
.sisu-top a { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.sisu-top a::before { content: counter(top); grid-row: 1 / 3; font: 900 22px/1 var(--f-display); color: var(--accent); }
.sisu-top a:hover { border-color: var(--accent); }
.sisu-top a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sisu-top .t { font-weight: 700; font-size: 15px; min-width: 0; }
.sisu-top .m { grid-column: 2; font-size: 12px; color: var(--muted); }
.sisu-top .f { grid-column: 3; grid-row: 1 / 3; font: 800 15px var(--f-display); color: oklch(0.84 0.15 150); font-variant-numeric: tabular-nums; }

/* Logo no topo */
.brand { display: inline-flex; align-items: center; gap: 5px; }
.brand-logo img { display: block; height: 30px; width: auto; }
.brand-logo + * { margin-left: 0; }

/* Rodapé com a mandala das marcas: Poliedro Educação no centro, as outras em volta, num círculo */
.rodape { border-top: 1px solid var(--line); margin-top: 24px;
  background: radial-gradient(80% 120% at 50% 0%, var(--bg-glow), transparent 70%), var(--bg); }
.rodape-in { max-width: 1120px; margin: 0 auto; padding-block: 40px 48px; display: grid; justify-items: center; gap: 18px; text-align: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rodape-in p { margin: 0; color: var(--muted); font-size: 14px; }
.rodape-in p b { color: var(--fg); }
.mandala { --size: 380px; --r: 140px; --sat: 104px; --centro: 150px;
  position: relative; width: min(var(--size), 100%); aspect-ratio: 1; }
@media (max-width: 420px) { .mandala { --r: 112px; --sat: 84px; --centro: 120px; } }
.mandala::before { content: ""; position: absolute; inset: calc(50% - var(--r)); border-radius: 50%; border: 1px dashed var(--line); }
.mandala > * { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; overflow: hidden; }
.m-centro { transform: translate(var(--mx, 0px), var(--my, 0px)); width: var(--centro); height: var(--centro); margin: calc(var(--centro) / -2) 0 0 calc(var(--centro) / -2);
  border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); z-index: 1; }
.m-item { width: var(--sat); height: var(--sat); margin: calc(var(--sat) / -2) 0 0 calc(var(--sat) / -2);
  transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(calc(360deg / var(--n) * var(--i) - 90deg + var(--orbit-turn, 0deg))) translate(var(--r)) rotate(calc(-360deg / var(--n) * var(--i) + 90deg - var(--orbit-turn, 0deg))); }
.mandala img { max-width: 72%; max-height: 52%; object-fit: contain; }
.mandala .m-conviver img { max-width: 52%; max-height: 34%; }
.mandala span { font: 800 13px/1.15 var(--f-display); padding: 0 10px; }
.m-centro span { font-size: 17px; }
a.m-item:hover, a.m-centro:hover { border-color: var(--accent); }
.mandala a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Menu compartilhado e identidade do simulador */
html { scroll-behavior: smooth; }
.marcas-bar { border-bottom: 1px solid var(--line); background: var(--brand-bar); }
.marcas-bar-in { max-width: 1120px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left, 0px)); }
.mb-logo { display: inline-flex; align-items: center; justify-content: flex-start; width: 160px; height: 48px; color: var(--fg); text-decoration: none; flex-shrink: 0; }
.mb-logo img { display: block; height: 36px; width: auto; max-width: 100%; object-fit: contain; }
.mb-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.navlinks .btn[aria-current="page"] { background: var(--fg); color: var(--on-cream); border-color: var(--fg); }
.navlinks .btn:not([aria-current]) { border-color: transparent; color: var(--muted); }
.navlinks .btn:not([aria-current]):hover { color: var(--fg); border-color: var(--line); }
.simulator-identity { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; }
.simulator-identity h1 { max-width: none; }
.mira-logo { display: block; width: 200px; height: auto; flex-shrink: 0; object-fit: contain; }
.page-heading { font: 700 26px/1.25 var(--f-body); letter-spacing: 0; margin: 0; }
.mandala > a { transition: transform .25s ease-out, border-color .2s; }
.mandala a:hover, .mandala a:focus-visible { border-color: var(--accent); background: var(--raised); }
@media (max-width: 700px) {
  .simulator-identity { gap: 20px; }
  .simulator-identity h1 { font-size: 44px; }
  .mira-logo { width: 150px; }
}
@media (max-width: 520px) {
  .marcas-bar-in { justify-content: center; gap: 12px; }
  .navlinks { justify-content: center; gap: 4px; }
  .topnav .btn.small { font-size: 14px; padding-inline: 12px; }
  .simulator-identity { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .simulator-identity h1 { font-size: 40px; }
  .mira-logo { width: 144px; }
  .page-heading { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mandala > a { transition: none; }
}

/* Menu e hero no estilo da referência Mira no Enem */
.marcas-bar { background: var(--bg); position: sticky; top: 0; z-index: 20; }
.marcas-bar-in.topnav { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav-mira { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 15px; flex-shrink: 0; }
.nav-mira img { height: 44px; width: auto; display: block; }
.topnav .navlinks { flex: 1; justify-content: center; gap: 6px; }
.topnav .navlinks .btn { border-radius: 99px; font-weight: 600; font-size: 16px; padding: 8px 20px; transition: background .2s, color .2s; }
.topnav .navlinks .btn[aria-current="page"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.topnav .navlinks .btn:not([aria-current]) { background: transparent; color: color-mix(in oklab, var(--fg) 82%, transparent); border-color: transparent; }
.topnav .navlinks .btn:not([aria-current]):hover { color: var(--fg); border-color: transparent; background: color-mix(in oklab, var(--fg) 8%, transparent); }
.topnav .mb-logo { width: auto; justify-content: flex-end; }
.topnav .mb-logo img { height: 40px; }
.hero { background: radial-gradient(90% 100% at 75% 30%, var(--bg-glow), transparent 65%), var(--bg); }
.hero-in { padding-block: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: center; gap: 40px; width: 100%; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero .eyebrow { border: 1px solid var(--line); border-radius: 99px; padding: 9px 22px; font-size: 13px; letter-spacing: .22em; background: color-mix(in oklab, var(--fg) 3%, transparent); }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.03em; max-width: none; }
.hero-sub { margin: 0; color: var(--muted); max-width: 64ch; font-family: var(--f-body); font-weight: 400; font-size: 15px; font-style: normal; line-height: 1.5; letter-spacing: 0; }
.hero-eye { width: 100%; max-width: 420px; height: auto; justify-self: end; }
.como-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.como-link:hover { color: var(--fg); }
.como-dialog { max-width: 460px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--fg); padding: 24px; }
.como-dialog::backdrop { background: color-mix(in oklab, var(--bg) 70%, transparent); }
.como-dialog p { margin: 0 0 16px; line-height: 1.55; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-eye { display: none; }
  .marcas-bar-in.topnav { flex-wrap: wrap; }
  .topnav .navlinks { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 520px) { .nav-mira .nav-title { display: none; } .topnav .navlinks .btn { font-size: 14px; padding: 7px 14px; } }

/* Identidade Mira no Enem (kit oficial) */
:root { --navy-deep: oklch(0.248 0.083 263.3); --navy: oklch(0.276 0.094 263.3); --navy-soft: oklch(0.385 0.126 262.1);
  --cream: oklch(0.952 0.031 91); --sky: oklch(0.836 0.072 218.8); --blush: oklch(0.855 0.063 3.4); --magenta: oklch(0.586 0.229 19.8);
  --gradient-hero: radial-gradient(110% 90% at 78% 12%, oklch(0.42 0.13 261 / 0.75), transparent 62%), linear-gradient(160deg, oklch(0.3 0.1 263), oklch(0.22 0.075 263)); }
.hero { background: var(--gradient-hero); position: relative; }
.hero > .marcas-bar { position: relative; z-index: 2; }
.marcas-bar { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--navy-deep) 85%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.hero-in { position: relative; z-index: 1; }
.wordmark { position: relative; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--cream); }
.wordmark b { font-family: var(--f-display); font-weight: 900; text-transform: lowercase; letter-spacing: -.06em; }
.wordmark i { margin-top: -2px; border: 1px solid currentColor; border-radius: 99px; padding: 2px 14px; font-family: var(--f-serif); font-style: italic; }
.wordmark-sm b { font-size: 26px; } .wordmark-sm i { font-size: 14px; }
.wordmark-md b { font-size: clamp(40px, 5vw, 52px); } .wordmark-md i { font-size: 16px; }
.toggle-mark { position: absolute; width: 72px; top: -22px; left: -34px; transform: rotate(-4deg); }
.nav-mira { gap: 14px; }
.nav-title { font-family: var(--f-display); font-weight: 800; font-size: 15px; padding-left: 14px; border-left: 1px solid var(--line); }
.topnav .navlinks .btn[aria-current="page"] { background: var(--sky); color: var(--navy-deep); border-color: var(--sky); font-weight: 700; }
.topnav .navlinks .btn[aria-current="page"]:hover { background: var(--cream); border-color: var(--cream); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; color: var(--sky); padding: 7px 18px; background: transparent; }
.hero .eyebrow .sparkle { width: 12px; height: 12px; }
.hero h1 { line-height: .92; letter-spacing: -.05em; }
.hero-art { display: grid; justify-items: center; gap: 36px; justify-self: end; width: 100%; max-width: 420px; }
.hero-eye { width: 100%; max-width: none; filter: drop-shadow(0 25px 25px rgb(0 0 0 / .25)); }
.mira-float { width: 100%; animation: mira-float 7s ease-in-out infinite; }
.mira-rise { animation: mira-rise 760ms cubic-bezier(.22,1,.36,1) both; }
.sparkle-float { position: absolute; right: 40px; bottom: 64px; width: 32px; height: 32px; color: var(--blush); opacity: .7; z-index: 1; animation: mira-float 7s ease-in-out infinite; }
.sparkle-float svg { width: 100%; height: 100%; display: block; }
.hairline { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 448px; margin-top: 18px; color: color-mix(in oklab, var(--cream) 70%, transparent); }
.hairline span { border-radius: 99px; background: currentColor; }
.hairline span:nth-child(1) { width: 8px; height: 8px; background: var(--sky); }
.hairline span:nth-child(2) { width: 6px; height: 6px; opacity: .7; }
.hairline span:nth-child(3) { width: 4px; height: 4px; opacity: .5; }
.hairline .hl-line { flex: 1; height: 1px; opacity: .4; border-radius: 0; transform-origin: left center; animation: mira-draw 1.4s cubic-bezier(.22,1,.36,1) both; }
.hairline .sparkle { width: 16px; height: 16px; flex-shrink: 0; }
.btn.primary { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); border-radius: 99px; padding: 14px 28px; font-weight: 700; transition: transform .2s; }
.btn.primary:hover { transform: translateY(-2px); }
@keyframes mira-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mira-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes mira-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) { .hero-art { display: none; } }
@media (max-width: 520px) { .nav-title { display: none; } .sparkle-float { display: none; } }
/* Duas marcas alinhadas acima de duas abas de largura igual no mobile. */
@media (max-width: 860px) {
  .marcas-bar-in.topnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px 16px;
    padding-block: 16px;
  }
  .topnav .nav-mira { min-width: 0; min-height: 44px; justify-self: start; }
  .topnav .mb-logo { min-width: 0; width: 140px; max-width: 100%; height: 44px; justify-self: end; }
  .topnav .mb-logo img { width: 140px; max-width: 100%; height: 34px; object-fit: contain; }
  .topnav .navlinks {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .topnav .navlinks .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
  }
  .topnav .navlinks .btn:not([aria-current]) { border-color: var(--line); }
}
@media (max-width: 520px) {
  .topnav .nav-mira .wordmark { display: inline-flex; }
  .topnav .wordmark-sm b { font-size: 30px; letter-spacing: 0; }
  .topnav .wordmark-sm i { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mira-float, .mira-rise, .sparkle-float, .hairline .hl-line { animation: none; } }
