/* FedM8 Hub — internal sales training deck */
:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --gold: #c9a227;
  --gold-light: #e3c565;
  --page: #e8eef5;
  --ink: #0e141b;
  --ink-2: #3d4a5c;
  --muted: #6b7789;
  --line: rgba(14, 20, 27, 0.12);
  --surface: #fbfcfe;
  --bad: #b3261e;
  --good: #0ca30c;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  overflow: hidden;
}
a { color: var(--navy-2); }
button, input { font-family: inherit; }
button { cursor: pointer; }

.btn {
  background: var(--gold); color: var(--navy); border: none;
  font-weight: 750; font-size: 14px; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn:hover { background: var(--gold-light); }
.btn.ghost {
  background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff;
}
.btn.small { padding: 6px 11px; font-size: 12.5px; }

/* Gate — same feel as Hub */
.deck-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 28px 18px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(201,162,39,.18), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(26,58,104,.22), transparent 50%),
    linear-gradient(160deg, #0b1f3a 0%, #122a4d 45%, #1a3a68 100%);
}
.deck-gate[hidden] { display: none !important; }
.deck-gate-card {
  width: min(420px, 100%); background: #fff; border-radius: 16px;
  padding: 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.deck-gate-card .mark {
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.deck-gate-card h1 {
  font-family: var(--serif); font-size: 1.75rem; color: var(--navy);
  margin: 8px 0; letter-spacing: -0.02em;
}
.deck-gate-card h1 span { color: var(--gold); }
.deck-gate-card .lead { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.deck-gate label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 12px 0 4px;
}
.deck-gate input {
  width: 100%; padding: 10px 12px; border: 1px solid #dde4ec; border-radius: 8px; font-size: 14px;
}
.deck-gate .btn { width: 100%; margin-top: 14px; justify-content: center; }
.deck-gate .btn.ghost {
  margin-top: 8px; border-color: #dde4ec; color: var(--navy);
}
.deck-gate .note { font-size: 13px; margin-top: 10px; min-height: 1.3em; }
.deck-gate .note.ok { color: var(--good); }
.deck-gate .note.err { color: var(--bad); }
.deck-gate .back { margin-top: 16px; font-size: 13px; }
.deck-gate .back a { color: var(--muted); }

/* Shell */
.deck-shell {
  height: 100vh; display: flex; flex-direction: column; position: relative;
  background:
    radial-gradient(1000px 520px at 8% -20%, #d5e2f0, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, #dde5ef, transparent 50%),
    var(--page);
}
.deck-shell[hidden] { display: none !important; }

.deck-top {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--navy); color: #fff; z-index: 5;
}
.deck-top .brand {
  color: #fff; text-decoration: none; font-weight: 750; font-size: 15px;
}
.deck-top .brand span { color: var(--gold-light); }
.deck-top .pill {
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: #9fb0c4; border: 1px solid rgba(255,255,255,.2);
  padding: 4px 8px; border-radius: 999px;
}
.deck-top .spacer { flex: 1; }
.deck-top .progress {
  font-size: 12px; color: #9fb0c4; font-variant-numeric: tabular-nums; margin-right: 4px;
}

.deck-stage {
  flex: 1; min-height: 0; position: relative; outline: none;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px 56px;
}

.slide {
  display: none;
  width: min(920px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 18px 48px rgba(11, 31, 58, 0.08);
  animation: rise 0.45s ease both;
}
.slide.on { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 11.5px; font-weight: 750; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.slide h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.85rem);
  color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px;
}
.slide h1 em { font-style: italic; color: #1a3a68; }
.slide h2 {
  font-family: var(--serif); font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  color: var(--navy); letter-spacing: -0.02em; margin-bottom: 16px; max-width: 28ch;
}
.slide .lead {
  font-size: 1.08rem; color: var(--ink-2); max-width: 42rem; margin-bottom: 16px;
}
.slide .hint { font-size: 13px; color: var(--muted); margin-top: 20px; }
.slide .aside {
  margin-top: 18px; font-size: 14px; color: var(--ink-2);
  border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; max-width: 48rem;
}
.slide .aside code, .urls code {
  font-size: 0.92em; background: rgba(11,31,58,.06); padding: 0.1em 0.35em; border-radius: 4px;
}

.bullets { list-style: none; max-width: 44rem; }
.bullets li {
  position: relative; padding: 10px 0 10px 22px; color: var(--ink-2); font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
}
.bullets li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); position: absolute; left: 0; top: 18px;
}
.bullets.ban li::before { background: var(--bad); }
.bullets strong { color: var(--navy); }

.grid4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px;
}
@media (max-width: 820px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .deck-top .pill { display: none; }
}
@media (max-width: 520px) {
  .grid4 { grid-template-columns: 1fr; }
}
.grid4 > div {
  background: #f4f7fb; border-radius: 12px; padding: 14px 14px 16px;
  border: 1px solid var(--line);
}
.grid4 h3 { font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.grid4 p { font-size: 13px; color: var(--ink-2); }

.steps {
  list-style: none; counter-reset: s; max-width: 42rem;
}
.steps li {
  counter-increment: s; position: relative;
  padding: 12px 0 12px 42px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 1.02rem;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  font-size: 13px; font-weight: 750;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--navy); }

.qa { display: grid; gap: 12px; }
.qa > div {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px;
  background: #f4f7fb; border: 1px solid var(--line);
}
.qa strong { color: var(--navy); font-size: 14.5px; }
.qa span { color: var(--ink-2); font-size: 14px; }

.urls { width: 100%; border-collapse: collapse; font-size: 15px; }
.urls td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.urls td:first-child { color: var(--muted); font-weight: 650; width: 9.5rem; }

blockquote {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--navy); line-height: 1.4; max-width: 36rem;
  border-left: 4px solid var(--gold); padding-left: 18px; margin: 8px 0 0;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta-row .btn.ghost {
  border-color: var(--line); color: var(--navy);
}

.deck-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 4;
  pointer-events: none;
}
.deck-dots button {
  pointer-events: auto; width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(11,31,58,.22); padding: 0;
}
.deck-dots button.on { background: var(--gold); transform: scale(1.25); }
