/* Singo — testes grátis (extensão vocal, desafinado). Página leve: não carrega o app nem landing.css.
   Tokens = os mesmos de landing.css/app.css (mesmos nomes e valores). Mudou lá? Mude aqui. */
@font-face { font-family: 'Instrument Serif Fb'; src: local('Georgia'), local('Times New Roman'); size-adjust: 75.5%; ascent-override: 131%; descent-override: 41%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Fb'; src: local('Arial'), local('Helvetica'); font-weight: 400 599; size-adjust: 103.4%; ascent-override: 94%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Fb'; src: local('Arial Bold'), local('Helvetica Bold'); font-weight: 600 900; size-adjust: 100%; ascent-override: 97%; descent-override: 30%; line-gap-override: 0%; }
:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --ink: #17161C; --ink-2: #5A5866; --ink-3: #6E6C7A; --line: #E7E3DA;
  --lane: #FCFBF8; --lane-sharp: #F3F0E9; --note: #8C93F0; --accent: #4048C9; --accent-soft: #ECEBF5;
  --voice: #E0336F; --voice-soft: #FDE8EF; --hit: #077A5F; --hit-soft: #E2F5EF; --off: #C2410C; --off-soft: #FCEDE5;
  --display: 'Instrument Serif', 'Instrument Serif Fb', Georgia, serif;
  --radius: 18px; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 0 0 1px rgb(23 22 28 / 0.055), 0 14px 34px -24px rgb(23 22 28 / 0.28);
  --gut: 20px; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 Onest, 'Onest Fb', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
::selection { background: var(--voice-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
.ftwrap { width: 100%; max-width: 720px; margin: 0 auto; padding-inline: var(--gut); }

/* ------------------------------------------------------------- topo */
.ftbar { padding-top: env(safe-area-inset-top); }
.ftbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ftmark { font: 400 1.75rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 2px; }
.ftdot { width: 7px; height: 7px; border-radius: 50%; background: var(--voice); display: inline-block; }
.ftlang { font-size: 0.8125rem; color: var(--ink-3); }
.ftlang a { color: var(--ink-2); text-decoration: none; padding: 10px 2px; }
.ftlang a[aria-current] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- herói + cartão do teste */
.fthero { padding: 20px 0 8px; }
.fteyebrow { font-size: 0.8125rem; font-weight: 600; color: var(--voice); letter-spacing: 0.02em; }
.fthero h1 { font: 400 clamp(2.5rem, 9vw, 3.75rem)/1.02 var(--display); letter-spacing: -0.02em; margin-top: 6px; }
.ftlede { color: var(--ink-2); font-size: 1.0625rem; margin-top: 12px; max-width: 34em; }
.ftcard {
  margin-top: 24px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow);
  padding: 22px 20px 24px; min-height: 340px; display: flex; flex-direction: column; gap: 16px;
}
.ftnojs { margin-top: 12px; color: var(--off); }
.ftstep { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; }
.fthint { color: var(--ink-2); }
.ftmic { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.9375rem; background: var(--lane); border-radius: 14px; padding: 12px 14px; }
.ftmic svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--voice); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ftgrow { flex: 1 1 auto; }

.ftbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 13px; border: 1px solid transparent;
  background: transparent; color: var(--ink); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
  touch-action: manipulation;
}
.ftbtn:active { transform: scale(0.97); }
.ftbtn.primary { background: var(--ink); color: #fff; }
.ftbtn.line { border-color: #D6D1C6; background: var(--surface); }
.ftbtn.ghost { color: var(--ink-2); padding-inline: 10px; }
.ftbtn.lg { min-height: 54px; padding: 0 24px; border-radius: 14px; font-size: 1rem; }
.ftbtn.wide { width: 100%; }
.fttrain { display: flex; flex-direction: column; gap: 8px; }
.fttrterms { font-size: 0.8125rem; color: var(--ink-3); text-align: center; }
.fttrterms a { color: var(--ink-2); }
.fttrerr { font-size: 0.875rem; color: #B42318; text-align: center; }
.fttrerr:empty { display: none; }
.ftbtn[disabled] { opacity: 0.5; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .ftbtn.primary:hover { background: #2B2A33; }
  .ftbtn.line:hover { border-color: var(--ink-3); }
  .ftbtn.ghost:hover { color: var(--ink); background: rgb(23 22 28 / 0.05); }
}

/* nota ao vivo */
.ftlive { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 92px; }
.ftnote { font: 400 clamp(3.5rem, 16vw, 4.75rem)/0.9 var(--display); letter-spacing: -0.02em; color: var(--ink); min-width: 2ch; }
.oct { font: 500 0.42em/1 Onest, 'Onest Fb', system-ui, sans-serif; letter-spacing: 0; margin-left: 0.06em; }
.ftnote.dim { color: #CFCAC0; }
.ftnote.got { color: var(--voice); }
.ftmeta { text-align: right; font-size: 0.875rem; color: var(--ink-2); min-height: 2.6em; }
.fthold { height: 6px; border-radius: 3px; background: var(--lane-sharp); overflow: hidden; }
.fthold i { display: block; height: 100%; width: 100%; background: var(--voice); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 90ms linear; }
.ftmsg { min-height: 1.6em; font-size: 0.9375rem; color: var(--ink-2); }
.ftmsg.ok { color: var(--hit); font-weight: 600; }
.ftmsg.warn { color: var(--off); }

/* teclado (assinatura: o trilho do app, voz em magenta) */
.ftkeys { width: 100%; height: auto; display: block; }
.ftkeys .w { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.ftkeys .b { fill: #2B2A33; }
.ftkeys .wi { fill: var(--voice-soft); }
.ftkeys .bi { fill: var(--voice); }
.ftkeys .c { font: 600 9px Onest, 'Onest Fb', sans-serif; fill: var(--ink-3); }
.ftkeys .dot { fill: var(--voice); transition: transform 90ms linear, opacity 160ms ease; }
.ftkeys .mark { fill: var(--voice); }
.ftkeyscroll { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; scrollbar-width: none; }
.ftkeyscroll::-webkit-scrollbar { display: none; }
.ftkeyscroll .ftkeys { min-width: 520px; }

/* resultado */
.ftres h2 { font: 400 2.25rem/1.05 var(--display); letter-spacing: -0.01em; }
.ftrange { font: 400 clamp(3rem, 14vw, 4.25rem)/1 var(--display); letter-spacing: -0.02em; color: var(--voice); margin-top: 4px; }
.ftfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ftfact { background: var(--lane); border-radius: 14px; padding: 12px 14px; }
.ftfact b { display: block; font: 400 1.75rem/1.1 var(--display); }
.ftfact span { font-size: 0.8125rem; color: var(--ink-3); }
.ftsmall { font-size: 0.875rem; color: var(--ink-3); }
.ftsing { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ftsing h3 { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.ftsing ul { list-style: none; margin: 0 0 6px; padding: 0; }
.ftsing li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.9375rem; }
.ftsing li:last-child { border-bottom: 0; }
.ftsing li span { color: var(--ink-2); white-space: nowrap; }
.ftsing .ftsmall { margin: 4px 0 0; font-size: 0.8125rem; }
.ftshared { font-size: 0.9375rem; color: var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }

/* desafinado */
.ftq { font: 400 1.75rem/1.15 var(--display); }
.ftchoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ftchoices .ftbtn { min-height: 60px; flex-direction: column; gap: 2px; padding: 8px 6px; border-color: #D6D1C6; background: var(--surface); white-space: normal; text-align: center; }
.ftchoices .ftbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ftchoices .ftbtn.right { background: var(--hit-soft); border-color: var(--hit); color: var(--hit); }
.ftchoices .ftbtn.wrong { background: var(--off-soft); border-color: var(--off); color: var(--off); }
.ftdots { display: flex; gap: 6px; }
.ftdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lane-sharp); }
.ftdots i.r { background: var(--hit); }
.ftdots i.x { background: var(--off); }
.ftdots i.now { background: var(--ink); }
.ftcents { position: relative; height: 56px; border-radius: 14px; background: var(--lane); overflow: hidden; }
.ftcents .zone { position: absolute; top: 0; bottom: 0; left: 42.5%; width: 15%; background: var(--hit-soft); }
.ftcents .mid { position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px; margin-left: -1px; background: var(--hit); border-radius: 1px; }
.ftcents .you { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--voice); opacity: 0; transition: transform 90ms linear, opacity 160ms ease; }
.ftcents .lbl { position: absolute; bottom: 4px; font-size: 0.6875rem; color: var(--ink-3); }
.ftscores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ftscore { border-radius: 16px; padding: 14px 16px; background: var(--lane); }
.ftscore b { font: 400 3rem/1 var(--display); }
.ftscore small { font-size: 1rem; color: var(--ink-3); }
.ftscore span { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.ftbar2 { height: 6px; border-radius: 3px; background: var(--lane-sharp); margin-top: 10px; overflow: hidden; }
.ftbar2 i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; transition: transform 600ms var(--ease-out); }
.fthonest { border-left: 3px solid var(--voice); padding: 2px 0 2px 12px; color: var(--ink); }

/* entrada dos passos: só opacidade + leve subida, 220ms */
.ftin { animation: ftIn 220ms var(--ease-out) both; }
@keyframes ftIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .ftin { animation: ftFade 180ms ease both; }
  @keyframes ftFade { from { opacity: 0; } }
  .fthold i, .ftkeys .dot, .ftcents .you, .ftbar2 i { transition: none; }
}

/* ------------------------------------------------------------- chamada pro app */
.ftcta {
  margin-top: 28px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--ink); color: #fff; border-radius: 22px; padding: 22px 20px;
}
.ftcta img { width: 72px; height: 72px; border-radius: 18px; background: #2B2A33; flex: none; }
.ftcta h2 { font: 400 1.875rem/1.08 var(--display); letter-spacing: -0.01em; }
.ftcta p { color: #D9D6E0; font-size: 0.9375rem; margin-top: 8px; }
.ftcta .ftbtn.primary { background: #fff; color: var(--ink); margin-top: 16px; }
@media (hover: hover) and (pointer: fine) { .ftcta .ftbtn.primary:hover { background: #ECEAF2; } }
.ftcta .ftterms { font-size: 0.8125rem; color: #B9B5C4; margin-top: 10px; }
.ftcta .ftterms a { color: #fff; }
.fterr { font-size: 0.875rem; color: #FFB4A0; margin-top: 6px; min-height: 0; }
@media (max-width: 480px) { .ftcta { flex-direction: column; } .ftcta .ftbtn { width: 100%; } }

/* ------------------------------------------------------------- texto + perguntas */
.ftart { margin-top: 48px; }
.ftart h2, .ftfaq > h2 { font: 400 2rem/1.1 var(--display); letter-spacing: -0.01em; margin: 36px 0 12px; }
.ftart h2:first-child { margin-top: 0; }
.ftart p { color: #34323D; margin-bottom: 14px; font-size: 1.0625rem; line-height: 1.7; }
.ftfaq { margin-top: 20px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 180ms var(--ease-out); }
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa p { padding: 0 0 18px; color: var(--ink-2); }
.ftmore { margin: 32px 0 8px; font-weight: 600; }
.ftmore a { text-decoration: none; }

.ftfoot { margin-top: 40px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-3); }
.ftfoot a { color: var(--ink-2); }
.ftlang2 { margin-top: 8px; }

@media (min-width: 720px) {
  :root { --gut: 28px; }
  .fthero { padding-top: 36px; }
  .ftcard { padding: 28px 28px 30px; }
  .ftcta { padding: 26px 28px; }
  .ftcta img { width: 88px; height: 88px; }
}
@media (prefers-contrast: more) { .ftbtn.line, .ftchoices .ftbtn { border-color: var(--ink-2); } .ftsmall, .ftmeta { color: var(--ink-2); } }
