/* Assessment Styles - Matches Trailhead Design Language */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --charcoal: #1a1a1a;
  --warm-stone: #f5f0eb;
  --terracotta: #c4654a;
  --terracotta-light: #d4785f;
  --sand: #e8ddd0;
  --sage: #7a8c6e;
  --warm-gray: #6b6560;
  --cream: #faf7f4;
  --amber: #d4943a;
  --white: #ffffff;
  --error: #c44a4a;
  --warm-white: #faf7f4;
  --light-slate: #e8ddd0;
  --forest: #2f4a3a;
  --amber-bg: #fef3e2;
  --radius: 12px;
  --shadow-rest: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lift: 0 8px 24px rgba(0,0,0,0.08);
  --halo-soft: 0 0 0 3px rgba(47,74,58,0.18);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
}

/* Nav */
.assess-nav {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

/* Progress Bar */
.progress-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--sand);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 0.8rem;
  color: var(--warm-gray);
  text-align: right;
}

/* Assessment Container */
.assessment-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

/* Intro Screen */
.intro-screen {
  text-align: center;
  padding: 60px 0;
}

.intro-screen h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.intro-screen h1 .highlight {
  color: var(--terracotta);
}

.intro-screen p {
  font-size: 1.15rem;
  color: var(--warm-gray);
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.intro-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.intro-detail {
  text-align: center;
}

.intro-detail-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--terracotta);
}

.intro-detail-label {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 4px;
}

.intro-no-email-badge {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
  display: inline-block;
}

/* Dimension Header */
.dimension-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--sand);
}

.dimension-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.dimension-header h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dimension-header p {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* Arena Icon */
.dimension-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.dimension-icon.purpose { background: #fceae6; color: var(--terracotta); }
.dimension-icon.identity { background: #e8efe5; color: var(--sage); }
.dimension-icon.relationships { background: #fef3e2; color: var(--amber); }
.dimension-icon.health { background: #fceae6; color: var(--terracotta-light); }
.dimension-icon.structure { background: #eae8e5; color: var(--warm-gray); }
.dimension-icon.legacy { background: #e8efe5; color: var(--sage); }

/* Question Card */
.question-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  border: 1px solid var(--light-slate);
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.question-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.question-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.question-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Likert Scale */
.likert-scale {
  display: flex;
  gap: 8px;
}

.likert-option {
  flex: 1;
  position: relative;
}

.likert-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--light-slate);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--cream);
  box-shadow: var(--shadow-rest);
}

.likert-option label:hover {
  border-color: var(--terracotta-light);
  background: #fceae6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.likert-option input:checked + label {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: white;
}

.likert-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.likert-label {
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* Buttons */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

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

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--warm-gray);
  border: 2px solid var(--sand);
}

.btn-secondary:hover {
  border-color: var(--warm-gray);
  color: var(--charcoal);
}

.btn-terracotta {
  background: var(--amber) !important;
  color: white !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 48px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(212,148,58,0.3);
}

.btn-terracotta:hover {
  background: var(--amber) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212,148,58,0.4);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand);
}

/* Email Capture */
.email-capture {
  text-align: center;
  padding: 40px 0;
}

.email-capture-badge {
  display: inline-block;
  background: #fff3f0;
  color: var(--terracotta);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.email-capture h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.email-capture p {
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.email-capture-perks {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 340px;
  text-align: left;
}

.email-capture-perks li {
  padding: 6px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #5a5450;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--light-slate);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  box-shadow: var(--shadow-rest);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-form input:hover {
  border-color: var(--forest);
}

.email-form input:focus {
  border-color: var(--forest);
  box-shadow: var(--shadow-rest), var(--halo-soft);
}

.email-form input::placeholder {
  color: #bbb;
}

.skip-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--warm-gray);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link:hover {
  color: var(--charcoal);
}

/* Loading Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 247, 244, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--sand);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--warm-gray);
}

.loading-sub {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 6px;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
  animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-left {
  animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .assess-nav { padding: 20px 24px; }
  .progress-container { padding: 0 24px; }
  .assessment-container { padding: 32px 24px 80px; }

  .intro-screen { padding: 32px 0; }
  .intro-details { gap: 24px; }

  .question-card { padding: 24px; }

  .likert-scale { gap: 4px; }
  .likert-option label { padding: 10px 4px; }
  .likert-label { font-size: 0.6rem; }

  .email-form {
    flex-direction: column;
  }

  .nav-buttons {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .nav-buttons .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .likert-label { display: none; }
  .likert-option label { padding: 12px 6px; }
  .likert-value { font-size: 1rem; }
}

/* ─── Exit-Intent Popup Modal ──────────────────────────────────────── */

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalCardSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.exit-intent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.modal-visible .exit-intent-modal {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  animation: modalBackdropIn 0.25s ease forwards;
  cursor: pointer;
}

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  z-index: 1;
  animation: modalCardSlideUp 0.3s ease forwards;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--warm-gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--charcoal);
  background: var(--sand);
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.modal-subtitle {
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.checklist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.checklist-question-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--warm-gray);
  margin-bottom: 4px;
  display: block;
}

.checklist-question-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--light-slate);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--charcoal);
  outline: none;
  box-shadow: var(--shadow-rest);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

.checklist-question-input:hover {
  border-color: var(--forest);
}

