/* ============================================================================
   פרופיל המנהל — "מכון האבחון" design system
   Editorial · authoritative · warm. RTL-first. Light + dark. Cohesive with בחינון.
   ========================================================================== */

/* ---- Design tokens ---------------------------------------------------------- */
:root {
  --canvas:        #EBE1CB;
  --canvas-2:      #E3D8BE;
  --surface:       #FFFDF8;
  --surface-2:     #F5EFE0;

  --ink:           #1E2A44;
  --ink-soft:      #4F566B;
  --muted:         #655D4C;

  --line:          #DED3B8;
  --line-strong:   #C7B892;
  --rule:          rgba(30, 42, 68, 0.06);

  --emerald:       #2E6E4E;
  --emerald-700:   #255C41;
  --emerald-tint:  #E7EFE9;
  --cta-bg:        #2E6E4E;   /* fixed emerald for white-text surfaces — does NOT flip in dark */
  --cta-bg-2:      #255C41;
  --gold:          #A9813B;
  --gold-soft:     #C29A50;
  --gold-tint:     #F1E9D6;
  --clay:          #A6603A;      /* muted warning — never pure red (חרדי) */
  --clay-tint:     #F0E4DA;

  --font-display:  "Frank Ruhl Libre", "Times New Roman", Georgia, serif;
  --font-ui:       "Rubik", "Assistant", system-ui, "Segoe UI", sans-serif;

  --shadow-sm:  0 1px 2px rgba(30,42,68,.06);
  --shadow-md:  0 6px 22px rgba(30,42,68,.09);
  --shadow-lg:  0 22px 60px rgba(30,42,68,.16);

  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --ring:       0 0 0 3px rgba(46,110,78,.30);

  --maxw:       1120px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas:      #12161D;
    --canvas-2:    #0E1218;
    --surface:     #1B212C;
    --surface-2:   #232B38;
    --ink:         #ECE4D2;
    --ink-soft:    #9BA3B4;
    --muted:       #7E8698;
    --line:        #2A3342;
    --line-strong: #384253;
    --rule:        rgba(236,228,210,.06);
    --emerald:     #5FB487;
    --emerald-700: #4E9E74;
    --emerald-tint:#1C2E27;
    --gold:        #CDA96A;
    --gold-soft:   #B79355;
    --gold-tint:   #2B2617;
    --clay:        #D68A67;
    --clay-tint:   #33231C;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.3);
    --shadow-md:  0 6px 22px rgba(0,0,0,.38);
    --shadow-lg:  0 22px 60px rgba(0,0,0,.55);
    --ring:       0 0 0 3px rgba(95,180,135,.38);
  }
}
:root[data-theme="dark"] {
  --canvas: #12161D; --canvas-2: #0E1218; --surface: #1B212C; --surface-2: #232B38;
  --ink: #ECE4D2; --ink-soft: #9BA3B4; --muted: #7E8698;
  --line: #2A3342; --line-strong: #384253; --rule: rgba(236,228,210,.06);
  --emerald: #5FB487; --emerald-700: #4E9E74; --emerald-tint: #1C2E27;
  --gold: #CDA96A; --gold-soft: #B79355; --gold-tint: #2B2617; --clay: #D68A67; --clay-tint: #33231C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 6px 22px rgba(0,0,0,.38); --shadow-lg: 0 22px 60px rgba(0,0,0,.55);
  --ring: 0 0 0 3px rgba(95,180,135,.38);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---- Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 88% -8%, var(--gold-tint) 0%, transparent 60%),
    radial-gradient(900px 520px at 6% 4%, var(--emerald-tint) 0%, transparent 55%),
    var(--canvas);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--gold-tint); color: var(--ink); }

/* ---- Layout primitives ------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: clamp(52px, 8vw, 104px); }
.section--tight { padding-block: clamp(34px, 5vw, 60px); }

/* Eyebrow: numbered, gold, letter-spaced — the "report chapter" signature */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow .num { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; color: var(--gold); }
.eyebrow__mark { width: 13px; height: 13px; flex: 0 0 auto; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-soft); }

