/* ============================================================================
   Calculadora "Quanto tempo para aprender inglês?" — celular primeiro.
   ========================================================================== */
.calc-heroi { padding: 2.5rem 0 1.25rem; position: relative; z-index: 1; }
.calc-heroi h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0.4rem 0 0.8rem; }

.calc-area { position: relative; z-index: 1; padding-bottom: 2rem; }
.calc-app { display: grid; gap: 1.25rem; align-items: start; }
.calc-perguntas { display: grid; gap: 1rem; }

.calc-passo { border: 1px solid var(--fio-forte); border-radius: var(--raio-lg); background: var(--superficie); padding: 1rem; margin: 0; min-width: 0; box-shadow: var(--sombra-sm); }
.calc-passo > legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0; margin-bottom: 0.8rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.calc-passo > legend + * { clear: both; }
.calc-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pe-navy); color: #fff; font-size: 0.9rem; flex: none; }
[data-theme="dark"] .calc-num { background: var(--pe-cyan-fill); color: #071F38; }

.calc-opcoes { display: grid; gap: 0.5rem; }
.calc-opcao { position: relative; cursor: pointer; }
.calc-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.calc-opcao-corpo { display: grid; grid-template-columns: 4.4rem 1fr; gap: 0.6rem; align-items: center; min-height: 52px; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--fio-forte); border-radius: var(--raio-md); background: var(--pe-paper); transition: border-color 0.15s, background 0.15s; }
.calc-opcao-corpo strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--pe-cyan-text); }
.calc-opcao-corpo span { font-size: 0.88rem; line-height: 1.4; color: var(--texto-leitura); }
.calc-opcao input:checked + .calc-opcao-corpo { border-color: var(--pe-navy); background: color-mix(in srgb, var(--pe-navy) 6%, var(--superficie)); }
[data-theme="dark"] .calc-opcao input:checked + .calc-opcao-corpo { border-color: var(--pe-cyan-fill); background: color-mix(in srgb, var(--pe-cyan-fill) 10%, var(--superficie)); }
.calc-opcao input:focus-visible + .calc-opcao-corpo { outline: 2px solid var(--pe-cyan-fill); outline-offset: 2px; }

.calc-ritmos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.calc-ritmo { display: grid; gap: 0.15rem; text-align: left; padding: 0.65rem 0.75rem; min-height: 56px; border-radius: var(--raio-md);
  border: 1.5px solid var(--fio-forte); background: var(--pe-paper); color: var(--texto); font: inherit; cursor: pointer; }
.calc-ritmo strong { font-size: 0.9rem; }
.calc-ritmo span { font-size: 0.74rem; line-height: 1.35; color: var(--texto-suave); }
.calc-ritmo[aria-pressed="true"] { border-color: var(--pe-navy); background: color-mix(in srgb, var(--pe-navy) 6%, var(--superficie)); }
[data-theme="dark"] .calc-ritmo[aria-pressed="true"] { border-color: var(--pe-cyan-fill); background: color-mix(in srgb, var(--pe-cyan-fill) 10%, var(--superficie)); }
.calc-ritmo-curso strong { color: var(--pe-amber-text); }
.calc-deslizar { display: grid; gap: 0.35rem; margin-top: 1rem; font-size: 0.88rem; }
.calc-deslizar input { width: 100%; accent-color: var(--pe-cyan-fill); height: 28px; }
.calc-deslizar-pontas { display: flex; justify-content: space-between; color: var(--texto-suave); }

/* resultado */
.calc-resultado { border-radius: var(--raio-lg); padding: 1.4rem 1.25rem; color: #fff; scroll-margin-top: 80px;
  background-color: #0A3157;
  background-image: radial-gradient(circle, rgba(18, 184, 200, 0.16) 1px, transparent 1.1px), linear-gradient(180deg, #0A3157, #071F38);
  background-size: 28px 28px, 100% 100%; box-shadow: 0 10px 30px rgba(8, 43, 77, 0.22); }
.calc-resultado .eyebrow { color: #9FD8E0; }
.calc-tempo { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.1; color: #F0B84A; margin: 0.35rem 0 0.5rem; }
.calc-frase { color: #D6E2F2; line-height: 1.5; }
.calc-horas { color: #D6E2F2; font-size: 0.9rem; margin-top: 0.6rem; }
.calc-fonte { color: #9FB3C8; font-size: 0.76rem; line-height: 1.45; margin-top: 0.6rem; }
.calc-linha { margin: 1.4rem 0 2.2rem; padding: 0 0.7rem; }
.calc-trilho { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.calc-trecho { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #E9A13B; transition: left 0.25s, width 0.25s; }
.calc-marco { position: absolute; top: -5px; transform: translateX(-50%); display: grid; justify-items: center; }
.calc-marco::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #0A3157; border: 2px solid rgba(255, 255, 255, 0.35); box-sizing: border-box; }
.calc-marco b { font-family: var(--font-display); font-size: 0.8rem; margin-top: 4px; color: #D6E2F2; }
.calc-marco small { font-size: 0.62rem; color: #9FB3C8; }
.calc-marco-feito::before { background: #4FD3E0; border-color: #4FD3E0; }
.calc-marco-ativo::before { background: #E9A13B; border-color: #E9A13B; }
.calc-marco-ativo b { color: #F0B84A; }
.calc-curso { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.calc-curso p { color: #D6E2F2; font-size: 0.92rem; line-height: 1.5; }
.calc-botoes { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.calc-botoes .btn { width: 100%; }
.calc-resultado .btn-secundario { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.calc-compartilhar { margin-top: 0.8rem; color: #9FD8E0; }
.cv-btn-icone { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0.3rem 0; border: 0; background: none; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }

/* guia */
.calc-guia h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.calc-guia p { color: var(--texto-leitura); line-height: 1.65; max-width: 72ch; }
.calc-tabela { border-collapse: collapse; margin-top: 1.2rem; font-size: 0.92rem; background: var(--superficie); }
.calc-tabela th, .calc-tabela td { border: 1px solid var(--fio-forte); padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; }
.calc-tabela th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pe-label); }
.calc-tabela td:first-child { font-family: var(--font-display); font-weight: 600; }
.calc-tabela td:last-child { white-space: nowrap; }

/* barra do celular com a estimativa */
.calc-barra { display: none; }
@media (max-width: 899px) {
  .calc-barra { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: #0A3157; color: #fff; text-decoration: none;
    box-shadow: 0 -6px 20px rgba(8, 43, 77, 0.2); }
  .calc-barra span { font-size: 0.78rem; color: #9FD8E0; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
  .calc-barra strong { font-family: var(--font-display); color: #F0B84A; font-size: 1.05rem; text-align: right; }
  body { padding-bottom: 64px; }
}

/* computador: perguntas à esquerda, resultado fixo à direita */
@media (min-width: 900px) {
  .calc-app { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.75rem; }
  .calc-resultado { position: sticky; top: 90px; padding: 1.75rem 1.6rem; }
}
