/* =====================================================================
   NX Físio & Trainer — site institucional (mobile primeiro)
   Mesmos tokens do sistema: limão #C6FF0D como fundo com texto #1D150D,
   neutros quentes, Archivo expandida só em títulos e números grandes.
   ===================================================================== */

:root {
    --lime: #C6FF0D;
    --lime-600: #A6E000;
    --lime-700: #80C400;
    --lime-100: #ECFFAD;
    --lime-tom: #BAF500;
    --ink: #1D150D;
    --ink-tom: #2C2219;
    --n25: #FBFAF8;
    --n50: #F6F3EF;
    --n100: #EDE8E2;
    --n200: #DFD8CF;
    --n300: #C7BEB2;
    --n400: #A39889;
    --n500: #7D7265;
    --n600: #5E5449;
    --n700: #463D33;

    --st-ok-bg: #E2F2EE; --st-ok-fg: #1E6B5C;
    --st-pend-bg: #FCEFD9; --st-pend-fg: #8A5300;
    --st-esp-bg: #ECEBF8; --st-esp-fg: #4B4699;
    --erro: #A3372A;

    --display: "Archivo", "Manrope", system-ui, sans-serif;
    --corpo: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
    --sombra: 0 6px 16px rgba(29, 21, 13, .10);
    --sombra-lg: 0 20px 48px rgba(29, 21, 13, .20);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--n50);
    color: var(--ink);
    font-family: var(--corpo);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.icone {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.pular-para-conteudo { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); padding: 8px 14px; border-radius: 999px; font-weight: 800; }
.pular-para-conteudo:focus { left: 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.display {
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: .95;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--n600);
    margin-bottom: 10px;
}

/* ---------- Botões (pílula) ---------- */
.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.botao-primario { background: var(--lime); color: var(--ink); }
.botao-primario:hover { background: var(--lime-600); }
.botao-primario:active { background: var(--lime-700); }
.botao-escuro { background: var(--ink); color: #fff; }
.botao-escuro:hover { background: var(--n700); }
.botao-secundario { background: transparent; border-color: var(--n300); color: var(--ink); }
.botao-secundario:hover { border-color: var(--ink); }
.botao-claro { background: transparent; border-color: #54493D; color: #fff; }
.botao-claro:hover { border-color: #fff; }
.botao[disabled], .botao[aria-disabled="true"] { background: var(--n100); border-color: var(--n100); color: var(--n500); cursor: not-allowed; }
.botao-grande { min-height: 56px; font-size: 17px; width: 100%; }

/* ---------- Cabeçalho ---------- */
.cabecalho {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--n200);
}

.cabecalho .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.cabecalho .logo img { height: 36px; width: auto; }
.cabecalho nav { display: flex; gap: 22px; margin-left: auto; }
.cabecalho nav a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--n600); padding: 6px 0; border-bottom: 2px solid transparent; }
.cabecalho nav a:hover { color: var(--ink); }
.cabecalho nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lime-700); }
.cabecalho .botao { min-height: 44px; font-size: 15px; }

.menu-celular { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--n300); border-radius: 12px; background: #fff; cursor: pointer; }

@media (max-width: 900px) {
    .cabecalho nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--n200); padding: 8px var(--gutter) 16px; }
    .cabecalho nav.aberto { display: flex; }
    .cabecalho nav a { padding: 12px 0; border-bottom: 1px solid var(--n100); }
    .menu-celular { display: inline-grid; place-items: center; }
    .cabecalho .botao-primario { display: none; }
    .cabecalho .logo img { height: 30px; }
}

/* ---------- Hero com o padrão NX ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}

.padrao-nx::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink-tom);
    -webkit-mask: url("/img/nx-tile.png") 0 0 / 220px auto repeat;
    mask: url("/img/nx-tile.png") 0 0 / 220px auto repeat;
    pointer-events: none;
}

.padrao-nx > * { position: relative; }
.padrao-nx.limao::before { background: var(--lime-tom); }

.hero .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(36px, 6vw, 72px); max-width: 15ch; }
.hero .sub { color: var(--n300); font-size: clamp(16px, 2vw, 19px); max-width: 52ch; margin-top: 18px; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .hero-grade { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.hero .hero-marca img { width: min(100%, 420px); margin-left: auto; }

@media (max-width: 860px) {
    .hero .hero-grade { grid-template-columns: 1fr; }
    .hero .hero-marca { display: none; }
}

/* Onda do N: divisória entre o hero escuro e o conteúdo */
.onda {
    display: block;
    width: 100%;
    height: 14px;
    background-color: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M0 0 H56 V11 C42 11 42 3 28 3 S14 11 0 11 Z'/%3E%3C/svg%3E") 0 0 / 56px 14px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M0 0 H56 V11 C42 11 42 3 28 3 S14 11 0 11 Z'/%3E%3C/svg%3E") 0 0 / 56px 14px repeat-x;
    margin-top: -1px;
}