/* Measurement-motif divider: a fine gold ruler with tick marks */
.rule-ticks {
  height: 13px; border: 0; margin: 0;
  background:
    linear-gradient(var(--gold-soft), var(--gold-soft)) center/100% 1px no-repeat,
    repeating-linear-gradient(to left, var(--gold-soft) 0 1px, transparent 1px 22px) top/100% 7px no-repeat;
  opacity: .5;
}

.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }

/* ---- Buttons / chips -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--cta-bg); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--cta-bg-2); box-shadow: var(--shadow-lg); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-md); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 17px 34px; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }
.btn .ic { width: 20px; height: 20px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .86rem; font-weight: 600;
}
.chip .ic { width: 16px; height: 16px; color: var(--emerald); }

/* ---- Header / footer -------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; color: var(--emerald); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand__name b { color: var(--gold); font-weight: 700; }
.site-head__nav { display: flex; align-items: center; gap: 6px; }
.navlink { padding: 8px 14px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.navlink:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-block: 34px; }
.site-foot small { color: var(--muted); }
.site-foot a { color: var(--ink-soft); font-weight: 600; }
.credit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }

/* ---- Hero ------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(30px, 5vw, 56px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.03; }
.hero h1 .accent { color: var(--emerald); }
.hero__sub { margin-top: 22px; max-width: 34ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero visual: a "dossier" preview card */
.dossier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative; overflow: hidden;
}
.dossier::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(to left, var(--emerald), var(--gold)); }
.dossier__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dossier__tag { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.dossier__score { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--ink); line-height: 1; }

/* ---- Cards / feature grid --------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__ic { width: 40px; height: 40px; color: var(--emerald); margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

/* Numbered "how it works" steps */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; color: var(--emerald); background: var(--emerald-tint); border: 1px solid var(--line);
}
.step h3 { font-size: 1.18rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); }

/* ---- Test flow -------------------------------------------------------------- */
.testwrap { min-height: 100dvh; display: flex; flex-direction: column; }
.testbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.testbar__in { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.progress { flex: 1; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(to left, var(--emerald), var(--gold-soft)); transition: width .45s var(--ease); }
.progress__label { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-soft); font-size: .92rem; white-space: nowrap; }