.checklist-question-input:focus {
  border-color: var(--forest);
  box-shadow: var(--shadow-rest), var(--halo-soft);
  background: var(--white);
}

.checklist-question-item {
  display: flex;
  flex-direction: column;
}

.checklist-email-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.checklist-email-row input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--light-slate);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  box-shadow: var(--shadow-rest);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.checklist-email-row input[type="email"]:hover {
  border-color: var(--forest);
}

.checklist-email-row input[type="email"]:focus {
  border-color: var(--forest);
  box-shadow: var(--shadow-rest), var(--halo-soft);
}

.checklist-email-row input[type="email"]::placeholder {
  color: #bbb;
}

.checklist-email-row button[type="submit"] {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--terracotta);
  color: white;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.checklist-email-row button[type="submit"]:hover {
  background: var(--terracotta-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196, 101, 74, 0.25);
}

.checklist-email-row button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checklist-success {
  text-align: center;
  padding: 16px 0;
  font-size: 1.05rem;
  color: var(--sage);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.check-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--sage);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 0.95rem;
  margin-right: 8px;
}

.modal-error {
  color: var(--error);
  font-size: 0.88rem;
  margin-top: 4px;
}

.modal-dismiss {
  text-align: center;
  margin-top: 16px;
  color: var(--warm-gray);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.modal-dismiss:hover {
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .modal-card {
    padding: 24px;
  }

  .checklist-email-row {
    flex-direction: column;
  }

  .checklist-email-row input[type="email"],
  .checklist-email-row button[type="submit"] {
    width: 100%;
  }
}

/* Sticky Dwell-Triggered CTA Popup */
.sticky-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  width: calc(100% - 48px);
  background: var(--warm-white);
  border: 1px solid var(--light-slate);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 24px;
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-popup[data-sticky-popup-hidden="true"] {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.sticky-popup__eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.sticky-popup__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.sticky-popup__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--warm-gray);
  margin-bottom: 16px;
}

.sticky-popup__cta {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--amber);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 148, 58, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sticky-popup__cta:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 148, 58, 0.4);
}

.sticky-popup__dismiss {
  text-align: center;
  margin-top: 12px;
  color: var(--warm-gray);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sticky-popup__dismiss:hover {
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .sticky-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    width: auto;
  }
}

.reflective-prompt {
  background: var(--warm-white);
  border: 1px solid var(--light-slate);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.reflective-prompt:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.reflective-prompt__eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--terracotta);
  margin-bottom: 12px;
  display: inline-block;
}

.reflective-prompt__question {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.reflective-prompt__body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--warm-gray);
  margin-bottom: 22px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.reflective-prompt__cta {
  display: inline-block;
  background: var(--amber);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.reflective-prompt__cta:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.reflective-prompt__cta:focus-visible {
  box-shadow: var(--shadow-rest), var(--halo-soft);
}

@media (max-width: 768px) {
  .reflective-prompt { padding: 24px; margin-bottom: 24px; }
  .reflective-prompt__question { font-size: 1.4rem; }
}

/* ─── Lesson Complete CTA — bottom of /course/:slug pages ─────────────── */
/* Shared token surface (--amber, --amber-bg, --radius, --shadow-rest, --halo-soft,
   --shadow-lift, Outfit, DM Sans) — no new color tokens, no ad-hoc hex, no new
   serif font family. Mirrors .lesson-back-cta / .back-btn block above. */

.lesson-complete-cta {
  margin-top: 24px;
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  padding: 32px;
  text-align: center;
}

.lesson-complete-cta .eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--amber);
  margin-bottom: 10px;
  display: inline-block;
}

.lesson-complete-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--warm-gray);
  margin-bottom: 20px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.lesson-complete-cta .complete-btn {
  display: inline-block;
  background: var(--amber);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

.lesson-complete-cta .complete-btn:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.lesson-complete-cta .complete-btn:focus-visible {
  box-shadow: var(--shadow-rest), var(--halo-soft);
}

.lesson-complete-cta .complete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-rest);
}

.lesson-complete-cta .complete-next-slot {
  display: none;
  margin-top: 4px;
}

/* The <noscript>-wrapped fallback is shown by the browser only when JS is
   disabled. When JS is enabled, the element doesn't exist in the DOM. */

/* After click — swap button for the next-lesson link */
.lesson-complete-cta--done .complete-btn {
  display: none;
}

.lesson-complete-cta--done .complete-next-slot {
  display: block;
}

.lesson-complete-cta .complete-next {
  display: inline-block;
  background: var(--amber);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

.lesson-complete-cta .complete-next:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.lesson-complete-cta .complete-next:focus-visible {
  box-shadow: var(--shadow-rest), var(--halo-soft);
}

/* Resting variant — used when the visitor has no next lesson (final completed
   week of the arc). Lighter chrome to signal "you are done". */
.lesson-complete-cta .complete-next.complete-resting {
  background: var(--cream);
  color: var(--charcoal);
  border: 1px solid var(--light-slate);
  box-shadow: var(--shadow-rest);
}

.lesson-complete-cta .complete-next.complete-resting:hover {
  background: var(--amber-bg);
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

@media (max-width: 768px) {
  .lesson-complete-cta { padding: 24px; }
  .lesson-complete-cta .complete-btn,
  .lesson-complete-cta .complete-next { width: 100%; }
}

