@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --ink: #11343d;
  --muted: #667a7f;
  --line: rgba(17, 52, 61, 0.13);
  --paper: #f7faf9;
  --white: rgba(255, 255, 255, 0.92);
  --pink: #e50078;
  --yellow: #f2bc1d;
  --cyan: #48c4ca;
  --shadow: 0 24px 70px rgba(17, 52, 61, 0.11);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 52, 61, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 52, 61, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 249, 0.85);
  backdrop-filter: blur(18px);
}
.brand img { display: block; width: 150px; max-height: 44px; object-fit: contain; object-position: left center; }
.top-actions, .lang-switch { display: flex; align-items: center; gap: 8px; }
.pilot-pill { padding: 5px 9px; border: 1px solid rgba(229, 0, 120, 0.28); border-radius: 999px; color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; }
.lang-switch { padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch button { width: 35px; height: 29px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.lang-switch button[aria-pressed="true"] { color: #fff; background: var(--ink); }

main { overflow: hidden; }
section { position: relative; width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.hero { min-height: 620px; padding: clamp(74px, 10vw, 126px) 0 80px; }
.eyebrow { margin: 0 0 14px; color: var(--pink); font-size: 11px; font-weight: 700; letter-spacing: 0.17em; }
h1, h2 { margin: 0; font-family: 'Manrope', sans-serif; letter-spacing: -0.045em; line-height: 1.04; }
h1 { max-width: 820px; font-size: clamp(43px, 8vw, 82px); }
h2 { font-size: clamp(30px, 5vw, 48px); }
.hero-copy, .section-copy { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: 0.72; }
.orb-one { top: 58px; right: -190px; width: 480px; height: 480px; background: radial-gradient(circle at 35% 35%, rgba(72,196,202,.38), rgba(255,255,255,0) 66%); }
.orb-two { top: 248px; left: -230px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(229,0,120,.14), rgba(255,255,255,0) 68%); }

.compare-card { margin-top: 50px; padding: clamp(18px, 4vw, 28px); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.select-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px; }
label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
select, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
select, input { min-height: 50px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(72,196,202,.13); }
.swap { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #f6f9f8; font-size: 22px; }
.primary, .secondary { min-height: 48px; padding: 0 21px; border-radius: 999px; font-weight: 700; }
.primary { border: 0; color: #fff; background: var(--ink); box-shadow: 0 9px 24px rgba(17,52,61,.18); }
.primary:hover { background: #071f27; transform: translateY(-1px); }
.secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.compare-card > .primary { width: 100%; margin-top: 18px; }

.results, .coach-section, .contact-section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.largest-gap, .quota { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: var(--pink); background: rgba(229,0,120,.08); font-size: 12px; font-weight: 700; }
.method-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.dimension-list { display: grid; gap: 12px; margin-top: 32px; }
.dimension-card { display: grid; grid-template-columns: minmax(145px, .72fr) 1.6fr; gap: 20px; padding: 19px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.82); }
.dimension-meta { display: flex; flex-direction: column; justify-content: center; }
.dimension-meta small { color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.dimension-meta strong { margin-top: 5px; font-family: 'Manrope', sans-serif; font-size: 17px; }
.dimension-meta span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 32px; align-items: center; gap: 10px; font-size: 12px; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e7eeec; }
.bar-track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--ink); }
.bar-row:nth-child(2) .bar-track i { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.bar-row b { font-variant-numeric: tabular-nums; }
.bridge-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 28px; padding: 24px; border-radius: 22px; color: #fff; background: var(--ink); }
.bridge-card small { color: #9ddce0; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.bridge-card p { margin: 5px 0 0; }
.bridge-icon { font-size: 29px; color: var(--yellow); }

.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #34bf77; box-shadow: 0 0 0 5px rgba(52,191,119,.12); }
.coach-shell { margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.coach-context { min-height: 45px; padding: 13px 22px; color: var(--muted); background: #eef5f3; font-size: 12px; font-weight: 600; }
.conversation { display: flex; flex-direction: column; gap: 13px; min-height: 180px; max-height: 520px; overflow-y: auto; padding: 24px; }
.message { max-width: min(84%, 680px); padding: 14px 16px; border-radius: 17px; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; border-bottom-left-radius: 4px; background: #eff5f3; }
.message.user { align-self: flex-end; border-bottom-right-radius: 4px; color: #fff; background: var(--ink); }
.message.loading { color: var(--muted); font-style: italic; }
#coach-form { padding: 21px; border-top: 1px solid var(--line); }
.email-field { display: block; margin-bottom: 13px; }
.prompt-field { display: block; }
.consent-line { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 14px; }
.consent-line input { width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--ink); }
.consent-line span { margin: 0; font-size: 11px; font-weight: 400; line-height: 1.45; }
.consent-line.optional { margin-top: 8px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.form-row p { max-width: 540px; margin: 0; color: var(--muted); font-size: 11px; }
.primary:disabled { cursor: not-allowed; opacity: .52; transform: none; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 7vw, 90px); }
.contact-copy p { color: var(--muted); }
.contact-copy ul { margin: 28px 0 0; padding: 0; list-style: none; }
.contact-copy li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-copy li::before { content: '✦'; margin-right: 10px; color: var(--pink); }
.contact-form { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.contact-form > label:not(.consent-line) { display: block; margin-bottom: 13px; }
.contact-form .primary { width: 100%; margin-top: 18px; }
.form-status { min-height: 21px; margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px clamp(18px,5vw,72px) 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer img { width: 120px; }
footer p { margin: 0; }
footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.bottom-nav { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: 74px; }
  .topbar { min-height: 64px; padding-inline: 15px; }
  .brand img { width: 126px; }
  .pilot-pill { display: none; }
  section { width: min(100% - 28px, 620px); }
  .hero { min-height: auto; padding: 68px 0 62px; }
  h1 { font-size: clamp(41px, 13vw, 62px); }
  .hero-copy { font-size: 17px; }
  .compare-card { margin-top: 35px; border-radius: 22px; }
  .select-grid { grid-template-columns: 1fr; }
  .swap { justify-self: center; width: 42px; height: 42px; transform: rotate(90deg); }
  .results, .coach-section, .contact-section { padding: 67px 0; }
  .section-heading { align-items: flex-start; }
  .dimension-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .bar-row { grid-template-columns: 74px 1fr 28px; }
  .bridge-card { grid-template-columns: auto 1fr; }
  .bridge-card .secondary { grid-column: 1 / -1; width: 100%; }
  .message { max-width: 92%; }
  .form-row { align-items: stretch; flex-direction: column; }
  .form-row .primary { width: 100%; }
  .contact-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; padding-bottom: 32px; text-align: center; }
  footer img { margin-inline: auto; }
  .bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
  .bottom-nav a { display: grid; place-items: center; color: var(--muted); text-decoration: none; }
  .bottom-nav span { color: var(--ink); font-size: 19px; line-height: 1; }
  .bottom-nav small { margin-top: 4px; font-size: 10px; font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Night-blue Culture Hub universe shared with the main pilot. */
:root {
  --ink: #f6f7ff;
  --muted: #aab5cf;
  --line: rgba(83, 121, 255, .26);
  --paper: #020718;
  --white: rgba(9, 20, 51, .94);
  --pink: #c63cff;
  --yellow: #f2c65d;
  --cyan: #1fc4ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  color-scheme: dark;
}
body {
  background:
    radial-gradient(circle at 86% 13%, rgba(45, 96, 225, .2), transparent 27rem),
    radial-gradient(circle at 8% 58%, rgba(126, 47, 239, .15), transparent 30rem),
    linear-gradient(rgba(78, 105, 220, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 105, 220, .04) 1px, transparent 1px),
    #020718;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: #f6f7ff;
}
.topbar { border-bottom-color: rgba(95, 123, 232, .28); background: rgba(2, 7, 24, .9); box-shadow: 0 14px 45px rgba(0, 0, 0, .22); }
.topbar .brand img,
footer img { content: url("./assets/culture-hub-logo-night.png"); }
.pilot-pill { border-color: rgba(161, 92, 255, .44); color: #bc9aff; }
.lang-switch { border-color: rgba(98, 125, 229, .34); background: #09132f; }
.lang-switch button { color: #9ca8c5; }
.lang-switch button[aria-pressed="true"] { background: linear-gradient(135deg, #8d20ff, #0d7fff); }
.eyebrow { color: #ad8eff; }
.hero-copy,
.section-copy,
.method-note,
.contact-copy p { color: #aab5cf; }
.orb-one { background: radial-gradient(circle at 35% 35%, rgba(30, 184, 255, .3), transparent 66%); }
.orb-two { background: radial-gradient(circle, rgba(155, 54, 255, .2), transparent 68%); }
.compare-card,
.dimension-card,
.coach-shell,
.contact-form {
  border-color: rgba(83, 121, 255, .34);
  background: linear-gradient(145deg, rgba(12, 26, 64, .97), rgba(5, 12, 36, .97));
  box-shadow: 0 26px 78px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .035);
}
label > span,
.dimension-meta span,
.form-row p { color: #9eabc7; }
select,
input,
textarea { border-color: rgba(80, 126, 255, .38); background: #07122f; color: #f6f7ff; }
select:focus,
input:focus,
textarea:focus { border-color: #24c5ff; box-shadow: 0 0 0 4px rgba(31, 196, 255, .12); }
.swap,
.secondary { border-color: rgba(95, 124, 231, .4); background: #0b1737; color: #eff1ff; }
.primary { background: linear-gradient(110deg, #8d20ff, #0d7fff); box-shadow: 0 11px 30px rgba(75, 52, 240, .32); }
.primary:hover { background: linear-gradient(110deg, #a13dff, #2591ff); }
.results,
.coach-section,
.contact-section,
footer { border-color: rgba(78, 108, 215, .25); }
.largest-gap,
.quota { background: rgba(151, 79, 255, .15); color: #c29eff; }
.bar-track { background: #1a274a; }
.bar-track i { background: #7961ed; }
.bar-row:nth-child(2) .bar-track i { background: linear-gradient(90deg, #20c4ff, #c940ff); }
.bridge-card { border: 1px solid rgba(96, 121, 228, .36); background: linear-gradient(120deg, #111b42, #08112d); }
.coach-context { color: #a7b2cb; background: #101b3a; }
.message.assistant { background: #101b3c; color: #e7eaff; }
.message.user { background: linear-gradient(135deg, #6d43db, #116fd8); }
#coach-form { border-color: rgba(84, 113, 219, .28); }
.consent-line span { color: #a6b0c8; }
.contact-copy li { border-color: rgba(81, 110, 218, .25); }
.contact-copy li::before { color: #a779ff; }
footer { color: #8d99b5; }
footer a { color: #dfe4f4; }
.bottom-nav { border-color: rgba(90, 117, 222, .32) !important; background: rgba(3, 9, 29, .94) !important; }
.bottom-nav a { color: #9ca7c2; }
.bottom-nav span { color: #aa8aff; }
