/* ==========================================================================
   Modo visitante (5.6): escolha na introdução, faixa no topo das páginas,
   cartão de interesse (planos de lançamento, no estilo da lista de espera) e
   progresso + palavras no resultado da aula grátis.
   ========================================================================== */

/* ---------- introdução: já tenho matrícula / quero conhecer ---------- */
.gate-choice { display: grid; gap: 10px; }
.gate-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.gate-opt:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-1px); box-shadow: var(--shadow); }
.gate-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gate-opt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.gate-opt-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gate-opt-t { display: grid; gap: 3px; }
.gate-opt-t strong { font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gate-opt-t small { color: var(--muted); font-size: .8125rem; }
.gate-opt-go { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate-opt.is-free { border-color: transparent; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--brand-a) 80%, transparent); }
.gate-opt.is-free .gate-opt-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.gate-opt.is-free .gate-opt-ic svg { fill: currentColor; stroke: none; }
.gate-opt.is-free small { color: rgba(255, 255, 255, .85); }
.gate-opt.is-free .gate-opt-go { stroke: #fff; }
.gate-opt.is-free .pill { background: #fff; color: var(--brand-a); }

/* ---------- faixa do visitante ---------- */
.vi-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--r-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--brand-a) 14%, var(--surface)), color-mix(in srgb, var(--brand-b) 10%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: var(--shadow); animation: fl-fade .4s ease both; }
.vi-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; }
.vi-ic.ok { background: var(--pass); }
.vi-ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vi-t { display: grid; gap: 3px; min-width: 0; }
.vi-t .eyebrow { color: var(--accent); }
.vi-t strong { font-size: 1rem; line-height: 1.3; }
.vi-t small { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.vi-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) {
  .vi-band { grid-template-columns: auto minmax(0, 1fr); }
  .vi-acts { grid-column: 1 / -1; justify-content: stretch; }
  .vi-acts .btn { flex: 1; }
}

/* menu: cadeado nas seções que pedem matrícula; Continuar some depois da aula grátis */
html[data-visitor] #nav a[data-route]:not([data-route="painel"]):not([data-route="curso"]),
html[data-visitor] #nav .nav-help { opacity: .55; position: relative; }
html[data-visitor] #nav a[data-route]:not([data-route="painel"]):not([data-route="curso"])::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-visitor]:not([data-visitor="aula"]) .resume { display: none !important; }

/* ---------- cartão de interesse (5.7: topo em degradê, passos numerados, entrada animada) ---------- */
.vi-sheet .fl-modal-card { position: relative; gap: 0; padding: 0; overflow-x: hidden; }
.vi-x { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); }
.vi-sheet.is-sent .vi-x { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.vi-body { display: grid; gap: 0; font-size: .9375rem; line-height: 1.55; }

.vi-hero { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 26px 24px 24px; color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); isolation: isolate; }
.vi-hero h2 { font-size: clamp(1.4rem, 4.6vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; padding-right: 40px; animation: vi-up .5s cubic-bezier(.2, .8, .2, 1) .05s both; }
.vi-hero p { color: rgba(255, 255, 255, .88); max-width: 56ch; animation: vi-up .5s cubic-bezier(.2, .8, .2, 1) .12s both; }
.vi-kick { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; animation: vi-up .45s ease both; }
.vi-kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-dot); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-dot) 70%, transparent); animation: vi-ping 1.8s ease-out infinite; }
.vi-orb { position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); animation: vi-float 7s ease-in-out infinite; }
.vi-orb.b { width: 160px; height: 160px; right: auto; left: -60px; top: auto; bottom: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--brand-dot) 55%, transparent), transparent 65%); animation-duration: 9s; animation-direction: reverse; }
.vi-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vi-perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: .8125rem; font-weight: 600; animation: vi-up .45s ease both; animation-delay: calc(.2s + var(--i) * 70ms); }
.vi-perks svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vi-score { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; animation: vi-up .45s ease .2s both; }
.vi-score span { padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); font-size: .875rem; }
.vi-score b { font-family: var(--font-display); font-size: 1.25rem; margin-right: 2px; }

.vi-form { display: grid; gap: 20px; padding: 22px 24px 24px; }
.vi-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vi-lbl { padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }

