/* IQ Lab — v3
 *
 * Direction: friendly and clear, after the personality.co school — Inter, deep
 * navy type, one emerald green for every action and for the key phrase in a
 * headline, a warm peach hero panel, pale-grey section panels, 8px controls and
 * 16-20px cards. The test screen uses a five-colour agreement scale, red through
 * grey to green, with the statements in white cards.
 *
 * Light only, deliberately: the whole look depends on the warm and pale panels.
 *
 * Inter's Google Fonts "latin" subset includes U+02BB/U+02BC, so oʻ, gʻ and the
 * tutuq belgisi render in the real face, and the cyrillic subset covers uz-Cyrl
 * and ru from the same family.
 */

:root {
  color-scheme: light;

  --bg:        #ffffff;
  --panel:     #f5f6fa;
  --warm:      #fdecd8;
  --ink:       #1a1f3c;
  --muted:     #595f7a;
  --faint:     #8b91a7;
  --line:      #e6e8ef;

  --green:      #0e8a5f;
  --green-dark: #0b7550;
  --green-soft: #e2f4ec;

  /* agreement scale, 1 = not me ... 5 = me */
  --l1: #e5484d;  --l1-soft: #fde4e4;
  --l2: #f08c38;  --l2-soft: #feecdc;
  --l3: #8b93a3;  --l3-soft: #eff0f4;
  --l4: #3cb878;  --l4-soft: #dff4e8;
  --l5: #0e8a5f;  --l5-soft: #cdeee0;

  /* the drawing macros read --accent */
  --accent: var(--green);
  --accent-soft: var(--green-soft);

  --font: "Inter", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --page: 72rem;
  --narrow: 44rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(16, 24, 64, .04), 0 4px 16px rgba(16, 24, 64, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
.hl { font-style: normal; color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ----------------------------------------------------------------- layout */

.shell { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.center { text-align: center; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; line-height: 1.55; }
.tiny { font-size: .75rem; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }

/* ----------------------------------------------------------------- header */

.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 28px; height: 28px; color: var(--green); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .875rem; color: var(--muted);
  padding: .45rem .7rem; border-radius: var(--r-sm);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--panel); color: var(--ink); }
.lang summary svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 11rem; padding: .35rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.lang__menu a { padding: .55rem .75rem; border-radius: var(--r-sm); text-decoration: none; font-size: .9375rem; }
.lang__menu a:hover { background: var(--panel); }
.lang__menu a[aria-current="true"] { color: var(--green); font-weight: 600; }
.lang__menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem .4rem; }

.masthead__right { display: flex; align-items: center; gap: .35rem; }
.nav-daily {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  font-weight: 600; font-size: .875rem; color: var(--green-dark);
  padding: .45rem .8rem; border-radius: var(--r-sm); background: var(--green-soft);
}
.nav-daily:hover { background: #d3eee2; }
.nav-daily svg { width: 16px; height: 16px; }
@media (max-width: 26rem) { .nav-daily span { display: none; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--green); color: #fff; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: #b9c2bf; cursor: not-allowed; transform: none; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--panel); }
.link { color: var(--green); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------- hero */

.hero {
  background: var(--warm);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  overflow: hidden;
}
@media (max-width: 52rem) { .hero { grid-template-columns: 1fr; } .hero .device { display: none; } }
.hero__note { font-size: .8125rem; color: var(--muted); }
/* Participant counter: one big number on navy. */
.counter {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.25rem) var(--gutter) clamp(2.25rem, 5vw, 3.5rem);
}
.counter::before {   /* soft glow behind the number */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(46rem, 120%); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(52, 211, 153, .22), transparent);
}
.counter::after {    /* faint dot grid, echoing the logo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.counter__n {
  display: inline-flex; align-items: flex-start; justify-content: center;
  font-size: clamp(3.75rem, 1.6rem + 10vw, 8.5rem); font-weight: 700; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; color: #5ee6a8;
}
/* final number reserves the width, so counting up never shifts the layout */
.counter__digits { display: inline-grid; justify-items: end; }
.counter__sizer, .counter__live { grid-area: 1 / 1; }
.counter__sizer { visibility: hidden; }
.counter__plus { font-size: .5em; margin: .1em 0 0 .04em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .counter__live, .counter__plus {
    background: linear-gradient(180deg, #8ff5c8 0%, #2fcf8a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.counter.is-counting .counter__plus { opacity: 0; transform: scale(.3); }
.counter.is-done .counter__plus {
  opacity: 1; transform: none;
  transition: opacity .25s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .counter.is-counting .counter__plus { transform: none; }
  .counter.is-done .counter__plus { transition: opacity .3s ease; }
}
.counter__label { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem); font-weight: 700; letter-spacing: -.02em; margin-top: .75rem; }
.counter__note { font-size: .875rem; color: rgba(255, 255, 255, .62); margin: .5rem auto 0; max-width: 30rem; }
.preview-pill {
  position: fixed; z-index: 50; left: 50%; bottom: 1rem; transform: translateX(-50%); white-space: nowrap;
  background: #b42318; color: #fff; font-size: .8125rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px;
  box-shadow: var(--shadow);
}
/* On a phone the call to action spans the panel, like a native app button. */
@media (max-width: 30rem) { .hero .btn, .panel .btn { width: 100%; } .hero .stack { align-items: stretch !important; } }

/* A phone frame around a live render of the real test screen. */
.device {
  justify-self: center; width: 100%; max-width: 280px;
  background: #11131f; border-radius: 40px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(26, 31, 60, .35);
  margin-bottom: clamp(-6rem, -8vw, -4rem);
}
.device__screen { background: var(--panel); border-radius: 31px; overflow: hidden; padding: 1.1rem .8rem 1.5rem; min-height: 420px; }
.device__notch { width: 86px; height: 22px; background: #11131f; border-radius: 99px; margin: -0.6rem auto .9rem; }
.device .bar { margin-bottom: .9rem; }
.device .statement { padding: .9rem .6rem; margin-top: .6rem; }
.device .statement__q { font-size: .8rem; }
.device .likert { gap: .35rem; margin-top: .6rem; }
.device .likert label { --size: 1.55rem; }
.device .legend { gap: .2rem; }
.device .legend span { font-size: .55rem; }
.device .legend i { width: 1.3rem; height: 1.3rem; }
.device__q { font-weight: 700; font-size: .78rem; text-align: center; line-height: 1.35; margin-bottom: .6rem; }

/* ------------------------------------------------------------------ stats */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 48rem) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--panel); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.stat__v { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__k { font-size: .875rem; color: var(--muted); margin-top: .25rem; }

/* ------------------------------------------------------------------ tests */

/* The front doors: one colourful card per test, headed by the question it
   answers. Three across, then the two "which type are you" tests side by side. */
.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.door { grid-column: span 2; }
.door:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 64rem) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door, .door:nth-child(n+4) { grid-column: span 1; }
  .door:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { .doors { grid-template-columns: 1fr; } .door:last-child:nth-child(odd) { grid-column: auto; } }
.door {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 17.5rem;
  padding: 1.4rem 1.5rem 1.35rem; border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.door:hover, .door:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 24, 64, .14); }
.door__top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.door__chip { font-size: .75rem; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .7); padding: .3rem .65rem; border-radius: 99px; }
.door__q { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; margin: 1.1rem 0 1.5rem; max-width: 13.5em; padding-right: 4.5rem; }
.door__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.door__name { font-size: 1rem; font-weight: 700; }
.door__full { font-size: .8125rem; color: var(--muted); margin-top: .1rem; }
.door__go { flex: none; font-size: .875rem; font-weight: 600; color: #fff; background: var(--ink); padding: .55rem .95rem; border-radius: 99px; transition: background .2s ease; }
.door:hover .door__go { background: var(--green); }
.door__art {
  position: absolute; z-index: -1; right: -.9rem; top: -.6rem; width: 8.5rem; height: 8.5rem; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-8deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.door__art svg { width: 58%; height: 58%; color: var(--ink); }
.door:hover .door__art { transform: rotate(0) scale(1.08); }
.art-iq { background: #e3ecff; }
.art-eq { background: #fde4ec; }
.art-procrastination { background: #fdecd8; }
.art-temperament { background: #e2f4ec; }
.art-types { background: #ece6ff; }
.badge { font-size: .75rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: .2rem .6rem; border-radius: 99px; white-space: nowrap; }

/* glyph palette */
.g-line { stroke: currentColor; stroke-width: 1.6; fill: none; }
.g-faint { stroke: currentColor; stroke-opacity: .25; stroke-width: 1.6; fill: none; }
.g-fill { fill: var(--green); }
.g-band { fill: var(--green); opacity: .25; }
.g-dot { fill: currentColor; }

/* ------------------------------------------------------------------ steps */

.panel { background: var(--panel); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3.5rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 2.5rem); }
@media (max-width: 44rem) { .steps { grid-template-columns: 1fr; } }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 64, .06);
}

/* --------------------------------------------------------------- features */

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 56rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .features { grid-template-columns: 1fr; } }
.feature { text-align: center; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto .9rem;
  background: var(--green); color: #fff; display: grid; place-items: center;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1rem; margin-bottom: .35rem; }

/* ----------------------------------------------------------------- footer */
/* After personality.co: logo, three link columns, a folding disclaimer under
   the columns, then the copyright line between two hairlines. */

.site-footer { margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer > .shell { border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem; padding-block: 2.5rem 2rem;
}
.site-footer__grid > .logo { align-self: start; }
.site-footer__col { display: flex; flex-direction: column; gap: .55rem; }
.site-footer__head { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.site-footer__col a { font-size: .9375rem; color: var(--muted); text-decoration: none; width: fit-content; }
.site-footer__col a:hover { color: var(--green); text-decoration: underline; }
.site-footer__disclaimer { grid-column: 2 / -1; font-size: .875rem; color: var(--muted); line-height: 1.65; }
.site-footer__disclaimer summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 400; font-size: .875rem; }
.site-footer__disclaimer summary::-webkit-details-marker { display: none; }
.site-footer__disclaimer .more, .site-footer__disclaimer .less { margin-left: .4rem; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.site-footer__disclaimer .less, .site-footer__disclaimer[open] .more { display: none; }
.site-footer__disclaimer[open] .less { display: inline; }
.site-footer__disclaimer p { margin-top: .5rem; }
.site-footer__base { border-top: 1px solid var(--line); padding-block: 1.4rem 2rem; text-align: center; }
.site-footer__base p { font-size: .8125rem; color: var(--faint); }
.site-footer__base p + p { margin-top: .25rem; }
@media (max-width: 52rem) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid > .logo { grid-column: 1 / -1; }
  .site-footer__disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------- content pages */

.page-hero { background: var(--warm); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3.25rem); display: grid; gap: .8rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.prose-wrap { max-width: 50rem; }
.prose { display: grid; gap: 1.75rem; }
.prose h2 { font-size: 1.2rem; margin-bottom: .45rem; }
.prose__n { color: var(--green); }
.prose p { color: var(--muted); line-height: 1.7; }

.faq { display: grid; gap: .6rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); padding: 0 1.25rem; background: var(--bg); }
.faq__item[open] { background: var(--panel); border-color: transparent; }
.faq__item summary {
  list-style: none; cursor: pointer; padding-block: 1.1rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: .2rem;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item p { padding-bottom: 1.2rem; color: var(--muted); line-height: 1.7; max-width: 42rem; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.contact-card { display: grid; gap: .25rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.contact-card:hover { border-color: var(--green); }
.contact-card__value { font-weight: 600; font-size: 1.125rem; color: var(--green); overflow-wrap: anywhere; }

/* ============================================================ test screen */

.test-page { background: var(--panel); min-height: 100vh; }
.test-page .masthead { background: var(--bg); }

/* Sticky: progress, step, and the colour legend stay in view, so a visitor
   twenty statements down still knows which circle means what. */
.testbar { position: sticky; top: 0; z-index: 20; background: var(--panel); padding-block: 1rem .9rem; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-direction: column; gap: .4rem; }
.bar__meta { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar__track { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 99px; background: var(--green); transition: width .35s cubic-bezier(.4, 0, .2, 1); }

.test-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); text-align: center; margin-block: 1.75rem 1rem; }
.legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; text-align: center; }
.legend div { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.legend i { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid; display: block; }
.legend span { font-size: .75rem; line-height: 1.25; color: var(--muted); font-weight: 500; }
.legend div:nth-child(1) i { border-color: var(--l1); background: var(--l1-soft); }
.legend div:nth-child(2) i { border-color: var(--l2); background: var(--l2-soft); }
.legend div:nth-child(3) i { border-color: var(--l3); background: var(--l3-soft); }
.legend div:nth-child(4) i { border-color: var(--l4); background: var(--l4-soft); }
.legend div:nth-child(5) i { border-color: var(--l5); background: var(--l5-soft); }

.statement {
  background: var(--bg); border-radius: var(--r); padding: clamp(1.25rem, 3.5vw, 1.75rem) 1rem clamp(.75rem, 2.5vw, 1.1rem);
  margin-top: 1rem; text-align: center; box-shadow: 0 1px 2px rgba(16, 24, 64, .04);
  border: 2px solid transparent; transition: border-color .2s ease, opacity .25s ease;
}
.statement.is-current { border-color: var(--green-soft); }
.statement.is-answered:not(.is-current) { opacity: .55; }
.statement.is-answered:not(.is-current):hover { opacity: 1; }
.statement__q { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); font-weight: 500; line-height: 1.45; max-width: 34rem; margin-inline: auto; }
.statement__picked { display: block; min-height: 1.2em; margin-top: .45rem; font-size: .8125rem; font-weight: 600; color: var(--green); }

.likert { display: flex; justify-content: center; align-items: center; gap: clamp(.6rem, 3vw, 1.4rem); margin-top: 1.1rem; }
.likert input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.likert label {
  --size: clamp(2.4rem, 2rem + 2vw, 3rem);
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%; border: 2px solid; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.likert label:hover { transform: scale(1.08); }
.likert label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.likert label:nth-of-type(1) { border-color: var(--l1); background: var(--l1-soft); }
.likert label:nth-of-type(2) { border-color: var(--l2); background: var(--l2-soft); }
.likert label:nth-of-type(3) { border-color: var(--l3); background: var(--l3-soft); }
.likert label:nth-of-type(4) { border-color: var(--l4); background: var(--l4-soft); }
.likert label:nth-of-type(5) { border-color: var(--l5); background: var(--l5-soft); }
.likert label:nth-of-type(1):has(input:checked) { background: var(--l1); }
.likert label:nth-of-type(2):has(input:checked) { background: var(--l2); }
.likert label:nth-of-type(3):has(input:checked) { background: var(--l3); }
.likert label:nth-of-type(4):has(input:checked) { background: var(--l4); }
.likert label:nth-of-type(5):has(input:checked) { background: var(--l5); }
.likert label:has(input:checked)::after {
  content: ""; width: 38%; height: 20%; border: solid #fff; border-width: 0 0 3px 3px;
  transform: translateY(-15%) rotate(-45deg);
}
.likert label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.hint { display: none; }
@media (hover: hover) and (pointer: fine) { .hint { display: block; } }
.resume { background: var(--green-soft); color: var(--green-dark); border-radius: var(--r-sm); padding: .7rem 1rem; font-size: .875rem; font-weight: 500; text-align: center; margin-top: 1rem; }

.restored {
  display: flex; justify-content: center; align-items: center; gap: .5rem 1rem; flex-wrap: wrap;
  margin-top: 1rem; padding: .6rem 1rem; border-radius: var(--r-sm);
  background: var(--l2-soft); color: #7a4510; font-size: .875rem; font-weight: 500;
}
.restored .link-btn { color: #7a4510; text-decoration: underline; text-underline-offset: .2em; padding: .3rem .4rem; }
.restored .link-btn:hover { background: transparent; color: var(--ink); }

.test-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 2rem 4rem; }

/* ---------------------------------------------------------- puzzle screens */
/* IQ test and daily puzzles. After personality.co's test screen: one question
   per screen, a centred figure on clean white cells, a solid green "?" and
   large lettered answer tiles. */

.task {
  background: var(--bg); border-radius: var(--r-lg); margin-top: 1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 1px 2px rgba(16, 24, 64, .04);
}
.task__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.task__n { font-size: .8125rem; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.task__prompt { font-weight: 600; font-size: 1.0625rem; }

.puzzle { display: flex; flex-direction: column; align-items: center; }

.matrix {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 12px);
  width: min(100%, 340px);
}
.matrix > div {
  aspect-ratio: 1; display: grid; place-items: center; padding: 11%;
  background: var(--bg); border: 2px solid #d9dce6; border-radius: 18px; color: var(--ink);
}
.matrix > div.is-blank { background: var(--green); border-color: var(--green); }
.matrix > div.is-blank span { color: #fff; font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); line-height: 1; }
.cell { width: 100%; height: 100%; display: block; }

.series { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.series span, .series b {
  font-variant-numeric: tabular-nums; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 700;
  min-width: 3.4ch; padding: .7rem .9rem; text-align: center; border-radius: 14px;
  background: var(--bg); border: 2px solid #d9dce6; color: var(--ink);
}
.series b { color: #fff; background: var(--green); border-color: var(--green); }

.puzzle__choose { margin: 1.75rem 0 .9rem; font-weight: 600; color: var(--muted); font-size: .9375rem; }

.opts { display: grid; gap: .7rem; width: 100%; }
.opts--matrix { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 600px; }
.opts--series { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 460px; }
@media (max-width: 34rem) { .opts--matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.opt {
  position: relative; cursor: pointer; display: grid; place-items: center;
  background: var(--panel); border: 2px solid transparent; border-radius: 14px;
  padding: 1.55rem .45rem .5rem; transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.opt:hover { border-color: #c9cdd9; }
.opt:active { transform: scale(.98); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__letter { position: absolute; top: .45rem; left: .65rem; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.opt__fig {
  width: 100%; max-width: 92px; aspect-ratio: 1; display: grid; place-items: center; padding: 7%;
  background: var(--bg); border: 2px solid #d9dce6; border-radius: 12px; color: var(--ink);
}
.opt__num { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; padding-block: .35rem .5rem; color: var(--ink); }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.opt:has(input:checked) .opt__letter { color: var(--green); }
.opt:has(input:checked) .opt__fig { border-color: var(--green); }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt.is-right { border-color: var(--green); background: var(--green-soft); }
.opt.is-right .opt__letter { color: var(--green); }
.opt.is-wrong { border-color: var(--l1); background: var(--l1-soft); }
.opt.is-wrong .opt__letter { color: #b42318; }
.opt:has(input:disabled) { cursor: default; }
.opt:has(input:disabled):hover { border-color: transparent; }
.opt.is-right:has(input:disabled):hover { border-color: var(--green); }
.opt.is-wrong:has(input:disabled):hover { border-color: var(--l1); }

/* the stepper: one task visible, nav row and numbered pager */
.stepper-only { display: none; }
.is-stepper .stepper-only { display: flex; }
.is-stepper .task { display: none; }
.is-stepper .task.is-active { display: block; animation: task-in .22s ease; }
@keyframes task-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stepper-intro { max-width: 34rem; margin: 1.25rem auto 0; }

.stepper-nav { justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.stepper-nav .btn[hidden], .stepper-nav .link-btn[hidden] { display: none; }
.stepper-nav .btn:disabled { visibility: hidden; }
.link-btn { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; padding: .6rem .8rem; cursor: pointer; border-radius: var(--r-sm); }
.link-btn:hover { color: var(--ink); background: var(--bg); }

.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; flex-wrap: wrap; }
.is-stepper .submit-row { justify-content: flex-end; }
.submit-row [hidden] { display: none; }

.pager { flex-wrap: wrap; justify-content: center; gap: .4rem; padding-block: 1.75rem .5rem; }
.pager__n {
  font: inherit; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 2.1rem; height: 2.1rem; padding: 0 .4rem; border-radius: 10px; cursor: pointer;
  background: var(--bg); color: var(--muted); border: 1.5px solid var(--line);
}
.pager__n:hover { border-color: var(--faint); color: var(--ink); }
.pager__n.is-done { background: var(--green-soft); border-color: transparent; color: var(--green-dark); }
.pager__n.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

.timer { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.timer svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) { .is-stepper .task.is-active { animation: none; } }

/* ================================================================ results */

.result-hero { background: var(--warm); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3.5rem); }
.result-kicker { font-size: .875rem; font-weight: 600; color: var(--green); margin-bottom: .75rem; }
.verdict { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 50rem) { .verdict { grid-template-columns: 1fr; } }
.verdict__plot { background: var(--bg); border-radius: var(--r); padding: .75rem; }
.verdict__name { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--green); }
.verdict__sub { font-size: .9375rem; font-weight: 600; color: var(--muted); margin-top: .35rem; }
.figure { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--green); }
.figure small { font-size: .45em; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.figure-block .figure + p { margin-top: .35rem; }

.quad { width: 100%; max-width: 340px; height: auto; margin-inline: auto; }
.quad__fill { fill: var(--green); opacity: .045; }
.quad__fill.is-on { opacity: .14; }
.quad__label { font-family: var(--font); font-size: 11px; font-weight: 600; fill: var(--faint);
  paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; stroke-opacity: .85; }
.quad__label.is-on { fill: var(--green-dark); }
.quad__axis { stroke: var(--line); stroke-width: 1; }
.quad__tick { font-family: var(--font); font-size: 8px; font-weight: 600; fill: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.quad__ci { fill: var(--green); fill-opacity: .14; stroke: var(--green); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 3 3; }
.quad__dot { fill: var(--green); stroke: var(--bg); stroke-width: 2.5; }

/* the interval band */
.scale { position: relative; height: 12px; border-radius: 99px; background: rgba(26, 31, 60, .08); margin-block: .5rem; }
.scale--lg { height: 20px; }
.result-hero .scale { background: rgba(255, 255, 255, .8); }
.scale__band { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--green); opacity: .35; }
.scale__point { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--green); }
.scale__chance { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 2px dashed var(--muted); }
.scale__chance span { position: absolute; top: 100%; left: -1px; margin-top: 6px; white-space: nowrap; font-size: .75rem; font-weight: 600; color: var(--muted); }
.scale-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.domains { display: grid; gap: .75rem; }
.domain { background: var(--bg); border-radius: var(--r); padding: 1.25rem 1.4rem; }
.domain__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.domain__name { font-weight: 600; }
.domain__pct { font-size: .875rem; font-weight: 600; color: var(--green); }
.domain__poles { display: flex; justify-content: space-between; gap: .75rem; font-size: .8125rem; color: var(--faint); }

.note { font-size: .875rem; color: var(--muted); line-height: 1.6; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(255, 255, 255, .7); }
.panel .note, .test-page .note { background: var(--bg); }

.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 36rem) { .split { grid-template-columns: 1fr 1fr; } }
.mini { background: var(--bg); border-radius: 12px; padding: 1rem 1.15rem; }
.mini__v { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini__k { font-size: .8125rem; color: var(--muted); }

details summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .875rem; }
details[open] summary { margin-bottom: .6rem; }


/* ========================================================== daily puzzles */

.daily-banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1rem 1.25rem; border-radius: var(--r); text-decoration: none; color: inherit;
  border: 2px solid var(--green-soft); background: var(--bg); transition: border-color .15s ease;
}
.daily-banner:hover { border-color: var(--green); }
.daily-banner.is-done { background: var(--panel); border-color: transparent; }
.daily-banner__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; }
.daily-banner__icon svg { width: 22px; height: 22px; }
.daily-banner__title { font-weight: 700; }
/* first visit: what the daily puzzles are, before asking anyone to start */
.daily-banner.is-intro { padding: 1.25rem 1.5rem; }
.daily-banner.is-intro .daily-banner__icon { align-self: start; }
.daily-banner__kicker { font-size: .8125rem; font-weight: 600; color: var(--green); margin-bottom: .1rem; }
.daily-banner.is-intro .daily-banner__title { font-size: 1.125rem; letter-spacing: -.01em; }
.daily-banner__body { margin-top: .25rem; max-width: 40rem; }
.daily-banner__perks {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; padding: 0; margin: .7rem 0 0;
  font-size: .8125rem; font-weight: 600;
}
.daily-banner__perks li { display: inline-flex; align-items: center; gap: .4rem; }
.daily-banner__perks li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23e2f4ec'/%3E%3Cpath d='M4.6 8.3l2.1 2.1 4.7-4.8' fill='none' stroke='%230e8a5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 32rem) {
  .daily-banner { grid-template-columns: auto minmax(0, 1fr); }
  .daily-banner .btn { grid-column: 1 / -1; }
}

.daily-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 2.5rem; }
@media (max-width: 44rem) { .daily-hero { grid-template-columns: 1fr; } }
.streak { background: var(--bg); border-radius: var(--r); padding: 1.1rem 1.25rem; display: grid; gap: .35rem; justify-items: start; min-width: 15rem; }
.streak__n { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--green); }
.streak__label { font-weight: 600; font-size: .9375rem; }
.week { display: grid; grid-template-columns: repeat(7, 1.9rem); gap: .3rem; margin-block: .35rem; }
.week__day { display: grid; justify-items: center; gap: .2rem; }
.week__day i { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--line); display: block; }
.week__day.is-on i { background: var(--green); border-color: var(--green); }
.week__day.is-today i { box-shadow: 0 0 0 3px var(--green-soft); }
.week__day span { font-size: .6875rem; color: var(--faint); font-weight: 600; }

.level { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; }
.level--easy { color: var(--green-dark); background: var(--green-soft); }
.level--medium { color: #9a5b13; background: var(--l2-soft); }
.level--hard { color: #b42318; background: var(--l1-soft); }

.daily-result {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center;
  background: var(--bg); border-radius: var(--r); padding: 1.4rem 1.5rem; margin-top: 1rem;
  border: 2px solid var(--green-soft);
}
@media (max-width: 34rem) { .daily-result { grid-template-columns: 1fr; } }
.daily-result__score { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.daily-result__side { display: grid; gap: .3rem; justify-items: end; }
@media (max-width: 34rem) { .daily-result__side { justify-items: start; } }
.countdown { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: .4rem; }

.choices label.is-right { border-color: var(--green); background: var(--green-soft); }
.choices label.is-wrong { border-color: var(--l1); background: var(--l1-soft); }
.choices input:disabled + * , .choices label:has(input:disabled) { cursor: default; }
.explain { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .9375rem; }
.explain.is-ok { background: var(--green-soft); color: var(--green-dark); }
.explain.is-bad { background: var(--l1-soft); color: #8a1c13; }

/* ================================================================= report */

.report-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.3rem 1.5rem; border-radius: var(--r); text-decoration: none; color: inherit;
  background: var(--green-soft); border: 1px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.report-cta:hover { border-color: var(--green); transform: translateY(-1px); }
.report-cta__title { font-weight: 700; color: var(--green-dark); font-size: 1.0625rem; }
.report-cta__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; }
.report-cta__icon svg { width: 24px; height: 24px; }

.report-section { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.report-section > h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.section-note { margin-block: .4rem 1.25rem; max-width: 44rem; }
.report-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
@media (max-width: 52rem) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glance__tile { background: var(--bg); border-radius: var(--r); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.glance__tile.is-empty { background: rgba(255, 255, 255, .55); }
.glance__art { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .35rem; }
.glance__art svg { width: 26px; height: 26px; color: var(--ink); }
.glance__name { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.glance__value { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--green); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.glance__take { font-size: .875rem; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.two-col--tight { gap: .6rem; }
@media (max-width: 40rem) { .two-col { grid-template-columns: 1fr; } }
.list-card { border-radius: var(--r); padding: 1.3rem 1.4rem; }
.list-card--good { background: var(--green-soft); }
.list-card--grow { background: var(--warm); }
.list-card h3 { font-size: 1rem; margin-bottom: .6rem; }
.list-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.list-card li { font-size: .9375rem; }
.mini--panel { background: var(--panel); }

.domain__text { font-size: .9375rem; color: var(--muted); margin-top: .75rem; }
.report-page .domain { border: 1px solid var(--line); }

.unlock {
  margin-top: 1rem; border: 2px dashed var(--line); border-radius: var(--r);
  padding: 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--muted);
}

/* EQ drivers: bars diverge from a centre line, green above average, red below. */
.drivers { margin-top: 1.75rem; padding: 1.4rem; border-radius: var(--r); background: var(--panel); }
.drivers h3 { margin-bottom: .25rem; }
.driver { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 3rem; gap: .9rem; align-items: center; padding-block: .35rem; }
.driver__name { font-size: .875rem; font-weight: 500; }
.driver__track { position: relative; height: 12px; border-radius: 99px; background: var(--bg); }
.driver__track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--line); }
.driver__bar { position: absolute; top: 0; bottom: 0; left: 50%; border-radius: 0 99px 99px 0; background: var(--green); }
.driver__bar.is-neg { left: auto; right: 50%; border-radius: 99px 0 0 99px; background: var(--l1); }
.driver__val { font-size: .8125rem; font-weight: 600; text-align: right; color: var(--muted); }
@media (max-width: 34rem) { .driver { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) 2.6rem; gap: .6rem; } }

.plan { display: grid; gap: .75rem; }
.plan__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); }
.plan__check { width: 22px; height: 22px; border-radius: 50%; background: var(--green); position: relative; margin-top: .1rem; }
.plan__check::after { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan__title { font-weight: 600; margin-bottom: .2rem; }

.review { display: grid; gap: .5rem; }
.review__row { display: grid; grid-template-columns: 2rem 6.5rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 34rem) { .review__row { grid-template-columns: 1.6rem minmax(0, 1fr); } .review__mark { grid-column: 2; } .review__body { grid-column: 1 / -1; } }
.review__n { font-weight: 600; color: var(--faint); }
.review__mark { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; justify-self: start; }
.review__mark.is-ok { color: var(--green-dark); background: var(--green-soft); }
.review__mark.is-bad { color: #b42318; background: var(--l1-soft); }
.review__body { display: grid; gap: .3rem; }
.review__cells { display: flex; gap: .9rem; }
.review__cells > div { display: grid; gap: .2rem; justify-items: start; }
.review__cell { width: 60px; height: 60px; padding: 8px; border-radius: 12px; background: var(--bg); border: 2px solid #d9dce6; color: var(--ink); }
.review__cell.is-right { border-color: var(--green); background: var(--green-soft); }

.print-only { display: none; }

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff; }
  body { font-size: 10.5pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .masthead-wrap, .site-footer, .no-print { display: none !important; }
  .print-only { display: block; }
  .shell { max-width: none; padding-inline: 0; }
  .result-hero { padding: 1.25rem 1.5rem; }
  .report-section { padding-top: 1.4rem; }
  .domain, .plan__item, .review__row, .list-card, .mini, .drivers, .verdict, .glance__tile { break-inside: avoid; }
  .report-section > h2 { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* ============================================================ 16 types */

.verdict__name--line { color: var(--ink); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; }
.strongest { font-weight: 600; color: var(--green); }
.type-plot { display: grid; place-items: center; padding: 1.5rem; }
.type-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: min(100%, 15rem); }
.type-tile { aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.type-tile--1 { background: #e3ecff; } .type-tile--2 { background: #fdecd8; } .type-tile--3 { background: #fde4ec; } .type-tile--4 { background: #e2f4ec; }
.type-scales { margin-top: 2.25rem; display: grid; gap: 1rem; max-width: 46rem; }
.type-scales h2 { font-size: 1.35rem; }
.axes { display: grid; gap: 1.1rem; }
.axis__poles { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: .875rem; color: var(--muted); }
.axis__poles b { font-weight: 800; color: var(--faint); }
.axis__poles .is-on { color: var(--ink); font-weight: 600; }
.axis__poles .is-on b { color: var(--green); }
.axis__value { font-size: .8125rem; color: var(--faint); text-align: center; }
.axis.is-close .axis__value { color: #a8641b; }

/* ============================================================ the payoff band */

.payoff {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: #161a33; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 3rem);
}
.payoff::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 35%; width: min(60rem, 140%); aspect-ratio: 1.6;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(52, 211, 153, .2), transparent);
}
.payoff::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 65%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 65%);
}
.payoff__head { text-align: center; max-width: 40rem; margin: 0 auto 2.25rem; }
.payoff__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5ee6a8; }
.payoff__head h2 { color: #fff; margin-top: .5rem; }
.payoff__head h2 .hl { color: #5ee6a8; }
.payoff__sub { color: rgba(255, 255, 255, .72); margin-top: .75rem; }
.payoff__cta { text-align: center; margin-top: 2.5rem; }

/* three phone screens, fanned out and floating: clearly an illustration */
.showcase { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 3vw, 2.25rem); }
.shot { margin: 0; width: 14.5rem; flex: none; display: grid; gap: 1.1rem; justify-items: center; text-align: center; --tilt: 0deg; --lift: 0px; }
.shot:nth-child(1) { --tilt: -5deg; --lift: 18px; }
.shot:nth-child(3) { --tilt: 5deg; --lift: 18px; }
.shot__screen {
  position: relative; width: 100%; aspect-ratio: 9 / 16; box-sizing: border-box; overflow: hidden; display: block;
  border-radius: 1.6rem; border: 7px solid #0b0e1f; background: #fff; color: var(--ink); text-align: left; padding: 1.4rem 1rem 1rem;
  box-shadow: 0 0 0 2px #2c3257, 0 30px 60px rgba(0, 0, 0, .45);
  transform: translateY(var(--lift)) rotate(var(--tilt)); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  animation: shot-float 6s ease-in-out infinite;
}
.shot:nth-child(2) .shot__screen { animation-delay: -2s; }
.shot:nth-child(3) .shot__screen { animation-delay: -4s; }
/* the float uses `translate`, the tilt and hover use `transform`: two separate
   properties, so hovering never fights the animation */
.shot:hover .shot__screen { transform: translateY(calc(var(--lift) - 10px)) rotate(0deg) scale(1.03); }
@keyframes shot-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .shot__screen { animation: none; } }
.shot__screen--story { padding: 0; height: auto; background: #161a33; object-fit: cover; }
/* the text screens fade out at the bottom: a glimpse, not a page to read */
.shot__screen--fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(rgba(255, 255, 255, 0), #fff 80%); pointer-events: none; }
.shot__tag {
  position: absolute; top: .55rem; right: .55rem; font-size: .5625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); border-radius: 99px; padding: .1rem .45rem; background: #fff;
}
.shot__kicker { font-size: .6875rem; font-weight: 700; color: var(--green); margin: .2rem 0 .7rem; }
.shot .type-tiles { width: 6.5rem; gap: .3rem; margin-bottom: .8rem; }
.shot .type-tile { border-radius: 12px; font-size: 1.45rem; }
.shot__headline { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.shot__sub { font-size: .6875rem; font-weight: 600; color: var(--muted); margin: .25rem 0 .8rem; }
.shot__line { display: block; height: 7px; border-radius: 4px; background: #e9ebf1; margin-top: .45rem; }
.shot__title { font-size: 1rem; font-weight: 800; letter-spacing: -.015em; margin: .2rem 0 .8rem; }
.shot__list { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.shot__list li { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 600; padding: .5rem .55rem; background: var(--panel); border-radius: 10px; }
.shot__list li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%230e8a5f'/%3E%3Cpath d='M4.6 8.3l2.1 2.1 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.shot figcaption { color: rgba(255, 255, 255, .72); font-size: .875rem; line-height: 1.45; max-width: 14rem; margin-top: var(--lift); }
.shot figcaption b { display: block; color: #fff; font-size: 1rem; margin-bottom: .2rem; }
/* phones: swipe through them like app-store screenshots */
@media (max-width: 52rem) {
  .showcase { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 1rem 1.5rem; margin: 0 -1rem; scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .shot { width: 12.5rem; scroll-snap-align: center; --tilt: 0deg !important; --lift: 0px !important; }
}

/* ============================================================ share picture */

.share-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(10, 13, 30, .72); }
.share-modal__box {
  position: relative; width: min(100%, 24rem); max-height: calc(100vh - 2rem); overflow: auto;
  background: #fff; border-radius: var(--r-lg); padding: 1.25rem; display: grid; gap: .85rem; text-align: center;
}
.share-modal__title { font-weight: 700; font-size: 1.05rem; padding: 0 2rem; }
.share-modal__img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #161a33; }
.share-modal__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.share-modal__x {
  position: absolute; top: .6rem; right: .7rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
  background: var(--panel); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.share-modal__note { margin: 0; }
@media (max-width: 30rem) {
  .axis__poles { flex-wrap: wrap; row-gap: .1rem; }
  .axis__value { order: 3; flex-basis: 100%; }
}

/* ============================================================ refine round */

.refine {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1rem 1.25rem; border-radius: var(--r); text-decoration: none; color: inherit;
  background: #ece6ff; transition: transform .2s ease, box-shadow .2s ease;
}
.refine:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.refine__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.refine__icon svg { width: 24px; height: 24px; }
.refine__title { font-weight: 700; }
@media (max-width: 32rem) { .refine { grid-template-columns: auto minmax(0, 1fr); } .refine .btn { grid-column: 1 / -1; } }
.refine-note { font-size: .9375rem; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: .5rem; }
.refine-note::before { content: ""; width: 20px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%230e8a5f'/%3E%3Cpath d='M4.6 8.3l2.1 2.1 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.refine-note.is-done { background: var(--green-soft); padding: .9rem 1.1rem; border-radius: var(--r); }

/* ============================================================ accounts */

.nav-user {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; font-size: .875rem;
  color: var(--muted); padding: .45rem .7rem; border-radius: var(--r-sm); max-width: 10rem;
}
.nav-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user:hover { background: var(--panel); color: var(--ink); }
.nav-user.is-in { color: var(--ink); }
.nav-user svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 26rem) { .nav-user span { display: none; } }

.save-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1rem 1.25rem; border-radius: var(--r); text-decoration: none; color: inherit;
  border: 2px solid #cdeee0; background: #f3fbf7; transition: border-color .15s ease;
}
.save-card:hover { border-color: var(--green); }
.save-card__icon, .auth__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.save-card__icon svg, .auth__icon svg { width: 24px; height: 24px; }
.auth__icon--tg { background: #2aabee; }
.auth__icon--tg svg { margin-left: -2px; }
.save-card__title { font-weight: 700; }
@media (max-width: 32rem) { .save-card { grid-template-columns: auto minmax(0, 1fr); } .save-card .btn { grid-column: 1 / -1; } }

.auth { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .9rem; }
.auth__icon { width: 56px; height: 56px; }
.auth__icon svg { width: 30px; height: 30px; }
.auth__title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.auth__steps { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: 1.25rem; }
.auth__steps li { display: grid; gap: .65rem; padding: 1.1rem; border-radius: var(--r); background: var(--panel); }
.auth__steps p { font-weight: 600; display: flex; gap: .6rem; align-items: baseline; }
.auth__steps p b { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: .8125rem; }
.btn--tg { background: #2aabee; justify-self: start; }
.btn--tg:hover { background: #1d96d4; }
.auth__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.auth__code {
  font: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: .35em; font-variant-numeric: tabular-nums; text-align: center;
  width: 11rem; padding: .55rem .5rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.auth__code:focus { outline: none; border-color: var(--green); }
.auth__error { color: #b42318; font-weight: 600; font-size: .9375rem; }
.account__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; color: var(--muted); }
.account__danger { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.account__danger summary { cursor: pointer; font-weight: 600; color: #b42318; display: inline-flex; align-items: center; gap: .45rem; list-style: none; }
.account__danger summary::-webkit-details-marker { display: none; }
.account__danger summary svg { width: 18px; height: 18px; flex: none; }
.account__danger form { display: grid; gap: .75rem; margin-top: .75rem; justify-items: start; }
.account__danger .small { margin-top: .6rem; }
.account__confirm { display: flex; gap: .5rem; align-items: flex-start; font-size: .9375rem; }
.btn--danger { background: #b42318; }
.btn--danger:hover { background: #912018; }

/* Sign in with Google: Google's own light button (white, grey outline, the four-colour G). */
.btn--google {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; justify-self: stretch;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; box-shadow: none;
}
.btn--google:hover { background: #f7f8f8; color: #1f1f1f; }
.btn--google svg { width: 20px; height: 20px; flex: none; }
.auth__or { display: flex; align-items: center; gap: .8rem; color: var(--faint); font-size: .875rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth__tg-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.auth__tg-head svg { width: 20px; height: 20px; color: #2aabee; }
.auth__banner { padding: .75rem 1rem; border-radius: var(--r-sm); background: #fef3f2; color: #b42318; font-weight: 600; font-size: .9375rem; }
.auth__hint { padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--panel); color: var(--muted); font-size: .875rem; }
.account__methods { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .5rem; }
.account__methods li { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.account__methods svg { width: 20px; height: 20px; flex: none; }
.account__methods .grow { flex: 1; min-width: 0; }
.account__methods .ok { color: var(--green); font-weight: 600; font-size: .875rem; }
.account__methods .btn { padding: .4rem .9rem; font-size: .875rem; }
.account__h { font-weight: 700; margin-top: .75rem; }

/* ---- encouragement in tests: honest milestones ---- */
.milestone {
  margin: .9rem auto 0; max-width: 32rem; padding: .6rem 1rem; border-radius: 999px; text-align: center;
  font-weight: 600; font-size: .9375rem; background: var(--green-soft); color: var(--green-dark);
}
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 90; margin: 0; transform: translate(-50%, 1rem);
  max-width: calc(100% - 2rem); padding: .7rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: .9375rem; text-align: center; box-shadow: 0 10px 30px rgba(26, 31, 60, .25);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Telegram Mini App: one-tap sign-in replaces the code steps ---- */
.auth__tma { display: grid; gap: .6rem; }
.auth__tma .btn { justify-self: stretch; gap: .6rem; }
.auth__tma .btn svg { width: 20px; height: 20px; }
.tma-login .auth__steps, .tma-login .auth__tg-head, .tma-login .auth__or,
.tma-login .btn--google, .tma-login .auth__hint { display: none; }

/* ---- share picture: optional name ---- */
.share-modal__name { display: grid; gap: .3rem; text-align: left; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.share-modal__name input {
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); padding: .55rem .75rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.share-modal__name input:focus { outline: none; border-color: var(--green); }

/* ---- daily leaderboard ---- */
.board { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; display: grid; gap: .85rem; }
.board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.board__head h2 { font-size: 1.25rem; }
.board__sub { font-size: 1rem; margin-top: .4rem; }
.board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.board__list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--panel); }
.board__list li.is-me { background: var(--green-soft); }
.board__list li:nth-child(-n+3) .board__pos { background: var(--green); color: #fff; }
.board__pos { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; background: #fff; }
.board__nick { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__nick em { font-style: normal; font-weight: 500; color: var(--green-dark); }
.board__score { font-weight: 700; }
.board__time { color: var(--muted); font-size: .875rem; min-width: 2.6rem; text-align: right; }
.nick { display: grid; gap: .45rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.nick__title { font-weight: 700; }
.nick__form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nick__input {
  font: inherit; font-weight: 600; flex: 1 1 11rem; min-width: 0; padding: .6rem .8rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.nick__input:focus { outline: none; border-color: var(--green); }
