/* intro-std.css — one start screen for every IQ test (Robert, 3 Nov 2026: "make the Standard IQ Test layout the standard";
   v2, 4 Nov 2026: one version picker too — the /quiz cards (.v3-forms / .v3-form) on WAIS, CHC, SB5, Mensa and Wonderlic).
   Reference: /quiz. Card 1 = title, short intro, "Choose your version" with the Quick / Normal / Full tiles and their prices,
   the note. Card 2 (built by intro-more.js) = the skills the test scores + "How this test is built" (test-facts.js).
   Desktop: both cards 760px wide, 20px corners, hairline border, no heavy shadow, 24px apart, text centred.
   Phone: card 1 keeps each page's own "fills the screen at --edge" rules; card 2 follows --edge below it.
   Loaded by: wais-, stanford-binet-, chc-, mensa-, wonderlic-, moca-, quick-iq-, iq- and full-iq-quiz. */

/* ---------- card 2 ---------- */
.im-card{text-align:center}
.im-card[hidden]{display:none!important}
.im-card .im-h{font-size:1rem!important;font-weight:700;margin:0 0 12px!important;color:var(--text,#0F172A);line-height:1.3;letter-spacing:0;text-transform:none}
.im-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.im-chips span{padding:6px 14px;border-radius:50px;font-size:.85rem;font-weight:700;line-height:1.35}
.im-c1{background:rgba(13,148,136,.12);color:#115E59}
.im-c2{background:rgba(2,132,199,.12);color:#1D4ED8}
.im-c3{background:rgba(6,182,212,.12);color:#047857}
.im-c4{background:rgba(234,88,12,.12);color:#9A3412}
.im-c5{background:rgba(13,148,136,.12);color:#BE185D}
.im-c6{background:rgba(124,58,237,.10);color:#6D28D9}
.im-card .tf{margin:28px auto 0!important;display:block!important}
.im-card .w5-parts{text-align:left;margin:0 0 24px}

/* MoCA: the empty progress bar above the start card (shown only once the tasks run) */
.m5-wrap #m5Top[hidden]{display:none!important}
.m5-wrap:has(#m5Top[hidden]){gap:var(--edge,14px)}

/* ---------- step 1 of card 1: centred like /quiz ---------- */
#w5Intro:not(.w5-setup),.start-card,#quizIntro .quiz-card,.m5-wrap:has(#m5Top[hidden]) #m5Stage:not(.m5-setup){text-align:center}
#w5Intro:not(.w5-setup) .w5-lede,.m5-wrap:has(#m5Top[hidden]) #m5Stage:not(.m5-setup) p{margin-left:auto;margin-right:auto}
#w5Intro:not(.w5-setup) .w5-verlabel,.m5-wrap:has(#m5Top[hidden]) #m5Stage:not(.m5-setup) .m5-verlabel,#quizIntro .ver-label,.start-card .mz-verlabel,.im-verlabel{font-size:1rem!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;color:var(--text,#0F172A)!important;text-align:center}
#w5Intro.w5-setup,.start-card.mz-setup{text-align:left}
#w5Intro.w5-setup .w5-eyebrow,#w5Intro.w5-setup h1{text-align:center}

/* ---------- start screens with a gradient hero (Mensa, fast & accurate): plain background, cards stacked ---------- */
body[data-quiz-type="mensa"] .start-screen,body[data-quiz-type="iqf"] .start-screen{flex-direction:column;background:var(--bg,#F8FAFC)!important}
body[data-quiz-type="mensa"] .start-screen::before,body[data-quiz-type="mensa"] .start-screen::after,
body[data-quiz-type="iqf"] .start-screen::before,body[data-quiz-type="iqf"] .start-screen::after{display:none!important}

@media(min-width:769px){
  /* the two cards */
  #w5Intro,.w5 > .im-card,.start-card,#quizIntro .quiz-card,#m5Stage,.m5-wrap > .im-card{border:1px solid rgba(13,148,136,.06)!important;border-radius:20px!important;box-shadow:none!important}
  #w5Intro,.start-card:not(.im-card),#quizIntro .quiz-card:not(.im-card),.m5-wrap:has(#m5Top[hidden]) #m5Stage{padding:clamp(28px,5vw,56px) clamp(20px,4vw,40px)!important}
  .im-card{padding:clamp(22px,4vw,40px) clamp(16px,4vw,40px)!important}
  .w5{max-width:800px;gap:24px}
  .m5-wrap,.m5-wrap:has(#m5Top[hidden]){max-width:760px;gap:24px}
  #quizIntro .quiz-card{margin-bottom:24px}
  body[data-quiz-type="mensa"] .start-screen,body[data-quiz-type="iqf"] .start-screen{justify-content:flex-start;align-items:center;gap:24px;min-height:100vh;padding:90px 20px 40px}
  .start-card{max-width:760px!important}
  /* titles: one size */
  #w5Intro h1,.start-card h1,#quizIntro .quiz-card h1,.m5-wrap:has(#m5Top[hidden]) #m5Stage h1{font-size:clamp(1.3rem,5vw,1.8rem)!important;line-height:1.25}
}
@media(max-width:768px){
  /* card 2 is never the full-screen card (the pages' phone rules size every card of their kind) */
  .im-card{min-height:0!important;display:block!important;flex:none!important;padding:20px 16px!important;border-radius:16px!important;box-shadow:none!important;margin:0!important}
  #quizIntro .im-card{margin-top:var(--edge,14px)!important}
  body[data-quiz-type="iqf"] .start-screen{gap:var(--edge,14px)}
  .im-card .tf{margin:20px auto 0!important}
  .start-card .start-title{font-size:1.3rem!important;margin-bottom:8px!important}
}

/* ---- The version picker (v2, 4 Nov 2026, Robert: "use the Standard IQ Test layout for the 3 versions") ----
   Same markup everywhere: <div class="v3-forms" role="radiogroup"><button class="v3-form [sel]" data-v|data-form=…>
   [<i>Recommended</i>]<b>Name</b><span>N questions|tasks · about X min</span><em class="v3-price" data-ver-price=…></em></button>.
   The line under the cards (.ver-free) comes from ver-price.js. No "First time? Start here" tag, no per-version blurb:
   the "How this test is built" card below carries that. Rules copied from /quiz (quiz.html keeps its own copy). */
.v3-forms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 auto 28px;max-width:680px;padding:0}
.v3-form{position:relative;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;padding:20px 14px 18px;border-radius:14px;border:2px solid rgba(13,148,136,.18);background:#fff;cursor:pointer;font:inherit;color:var(--text,#0F172A);text-align:center;transition:border-color .15s,box-shadow .15s;min-width:0}
.v3-form b{font-size:1.02rem;flex-shrink:0}
.v3-form span{font-size:.78rem;color:var(--text-muted,#475569);line-height:1.35}
.v3-form i{position:absolute;top:-10px;left:50%;transform:translateX(-50%);font-style:normal;font-size:.66rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--primary,#0D9488);color:#fff;padding:2px 8px;border-radius:999px;white-space:nowrap}
.v3-form.sel,.v3-form[aria-checked="true"]{border-color:var(--primary,#0D9488);box-shadow:0 0 0 3px rgba(13,148,136,.15);background:rgba(13,148,136,.04)}
.v3-form:focus-visible{outline:3px solid #0284C7;outline-offset:2px}
@media(hover:hover){.v3-form:hover{border-color:var(--primary,#0D9488)}}
.v3-form .v3-price{font-style:normal;font-weight:800;color:#0F766E;font-size:.82rem;margin-top:2px}
.v3-form .v3-price:empty{display:none}
/* the label above the cards: the /quiz h2 */
.w5-verlabel,.mz-verlabel,.ver-label{font-size:1rem!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;color:var(--text,#0F172A)!important;text-align:center;margin:0 0 12px!important}
@media(max-width:768px){
  .v3-forms{width:100%;max-width:none;grid-template-columns:1fr;gap:16px}
  .v3-form{display:grid;grid-template-columns:1fr auto;grid-template-areas:"b p" "s p";column-gap:12px;row-gap:2px;align-items:center;padding:11px 14px;text-align:left}
  .v3-form b{grid-area:b}
  .v3-form span{grid-area:s;text-align:left}
  .v3-form .v3-price{grid-area:p;text-align:right;margin:0;max-width:110px;line-height:1.3}
  .v3-form i{right:12px;left:auto;transform:none}
  /* the free line follows the cards; the free space of the full-screen card goes under the line, not between them */
  #quizIntro .v3-forms,#w5Intro:not(.w5-setup) .w5-vers.v3-forms,.start-card:not(.mz-setup) .mz-vers.v3-forms,#quizIntro .quiz-card:not(.wl-setup) .ver-grid.v3-forms{margin-bottom:0!important}
  .v3-forms+.ver-free{margin:12px 0 auto!important}
}
