/* CYP-MPYPCP public landing — MPYPCP × YEB */
:root {
  --green-900: #081c15;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-100: #d8f3dc;
  --gold: #b8860b;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #f8faf8;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
  --font: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-bar a,
.nav-link,
.site-footer a,
.prose a,
.partner-strip-chip {
  color: var(--green-700);
}

.skip-link:focus { left: 0; top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top bar */
.top-bar {
  background: var(--green-900);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
}

.top-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.top-bar a {
  color: #b7e4c7;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e8efe8;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green-800);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.25;
}

.brand .joint {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--green-600);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--green-800);
  margin-left: auto;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 90;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid #e8efe8;
    box-shadow: var(--shadow);
    z-index: 95;
  }

  .header-inner {
    position: relative;
  }

  .brand-lockup .brand-logo:last-child {
    height: 28px;
  }
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-800);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-600);
}

.btn-outline:hover {
  background: var(--green-100);
  color: var(--green-800);
}

.btn-ghost {
  background: transparent;
  color: var(--green-700);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 1.75rem);
  line-height: 1.25;
}

.hero .hi {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-ctas .btn-primary {
  background: var(--white);
  color: var(--green-800);
}

.hero-ctas .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.trust-pill {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Sections */
section {
  padding: 3rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  color: var(--green-800);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.partners {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.partner-chip {
  flex: 1;
  min-width: 200px;
  background: var(--green-100);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--green-700);
}

.partner-chip strong {
  display: block;
  color: var(--green-800);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 0.75rem;
}

/* Levels */
#levels {
  background: var(--white);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.level-card {
  border: 1px solid #e0ebe0;
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
  transition: box-shadow 0.2s;
}

.level-card:hover {
  box-shadow: var(--shadow);
}

.level-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.level-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.level-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--green-800);
}

.level-card .subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.level-card p {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.level-meta {
  font-size: 0.875rem;
  color: var(--green-700);
  font-weight: 600;
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.highlight-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-item .icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--green-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* Contact */
.contact-section {
  background: var(--green-800);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.contact-block p,
.contact-block a {
  color: #d8f3dc;
  margin: 0.25rem 0;
}

.contact-block a:hover {
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #a8c5b0;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #b7e4c7;
}

.disclaimer {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* App shell (login/signup routes) */
.app-route {
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero { background: var(--green-800); color: #fff; padding: 2.5rem 1.5rem; text-align: center; }
.page-title { margin: 0; font-size: 1.75rem; }
.page-sub { margin: 0.75rem auto 0; max-width: 640px; opacity: 0.9; }
.stats-bar { background: var(--white); border-bottom: 1px solid #e8efe8; padding: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; color: var(--green-700); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.prose { max-width: 800px; margin: 0 auto; }
.prose h3 { color: var(--green-800); margin-top: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col a { color: #b7e4c7; font-size: 0.9rem; }
.nav-link { padding: 0.35rem 0.5rem; font-size: 0.9rem; color: var(--green-800); text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

.hidden {
  display: none !important;
}

/* Auth forms */
.auth-card {
  max-width: 420px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-900);
}

.auth-form input {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c8dcc8;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
}

.auth-form input:focus {
  outline: 2px solid var(--green-600);
  outline-offset: 1px;
}

.btn-block {
  width: 100%;
  min-height: 44px;
}

.form-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.form-msg.ok { color: #2d6a4f; }
.form-msg.err { color: #c1121f; }
.form-msg.warn { color: #bc6c25; }

.form-hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  margin: 0.75rem 0;
}

.badge-ok {
  background: #d8f3dc;
  color: #1b4332;
}

.badge-warn {
  background: #fff3cd;
  color: #856404;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.level-fee {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: var(--green-800);
}

.pay-card {
  max-width: 420px;
  margin: 0 auto;
}

/* Exam room */
.exam-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.75rem 4.5rem;
}

.exam-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green-800);
  color: #fff;
  padding: 0.75rem 1rem;
}

.exam-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.exam-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.1rem;
}

.exam-body {
  display: flex;
  flex: 1;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 0;
}

.exam-palette {
  width: 200px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  align-content: start;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem;
  background: #f4faf4;
  border-radius: var(--radius);
}

.pal-btn {
  min-height: 36px;
  min-width: 36px;
  border: 1px solid #c8dcc8;
  background: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
}

.pal-btn.answered {
  background: #d8f3dc;
  border-color: var(--green-600);
}

.pal-btn.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-800);
}

.exam-main {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.exam-q-text {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.75rem 0 1rem;
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.exam-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e0ece0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}

.exam-option input {
  margin-top: 0.2rem;
  min-width: 18px;
  min-height: 18px;
}

.exam-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid #e0ece0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.exam-footer .btn {
  min-height: 44px;
}

.result-card {
  text-align: center;
}

.result-banner {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.result-banner.pass {
  background: #d8f3dc;
  color: #1b4332;
}

.result-banner.fail {
  background: #fdecea;
  color: #9b2226;
}

.result-score {
  font-size: 2rem;
}

@media (max-width: 640px) {
  .exam-body {
    flex-direction: column;
  }

  .exam-palette {
    width: 100%;
    max-height: 120px;
    grid-template-columns: repeat(10, 1fr);
  }

  .exam-main {
    padding: 1rem;
  }

  .exam-q-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .exam-shell {
    max-width: 100vw;
  }

  .exam-q-text {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .exam-option {
    white-space: normal;
  }

  .form-wrap,
  .verify-card {
    padding: 1rem;
  }
}

/* PLAN-08-01: trust, brand, a11y foundations */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-800);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

.trust-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.trust-notice-icon {
  flex-shrink: 0;
  color: var(--gold);
}

.verify-card--valid {
  border: 2px solid var(--green-600);
  background: var(--green-100);
  padding: 1rem;
  border-radius: var(--radius);
}

.verify-valid-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.verify-shield-icon {
  flex-shrink: 0;
  color: var(--green-600);
}

.verify-card--invalid {
  border: 2px solid #9b2226;
  background: #fde8e8;
  padding: 1rem;
  border-radius: var(--radius);
  color: #9b2226;
}

.verify-card--loading {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px dashed #ccc;
}

.verify-skeleton {
  height: 4rem;
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: verify-shimmer 1.2s infinite;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

@keyframes verify-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .verify-skeleton {
    animation: none;
  }
}

.partner-strip {
  background: var(--white);
  border-bottom: 1px solid #e8efe8;
  padding: 1rem 1.5rem;
}

.partner-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.partner-strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #e8efe8;
  border-radius: 999px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.partner-strip-chip:hover {
  text-decoration: none;
  border-color: var(--green-600);
}

.footer-brand-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-joint {
  font-size: 0.875rem;
  color: #b7e4c7;
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.legal-body p {
  font-size: 1rem;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.toast-host {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--green-800);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
}

.toast--error {
  background: #9b2226;
}

.toast--ok {
  background: var(--green-700);
}

/* PLAN-08-02: journey, exam focus, pay trust */
.journey-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e8efe8;
}

.journey-step {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.journey-step--done {
  color: var(--green-700);
}

.journey-step--current {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
}

.journey-step-arrow {
  color: var(--muted);
  font-size: 0.875rem;
}

.dashboard-profile {
  margin-bottom: 1rem;
}

.level-card--locked {
  opacity: 0.85;
  border-left: 4px solid #ccc;
}

.level-card--pay {
  border-left: 4px solid var(--gold);
}

.level-card--ready,
.level-card--in_progress {
  border-left: 4px solid var(--green-600);
}

.level-card--passed {
  border-left: 4px solid var(--green-700);
}

.level-card--failed {
  border-left: 4px solid #9b2226;
}

.pay-trust-strip {
  background: var(--green-100);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.pay-amount-display {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-800);
}

.result-next-steps {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e8efe8;
}

body.exam-focus {
  overflow-x: hidden;
}

body.exam-focus #top-bar,
body.exam-focus .site-header {
  display: none;
}

.exam-focus .site-footer {
  display: none;
}

.exam-topbar-inner {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.exam-save-status {
  font-size: 0.875rem;
  opacity: 0.9;
}

.exam-save-status--warn {
  color: #ffc107;
}

.exam-save-status--pending {
  color: #b7e4c7;
}

.exam-exit-btn {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.875rem !important;
}

.exam-timer.warn {
  color: var(--gold);
}

.exam-timer.urgent {
  color: #ffc107;
  animation: exam-timer-pulse 1s ease-in-out infinite;
}

@keyframes exam-timer-pulse {
  50% { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .exam-timer.urgent {
    animation: none;
  }
}

.exam-palette-toggle {
  display: none;
  width: calc(100% - 1.5rem);
  margin: 0.5rem 0.75rem 0;
  padding: 0.5rem;
  border: 1px solid #c8dcc8;
  border-radius: 8px;
  background: #f4faf4;
  font-weight: 600;
  cursor: pointer;
}

.exam-review-stats {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

@media (max-width: 768px) {
  .exam-palette-toggle {
    display: block;
  }

  .exam-palette-panel {
    display: none;
    width: 100%;
    max-height: none;
    order: 2;
  }

  .exam-palette-panel.exam-palette-panel--open {
    display: grid;
  }

  .exam-body {
    flex-direction: column;
  }

  body.exam-focus {
    overflow-x: hidden;
  }
}