.vi-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vi-levels .vi-g2 { gap: 8px; }
.vi-plan { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 16px 16px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1); animation: vi-up .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--i) * 80ms); }
.vi-plan:hover { transform: translateY(-2px); }
.vi-plan input { position: absolute; opacity: 0; pointer-events: none; }
.vi-plan:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); transform: translateY(-2px); }
.vi-plan:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.vi-plan-h { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vi-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .2s ease; }
.vi-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.vi-plan:has(input:checked) .vi-radio { border-color: var(--accent); }
.vi-plan:has(input:checked) .vi-radio::after { transform: scale(1); }
.vi-old { color: var(--muted); font-size: .8125rem; }
.vi-now { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.1; }
.vi-now small { font-family: var(--font-body); font-size: .8125rem; font-weight: 500; color: var(--muted); }
.vi-plan.year .vi-now { color: var(--accent); }
.vi-per { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.vi-off { margin-top: 8px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--pass-soft); color: var(--pass); font-size: .72rem; font-weight: 700; }
.vi-best { position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; font-size: .6875rem; font-weight: 700; box-shadow: 0 6px 16px -8px var(--brand-a); }

/* nível: 4 opções com barrinhas de sinal, no lugar do select */
.vi-level { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.vi-level:hover { transform: translateY(-1px); }
.vi-level input { position: absolute; opacity: 0; pointer-events: none; }
.vi-level:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.vi-level:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.vi-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.vi-bars i { width: 5px; border-radius: 3px; background: var(--line); transition: background-color .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.vi-bars i:nth-child(1) { height: 7px; } .vi-bars i:nth-child(2) { height: 12px; } .vi-bars i:nth-child(3) { height: 17px; } .vi-bars i:nth-child(4) { height: 22px; }
.vi-bars i.on { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vi-level:has(input:checked) .vi-bars i.on { background: var(--accent); transform: scaleY(1.08); }
.vi-level-t { display: grid; gap: 1px; min-width: 0; }
.vi-level-t strong { font-size: .875rem; line-height: 1.25; }
.vi-level-t small { color: var(--muted); font-size: .75rem; line-height: 1.3; }

/* contato: rótulos que sobem ao digitar */
.vi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vi-grid .vi-wide { grid-column: 1 / -1; }
.vi-field { position: relative; display: block; }
.vi-field .field { min-height: 54px; padding: 22px 14px 8px; border-radius: 14px; font-size: 1rem; }
.vi-field span { position: absolute; left: 15px; top: 16px; color: var(--muted); font-size: .9375rem; pointer-events: none; transform-origin: left top; transition: transform .2s ease, color .2s ease; }
.vi-field .field:focus + span, .vi-field .field:not(:placeholder-shown) + span { transform: translateY(-9px) scale(.76); color: var(--accent); font-weight: 600; }

.vi-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .875rem; cursor: pointer; }
.vi-consent input { position: absolute; opacity: 0; pointer-events: none; }
.vi-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--surface); transition: background-color .2s ease, border-color .2s ease; }
.vi-check svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s ease .05s; }
.vi-consent:has(input:checked) .vi-check { background: var(--accent); border-color: var(--accent); }
.vi-consent:has(input:checked) .vi-check svg { stroke-dashoffset: 0; }
.vi-consent:has(input:focus-visible) .vi-check { outline: 3px solid var(--accent); outline-offset: 2px; }

