/* Entry-flow adapter for site-brand.css. Load after the legacy page sheets.
   Only these four opt-in pages are affected; member preferences and state
   machines are not rewritten. Semantic red/green feedback remains distinct.
   Since the site World (2026-10-15) the four stand in front of the landing's
   globe (site-world.css): the nav, the cards and every window are the
   landing's glass (site-world-ui.css tokens, with their values as fallbacks
   for a page that does not load that sheet), labels are the landing's mono
   kicker, and on one column every text block brings its own glass. */
body.journey-premium {
  --ks-bg:var(--iv-bg); --ks-raised:var(--iv-raised); --ks-plate:var(--iv-surface);
  --ks-line:var(--iv-border); --ks-line-2:var(--iv-border); --ks-line-3:#596a64;
  --ks-ink-1:var(--iv-text); --ks-ink-2:var(--iv-muted); --ks-ink-3:var(--iv-subtle); --ks-ink-4:#76837e;
  --ks-acc:var(--iv-accent); --ks-acc-wash:#203d36;
  --ks-grad:linear-gradient(var(--iv-button),var(--iv-button)); --ks-on-grad:var(--iv-button-ink);
  --ks-good:#a9ddbc; --ks-caution:#eac689; --ks-bad:#f3aba5;
  --ks-display:var(--iv-font); --ks-body:var(--iv-font); --ks-mono:var(--iv-font);
  --ks-gutter:clamp(20px,5vw,76px); --ks-max:1200px;
  --ks-radius:var(--iv-radius); --ks-radius-s:var(--iv-radius-sm); --ks-nav-h:var(--iv-nav-height);
  /* the landing's glass (landing-world.css, site-world-ui.css) and its mono label voice */
  --jp-glass:var(--sw-glass,rgba(16,24,27,.86)); --jp-glass-full:rgba(17,25,28,.76);
  --jp-glass-line:var(--sw-glass-line,#cfe3dc2e); --jp-glass-filter:var(--sw-glass-filter,blur(16px) saturate(1.2));
  --jp-glass-shadow:var(--sw-glass-inset,inset 0 1px #ffffff14),var(--sw-glass-shadow,0 40px 60px -35px #000);
  --jp-plate:#ffffff08; --jp-mono:"JetBrains Mono",ui-monospace,monospace;
  background:var(--iv-bg)!important; color:var(--iv-text)!important;
  font-family:var(--iv-font); font-weight:400; -webkit-font-smoothing:antialiased;
  min-height:100dvh; margin:0;
}
html:has(> body.journey-premium) { background:var(--iv-bg)!important; color-scheme:dark; scroll-padding-top:90px; }
.journey-premium [hidden] { display:none!important; }
.journey-premium :focus-visible { outline:2px solid var(--iv-accent); outline-offset:4px; }
.journey-premium :is(button,input,select,textarea) { font-family:var(--iv-font); }
.journey-premium :is(h1,h2,h3,p,li,label,.row,.pv-row) { overflow-wrap:break-word; }
.journey-premium :is(.ks-h1,.ks-h2,.ks-h3,h1,h2,h3) { font-family:var(--iv-font)!important; font-weight:500!important; }
.journey-premium :is(.ks-label,.ks-field>label,.ks-note) { font-family:var(--iv-font); }
/* The landing's kicker: mono, 11px, wide tracking, after a short hairline; mint, never peach (peach is the globe's light). */
.journey-premium :is(.ks-eyebrow,.ks-steps,.qz-topic,.qz-verdict,.built .eyebrow,.built .tier span,.qz-dial .of) { font-family:var(--jp-mono); font-weight:400; text-transform:uppercase; }
.journey-premium :is(.ks-eyebrow,.qz-topic) { color:var(--iv-accent); font-size:11px; letter-spacing:.18em; }
.journey-premium .ks-eyebrow:not(.qz-pref>.ks-eyebrow)::before { content:""; display:inline-block; width:26px; height:1px; margin-right:12px; vertical-align:.3em; background:currentColor; opacity:.7; }
.journey-premium .ks-body { font-size:17px; line-height:1.6; }
.journey-premium :is(.ks-note,.ks-help,.legal,.door-legal) { font-family:var(--iv-font); letter-spacing:0; }
/* Same compact wordmark and soft actions as the landing page, on the landing's
   glass bar: the globe's light reads through it as the page scrolls. */
.journey-premium .ks-nav, body.journey-premium.acct header.ks-nav {
  position:sticky; inset:auto; top:0; z-index:60;
  height:auto; min-height:var(--iv-nav-height); padding:10px var(--ks-gutter);
  background:rgba(9,10,11,.85)!important; border-bottom:1px solid #ffffff12;
  -webkit-backdrop-filter:blur(22px); backdrop-filter:blur(22px); gap:16px;
}
.journey-premium .ks-nav__brand { font:500 18px/1 var(--iv-font); letter-spacing:.15em; flex-shrink:0; }
.journey-premium .ks-nav__brand small { font:400 10px/1 var(--iv-font); letter-spacing:.04em; }
.journey-premium .ks-nav__links { gap:20px; }
.journey-premium .ks-nav__link { font:400 13px/1.35 var(--iv-font); color:var(--iv-muted); min-height:40px; }
.journey-premium .ks-nav__link:hover { color:var(--iv-text); }
.journey-premium .public-language select { background:transparent; border:1px solid var(--iv-border); border-radius:999px; min-height:36px; padding:6px 10px; width:104px; font:400 12px var(--iv-font); }
/* the language menu's list, where the platform lets a page colour it */
.journey-premium .public-language option { background:#10181b; color:var(--iv-text); }
.journey-premium :is(.ks-cta,.btn.primary,.btn--primary) {
  min-height:48px; padding:13px 24px; border:1px solid var(--iv-button); border-radius:999px;
  background:var(--iv-button); color:var(--iv-button-ink); font:500 15px/1.4 var(--iv-font);
  box-shadow:none; letter-spacing:0; text-transform:none;
}
.journey-premium :is(.ks-cta,.btn.primary,.btn--primary):hover:not(:disabled) { background:#b5e7df; border-color:#b5e7df; color:var(--iv-button-ink); transform:translateY(-2px); filter:none; }
.journey-premium :is(.ks-ghost,.btn.ghost,.btn--ghost) { min-height:48px; border:1px solid #ffffff30; border-radius:999px; background:transparent; color:var(--iv-text); font:400 14px/1.4 var(--iv-font); box-shadow:none; }
.journey-premium :is(.ks-ghost,.btn.ghost,.btn--ghost):hover:not(:disabled) { background:var(--iv-raised); border-color:var(--iv-accent); transform:none; }
.journey-premium :is(.ks-cta,.ks-ghost,.btn):is(:disabled,[aria-disabled="true"]) { background:var(--iv-surface); border-color:var(--iv-border); color:var(--iv-subtle); opacity:1; cursor:not-allowed; box-shadow:none; }
.journey-premium :is(.ks-input,input[type="email"],input[type="password"],input[type="text"],.onb__input) {
  min-height:50px; background:rgba(7,11,14,.9); border:1px solid #596a64; border-radius:var(--iv-radius-sm);
  color:var(--iv-text); font:400 16px/1.5 var(--iv-font); padding:12px 15px; box-shadow:none;
}
.journey-premium :is(input,.ks-input)::placeholder { color:var(--iv-subtle); opacity:1; }
.journey-premium :is(input,.ks-input):focus-visible { outline:2px solid var(--iv-accent); outline-offset:3px; border-color:var(--iv-accent); }
.journey-premium :is(input,.ks-input)[aria-invalid="true"] { border-color:var(--ks-bad); }
.journey-premium :is(.msg.err,.ks-msg--bad) { color:var(--ks-bad); }
.journey-premium :is(.msg.ok,.ks-msg--good) { color:var(--ks-good); }
/* Cards and windows: the landing's glass. Opaque enough to read with no filter;
   from 900px, where a blur is cheap, a little clearer and blurred, so the globe
   behind a card is light rather than detail. A card inside a card is a plate.
   (The quiz card is named at stage depth: the editorial intro card is bare.) */
.journey-premium :is(.ks-card,.qz-prefs,.qz-cols[data-stage] .qz-card) { background:var(--jp-glass); border:1px solid var(--jp-glass-line); border-radius:var(--iv-radius); box-shadow:var(--jp-glass-shadow); backdrop-filter:none; -webkit-backdrop-filter:none; }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .journey-premium :is(.ks-card,.qz-prefs,.qz-cols[data-stage] .qz-card) { -webkit-backdrop-filter:var(--jp-glass-filter); backdrop-filter:var(--jp-glass-filter); }
  @media(min-width:900px) { .journey-premium :is(.ks-card,.qz-prefs,.qz-cols[data-stage] .qz-card) { background:var(--jp-glass-full); } }
}
.journey-premium :is(.ks-card,.qz-prefs,.qz-cols[data-stage] .qz-card) .ks-card { background:var(--jp-plate); border-color:var(--jp-glass-line); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
.journey-premium .ks-card--tight { border-radius:var(--iv-radius-sm); }
.journey-premium .ks-card::before,.journey-premium .ks-cta--ring::after { content:none; }
/* Static chips are the landing's: ink plate, radius 10, a white hairline. */
.journey-premium :is(.door-carry .ks-chips>span,.chips span) { background:#1d272a; border:1px solid #ffffff26; color:var(--iv-muted); }

/* Member door: a compact invitation beside the actual form, all states. */
.journey-premium .ks-door { min-height:0; padding-block:clamp(32px,6vh,64px); align-items:start; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,6vw,76px); }
.journey-premium .door-invite { padding-top:24px; gap:18px; }
.journey-premium .door-invite .ks-h1 { font-size:clamp(42px,5vw,66px); max-width:12ch; line-height:1.07; }
.journey-premium .door-lines { margin-top:18px; }
.journey-premium .door-lines li { border:0; min-height:40px; font-size:14px; }
.journey-premium .door-lines svg { color:var(--iv-accent); }
.journey-premium .ks-door__card { padding:clamp(22px,3vw,32px); gap:22px; }
.journey-premium .seg { display:flex; gap:4px; padding:4px; border:1px solid var(--iv-border); border-radius:999px; background:var(--iv-bg); }
.journey-premium .seg button { flex:1; min-height:42px; padding:9px 12px; margin:0; border:0; border-radius:999px; font-size:14px; color:var(--iv-muted); }
.journey-premium .seg button[aria-selected="true"] { background:var(--iv-raised); color:var(--iv-text); box-shadow:none; }
.journey-premium :is(.done .glyph,.door-who .av,.acct .who .av) { border-radius:50%; }
.journey-premium :is(.ks-chip span,.ks-chip--static,.ks-chips>span) { border-radius:999px; font-family:var(--iv-font); letter-spacing:0; text-transform:none; }
.journey-premium :is(.door-carry .ks-chips>span,.chips span) { border-radius:10px; font-family:var(--iv-font); letter-spacing:0; text-transform:none; }
.journey-premium :is(.door-skip,.skip) { border-radius:999px; }
.journey-premium .door-foot { padding-block:20px; min-height:64px; border-top-color:var(--iv-border); }
.journey-premium .door-foot :is(.ks-note,.ks-nav__link) { color:var(--iv-muted); font:400 12px/1.5 var(--iv-font); letter-spacing:0; text-transform:none; }
.journey-premium .save-main { max-width:1100px; padding-block:clamp(30px,5vh,60px) 48px; gap:36px; }
.journey-premium .save-lead { gap:18px; }
.journey-premium .save-lead .ks-h1 { font-size:clamp(42px,5vw,64px); line-height:1.07; }
/* the lede stays on the clean side of the globe's limb (site-world.css) */
.journey-premium .save-lead>.ks-body { max-width:min(32ch,27vw); }
.journey-premium .built .tier b { font-weight:500; }

/* Preferences, questions, evidence and result share one rounded card system. */
.journey-premium .qz-cols { grid-template-columns:minmax(0,760px); padding-top:32px; padding-bottom:40px; }
body.journey-premium.qz .qz-card { padding:clamp(22px,3vw,32px); gap:18px; border-radius:var(--iv-radius); }
body.journey-premium.qz .qz-cols[data-stage="intro"] .qz-card { padding:clamp(26px,4vw,42px); gap:22px; }
body.journey-premium.qz .qz-cols[data-stage="intro"] .qz-card .ks-h1 { font-size:clamp(38px,4.8vw,60px); max-width:15ch; line-height:1.06; }
body.journey-premium.qz .qz-cols[data-stage="intro"] .qz-card .ks-body { font-size:17px; max-width:44ch; }
.journey-premium .qz-intro-steps { gap:20px; padding-block:18px; }
.journey-premium .qz-intro-steps b { font-family:var(--iv-font); color:var(--iv-accent); margin-bottom:8px; }
.journey-premium .qz-intro-steps li { font-size:14px; }
.journey-premium .qz-cols[data-stage="intro"] .qz-legal { margin-top:16px; padding-top:14px; font:400 12px/1.6 var(--iv-font); letter-spacing:0; text-transform:none; }
.journey-premium .qz-bar { height:2px; }
.journey-premium .qz-bar>i { background:var(--iv-accent); }
body.journey-premium.qz .qz-prefs__h { font-size:clamp(32px,4vw,48px)!important; margin-bottom:10px; }
body.journey-premium.qz .qz-prefs>.ks-body { margin-bottom:20px; font-size:16px; }
/* Preferences are one glass sheet in front of the globe (the rule above), its
   numbered blocks plates inside it, so no line of the page sits on the planet. */
body.journey-premium.qz .qz-prefs { padding:clamp(22px,3vw,36px); }
body.journey-premium.qz .qz-prefs>.qz-pref,
body.journey-premium.qz .qz-preferences-more .qz-pref { background:var(--jp-plate); border:1px solid var(--jp-glass-line); border-radius:20px; padding:22px; margin-bottom:14px; }
body.journey-premium.qz .qz-pref { grid-template-columns:30px minmax(0,1fr); }
body.journey-premium.qz .qz-pref>.ks-eyebrow { color:var(--iv-accent); }
body.journey-premium.qz .qz-pref .ks-h3 { font-size:23px; line-height:1.25; }
body.journey-premium.qz .qz-pref :is(.qz-pick,.qz-chip) { border:1px solid #596a64; border-radius:var(--iv-radius-sm); color:var(--iv-text); background:transparent; }
body.journey-premium.qz .qz-pref .qz-chip { border-radius:999px; }
body.journey-premium.qz .qz-pref :is(.qz-pick,.qz-chip):hover { border-color:var(--iv-accent); background:var(--iv-raised); }
body.journey-premium.qz .qz-pref :is(.qz-pick,.qz-chip)[aria-checked="true"] { background:var(--iv-button); border-color:var(--iv-button); color:var(--iv-button-ink); }
body.journey-premium.qz .qz-pref .qz-pick[aria-checked="true"]>span { color:var(--iv-button-ink); opacity:1; }
body.journey-premium.qz .qz-preferences-more { border:0; }
body.journey-premium.qz .qz-preferences-more>summary { padding:16px 4px; }
body.journey-premium.qz .qz-prefs>.qz-actions { border:0; padding-top:10px; }
body.journey-premium.qz .qz-prefs-actions .ks-cta { border-radius:999px; }
body.journey-premium.qz .qz-card .ks-choice { border-radius:var(--iv-radius-sm); min-height:52px; padding:12px 16px; background:var(--iv-bg); }
body.journey-premium.qz .qz-card .ks-choice:hover:not(:disabled) { border-color:var(--iv-accent); background:var(--iv-raised); }
body.journey-premium.qz .qz-card .ks-choice[data-state="right"] { color:var(--iv-button-ink); background:var(--iv-button); border-color:var(--iv-button); }
.journey-premium .ks-choice__key { border-radius:50%; }
body.journey-premium.qz .ks-choice[data-state="wrong"] { border-color:var(--ks-bad); }
body.journey-premium.qz .ks-choice[data-state="wrong"] .ks-choice__key { color:var(--ks-bad); border-color:var(--ks-bad); }
.journey-premium .qz-reveal { background:var(--jp-plate); border-radius:var(--iv-radius-sm); }
/* the plate keeps the verdict's own edge (green when right) over the plate hairline */
body.journey-premium.qz .qz-card .qz-reveal[data-verdict="right"] { border-color:var(--ks-good); }
.journey-premium .qz-dial .fill { stroke:var(--iv-accent); stroke-linecap:round; }
.journey-premium .qz-dial .num { font-family:var(--iv-font); }

/* Account security retains all form and terminal-state hooks from kc-door. */
body.journey-premium.acct main.shell.one { width:100%; max-width:820px; padding:36px 24px 48px; }
body.journey-premium.acct .head { margin-bottom:26px; }
body.journey-premium.acct .head h1 { font-size:clamp(36px,4.3vw,56px); max-width:none; }
body.journey-premium.acct .head .lede { margin-top:14px; font-size:16px; }
body.journey-premium.acct .card { padding:26px; }
body.journey-premium.acct label { font:500 13px/1.5 var(--iv-font); text-transform:none; letter-spacing:0; color:var(--iv-muted); }
body.journey-premium.acct #username { background:var(--iv-bg); color:var(--iv-muted); border-color:var(--iv-border); }
body.journey-premium.acct .rules { border-radius:var(--iv-radius-sm); padding:16px; background:var(--jp-plate); border-color:var(--jp-glass-line); }
body.journey-premium.acct .rulesH { font:500 12px/1.5 var(--iv-font); letter-spacing:.04em; color:var(--iv-muted); }
body.journey-premium.acct .rules .tick { border-radius:5px; }
body.journey-premium.acct .methods .ic { border-radius:12px; }
body.journey-premium.acct .btn.danger { border-radius:999px; border-color:var(--ks-bad); color:var(--ks-bad); background:transparent; }
body.journey-premium.acct .btn.danger:hover { background:#35231f; }
body.journey-premium.acct footer { border-color:var(--iv-border); }
body.journey-premium.acct footer .in { font:400 12px/1.5 var(--iv-font); letter-spacing:0; text-transform:none; color:var(--iv-muted); }
/* Two columns where the globe stands beside the page, as on the door: the heading
   holds on the clean side, the cards float in front of the planet. */
@media(min-width:901px) {
  body.journey-premium.acct main.shell.one { display:grid; align-items:start; max-width:1200px; padding-inline:var(--ks-gutter); grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:0 clamp(40px,6vw,96px); }
  body.journey-premium.acct main.shell.one>.head { grid-column:1; grid-row:1; align-self:start; position:sticky; top:calc(var(--iv-nav-height) + 40px); }
  body.journey-premium.acct main.shell.one>:not(.head) { grid-column:2; }
  body.journey-premium.acct .head h1 { font-size:clamp(40px,4.4vw,60px); line-height:1.04; }
  body.journey-premium.acct .head .lede { max-width:min(48ch,27vw); }
}

@media(max-width:900px) {
  .journey-premium .ks-door { grid-template-columns:1fr; max-width:640px; margin:auto; gap:26px; }
  .journey-premium .door-invite { padding-top:0; }
  .journey-premium .door-lines { margin-top:0; }
  /* The globe stands above the page here and the page scrolls over it, so every
     block of type brings its own glass, as the door's invitation does: the
     hand-off's lead (its score card becomes part of that sheet) and the
     account's heading. */
  .journey-premium .site-world ~ main :is(.save-lead,.head) { padding:clamp(20px,5vw,28px); border:1px solid var(--jp-glass-line); border-radius:var(--iv-radius); background:var(--jp-glass); box-shadow:var(--jp-glass-shadow); }
  .journey-premium .site-world ~ main .save-lead>.built { padding:4px 0 0; border:0; border-radius:0; background:none; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .journey-premium .site-world ~ main .save-lead>.ks-body { max-width:none; }
}
@media(max-width:760px) {
  .journey-premium .ks-nav { flex-wrap:wrap; gap:8px 16px; padding-block:10px; }
  .journey-premium .ks-nav__links { gap:8px 14px; flex-wrap:wrap; }
  .journey-premium .ks-nav__brand { font-size:17px; }
  .journey-premium .ks-nav__brand small { display:none; }
  .journey-premium .ks-nav__link { min-height:36px; font-size:12px; }
  .journey-premium .ks-door { padding-block:28px; }
  .journey-premium .save-main { gap:24px; }
}
/* The smallest phones: the test is also in the door's footer, so it leaves the bar too (not on the account page,
   whose bar is the member's own navigation). */
@media(max-width:340px) {
  .journey-premium:not(.acct) .ks-nav .ks-nav__link[href*="/quiz"] { display:none; }
}
/* The test's bar keeps one row on a phone (it wrapped to three): the count rides
   under the wordmark, as a lockup, instead of taking rows of its own. */
@media(max-width:760px) {
  .journey-premium .qz-nav, .journey-premium .qz-nav .ks-nav__links { flex-wrap:nowrap; }
}
/* On a phone the bar is the landing's: the wordmark (which is the way back to the front page) and the one thing this
   page leads to, on one row. "The idea" steps out; it wrapped the bar to two rows on every phone. */
@media(max-width:520px) {
  .journey-premium .ks-nav__links { margin-left:auto; }
  .journey-premium .ks-nav .ks-nav__link[href*="#idea"] { display:none; }
  .journey-premium .qz-nav .ks-nav__links { max-width:none; }
  .journey-premium .qz-nav .ks-steps { position:absolute; left:var(--ks-gutter); bottom:9px; order:0; flex-basis:auto; text-align:left; font-size:9.5px; letter-spacing:.14em; line-height:1.2; }
  .journey-premium .qz-nav:has(.ks-steps:not(:empty)) .ks-nav__brand { transform:translateY(-7px); }
  .journey-premium .public-language select { width:94px; }
  .journey-premium .qz-cols { padding-top:22px; }
  body.journey-premium.qz .qz-card,
  body.journey-premium.qz .qz-cols[data-stage="intro"] .qz-card { padding:24px 20px; }
  body.journey-premium.qz .qz-pref { grid-template-columns:22px minmax(0,1fr); }
  body.journey-premium.qz .qz-pref>.ks-eyebrow { grid-column:1; grid-row:1; }
  body.journey-premium.qz .qz-pref>.ks-h3 { grid-column:2; grid-row:1; }
  body.journey-premium.qz .qz-pref>:not(.ks-eyebrow):not(.ks-h3) { grid-column:1 / -1; }
  body.journey-premium.qz .qz-prefs>.qz-pref,
  body.journey-premium.qz .qz-preferences-more .qz-pref { padding:20px 18px; }
  .journey-premium .qz-intro-steps { gap:12px; }
  .journey-premium .qz-intro-steps li { font-size:13px; }
  .journey-premium .qz-actions { gap:12px 18px; }
  body.journey-premium.acct .card { padding:22px 20px; }
  .journey-premium :is(.ks-eyebrow,.qz-topic) { letter-spacing:.14em; }
  .journey-premium .ks-eyebrow:not(.qz-pref>.ks-eyebrow)::before { width:18px; margin-right:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .journey-premium :is(.ks-cta,.ks-ghost,.qz-pick,.qz-chip,.qz-bar>i) { transition:none; }
  .journey-premium :is(.ks-cta,.btn.primary,.btn--primary):hover:not(:disabled) { transform:none; }
}
@media(forced-colors:active) {
  .journey-premium :is(.ks-cta,.ks-ghost,.qz-pick,.qz-chip,.ks-choice,.btn) { border:1px solid ButtonText; }
  .journey-premium .seg button[aria-selected="true"] { outline:2px solid Highlight; outline-offset:-3px; }
  .journey-premium :is(.qz-pick,.qz-chip)[aria-checked="true"] { outline:2px solid Highlight; outline-offset:-3px; }
}
