/* ha-testmode.css : the full-page test frame every entry test runs in (public/ha-testmode.js).
   Mike 11-15: "when i start these entry tests they need to take the same form factor as our standard entry test, the full page
   dedicated to the test ... reference our primary entry test funnel and use that, just with different test content and make
   this the same for all our entry tests."
   The frame is the primary funnel's quiz screen (public/index.html #app > .brand + #quiz), value for value: the 680px column
   with 20px gutters, the 1.15 / 1.32 desktop zoom, the brand row, .qtop (40px back button, 5px coral bar, mono count), the mono
   "Question 01" label, the Fraunces question, the stacked answer rows with their letter keys, and the keyboard hint.
   Design: Fable, with the Claude Design skills. Board: growth/notes/specs/ha-designs/entry-test-mode-v1.html.
   The tokens are the frame's own (--tm-*): the three host stylesheets do not agree on what --body means. */

.tm{
  --tm-surface:#17152a; --tm-surface-2:#211e36; --tm-ink:#F4ECD8; --tm-ink-2:#d8d1e6; --tm-mut:#9a93b0;
  --tm-line-2:rgba(255,255,255,.15); --tm-shadow-sm:0 1px 3px rgba(0,0,0,.4);
  --tm-acc:#D97757; --tm-acc-ink:#EDA588; --tm-acc-soft:rgba(217,119,87,.14);
  --tm-disp:'Fraunces',Georgia,serif; --tm-sans:'Inter',system-ui,-apple-system,sans-serif; --tm-mono:'JetBrains Mono',ui-monospace,monospace;
  position:relative; z-index:2; box-sizing:border-box; width:100%; max-width:680px; margin:0 auto;
  padding:env(safe-area-inset-top,0px) max(20px,env(safe-area-inset-right,0px)) 48px max(20px,env(safe-area-inset-left,0px));
  min-height:100vh; min-height:100dvh; display:flex; flex-direction:column;
  color:var(--tm-ink); font-family:var(--tm-sans); font-size:16px; line-height:1.5; text-align:left; -webkit-font-smoothing:antialiased;
}
.tm[hidden]{display:none}
.tm *,.tm *::before,.tm *::after{box-sizing:border-box}
.tm :where(h1,h2,h3,p,ul,ol){margin:0}
.tm :where(ul,ol){padding:0;list-style:none}
.tm :where(button){font-family:inherit;cursor:pointer}
.tm-back:focus-visible,.tm-ans:focus-visible{outline:2px solid var(--tm-acc-ink);outline-offset:2px}

/* test mode: nothing of the landing page is on screen, and the page is only as tall as the test */
html[data-tm] body > :not(#ha-tm):not(#skyfx):not(textarea){display:none !important}
html[data-tm]{scroll-behavior:auto}

/* brand row (.brand in the app; 72px tall there, with its 44px Sign in button) */
.tm-brand{display:flex;align-items:center;gap:9px;min-height:72px;padding:22px 2px 6px;font-weight:600;font-size:14px;letter-spacing:-.005em;color:var(--tm-ink-2)}
.tm-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--tm-acc)}

/* .qtop: back, progress, count */
.tm-qtop{display:flex;align-items:center;gap:14px;margin:8px 0 20px}
.tm-back{position:relative;flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:11px;background:var(--tm-surface);border:1px solid var(--tm-line-2);
  font-size:17px;line-height:1;color:var(--tm-ink-2);box-shadow:var(--tm-shadow-sm);transition:background .18s ease}
