/* css/hub.css - the Atelier front door. Self-contained: reads only --brand-*
   (brand.css), never the AI-tool skin tokens. */

/* Show/hide: the hub replaces the journey shell in hub view. data-view is set
   by app.js boot() + the no-FOUC script in index.html. */
.hub { display: none; }
html[data-view="hub"] .hub { display: block; }
html[data-view="hub"] .chat-app,
html[data-view="hub"] .top-bar { display: none; }

.hub {
  min-height: 100vh;
  background: var(--brand-bg);
  background-image: var(--brand-glow);
  color: var(--brand-ink);
  font-family: var(--brand-sans);
  -webkit-font-smoothing: antialiased;
}
.hub-bar {
  max-width: 1120px; margin: 0 auto; padding: 28px 40px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.hub-mark { font-weight: 800; letter-spacing: 0.2em; font-size: 16px; }
.hub-mark__j { color: var(--brand-accent); }
.hub-langlink {
  background: transparent; border: 1px solid var(--brand-line); color: var(--brand-ink-60);
  border-radius: 100px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px;
}
.hub-langlink:hover { color: var(--brand-ink); }

.hub-hero {
  max-width: 1120px; margin: 0 auto; padding: 56px 40px 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hub-hero__eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brand-accent); font-weight: 700; margin-bottom: 18px;
}
.hub-hero__h1 {
  font-family: var(--brand-display); font-weight: 600; font-size: 54px; line-height: 1.04;
  letter-spacing: -0.015em; margin: 0 0 20px;
}
.hub-hero__sub { font-size: 18px; color: var(--brand-ink-60); max-width: 44ch; margin: 0 0 32px; line-height: 1.55; }
.hub-hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hub-btn {
  font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: 12px;
  background: var(--brand-accent); color: var(--brand-bg); text-decoration: none;
  box-shadow: 0 8px 30px rgba(233,194,106,0.22);
}
.hub-btn-ghost { font-size: 14px; color: var(--brand-ink-60); text-decoration: underline; text-underline-offset: 3px; }
.hub-soon {
  margin-left: 9px; padding: 3px 9px; border: 1px solid var(--brand-line); border-radius: 100px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-ink-60); text-decoration: none; white-space: nowrap; vertical-align: middle;
}
.hub-btn:focus-visible, .hub-btn-ghost:focus-visible, .hub-ex:focus-visible, .hub-langlink:focus-visible {
  outline: 2px solid var(--brand-accent); outline-offset: 3px;
}
.hub-motto { margin-top: 40px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-ink-60); }
.hub-motto b { color: var(--brand-accent); font-weight: 700; }

.hub-hero__sample { display: flex; justify-content: center; }
.hub-sample {
  background: var(--brand-raised); border: 1px solid var(--brand-line); border-radius: 20px;
  padding: 30px 28px 24px; text-align: center; box-shadow: 0 36px 90px rgba(0,0,0,0.55); width: 100%; max-width: 380px;
}
/* Finding #1: the archetype is the hero; the Score is demoted to a small
   subscript. The archetype (non-rankable identity) leads; the number supports. */
.hub-sample__arch { font-family: var(--brand-display); font-size: 44px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.hub-sample__ident { font-size: 13.5px; color: var(--brand-ink-60); margin-top: 4px; margin-bottom: 12px; }
.hub-sample__es { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-ink-60); margin-top: 14px; }
.hub-sample__score { font-size: 26px; font-weight: 700; color: var(--brand-accent); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.01em; margin-top: 3px; }
.hub-sample__tier { font-size: 12.5px; color: var(--brand-ink-60); margin-top: 4px; }
.hub-radar { width: 230px; height: 200px; display: block; margin: 0 auto; }
.hub-radar__grid { fill: none; stroke: var(--brand-accent); stroke-opacity: 0.42; stroke-width: 1.1; }
.hub-radar__grid--in { stroke-opacity: 0.2; }
.hub-radar__spoke { stroke: var(--brand-accent); stroke-opacity: 0.13; stroke-width: 1; }
.hub-radar__band { fill: var(--brand-accent); fill-opacity: 0.16; stroke: var(--brand-accent); stroke-width: 2.4; stroke-linejoin: round; }
.hub-radar__vtx { fill: var(--brand-accent-hi); }
.hub-radar__lbl { fill: var(--brand-ink-60); font-family: var(--brand-sans); font-size: 11px; font-weight: 600; }

.hub-examples { max-width: 1120px; margin: 0 auto; padding: 66px 40px 64px; }
.hub-examples__title { font-size: 13px; letter-spacing: 0.04em; color: var(--brand-ink-60); font-weight: 600; margin: 0 0 16px; }
.hub-examples__row { display: flex; gap: 14px; flex-wrap: wrap; }
.hub-ex {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  background: var(--brand-raised); border: 1px solid var(--brand-line); border-radius: 12px;
  padding: 16px 20px; text-decoration: none; color: var(--brand-ink); min-width: 240px; flex: 1;
  transition: border-color 0.15s, transform 0.06s;
}
.hub-ex:hover { border-color: var(--brand-accent); transform: translateY(-1px); }
.hub-ex__role { font-weight: 600; font-size: 15px; }
.hub-ex__go { color: var(--brand-accent); font-size: 13px; font-weight: 600; white-space: nowrap; }

@media (max-width: 880px) {
  .hub-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .hub-hero__h1 { font-size: 42px; }
  .hub-hero__sample { order: -1; }
  .hub-ex { min-width: 100%; }
}

/* -- Examples-section reframe (eyebrow + sub) -- */
.hub-examples__eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-accent); font-weight: 600; margin-bottom: 0.5rem; }
.hub-examples__sub { color: var(--brand-ink-60); font-size: 0.95rem; line-height: 1.55; max-width: 560px; margin: 0.2rem 0 1.2rem; }

/* -- Early-access band (used on the hub AND the quiz result; reads --brand-*) -- */
.early-access { max-width: 620px; margin: 2.5rem auto 0; padding: 1.5rem 1.5rem 1rem; border: 1px solid var(--brand-line); border-radius: 14px; background: var(--brand-raised); text-align: center; }
.early-access__eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-accent); font-weight: 600; margin-bottom: 0.45rem; }
.early-access__title { font-family: var(--brand-display); font-size: 1.35rem; line-height: 1.2; color: var(--brand-ink); margin: 0 0 0.45rem; }
.early-access__sub { color: var(--brand-ink-60); font-size: 0.95rem; line-height: 1.5; margin: 0 auto 1rem; max-width: 460px; }
.early-access__form { border: 0; width: 100%; min-height: 120px; }

/* -- Privacy footer (hub + early-access band) -- */
.hub-footer { text-align: center; margin: 2.5rem auto 1.5rem; }
.hub-footer__link, .early-access__privacy a { color: var(--brand-ink-60); font-size: 0.85rem; }
.early-access__privacy { margin: 0.7rem 0 0; color: var(--brand-ink-60); font-size: 0.8rem; }