/* ---------- Seções ---------- */
.secao { padding: clamp(48px, 7vw, 88px) 0; }
.secao-titulo { font-size: clamp(28px, 4vw, 44px); max-width: 20ch; }
.secao-sub { color: var(--n600); max-width: 60ch; margin-top: 12px; font-size: 17px; }
.secao-cabeca { margin-bottom: 32px; }

.grade-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }

.cartao {
    background: #fff;
    border: 1px solid var(--n200);
    border-radius: 24px;
    padding: 24px;
}

.cartao-especialidade { display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.cartao-especialidade:hover { border-color: var(--ink); }
.cartao-especialidade h3 { font-size: 20px; font-weight: 800; }
.cartao-especialidade p { color: var(--n600); font-size: 15px; }
.cartao-especialidade .mais { margin-top: auto; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

.selo {
    width: 56px; height: 56px; border-radius: 16px;
    display: inline-grid; place-items: center;
    background: var(--ink); color: var(--lime);
}
.selo .icone { font-size: 28px; }

.cartao-limao { position: relative; overflow: hidden; background: var(--lime); border-color: var(--lime); }

.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.pessoa { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pessoa .foto {
    aspect-ratio: 1; border-radius: 20px; background: var(--ink); color: var(--lime);
    display: grid; place-items: center; position: relative; overflow: hidden;
}
.pessoa .foto span { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 44px; position: relative; }
.pessoa strong { font-size: 17px; }
.pessoa small { color: var(--n600); font-weight: 600; font-size: 14px; }
.pessoa .link { font-size: 13px; font-weight: 800; color: var(--n600); }
.pessoa:hover .foto { outline: 3px solid var(--lime-700); outline-offset: 2px; }

.lista-check { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; }
.lista-check .icone { color: var(--lime-700); }

.info { display: grid; gap: 14px; }
.info div { display: flex; gap: 12px; align-items: flex-start; }
.info .icone { color: var(--n600); }
.info strong { display: block; }
.info a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--lime); }

/* ---------- Chips e segmentado ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--n300); background: #fff; color: var(--ink);
    font-weight: 700; font-size: 14px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--lime); border: 2px solid var(--ink); }

.segmentado { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--n100); }
.segmentado button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 14px; color: var(--n600); cursor: pointer; }
.segmentado button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(29, 21, 13, .15); }

/* ---------- Onde dói ---------- */
.onde-doi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.corpo-cartao { display: grid; gap: 18px; }
.corpo-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.corpo-topo h2 { font-size: 20px; font-weight: 800; }
.corpo-topo .dica { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--n600); }

.silhueta { position: relative; width: 240px; max-width: 70vw; aspect-ratio: 200 / 440; margin: 0 auto; }
.silhueta svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.silhueta svg [hidden] { display: none; }
.silhueta .lado { position: absolute; top: 44%; font-size: 11px; font-weight: 800; color: var(--n500); writing-mode: vertical-rl; }
.silhueta .lado.esq { left: -18px; transform: rotate(180deg); }
.silhueta .lado.dir { right: -18px; }

.ponto {
    position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border: 0; padding: 0; border-radius: 50%; background: transparent;
    display: grid; place-items: center; cursor: pointer;
}
.ponto:hover { background: rgba(198, 255, 13, .35); }
.ponto span {
    width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2.5px solid var(--n500);
    display: grid; place-items: center; font-family: "Material Symbols Rounded"; font-size: 18px; line-height: 1; color: var(--ink);
    transition: width .12s ease, height .12s ease;
}
.ponto[aria-pressed="true"] span { width: 36px; height: 36px; background: var(--lime); border-color: var(--ink); }

.privacidade { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--n600); }

.resultado { position: sticky; top: 84px; display: grid; gap: 16px; }
@media (max-width: 860px) { .resultado { position: static; } }

.convite { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 28px; border-radius: 24px; background: var(--lime); }
.convite h2 { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(24px, 3vw, 32px); }
.convite a { font-weight: 800; }

