/* Elevate typing test — scoped to .tt so it never leaks into the shared site styles */
.tt {
  --tt-slab: #15140f;
  --tt-slab-2: #211f1a;
  --tt-wu: #9a9387;
  --tt-accent: #f2803f;
  --tt-ok: #ffffff;
  --tt-bad: #ff6b5e;
  --tt-ext: #c4483c;
  --tt-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
}
.tt *, .tt *::before, .tt *::after { min-width: 0; }
.tt [hidden] { display: none !important; }
.tt button, .tt input, .tt select { font: inherit; color: inherit; }
.tt :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.tt .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tt .band { padding: clamp(36px, 5vw, 72px) max(5vw, 16px); }
.tt .wrap { max-width: var(--maxw); margin: 0 auto; }
.tt .view { display: none; }
.tt .view.on { display: block; }

/* intake */
.tt .form { max-width: 640px; margin: 0 auto; }
.tt .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.tt .brandline { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tt h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 6px; font-weight: 800; }
.tt .prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.tt .prog span { height: 8px; border-radius: 9px; background: var(--border); overflow: hidden; position: relative; }
.tt .prog span::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--primary); transition: width 0.35s; }
.tt .prog span.done::after { width: 100%; }
.tt .prog span.cur::after { width: 50%; }
.tt .plab { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 28px; }
.tt .plab b { color: var(--ink); }
.tt .stepn { color: var(--primary-dark); font-weight: 700; font-size: 0.88rem; margin: 0 0 4px; }
.tt .sub { color: var(--ink-soft); margin: 0 0 24px; }
.tt .f { margin-bottom: 18px; }
.tt .f label, .tt .f .lb { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.tt .f input[type=text], .tt .f input[type=email], .tt .f input[type=tel], .tt .f select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 1rem;
}
.tt .f input:focus, .tt .f select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(221, 84, 19, 0.2); }
.tt .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.tt .tel { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.tt .f .e { color: #c0291b; font-size: 0.88rem; margin-top: 4px; }
.tt .f.bad input, .tt .f.bad select { border-color: #c0291b; }
.tt .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.tt .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tt .chip { position: relative; }
.tt .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tt .chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 0.94rem; background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.tt .chip span:hover { border-color: var(--ink); }
.tt .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tt .chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.tt .acts { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.tt .priv { font-size: 0.82rem; color: var(--ink-soft); margin-top: 18px; }

/* buttons */
.tt .btn { min-height: 48px; padding: 0.75rem 1.6rem; background: var(--primary); color: #fff; border-color: var(--primary); font-size: 1rem; }
.tt .btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.tt .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.tt .btn.ghost:hover { background: var(--ink); color: #fff; }

/* language select */
.tt .lsel { position: relative; display: inline-flex; align-items: center; color: var(--ink-soft); }
.tt .lsel::before { content: ""; position: absolute; left: 12px; width: 16px; height: 16px; pointer-events: none; background: currentColor; -webkit-mask: var(--tt-globe) center/contain no-repeat; mask: var(--tt-globe) center/contain no-repeat; }
.tt .lsel::after { content: ""; position: absolute; right: 14px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); pointer-events: none; }
.tt .lsel select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 8px 36px 8px 38px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 0.94rem; cursor: pointer; }
.tt .lsel.dark { color: var(--tt-wu); }
.tt .lsel.dark select { background: rgba(255, 255, 255, 0.07); border-color: transparent; color: var(--tt-wu); }
.tt .lsel.dark select:hover { color: #fff; }
.tt .lsel.dark option { color: var(--ink); background: #fff; }

/* test */
.tt .tband { background: var(--tt-slab); color: #fff; min-height: 560px; }
.tt .tbar { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 28px; }
.tt .seg { display: flex; background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 3px; }
.tt .seg button { border: 0; background: none; color: var(--tt-wu); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; font-weight: 500; }
.tt .seg button[aria-pressed=true] { color: var(--tt-accent); background: rgba(255, 255, 255, 0.08); }
.tt .seg button:hover { color: #fff; }
.tt .hi { text-align: center; color: var(--tt-wu); margin: 0 0 10px; font-size: 0.95rem; }
.tt .hi b { color: #fff; }
.tt .timer { font: 500 32px "Roboto Mono", ui-monospace, monospace; color: var(--tt-accent); height: 44px; max-width: 1000px; margin: 0 auto; }
.tt .box { position: relative; max-width: 1000px; margin: 0 auto; cursor: text; }
.tt .words { font: 400 clamp(20px, 2.6vw, 28px)/1.6 "Roboto Mono", ui-monospace, monospace; height: 4.8em; overflow: hidden; position: relative; color: var(--tt-wu); }
.tt .inner { transition: transform 0.15s; }
.tt .w { display: inline-block; margin-right: 0.6em; border-bottom: 2px solid transparent; line-height: 1.5; }
.tt .w.err { border-bottom-color: var(--tt-bad); }
.tt .l.ok { color: var(--tt-ok); }
.tt .l.bad { color: var(--tt-bad); }
.tt .l.ext { color: var(--tt-ext); }
.tt .caret { position: absolute; width: 3px; border-radius: 2px; background: var(--tt-accent); transition: left 0.08s, top 0.08s; animation: tt-blink 1s steps(1) infinite; }
.tt .typing .caret { animation: none; }
@keyframes tt-blink { 50% { opacity: 0; } }
.tt .blur { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21, 20, 15, 0.8); backdrop-filter: blur(3px); border-radius: 12px; font-weight: 600; color: #fff; font-size: 1.05rem; text-align: center; padding: 12px; }
.tt .hid { position: absolute; opacity: 0; left: 0; top: 0; width: 1px; height: 1px; border: 0; padding: 0; }
.tt .keys { text-align: center; color: var(--tt-wu); font-size: 0.88rem; margin-top: 34px; }
.tt kbd { background: rgba(255, 255, 255, 0.1); border-radius: 5px; padding: 2px 7px; font: 13px "Roboto Mono", ui-monospace, monospace; color: #fff; }

/* results */
.tt .res { max-width: 1000px; margin: 0 auto; }
.tt .big { display: flex; gap: 16px 44px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.tt .big div { color: var(--tt-wu); font-size: 0.95rem; }
.tt .big b { display: block; font: 500 clamp(44px, 7vw, 72px)/1 "Roboto Mono", ui-monospace, monospace; color: var(--tt-accent); }
.tt .big .s b { font-size: clamp(28px, 4vw, 40px); color: #fff; }
.tt .lvl { display: inline-block; background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; }
.tt .fig { position: relative; min-height: 220px; margin: 6px 0 10px; }
.tt .fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt .leg { display: flex; gap: 18px; font-size: 0.82rem; color: var(--tt-wu); flex-wrap: wrap; }
.tt .leg i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.tt .det { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.tt .det div { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 12px 14px; color: var(--tt-wu); font-size: 0.88rem; }
.tt .det b { display: block; color: #fff; font: 500 22px "Roboto Mono", ui-monospace, monospace; white-space: nowrap; }
.tt .res .acts { justify-content: flex-start; }
.tt .res .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.tt .res .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.tt .expl { color: var(--tt-wu); font-size: 0.88rem; margin: -8px 0 14px; max-width: 70ch; }
.tt .shareP { margin-top: 16px; background: rgba(255, 255, 255, 0.05); border-radius: 14px; padding: 16px 18px; }
.tt .shq { margin: 0 0 12px; color: #fff; font-size: 0.95rem; }
.tt .shb { display: flex; gap: 10px; flex-wrap: wrap; }
.tt .sb { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 0; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; background: rgba(255, 255, 255, 0.12); font-size: 0.95rem; }
.tt .sb svg { width: 20px; height: 20px; }
.tt .sb.fb { background: #1877f2; }
.tt .sb.fb:hover { background: #0f65d6; }
.tt .sb.wa { background: #1a8f49; }
.tt .sb.wa:hover { background: #157a3d; }
.tt .note { color: var(--tt-wu); font-size: 0.88rem; margin-top: 12px; min-height: 1.4em; }

@media (max-width: 820px) { .tt .det { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tt .two { grid-template-columns: minmax(0, 1fr); } .tt .plab { font-size: 0.75rem; } .tt .timer { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .tt *, .tt *::before, .tt *::after { animation: none !important; transition: none !important; } }
