@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Inline&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/*
 * Canonical source: ../Elastic-Life-Knowledge/40-data/tokens.json
 * Source lastUpdated: 2026-07-31
 * Run `node scripts/check-brand-tokens.mjs` from the repo root after
 * changing either this file or the canonical token source.
 */
:root {
  --ep-voltage-blue: #2E6BFF;
  --ep-voltage-blue-hover: #2659D6;
  --ep-vermilion: #E8432F;
  --ep-vermilion-hover: #C23827;
  --ep-electric-teal: #00D9C6;
  --ep-electric-teal-hover: #00B6A6;
  --ep-electric-yellow: #FFD400;
  --ep-electric-yellow-hover: #D6B200;
  --ep-electric-pink: #FF2E88;
  --ep-electric-pink-hover: #D62672;
  --ep-ink: #12100D;
  --ep-paper: #FAF6EE;

  /* Compatibility aliases while the prototype CSS is separated. */
  --green-bg: var(--ep-paper);
  --card-bg: var(--ep-paper);
  --ink: var(--ep-ink);
  --rule: var(--ep-ink);
  --back-pattern: var(--ep-electric-yellow);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  background-color: var(--ep-paper);
  background-image:
    radial-gradient(circle at 14% 10%, rgba(46, 107, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 88%, rgba(255, 46, 136, 0.10), transparent 30rem);
  color: var(--ep-ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  background: linear-gradient(
    90deg,
    var(--ep-voltage-blue) 0 20%,
    var(--ep-vermilion) 20% 40%,
    var(--ep-electric-teal) 40% 60%,
    var(--ep-electric-yellow) 60% 80%,
    var(--ep-electric-pink) 80% 100%
  );
  content: '';
  height: 8px;
  inset: 0 0 auto;
  position: fixed;
  z-index: 100;
}

h1,
h2,
h3,
.prompt,
.card-title,
.summary h2 {
  font-family: 'Bungee', 'Arial Black', sans-serif;
  font-weight: 400;
}

button,
input,
textarea {
  font-family: 'Work Sans', system-ui, sans-serif;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid var(--ep-electric-yellow);
  outline-offset: 4px;
}

button {
  border-color: var(--ep-ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 44px;
  text-transform: none;
}

.primary-action,
#reflectBtn {
  background: var(--ep-voltage-blue);
  border-color: var(--ep-ink);
  box-shadow: 4px 4px 0 var(--ep-ink);
  color: var(--ep-paper);
}

.primary-action:hover:not(:disabled),
#reflectBtn:hover:not(:disabled) {
  background: var(--ep-voltage-blue-hover);
  box-shadow: 2px 2px 0 var(--ep-ink);
  transform: translate(2px, 2px);
}

.primary-action:active:not(:disabled),
#reflectBtn:active:not(:disabled) {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.utility-action,
button.ghost,
button.secondary {
  background: transparent;
  border-color: var(--ep-ink);
  box-shadow: none;
  color: var(--ep-ink);
}

.card,
.center-echo,
.center-reminder,
textarea.board-input,
textarea.center-input {
  background: var(--ep-paper);
  border-color: var(--ep-ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ep-ink);
}

.card.selected {
  border-color: var(--ep-voltage-blue);
  box-shadow: 6px 6px 0 var(--ep-ink), 0 0 0 4px var(--ep-voltage-blue);
}

.rank-badge,
.board-cell.current {
  background: var(--ep-voltage-blue);
  color: var(--ep-paper);
}

.dot.active,
.dot.done,
.spinner-bars span {
  background: var(--ep-voltage-blue);
}

.step-label,
.eyebrow-text,
.field-tag,
.center-reminder .label,
.center-echo .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.speaker-btn,
.icon-button {
  align-items: center;
  background: var(--ep-paper);
  border: 2px solid var(--ep-ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ep-ink);
  color: var(--ep-ink);
  display: inline-flex;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.speaker-btn:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  background: var(--ep-electric-yellow);
  box-shadow: 1px 1px 0 var(--ep-ink);
  transform: translate(2px, 2px);
}

.icon-button {
  font-size: 18px;
  height: 44px;
  padding: 0;
  position: fixed;
  right: 20px;
  top: 24px;
  width: 44px;
  z-index: 20;
}

.settings-panel {
  background: var(--ep-paper);
  border: 2px solid var(--ep-ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ep-ink);
  display: block;
  padding: 18px 20px;
  position: fixed;
  right: 20px;
  top: 78px;
  width: min(280px, calc(100vw - 40px));
  z-index: 20;
}

.settings-panel[hidden] {
  display: none;
}

.settings-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.settings-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
}

