*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #002868; --ink-l: #1a3d82; --teal: #b45309; --teal-l: #c97b18;
  --amber: #d97706; --gray: #64748b; --gray-d: #334155; --light: #f1f5f9;
  --border: #e2e8f0; --white: #ffffff; --green: #16a34a;
  --phase1: #1e40af; --phase2: #b45309; --phase3: #16a34a;
}
body { font-family: 'Manrope', sans-serif; color: #1e293b; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: 'Manrope', sans-serif; letter-spacing: -.02em; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav { position: sticky; top: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  z-index: 100; border-bottom: 1px solid rgba(0,40,104,.07); padding: 0 36px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--ink); display: flex; align-items: center; gap: 8px; }
.nav-logo em { color: var(--teal); font-style: normal; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--gray); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; font-weight: 600;
  font-size: 14px; cursor: pointer; border: none; font-family: 'Manrope', sans-serif;
  transition: all .18s; letter-spacing: .01em; }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--ink-l); color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-l); color: white; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(0,40,104,.3); }
.btn-outline:hover { background: var(--ink); color: white; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 8px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 5px; }

/* HERO */
.course-hero { background: var(--ink); color: white; padding: 80px 24px 64px; position: relative; overflow: hidden; }
.course-hero::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 0%, rgba(180,83,9,.2) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 100%, rgba(180,83,9,.12) 0%, transparent 55%);
  pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px;
  background: rgba(180,83,9,.18); border: 1px solid rgba(180,83,9,.45);
  color: #fcd34d; padding: 6px 16px; border-radius: 20px; font-size: 13px;
  font-weight: 500; margin-bottom: 24px; }
.course-hero h1 { font-size: clamp(28px, 4.5vw, 52px); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; }
.course-hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 640px;
  margin: 0 auto 32px; line-height: 1.6; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.stat { text-align: center; }
.stat-num { font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800;
  color: #fcd34d; display: block; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); }

/* PHASE BADGES */
.phase-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.phase-1 { background: rgba(30,64,175,.12); color: var(--phase1); }
.phase-2 { background: rgba(180,83,9,.1); color: var(--teal); }
.phase-3 { background: rgba(22,163,74,.1); color: var(--green); }
.phase-1-bg { background: #1e40af; color: white; }
.phase-2-bg { background: var(--teal); color: white; }
.phase-3-bg { background: var(--green); color: white; }

/* SECTIONS */
section { padding: 72px 24px; }
.container { max-width: 1000px; margin: 0 auto; }
.container-sm { max-width: 760px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px; }
.section-title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--ink);
  line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--gray); line-height: 1.65; max-width: 600px; }

/* PHASE GRID */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.phase-card { border-radius: 12px; padding: 32px; border: 1px solid var(--border);
  background: white; transition: box-shadow .2s; }
.phase-card:hover { box-shadow: 0 8px 32px rgba(0,40,104,.08); }
.phase-card h3 { font-size: 19px; font-weight: 700; margin: 16px 0 8px; color: var(--ink); }
.phase-card p { font-size: 15px; color: var(--gray); line-height: 1.6; }
.phase-num { font-size: 40px; font-weight: 800; color: var(--border); font-family: 'Manrope', sans-serif; }

/* MODULE GRID */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.module-card { background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; transition: all .2s; cursor: pointer; text-decoration: none; display: block; }
.module-card:hover { border-color: var(--ink); box-shadow: 0 4px 16px rgba(0,40,104,.1); transform: translateY(-1px); text-decoration: none; }
.module-card .mod-num { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gray); text-transform: uppercase; margin-bottom: 6px; }
.module-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.module-card p { font-size: 13px; color: var(--gray); line-height: 1.5; }
.module-card .mod-meta { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.module-card .time { font-size: 12px; color: var(--gray); }

/* ASSESSMENT */
.assessment-card { background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 40px; box-shadow: 0 2px 16px rgba(0,40,104,.06); }
.assessment-card h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.question-list { margin: 28px 0; }
.question-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.question-item:last-child { border-bottom: none; }
.question-text { font-size: 16px; font-weight: 500; color: var(--gray-d); margin-bottom: 12px; }
.q-btns { display: flex; gap: 12px; }
.q-btn { padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); background: white; cursor: pointer; color: var(--gray-d);
  transition: all .15s; font-family: 'Manrope', sans-serif; }