.tm-back::after{content:"";position:absolute;inset:-3px}   /* a 44px touch target around the 40px button */
.tm-back:hover{background:var(--tm-surface-2)}
.tm-prog{flex:1;height:5px;border-radius:99px;background:#00000010;overflow:hidden}
.tm-prog > i{display:block;height:100%;width:0;border-radius:99px;background:var(--tm-acc);transition:width .45s cubic-bezier(.2,.7,.2,1)}
.tm-count{flex:none;min-width:46px;text-align:right;font-family:var(--tm-mono);font-size:13px;color:var(--tm-mut)}
/* .qmapped: the test's name, centered under the bar */
.tm-kick{margin:-18px 0 22px;min-height:19px;text-align:center;font-family:var(--tm-mono);font-size:12.5px;letter-spacing:.02em;color:var(--tm-acc-ink);opacity:.92}

/* the question */
.tm-qbody{animation:tm-in .4s ease both}
.tm-qnum{margin-bottom:14px;font-family:var(--tm-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--tm-acc-ink)}
.tm-qtext{margin:0 0 28px;font-family:var(--tm-disp);font-weight:500;font-size:clamp(24px,6.2vw,34px);line-height:1.18;letter-spacing:-.01em;color:var(--tm-ink);text-wrap:balance}
.tm-qtext:focus{outline:none}
.tm-answers{display:flex;flex-direction:column;gap:11px}
.tm-ans{display:flex;align-items:center;gap:14px;width:100%;min-height:62px;padding:16px 17px;border-radius:14px;text-align:left;
  background:var(--tm-surface);border:1px solid var(--tm-line-2);box-shadow:var(--tm-shadow-sm);
  color:var(--tm-ink);font-size:16px;font-weight:450;line-height:1.35;
  transition:background .18s ease,border-color .18s ease,transform .12s ease;animation:tm-in .45s cubic-bezier(.2,.7,.2,1) both}
.tm-ans:nth-child(2){animation-delay:.06s}.tm-ans:nth-child(3){animation-delay:.12s}.tm-ans:nth-child(4){animation-delay:.18s}
.tm-ans:nth-child(5){animation-delay:.24s}.tm-ans:nth-child(n+6){animation-delay:.3s}
.tm-ans:hover{background:var(--tm-surface-2)}
.tm-ans:active{transform:scale(.99)}
.tm-ans[aria-checked=true]{border-color:var(--tm-acc);background:var(--tm-acc-soft);box-shadow:0 0 0 1px var(--tm-acc) inset}
.tm-key{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;font-family:var(--tm-mono);font-size:12.5px;font-weight:500;
  color:var(--tm-mut);background:var(--tm-surface-2);border:1px solid var(--tm-line-2)}
.tm-ans:hover .tm-key{color:var(--tm-ink-2)}
.tm-ans[aria-checked=true] .tm-key{color:#fff;background:var(--tm-acc);border-color:var(--tm-acc)}
.tm-ans-t{flex:1;min-width:0;overflow-wrap:anywhere}
/* what the test itself puts beside an answer: its emoji (the check-in) or its color (aura, aesthetic) */
.tm-mark{flex:none;display:grid;place-items:center;min-width:22px;font-size:19px;line-height:1}
.tm-mark--dot{width:16px;min-width:16px;height:16px;border-radius:50%;background:var(--o,#B9A7FF);box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 0 12px -2px var(--o,#B9A7FF)}
.tm-note:empty{display:none}
.tm-note{margin-top:14px}
.tm-hint{margin-top:16px;text-align:center;font-size:13px;color:#9b948a}
.tm-hint b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;margin:0 1px;background:var(--tm-surface);border:1px solid #00000018;border-bottom-width:2px;border-radius:5px;
  font-family:var(--tm-mono);font-size:11px;font-weight:400;color:#6b6358}
@media (hover:none){.tm-keys{display:none}}
.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* which parts are on screen at each step: q = a question; form = the host's own first step (a birthday); gate = the account
   step; result = the result. The host's node (its stage) sits in .tm-host. */
.tm-host{min-width:0;animation:tm-in .4s ease both}
.tm-host > *{margin-top:0 !important}
.tm[data-step=q] .tm-host,.tm[data-step=form] .tm-qbody,.tm[data-step=gate] .tm-qbody,.tm[data-step=result] .tm-qbody,
.tm[data-step=gate] .tm-qtop,.tm[data-step=result] .tm-qtop,.tm[data-step=gate] .tm-kick,.tm[data-step=result] .tm-kick{display:none}
.tm[data-step=result] .tm-host{margin-top:22px}
/* the account step: the app's gate column (.gate-wrap: 440px, centered), no card around the form */
.tm[data-step=gate] .tm-host{width:100%;max-width:440px;margin:0 auto;padding:6vh 4px 0}
.tm[data-step=gate] [data-tm-card],.tm[data-step=form] [data-tm-card]{padding:0 !important;border:0 !important;border-radius:0 !important;background:none !important;box-shadow:none !important}
.tm[data-step=form] [data-tm-title]{margin:0 0 28px;font-family:var(--tm-disp);font-weight:500;font-size:clamp(24px,6.2vw,34px);line-height:1.18;letter-spacing:-.01em;color:var(--tm-ink);text-align:left}
.tm[data-step=gate] [data-tm-glow],.tm[data-step=form] [data-tm-glow]{display:none}

@keyframes tm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* the app scales its pre-app screens up on large windows (zoom scales and reflows); the same here */
@media (min-width:1280px){.tm{zoom:1.15;min-height:calc(100vh / 1.15);min-height:calc(100dvh / 1.15)}}
@media (min-width:1800px){.tm{zoom:1.32;min-height:calc(100vh / 1.32);min-height:calc(100dvh / 1.32)}}
@media (prefers-reduced-motion:reduce){.tm-qbody,.tm-ans,.tm-host{animation:none}.tm-prog > i,.tm-ans,.tm-back{transition:none}}
@media (forced-colors:active){.tm-ans[aria-checked=true]{outline:2px solid Highlight}.tm-prog{border:1px solid CanvasText}.tm-prog > i{background:Highlight}.tm-mark--dot{forced-color-adjust:none}}