.stage { flex: 1; display: grid; place-items: center; padding-block: clamp(28px, 5vw, 64px); }
.qcard { width: 100%; max-width: 720px; }
.qcard__dim { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.qcard__q { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.34; color: var(--ink); margin-bottom: 28px; }
.qcard__hint { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

.opts { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: start;
  padding: 18px 22px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 1.12rem; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .12s var(--ease), box-shadow .16s var(--ease);
}
.opt:hover { border-color: var(--emerald); background: var(--emerald-tint); }
.opt:active { transform: scale(.99); }
.opt.is-selected { border-color: var(--emerald); background: var(--emerald-tint); box-shadow: var(--ring); }
.opt__key {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-display);
  font-weight: 700; color: var(--ink-soft); font-size: .98rem;
}
.opt.is-selected .opt__key { background: var(--emerald); color: #fff; border-color: var(--emerald); }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.likert .opt { flex-direction: column; gap: 8px; text-align: center; padding: 16px 8px; font-size: .92rem; }
.likert .opt__key { width: 34px; height: 34px; }

.qnav { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }

/* ---- Result "dossier" ------------------------------------------------------- */
.report { max-width: 900px; margin-inline: auto; }
.report__head {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.report__band { padding: 30px clamp(22px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 40px); align-items: center; }
.report__band::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(to left, var(--emerald), var(--gold)); }

.emblem { width: clamp(96px, 16vw, 132px); height: clamp(96px, 16vw, 132px); color: var(--emerald); }
.report__arche { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.report__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.05; margin: 6px 0 8px; }
.report__tagline { color: var(--ink-soft); font-size: 1.1rem; }

.scoreblock { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.scoreblock__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 3.6rem); color: var(--ink); line-height: 1; }
.scoreblock__of { color: var(--muted); font-weight: 600; }

/* Confidence banner */
.confbar { display: flex; align-items: center; gap: 12px; padding: 14px 22px; font-weight: 600; border-top: 1px solid var(--line); }
.confbar .ic { width: 20px; height: 20px; }
.confbar--valid   { background: var(--emerald-tint); color: var(--emerald-700); }
.confbar--suspect { background: var(--clay-tint);   color: var(--clay); }

/* Radar + dimensions */
.report__body { margin-top: 26px; display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.radar-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }

.dims { display: grid; gap: 16px; }
.dim { }
.dim__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.dim__name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.dim__score { font-family: var(--font-display); font-weight: 700; color: var(--emerald); font-variant-numeric: tabular-nums; }
.dim__track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dim__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(to left, var(--emerald), var(--emerald-700)); transition: width .9s var(--ease); }
.dim__fill.is-low { background: linear-gradient(to left, var(--clay), #c07a55); }
.dim__note { margin-top: 7px; color: var(--ink-soft); font-size: .96rem; }

/* Expert opinion — serif blockquote with gold rule */
.opinion { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px,3.5vw,34px); position: relative; box-shadow: var(--shadow-sm); }
.opinion::before { content: ""; position: absolute; inset-block: 22px; inset-inline-start: 0; width: 4px; border-radius: 4px; background: var(--gold); }
.opinion h2 { font-size: 1.35rem; margin-bottom: 12px; }
.opinion p { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.7; color: var(--ink); }
.opinion p + p { margin-top: 12px; }

/* Tips */
.tips { margin-top: 26px; display: grid; gap: 12px; }
.tip { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.tip__ic { flex: 0 0 auto; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.tip b { color: var(--ink); }
.tip span { color: var(--ink-soft); display: block; }

/* Bridge-to-בחינון + share */
.bridge { margin-top: 34px; background: linear-gradient(135deg, var(--cta-bg) 0%, var(--cta-bg-2) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-lg); }
.bridge h3 { color: #fff; font-size: clamp(1.4rem,3vw,1.9rem); margin-bottom: 10px; }
.bridge p { color: rgba(255,255,255,.9); max-width: 56ch; margin-bottom: 22px; }
.bridge .btn--gold { background: #fff; color: var(--cta-bg-2); }
.bridge .btn--gold:hover { background: var(--gold-tint); }

/* בחינון promo (aggressive, feature-rich pitch for institution managers) */
.promo { margin-top: 34px; background: linear-gradient(135deg, var(--cta-bg) 0%, var(--cta-bg-2) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px,4.5vw,46px); box-shadow: var(--shadow-lg); }
.promo__tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: .88rem; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.promo__tagic { width: 16px; height: 16px; }
.promo__h { color: #fff; font-size: clamp(1.5rem,3.4vw,2.15rem); line-height: 1.16; margin-bottom: 12px; }
.promo__lead { color: rgba(255,255,255,.94); font-size: 1.15rem; line-height: 1.7; max-width: 62ch; margin-bottom: 32px; }
.promo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.promo__feat { display: flex; gap: 13px; align-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); padding: 20px 22px; }
.promo__ic { width: 24px; height: 24px; flex: 0 0 auto; color: var(--gold-tint); }
.promo__feat span { color: #fff; font-size: 1.06rem; line-height: 1.42; font-weight: 500; }
.promo__pitch { font-family: var(--font-display); font-size: clamp(1.1rem,2vw,1.28rem); line-height: 1.55; color: #fff; margin-bottom: 26px; max-width: 64ch; }
.promo .btn--gold { background: #fff; color: var(--cta-bg-2); }
.promo .btn--gold:hover { background: var(--gold-tint); }
.promo__note { margin-top: 14px; color: rgba(255,255,255,.72); font-size: .88rem; }
@media (max-width: 620px) { .promo__grid { grid-template-columns: 1fr; } }

.share { margin-top: 26px; text-align: center; }
.share__row { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.share .btn--ghost { background: var(--surface); }

/* Sources / method blocks */
.refs { display: grid; gap: 12px; }
.ref { padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ref__t { font-weight: 700; color: var(--ink); }
.ref__m { color: var(--muted); font-size: .9rem; }
.ref a { word-break: break-word; }

/* ---- Admin dashboard -------------------------------------------------------- */
.dash { display: grid; gap: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat__k { color: var(--muted); font-size: .86rem; font-weight: 600; }
.stat__v { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--ink); line-height: 1.1; margin-top: 4px; }
.stat__sub { color: var(--emerald); font-size: .86rem; font-weight: 700; margin-top: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 1.2rem; margin-bottom: 16px; }
.hbar { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.hbar__t { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hbar__f { height: 100%; background: linear-gradient(to left, var(--emerald), var(--gold-soft)); border-radius: 999px; }
.login-box { max-width: 380px; margin: 12vh auto; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.field input:focus-visible { border-color: var(--emerald); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--clay-tint); color: var(--clay); font-weight: 600; margin-bottom: 16px; }

/* ---- Motion kit ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); animation: pm-reveal .01s linear 1.5s forwards; }
.reveal.is-in { opacity: 1; transform: none; animation: none; }
@keyframes pm-reveal { to { opacity: 1; transform: none; } }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.qcard.is-enter { animation: qin .42s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .opt { transition: none !important; }
  .qcard.is-enter { animation: none; }
  .progress__fill, .dim__fill { transition: none; }
}

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
  .report__body { grid-template-columns: 1fr; }
  .radar-wrap { max-width: 380px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .report__band { grid-template-columns: 1fr; text-align: center; }
  .emblem { margin-inline: auto; }
  .scoreblock { justify-content: center; }
  .likert { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .site-head__nav .navlink { padding: 8px 10px; }
  .btn--block-m { display: flex; width: 100%; }
}
@media (max-width: 420px) {
  .likert .opt { padding: 12px 4px; font-size: .8rem; }
}

/* ---- Utilities -------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tac { text-align: center; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }
.center-x { margin-inline: auto; }
.hide { display: none; }
.ic { width: 24px; height: 24px; flex: 0 0 auto; }

/* ---- Arenas wheel (hero illustration) ---- */
.arenas-wheel { width: 100%; max-width: 430px; height: auto; margin-inline: auto; display: block; filter: drop-shadow(0 20px 44px rgba(30,42,68,.16)); }
.arena-label { font-family: var(--font-ui); font-weight: 700; font-size: 16px; fill: var(--ink); }
.arena-center { font-family: var(--font-display); font-weight: 700; font-size: 20px; fill: var(--ink); }

/* ---- Test: 2-column layout + "did you know" insight panel ---- */
.test-layout { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: clamp(22px,3.5vw,52px); align-items: stretch; max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px,4vw,40px); padding-block: clamp(24px,4vw,52px); }
.test-layout .stage { display: block; min-height: auto; padding: 0; place-items: initial; }
.test-layout .qcard { max-width: none; }
.test-layout.is-result { display: block; }
.test-layout.is-result .test-aside { display: none; }
.test-aside { min-width: 0; }
.tipcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.tipcard::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.tipcard__badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); font-size: .92rem; margin-bottom: 12px; }
.tipcard__badge svg { width: 18px; height: 18px; }
.tipcard__text { color: var(--ink); font-size: 1.62rem; line-height: 1.5; font-family: var(--font-display); }
.tipcard__src { display: inline-block; margin-top: 18px; font-size: 1rem; font-weight: 600; color: var(--emerald); }
.tipcard__badge { font-size: 1rem; }
.tipcard__deco { position: absolute; inset-inline: 28px; height: 9px; opacity: .5;
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) center/100% 1px no-repeat,
              repeating-linear-gradient(to left, var(--gold-soft) 0 1px, transparent 1px 15px) top/100% 5px no-repeat; }
.tipcard__deco--top { top: 28px; }
.tipcard__deco--bottom { bottom: 28px; transform: scaleY(-1); }
@media (max-width: 920px) {
  .test-layout { grid-template-columns: 1fr; }
  .test-aside { position: static; }
}