.q-btn:hover { border-color: var(--ink); color: var(--ink); }
.q-btn.selected-yes { background: var(--ink); color: white; border-color: var(--ink); }
.q-btn.selected-no { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.result-box { background: var(--light); border-radius: 10px; padding: 24px; margin-top: 20px; display: none; }
.result-box h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }

/* MODULE PAGE SPECIFIC */
.module-header { background: var(--ink); color: white; padding: 56px 24px 48px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: white; text-decoration: none; }
.module-header h1 { font-size: clamp(24px, 4vw, 44px); font-weight: 800; line-height: 1.15;
  margin: 12px 0 16px; max-width: 800px; }
.module-header .subtitle { font-size: 18px; color: rgba(255,255,255,.75); max-width: 680px; line-height: 1.5; }
.module-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.meta-item svg { opacity: .7; }

/* CONTENT AREA */
.module-content { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.module-content h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 48px 0 16px; padding-top: 8px; }
.module-content h2:first-child { margin-top: 0; }
.module-content h3 { font-size: 18px; font-weight: 700; color: var(--gray-d); margin: 32px 0 12px; }
.module-content p { font-size: 16px; line-height: 1.75; color: #334155; margin-bottom: 16px; }
.module-content ul, .module-content ol { padding-left: 24px; margin-bottom: 16px; }
.module-content li { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 6px; }
.module-content strong { color: var(--gray-d); font-weight: 600; }
.module-content a { color: var(--teal); }
.module-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.module-content th { background: var(--light); color: var(--gray-d); font-weight: 600; text-align: left; padding: 10px 14px; border: 1px solid var(--border); }
.module-content td { padding: 10px 14px; border: 1px solid var(--border); color: #334155; }
.module-content tr:nth-child(even) td { background: #fafbfc; }

/* CALLOUT BOXES */
.callout { border-radius: 10px; padding: 24px 28px; margin: 28px 0; }
.callout-key { background: #eff6ff; border-left: 4px solid var(--ink); }
.callout-key .callout-title { color: var(--ink); }
.callout-warn { background: #fffbeb; border-left: 4px solid var(--amber); }
.callout-warn .callout-title { color: #92400e; }
.callout-tip { background: #f0fdf4; border-left: 4px solid var(--green); }
.callout-tip .callout-title { color: #166534; }
.callout-tool { background: #fdf4ff; border-left: 4px solid #9333ea; }
.callout-tool .callout-title { color: #6b21a8; }
.callout-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.callout p { font-size: 15px; margin: 0; color: #334155; }
.callout p + p { margin-top: 10px; }
.callout ul { margin: 8px 0 0; padding-left: 20px; }
.callout li { font-size: 15px; margin-bottom: 4px; color: #334155; }

/* ALEX COACH */
.alex-section { background: linear-gradient(135deg, #002868 0%, #1a3d82 100%);
  border-radius: 14px; padding: 36px; margin: 40px 0; color: white; }
.alex-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.alex-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(180,83,9,.3);
  border: 2px solid rgba(180,83,9,.6); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; }
.alex-header h3 { font-size: 20px; font-weight: 700; color: white; margin-bottom: 2px; }
.alex-header p { font-size: 13px; color: rgba(255,255,255,.65); }
.alex-instructions { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.65; margin-bottom: 20px; }
.alex-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.alex-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0;
  font-size: 15px; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.08); }
.alex-steps li:last-child { border-bottom: none; }
.step-num { background: rgba(180,83,9,.35); color: #fcd34d; border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.prompt-box { background: rgba(0,0,0,.25); border-radius: 8px; padding: 16px 20px; position: relative; margin-bottom: 16px; }
.prompt-box pre { font-size: 13px; color: rgba(255,255,255,.85); white-space: pre-wrap; word-break: break-word;
  font-family: 'Inter', monospace; line-height: 1.65; margin: 0; }
.copy-btn { background: rgba(180,83,9,.35); color: #fcd34d; border: 1px solid rgba(180,83,9,.5);
  padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Manrope', sans-serif; transition: all .15s; }
.copy-btn:hover { background: var(--teal); color: white; }
.copy-btn.copied { background: rgba(22,163,74,.35); color: #86efac; border-color: rgba(22,163,74,.4); }

/* SCREENSHOT TIP */
.screenshot-tip { background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px;
  padding: 20px 24px; margin: 24px 0; display: flex; gap: 14px; align-items: flex-start; }
.screenshot-tip .icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.screenshot-tip h4 { font-size: 14px; font-weight: 700; color: var(--gray-d); margin-bottom: 6px; }
.screenshot-tip p { font-size: 14px; color: var(--gray); margin: 0; line-height: 1.55; }

/* DELIVERABLES */
.deliverables-section { background: var(--light); border-radius: 14px; padding: 32px; margin: 40px 0; }
.deliverables-section h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px; }
.deliverable-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); }
.deliverable-item:last-child { border-bottom: none; }
.deliverable-item input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer;
  accent-color: var(--ink); flex-shrink: 0; }
.deliverable-item label { font-size: 15px; color: var(--gray-d); cursor: pointer; line-height: 1.5; }
.deliverable-item input:checked + label { text-decoration: line-through; color: var(--gray); }

/* MODULE NAV */
.module-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 32px 24px; border-top: 1px solid var(--border); max-width: 780px; margin: 0 auto; flex-wrap: wrap; }
.module-nav a { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  color: var(--ink); padding: 12px 20px; border-radius: 8px; border: 1.5px solid var(--border);
  transition: all .18s; }
.module-nav a:hover { border-color: var(--ink); background: var(--ink); color: white; text-decoration: none; }
.module-nav .next { background: var(--ink); color: white; border-color: var(--ink); }
.module-nav .next:hover { background: var(--ink-l); }

/* DEFINITION PILL */
.def { background: rgba(0,40,104,.07); color: var(--ink); padding: 1px 7px; border-radius: 4px;
  font-size: .85em; font-weight: 600; cursor: help; white-space: nowrap; }

/* PROGRESS BAR */
.progress-bar { background: var(--light); height: 4px; width: 100%; }
.progress-fill { background: linear-gradient(90deg, var(--ink) 0%, var(--teal) 100%); height: 100%; transition: width .4s; }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 40px 24px; text-align: center; }
footer a { color: rgba(255,255,255,.6); }
footer a:hover { color: white; }
footer .footer-logo { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; color: white; margin-bottom: 12px; }

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-links { gap: 12px; }
  section { padding: 48px 16px; }
  .module-content { padding: 40px 16px 60px; }
  .module-header { padding: 40px 16px 36px; }
  .alex-section { padding: 24px 20px; }
}

/* ── ALEX PROMPT BUBBLES ── */
.alex-prompt-bubble {
  background: linear-gradient(135deg, #001f5e 0%, #0a2d6e 100%);
  border: 1px solid rgba(180,83,9,.35);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 22px 0;
}
.alex-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.alex-bubble-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(180,83,9,.25);
  border: 1.5px solid rgba(180,83,9,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.alex-bubble-name {
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  line-height: 1.2;
}
.alex-bubble-name span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}
.alex-bubble-intro {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  margin-bottom: 12px;
}
.alex-bubble-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alex-prompt-pill {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .15s;
  color: rgba(255,255,255,.88);
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.alex-prompt-pill:hover { background: rgba(180,83,9,.18); border-color: rgba(180,83,9,.4); }

/* Aliases for inline HTML class names used in module files */
.alex-intro {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.alex-bubble-text {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  margin-bottom: 12px;
}
.alex-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alex-prompt-text {
  flex: 1;
  font-size: 13.5px;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  font-style: italic;
}
.alex-prompt-send {
  background: rgba(180,83,9,.3);
  border: 1px solid rgba(180,83,9,.5);
  color: #fcd34d;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
  flex-shrink: 0;
  transition: all .15s;
}
.alex-prompt-send:hover { background: #b45309; color: white; border-color: #b45309; }

/* ── TOOL CTA CARDS ── */
.tool-cta-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0,40,104,.06);
}
.tool-cta-icon {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.tool-cta-content { flex: 1; min-width: 0; }
.tool-cta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 3px;
}
.tool-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: #002868;
  margin-bottom: 4px;
}
.tool-cta-desc { font-size: 13px; color: #64748b; line-height: 1.5; }
.tool-cta-btn {
  background: #002868;
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
  display: inline-block;
}
.tool-cta-btn:hover { background: #1a3d82; text-decoration: none !important; }
@media (max-width: 600px) {
  .tool-cta-card { flex-direction: column; align-items: flex-start; }
  .tool-cta-btn { width: 100%; text-align: center; display: block; }
  .alex-prompt-pill { flex-direction: column; align-items: flex-start; }
  .alex-prompt-send { width: 100%; text-align: center; }
}