.settings-option + .settings-option {
  margin-top: 14px;
}

.settings-option input {
  accent-color: var(--ep-voltage-blue);
  height: 18px;
  width: 18px;
}

.splash-screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.splash-brand-small {
  font-family: 'Bungee', 'Arial Black', sans-serif;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.splash-brand-word {
  color: var(--ep-voltage-blue);
  font-family: 'Bungee Inline', 'Bungee', 'Arial Black', sans-serif;
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 4px 0 40px;
  text-transform: uppercase;
}

.splash-status {
  font-size: 13px;
  margin-bottom: 16px;
  max-width: 340px;
  opacity: 0.72;
}

.main-app {
  align-items: center;
  display: none;
  flex-direction: column;
}

/* Street-facing entry: loud enough to read in four seconds. */
.entry-page {
  margin: 0;
  min-height: 100vh;
}

.entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: clamp(52px, 8vw, 100px) clamp(24px, 6vw, 72px);
}

.entry-hero,
.entry-choices {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-hero {
  background: var(--ep-electric-yellow);
  border: 3px solid var(--ep-ink);
  box-shadow: 12px 12px 0 var(--ep-ink);
  padding: clamp(28px, 6vw, 68px);
  position: relative;
}

.entry-hero::after {
  background: var(--ep-electric-pink);
  border: 3px solid var(--ep-ink);
  content: '';
  height: 42px;
  position: absolute;
  right: clamp(18px, 4vw, 46px);
  top: -22px;
  transform: rotate(4deg);
  width: 112px;
}

.entry-eyebrow,
.entry-action__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.brand-lockup {
  margin: clamp(24px, 5vw, 54px) 0;
  text-transform: uppercase;
}

.brand-lockup__small {
  display: block;
  font-family: 'Bungee', 'Arial Black', sans-serif;
  font-size: clamp(22px, 4vw, 42px);
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-lockup__word {
  color: var(--ep-voltage-blue);
  font-family: 'Bungee Inline', 'Bungee', 'Arial Black', sans-serif;
  font-size: clamp(48px, 5vw, 70px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 6px 0 0;
  text-shadow: 3px 3px 0 var(--ep-ink);
  white-space: nowrap;
}

.entry-tagline {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  max-width: 22ch;
}

.entry-intro {
  font-size: 18px;
  font-weight: 500;
  margin: 18px 0 0;
  max-width: 38ch;
}

.entry-choices {
  gap: 24px;
  padding: clamp(30px, 6vw, 72px);
}

.entry-primary {
  background: var(--ep-voltage-blue);
  border: 3px solid var(--ep-ink);
  box-shadow: 8px 8px 0 var(--ep-ink);
  color: var(--ep-paper);
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  padding: 26px;
  position: relative;
  text-decoration: none;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.entry-primary:hover {
  background: var(--ep-voltage-blue-hover);
  box-shadow: 4px 4px 0 var(--ep-ink);
  transform: translate(4px, 4px);
}

.entry-action__title {
  display: block;
  font-family: 'Bungee', 'Arial Black', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 6px;
}

.entry-action__desc {
  font-size: 13px;
  grid-column: 1 / -1;
  opacity: 0.82;
}

.entry-action__arrow {
  font-family: 'Bungee', sans-serif;
  font-size: 32px;
  grid-column: 2;
  grid-row: 1 / 3;
}

.entry-secondary {
  align-items: center;
  color: var(--ep-ink);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 10px 0 12px;
  text-decoration-color: var(--ep-electric-pink);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.entry-secondary:hover {
  color: var(--ep-voltage-blue-hover);
  text-decoration-color: var(--ep-electric-pink-hover);
}

.entry-secondary__arrow {
  font-family: 'Bungee', sans-serif;
  font-size: 28px;
}

.entry-privacy {
  border-top: 2px solid var(--ep-ink);
  font-size: 13px;
  margin: 10px 0 0;
  padding-top: 16px;
}

@media (max-width: 820px) {
  .entry-shell {
    display: block;
    padding: 54px 20px 40px;
  }

  .entry-hero {
    box-shadow: 8px 8px 0 var(--ep-ink);
  }

  .entry-choices {
    padding: 54px 8px 18px;
  }

  .brand-lockup__word {
    font-size: clamp(38px, 11vw, 60px);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