.indicacao { display: grid; gap: 14px; }
.indicacao .topo { display: flex; gap: 14px; align-items: center; }
.indicacao h2 { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(24px, 3vw, 30px); }
.indicacao .porque { font-size: 16px; line-height: 1.55; color: var(--n700); }
.indicacao .porques { display: grid; gap: 10px; padding: 0; list-style: none; }
.indicacao .porques li { padding-left: 12px; border-left: 3px solid var(--lime); font-size: 15px; line-height: 1.5; color: var(--n700); }
.indicacao .porques strong { display: block; color: var(--ink); }
.indicacao .marcadas { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.indicacao .limpar { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; margin: -10px -12px -10px 0; border: 0; border-radius: 999px; background: transparent; color: var(--n700); font-weight: 800; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.indicacao .limpar:hover { background: var(--n100); color: var(--ink); }
.indicacao .limpar .icone { font-size: 18px; }
.indicacao .combinacao { padding: 10px 12px; border-radius: 12px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.45; }
.aviso { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--n100); color: var(--n700); font-size: 13px; font-weight: 600; }
.aviso .icone { font-size: 18px; }

/* ---------- Seletor de horário ---------- */
.dias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dia {
    display: grid; gap: 2px; justify-items: center; padding: 10px 4px; min-height: 76px;
    border-radius: 14px; border: 1.5px solid var(--n300); background: #fff; cursor: pointer;
}
.dia .sem { font-size: 12px; font-weight: 800; text-transform: capitalize; }
.dia .num { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 22px; line-height: 1; }
.dia .qtd { font-size: 11px; font-weight: 700; color: var(--n600); }
.dia.sem-vaga { border-style: dashed; background: var(--n50); color: var(--n600); }
.dia[aria-pressed="true"] { background: var(--ink); border: 2px solid var(--ink); color: #fff; }
.dia[aria-pressed="true"] .qtd { color: var(--n300); }

.horarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.horario {
    display: grid; gap: 2px; justify-items: center; align-content: center; min-height: 60px;
    border-radius: 14px; border: 1.5px solid var(--n300); background: #fff; cursor: pointer;
}
.horario strong { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.horario small { font-size: 12px; font-weight: 600; color: var(--n600); }
.horario small.pouca { text-decoration: underline; font-weight: 800; color: var(--ink); }
.horario[aria-pressed="true"] { background: var(--lime); border: 2px solid var(--ink); }

.sem-vaga-caixa { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--n300); background: var(--n50); }

.carregando { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.carregando i { height: 60px; border-radius: 14px; background: var(--n100); animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .carregando i { animation: none; } }

.nota { font-size: 13px; font-weight: 600; color: var(--n600); text-align: center; }

/* ---------- Etapa final: nome e WhatsApp ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 90; background: rgba(29, 21, 13, .55); display: none; align-items: flex-end; justify-content: center; }
.folha-fundo.aberta { display: flex; }
.folha {
    width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: 28px 28px 0 0; padding: 24px 20px 28px; display: grid; gap: 16px;
}
@media (min-width: 700px) { .folha-fundo { align-items: center; } .folha { border-radius: 28px; } }
.folha h2 { font-size: 24px; font-weight: 800; }
.folha .resumo { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--n50); }
.folha .resumo strong { display: block; }
.folha .fechar { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--n100); cursor: pointer; }

.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 800; }
.campo input {
    min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--n300);
    font: 500 16px var(--corpo); color: var(--ink); background: #fff;
}
.campo input:focus { outline: none; border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--lime-100); padding: 0 15px; }
.campo .dica { font-size: 13px; color: var(--n600); font-weight: 600; }
.campo.erro input { border-color: var(--erro); }
.campo .msg-erro { display: none; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--erro); }
.campo.erro .msg-erro { display: flex; }
.telefone { display: grid; grid-template-columns: auto 1fr; }
.telefone span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--n300); border-right: 0; border-radius: 10px 0 0 10px; background: var(--n50); font-weight: 800; }
.telefone input { border-radius: 0 10px 10px 0; }

.sucesso { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 8px 0; }
.sucesso .selo { width: 72px; height: 72px; border-radius: 50%; }
.sucesso .selo .icone { font-size: 36px; }

/* ---------- Rodapé ---------- */
.rodape { position: relative; overflow: hidden; background: var(--ink); color: var(--n300); padding: 56px 0 32px; }
.rodape .colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.rodape img.simbolo { width: 120px; }
.rodape h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: #fff; }
.rodape .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3E342A; font-size: 13px; }
.rodape .base a { display: inline-flex; align-items: center; gap: 8px; }

.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Selo da Ironbug sobre o fundo escuro do rodapé: o logotipo tem texto escuro. */
.rodape .base img { filter: brightness(0) invert(1); opacity: .75; }

/* Páginas legais (privacidade, termos, exclusão de conta) */
.hero-legal { min-height: 0; padding-block: clamp(40px, 7vw, 72px); }
.hero-legal h1 { font-size: clamp(30px, 5vw, 52px); }
.texto-legal { max-width: 760px; font-size: 16px; line-height: 1.65; }
.texto-legal h2 { font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 800; margin: 32px 0 8px; }
.texto-legal ul, .texto-legal ol { padding-left: 22px; margin: 8px 0 16px; }
.texto-legal li { margin-bottom: 6px; }
.texto-legal a { color: inherit; font-weight: 700; text-decoration: underline; }
.texto-legal p { margin: 0 0 12px; }
