:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #fff9f8;
  --panel: #ffffff;
  --panel-soft: #fff3f1;
  --line: #f1e5e2;
  --text: #171c2b;
  --muted: #6b7280;
  --red: #F04438;
  --red2: #ff6b5e;
  --gold: #b98a46;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(37, 28, 26, 0.07);
  --shadow-soft: 0 8px 24px rgba(37, 28, 26, 0.055);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(240, 75, 58, 0.27);
  outline-offset: 3px;
}

.wrap { max-width: 1160px; margin: auto; padding: 0 26px; }

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font: 800 26px/1 Manrope, sans-serif;
  letter-spacing: -1.5px;
  white-space: nowrap;
}

.brand span { color: var(--red); }

.navlinks {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #555d6d;
  font-size: 14px;
}

.navlinks a { transition: color .18s ease; }
.navlinks a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.primary { color: #fff; background: var(--red); box-shadow: 0 8px 18px rgba(240, 75, 58, .17); }
.primary:hover { color: #fff; background: #dd3d2e; box-shadow: 0 11px 22px rgba(240, 75, 58, .23); }
.ghost { color: var(--text); background: #fff; border-color: var(--line); }
.ghost:hover { background: var(--panel-soft); border-color: #efc9c2; }
.small { min-height: 40px; padding: 9px 15px; font-size: 13px; border-radius: 10px; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 64px;
  padding: 86px 0 72px;
}

.eyebrow {
  color: #d34b3f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 20px;
  font: 800 clamp(44px, 6vw, 72px)/1.04 Manrope, sans-serif;
  letter-spacing: -3.8px;
}

.hero h1 em { color: var(--red); font-style: normal; }
.hero p { max-width: 590px; color: #555d6d; font-size: 17px; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 12px; }

.hero-art {
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid #f3ded9;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdfa, #fff4f1);
  box-shadow: var(--shadow);
}

.hero-certificate {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: contain;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 auto 72px; }
.stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat:hover, .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat b { color: var(--text); font: 800 26px Manrope, sans-serif; }
.stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { padding: 42px 0 78px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section h2 { margin: 10px 0; font: 800 32px/1.2 Manrope, sans-serif; letter-spacing: -1px; }
.muted { color: var(--muted); line-height: 1.7; }

.course-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.course-card h3 { margin: 12px 0; font: 700 25px Manrope, sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { padding: 8px 12px; border: 1px solid #f3e5e1; border-radius: 30px; background: var(--bg-soft); color: #555d6d; font-size: 12px; }
.course-side { display: flex; flex-direction: column; justify-content: center; padding-left: 28px; border-left: 1px solid var(--line); }
.course-certificate-preview { width: 100%; margin: 0 0 18px; }
.course-certificate-label {
  display: block;
  margin-bottom: 8px;
  color: #a47b39;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.course-certificate-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #f1e5e2;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(37, 28, 26, .1);
}
.price { color: var(--text); font: 800 36px Manrope, sans-serif; }
.price small { color: var(--muted); font: 400 13px "DM Sans", sans-serif; }
.payment-status {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f1e5e2;
  border-radius: 13px;
  background: #fff9f8;
  color: var(--text);
  font-size: 13px;
}
.payment-status strong { font: 700 14px Manrope, sans-serif; }
.payment-status span { color: #555d6d; line-height: 1.5; }
.payment-status .btn { justify-self: start; margin-top: 2px; }
.payment-status.success { border-color: #b8e4ce; background: #f0fbf5; }
.payment-status.failed { border-color: #f1c7c1; background: #fff5f3; }
.payment-status.pending { border-color: #f3dfb7; background: #fffaf0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.feature {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature .num { color: var(--red); font: 800 12px Manrope, sans-serif; letter-spacing: .5px; }
.feature h3 { margin: 13px 0 8px; font: 700 17px Manrope, sans-serif; }
.feature p { margin-bottom: 0; font-size: 14px; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: #7d8491; font-size: 12px; }

.modal-backdrop {
  position: fixed;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 28, 43, .46);
  inset: 0;
  animation: fade-in .16s ease both;
}

.modal {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(23, 28, 43, .2);
  animation: rise-in .2s ease both;
}

.modal h2 { margin: 10px 0 8px; font: 800 25px Manrope, sans-serif; }
.field { display: grid; gap: 7px; margin: 15px 0; }
.field label { color: #515969; font-size: 12px; font-weight: 600; }
.field input, .verify-panel input {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #e8e2e0;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input:focus, .verify-panel input:focus { border-color: var(--red2); box-shadow: 0 0 0 4px rgba(240, 75, 58, .1); }
.form-error { min-height: 18px; color: #c5372b; font-size: 13px; }
.modal a:not(.btn) { color: var(--red); font-weight: 700; }

.exam-shell { max-width: 900px; margin: 38px auto 70px; padding: 0 20px; }
.exam-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.exam-top .brand { display: inline-block; margin-bottom: 6px; }
.timer {
  padding: 10px 16px;
  border: 1px solid #f3dfb7;
  border-radius: 12px;
  background: #fff9eb;
  color: #986d29;
  font: 800 22px Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}

.progress { height: 7px; overflow: hidden; margin: 14px 0 24px; border-radius: 10px; background: #f3e9e6; }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--red2)); transition: width .25s ease; }

.question-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.question-card h2 { margin: 14px 0 25px; font: 700 22px/1.5 Manrope, sans-serif; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 15px;
  border: 1px solid #e9e5e3;
  border-radius: 13px;
  background: #fff;
  color: #394152;
  cursor: pointer;
  transition: border-color .17s ease, background .17s ease, box-shadow .17s ease;
}

.option:hover { border-color: #efb8b0; background: #fffaf9; }
.option.selected { border-color: var(--red); background: var(--panel-soft); box-shadow: 0 0 0 2px rgba(240, 75, 58, .07); }
.option input { margin-top: 4px; accent-color: var(--red); }
.option b { color: var(--red); }
.exam-controls { display: flex; justify-content: space-between; margin-top: 20px; }
.exam-controls button:disabled { cursor: not-allowed; }
.result-card { padding: 50px 28px; text-align: center; }
.result-card h1 { font: 800 34px Manrope, sans-serif; }
.score { color: #ac7c35; font: 800 60px Manrope, sans-serif; }
.guide-bonus {
  max-width: 760px;
  margin: 30px auto;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid #f0d7d1;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff9f8, #fff 74%);
  box-shadow: 0 16px 38px rgba(89, 49, 42, .08);
  text-align: left;
}
.guide-bonus h2 { margin: 11px 0 8px; font: 800 clamp(22px, 3vw, 30px)/1.2 Manrope, sans-serif; letter-spacing: -.7px; }
.guide-bonus p { color: var(--muted); line-height: 1.7; }
.guide-bonus .guide-subtitle { margin: 0; color: var(--text); font-size: 17px; font-weight: 700; }
.guide-bonus .btn { margin-top: 8px; }

.verify-shell { max-width: 700px; margin: 8vh auto; padding: 24px; }
.verify-shell > .brand { display: inline-block; }
.verify-panel { margin-top: 30px; padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.verify-panel h1 { margin: 12px 0; font: 800 34px Manrope, sans-serif; letter-spacing: -1px; }
.verify-panel > p { color: var(--muted); line-height: 1.7; }
.verify-panel form { display: flex; gap: 10px; margin-top: 24px; }
.verify-panel form .btn { white-space: nowrap; }
.verify-status { margin-top: 20px; padding: 18px; border: 1px solid; border-radius: 13px; }
.valid { border-color: #b8e4ce; background: #f0fbf5; color: #175b3a; }
.invalid { border-color: #f1c7c1; background: #fff5f3; color: #9f3329; }
.verify-status dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-bottom: 0; font-size: 14px; }
.verify-status dt { color: #667085; }
.verify-status dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.loading { padding: 50px; color: var(--red); font: 800 28px Manrope, sans-serif; text-align: center; }

/* Dynamic dashboard and result views reuse the shared landing-page components. */
main.wrap.section > .course-card .chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

main.wrap.section > .course-card .chip {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 14px;
  border-color: var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

main.wrap.section > .course-card .chip:first-child::before,
main.wrap.section > .course-card .chip:nth-child(2)::before {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

main.wrap.section > .course-card .chip:first-child::before { content: "EXAM ATTEMPTS"; }
main.wrap.section > .course-card .chip:nth-child(2)::before { content: "CERTIFICATION"; }
main.wrap.section > .course-card .price { color: #a47b39; }
main.wrap.section > .course-card:has(.price)::after {
  grid-column: 1 / -1;
  display: grid;
  min-height: 135px;
  place-items: center;
  padding: 24px;
  border: 1px solid #d5bd8c;
  border-radius: 15px;
  outline: 1px solid #eadcbd;
  outline-offset: -7px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 29px, transparent 30px),
    linear-gradient(120deg, #fffefa, #fff8e9);
  color: #a47b39;
  content: "VAXVUZ     CERTIFICATE OF ACHIEVEMENT";
  font: 800 12px Manrope, sans-serif;
  letter-spacing: 1.2px;
  box-shadow: 0 10px 24px rgba(123, 92, 40, .08);
}

.result-card:has(a[href="/api/certificate.pdf"])::after {
  display: grid;
  max-width: 500px;
  min-height: 110px;
  place-items: center;
  margin: 28px auto;
  border: 1px solid #d5bd8c;
  border-radius: 14px;
  outline: 1px solid #eadcbd;
  outline-offset: -6px;
  background: linear-gradient(120deg, #fffefa, #fff8e9);
  color: #a47b39;
  content: "VAXVUZ     CERTIFICATE OF ACHIEVEMENT";
  font: 800 12px Manrope, sans-serif;
  letter-spacing: 1.2px;
}

a[style*="#ff737c"] { color: var(--red) !important; }
div[style*="#3b3037"] { border-color: var(--line) !important; background: var(--bg-soft); }
b[style*="#e7c18c"] { color: var(--red) !important; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 850px) {
  .navlinks { gap: 18px; }
  .navlinks a:nth-child(2) { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 66px; }
  .hero h1 { letter-spacing: -2.7px; }
  .hero-art { padding: 8px; }
  .stats { margin-bottom: 50px; }
  .course-card { grid-template-columns: 1fr; }
  .course-side { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 640px) {
  .wrap { padding-right: 20px; padding-left: 20px; }
  .nav { min-height: 72px; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 23px; }
  .navlinks { display: none; }
  .nav-actions { gap: 7px; }
  .nav-actions .btn { padding-right: 11px; padding-left: 11px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 53px 0 48px; }
  .hero h1 { font-size: clamp(43px, 13vw, 60px); letter-spacing: -2.7px; }
  .hero p { font-size: 15px; }
  .hero-art { padding: 6px; border-radius: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 38px; }
  .stat { padding: 17px; }
  .stat b { font-size: 22px; }
  .section { padding: 32px 0 54px; }
  .section-head { display: block; }
  .section h2 { font-size: 27px; }
  .course-card { gap: 20px; padding: 23px; border-radius: 18px; }
  .feature-grid { grid-template-columns: 1fr; gap: 11px; }
  .feature { padding: 19px; }
  .modal { padding: 24px; }
  .exam-shell { margin-top: 24px; padding: 0 16px; }
  .exam-top { align-items: flex-start; }
  .exam-top .muted { max-width: 230px; }
  .question-card { padding: 21px; }
  .question-card h2 { font-size: 19px; }
  .exam-controls .btn { min-height: 42px; padding: 10px 13px; font-size: 13px; }
  .result-card { padding: 35px 20px; }
  .result-card h1 { font-size: 28px; }
  .score { font-size: 52px; }
  .guide-bonus { margin: 24px 0; padding: 23px 20px; }
  .guide-bonus .btn { width: 100%; }
  .verify-shell { margin: 5vh auto; padding: 18px; }
  .verify-panel { margin-top: 22px; padding: 25px 20px; }
  .verify-panel h1 { font-size: 28px; }
  .verify-panel form { display: grid; }
  .verify-status dl { grid-template-columns: 1fr; gap: 3px; }
  .verify-status dd { margin-bottom: 8px; }
}

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