.vi-send { position: relative; overflow: hidden; width: 100%; min-height: 54px; font-size: 1rem; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; box-shadow: 0 16px 30px -18px var(--brand-a); }
.vi-send::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: vi-shine 3.2s ease-in-out 1s infinite; }
.vi-send svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.vi-send:hover svg { transform: translateX(3px); }
.vi-send.is-busy { filter: saturate(.7); }
.vi-send.is-busy::after { animation-duration: 1s; animation-delay: 0s; }
.vi-priv { display: flex; gap: 8px; align-items: flex-start; justify-content: center; color: var(--muted); font-size: .75rem; text-align: left; }
.vi-priv svg { flex: none; width: 14px; height: 14px; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vi-skip { display: block; padding: 0 24px 22px; text-align: center; color: var(--muted); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.vi-skip:hover { color: var(--accent); }

/* depois do envio: selo animado, passos e próximos passos */
.vi-done { display: grid; gap: 14px; padding: 34px 24px 24px; text-align: center; }
.vi-done h2 { font-size: clamp(1.4rem, 4.6vw, 1.7rem); letter-spacing: -.02em; animation: vi-up .45s ease .35s both; }
.vi-done > p { color: var(--muted); animation: vi-up .45s ease .42s both; }
.vi-burst { position: relative; width: 84px; height: 84px; margin: 0 auto 4px; }
.vi-burst i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 2px; background: var(--brand-dot); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: vi-conf .9s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(.45s + var(--d)); }
.vi-burst i:nth-child(3n) { background: var(--brand-b); } .vi-burst i:nth-child(3n + 1) { background: var(--pass); border-radius: 50%; }
.vi-seal { width: 84px; height: 84px; }
.vi-seal-c { fill: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); stroke: var(--accent); stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; animation: vi-draw .7s ease forwards; }
.vi-seal-p { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: vi-draw .5s ease .5s forwards; }
.vi-steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 0; text-align: left; }
.vi-steps li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 0 0 16px; animation: vi-up .45s ease both; animation-delay: calc(.55s + var(--i) * 120ms); }
.vi-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.vi-steps li.done::before { background: var(--accent); }
.vi-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .8125rem; border: 2px solid var(--line); }
.vi-dot svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vi-steps li.done .vi-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vi-steps li.now .vi-dot { border-color: var(--accent); color: var(--accent); animation: vi-ping-b 1.8s ease-out 1.2s infinite; }
.vi-steps strong { display: block; font-size: .9375rem; padding-top: 4px; }
.vi-steps small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.vi-later { color: var(--muted); font-size: .8125rem; }
.vi-later .linklike { font-size: inherit; }
.vi-test { display: grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); font-size: .8125rem; color: var(--muted); }
.vi-mail { text-align: left; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; }
.vi-mail summary { padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.vi-mail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; padding: 0 14px 10px; }
.vi-mail dt { color: var(--muted); }
.vi-mail dd { margin: 0; overflow-wrap: anywhere; }
.vi-mail-b { margin: 0 14px 14px; padding: 12px; border-radius: 10px; background: var(--surface); line-height: 1.6; overflow-wrap: anywhere; }

.gate-back { display: inline-flex; gap: 6px; margin-top: 4px; }
.gate-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes vi-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes vi-float { 50% { transform: translate(-14px, 12px) scale(1.06); } }
@keyframes vi-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-dot) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes vi-ping-b { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes vi-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes vi-draw { to { stroke-dashoffset: 0; } }
@keyframes vi-conf { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-58px) scale(1); } }

@media (max-width: 560px) {
  .vi-hero { padding: 24px 18px 20px; }
  .vi-form { padding: 18px 16px 20px; gap: 18px; }
  .vi-plans .vi-g2 { gap: 10px; }
  .vi-plan { padding: 16px 12px 12px; border-radius: 16px; }
  .vi-now { font-size: 1.3rem; }
  .vi-per { font-size: .72rem; }
  .vi-best { right: 8px; font-size: .625rem; }
  .vi-levels .vi-g2, .vi-grid { grid-template-columns: 1fr; }
  .vi-done { padding: 30px 16px 20px; }
  .vi-skip { padding: 0 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vi-sheet *, .vi-sheet *::before, .vi-sheet *::after { animation: none !important; transition: none !important; }
  .vi-seal-c, .vi-seal-p { stroke-dashoffset: 0; }
}

/* ---------- resultado da aula grátis ---------- */
.vi-progress { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.vi-progress div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vi-progress span:not(.ld-bar) { color: var(--muted); font-size: .8125rem; }
.vi-words { display: grid; gap: 8px; }
.vi-words .eyebrow { color: var(--accent); }
.vi-words ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vi-words li { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 600; animation: fl-fade .4s ease both; animation-delay: calc(.6s + var(--i) * 40ms); }
@media (prefers-reduced-motion: reduce) { .vi-band, .vi-words li { animation: none; } }
