/* Home-only certification roadmap. Colors follow the selected page theme. */
.home-main { display: block; padding: 54px 28px 42px; }
.certification-roadmap { width: min(1320px, 100%); margin: 0 auto; }
.roadmap-heading { text-align: center; margin: 0 auto 46px; }
.roadmap-eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.roadmap-heading h1 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
.roadmap-heading > p:not(.roadmap-eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.roadmap-legend { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: 12px; color: var(--muted); }
.roadmap-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.legend-dot--available { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.legend-dot--upcoming { background: #9aa3b0; }
.certification-flow { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.certification-flow::before { content: ""; position: absolute; height: 2px; left: 12.5%; right: 12.5%; top: 21px; background: var(--line); }
.certification-stage { min-width: 0; position: relative; }
.certification-stage:not(:last-child)::after { content: "›"; position: absolute; right: -17px; top: 8px; color: var(--teal); background: var(--canvas); font-size: 23px; line-height: 24px; }
.stage-heading { position: relative; text-align: center; margin-bottom: 24px; }
.stage-number { position: relative; display: grid; place-items: center; margin: 0 auto 13px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 0 0 7px var(--canvas); color: var(--teal); font: 700 14px/1 ui-monospace, monospace; }
.stage-heading h2 { margin: 0; font-size: 20px; letter-spacing: .05em; }
.stage-heading h2 span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.stage-heading p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.stage-exams { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.exam-item { min-width: 0; }
.certification-roadmap .exam-card { width: 100%; min-height: 185px; padding: 19px 18px 16px; border-radius: 13px; border-top-width: 3px; text-align: left; }
.roadmap-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; }
.certification-roadmap .exam-card strong { margin: 0; font-size: clamp(17px, 1.65vw, 23px); line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; }
.exam-availability { padding: 4px 6px; color: var(--teal); background: var(--teal-soft); border-radius: 5px; font-size: 9px; font-weight: 650; white-space: nowrap; }
.roadmap-exam-name { margin-top: 17px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.roadmap-exam-english { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.roadmap-exam-description { margin-top: 12px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.certification-roadmap .exam-card-bottom { width: 100%; padding-top: 18px; font-size: 11px; }
.certification-roadmap .exam-card:hover { transform: translateY(-3px); }
.certification-roadmap .exam-card--upcoming { background: #f3f4f6; border-color: #d9dfe6; border-top-color: #a5afbd; color: #5d6879; box-shadow: none; }
.exam-card--upcoming .roadmap-exam-name, .exam-card--upcoming .exam-card-action { color: #5d6879; }
.exam-card--upcoming .roadmap-exam-english, .exam-card--upcoming .roadmap-exam-description, .exam-card--upcoming .exam-card-bottom { color: #667182; }
.exam-card--upcoming .exam-availability { background: #e3e7ed; color: #576273; }
.certification-roadmap .exam-card--upcoming:hover { border-color: #9aa6b6; box-shadow: 0 6px 18px #0b122008; }
.business-certifications { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr); align-items: center; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.business-heading { display: flex; gap: 15px; align-items: center; }
.business-symbol { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 22px; }
.business-heading h2 { margin: 0 0 8px; font-size: 18px; }
.business-heading p, .roadmap-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.business-certifications .exam-card { min-height: 0; }
.roadmap-note { margin-top: 28px; text-align: center; }
.upcoming-dialog { width: min(390px, calc(100% - 32px)); text-align: center; padding: 32px; }
.upcoming-symbol { display: grid; place-items: center; margin: 0 auto 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 30px; }
.upcoming-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.upcoming-dialog p { margin: 0 0 24px; }
.upcoming-dialog .submit-button { width: 100%; }
@media (max-width: 1050px) {
  .home-main { padding: 40px 22px; }
  .certification-roadmap { max-width: 820px; }
  .certification-flow { display: flex; flex-direction: column; gap: 30px; }
  .certification-flow::before { width: 2px; height: auto; left: 21px; right: auto; top: 22px; bottom: 40px; }
  .certification-stage { width: 100%; padding-left: 72px; }
  .certification-stage:not(:last-child)::after { content: "⌄"; top: auto; bottom: -24px; right: auto; left: 13px; }
  .stage-heading { text-align: left; margin-bottom: 18px; min-height: 44px; }
  .stage-number { position: absolute; left: -72px; top: 0; margin: 0; }
  .stage-heading h2 { display: flex; align-items: baseline; gap: 12px; }
  .stage-heading h2 span { display: inline; margin: 0; }
  .stage-heading p { margin-top: 7px; }
  .stage-exams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certification-roadmap .exam-card strong { font-size: 22px; }
  .business-certifications { margin-left: 72px; grid-template-columns: 1fr; gap: 18px; }
  .business-certifications .stage-exams { grid-template-columns: 1fr; }
  .business-symbol { display: none; }
}
@media (max-width: 540px) {
  .home-main { padding: 32px 16px; }
  .roadmap-heading { margin-bottom: 34px; }
  .roadmap-heading h1 { font-size: 25px; }
  .roadmap-heading > p:not(.roadmap-eyebrow) { font-size: 12px; }
  .roadmap-legend { gap: 14px; font-size: 11px; }
  .certification-stage { padding-left: 49px; }
  .certification-flow::before { left: 15px; }
  .stage-number { left: -49px; width: 32px; height: 32px; font-size: 11px; box-shadow: 0 0 0 5px var(--canvas); }
  .certification-stage:not(:last-child)::after { left: 7px; }
  .stage-heading h2 { font-size: 18px; gap: 9px; }
  .stage-heading h2 span { font-size: 9px; }
  .stage-exams { grid-template-columns: 1fr; gap: 12px; }
  .certification-roadmap .exam-card { min-height: 175px; padding: 17px 16px; }
  .certification-roadmap .exam-card strong { font-size: 21px; }
  .business-certifications { margin-left: 49px; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .certification-roadmap .exam-card { transition: none; }
  .certification-roadmap .exam-card:hover { transform: none; }
}
