/* =============================================
   WORRY SHRINKER LAB — style.css
   Palette: warm cream, deep slate, muted teal,
   gold, dusty rose. Fonts: Lora + DM Sans.
   ============================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #F9F5EF;
  --cream-dark:  #EDE6D9;
  --slate:       #2E3440;
  --slate-mid:   #4C566A;
  --slate-light: #7A8499;
  --teal:        #4A9E8E;
  --teal-light:  #D4EDEA;
  --teal-pale:   #EAF5F3;
  --rose:        #C4786A;
  --gold:        #C9A84C;
  --gold-pale:   #F9F1DC;
  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --radius-sm:   6px;
  --radius-md:   14px;
  --shadow-card: 0 2px 20px rgba(46,52,64,0.10);
  --trans:       0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --top-bar-h:   52px;
  --menu-w:      300px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow: hidden;
}

/* ══════════════════════════════════════════════
   PASSWORD GATE
══════════════════════════════════════════════ */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,158,142,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201,168,76,0.10) 0%, transparent 60%);
}

.gate-card {
  width: min(400px, 92vw);
  background: var(--cream);
  border-radius: 20px;
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.38), 0 2px 8px rgba(0,0,0,0.12);
  animation: gateIn 0.52s cubic-bezier(0.34, 1.36, 0.64, 1) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-brand {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: -4px;
}

.gate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--slate);
  line-height: 1.15;
}

.gate-sub {
  font-family: var(--font-sans);
  font-size: 0.90rem;
  color: var(--slate-mid);
  line-height: 1.5;
  margin-top: -4px;
}

.gate-field-wrap {
  position: relative;
  margin-top: 4px;
}

.gate-input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  background: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--slate);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74,158,142,0.15);
}
.gate-input.is-error {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196,120,106,0.15);
  animation: shake 0.38s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.gate-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-light);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.gate-toggle:hover { color: var(--teal); }

.gate-error {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--rose);
  min-height: 18px;
  margin-top: -4px;
}

.gate-btn {
  margin-top: 4px;
  padding: 14px 24px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.gate-btn:hover { background: #3d8a7b; }
.gate-btn:active { transform: scale(0.98); }

.gate-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-light);
  text-align: center;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════ */
.app-hidden { display: none; }

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

/* ══════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════ */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-bar-h);
  background: rgba(249,245,239,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 100;
  padding: 0 16px;
}

.top-bar-center {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.top-bar-right { width: 40px; display: flex; justify-content: flex-end; }

/* Hamburger button */
.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--cream-dark); }

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate-mid);
  border-radius: 2px;
  transition: background 0.2s;
}
.menu-toggle:hover .hamburger-bar { background: var(--teal); }

/* Progress rail — fills the flex row, step label sits beside it */
.progress-rail {
  flex: 1;
  height: 4px;
  background: rgba(46,52,64,0.08);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4A9E8E 0%, #C9A84C 50%, #C4786A 100%);
  border-radius: 100px;
  transition: width var(--trans);
  box-shadow: 0 0 6px rgba(201,168,76,0.40);
}

/* Step label */
.step-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ══════════════════════════════════════════════
   SIDE MENU
══════════════════════════════════════════════ */
.side-menu {
  position: fixed;
  top: 0; right: 0;
  width: var(--menu-w);
  height: 100dvh;
  background: white;
  border-left: 1px solid var(--cream-dark);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(var(--menu-w));
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 32px rgba(46,52,64,0.12);
  overflow: hidden;
}
.side-menu.is-open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--cream-dark);
  flex-shrink: 0;
}

.side-menu-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate);
}

.menu-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-light);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.menu-close:hover { color: var(--slate); background: var(--cream-dark); }

/* Jump-to select */
.side-menu-jump {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.jump-label {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.jump-select {
  padding: 9px 12px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--slate);
  background: var(--cream);
  outline: none;
  cursor: pointer;
  width: 100%;
}
.jump-select:focus { border-color: var(--teal); }

.jump-btn {
  padding: 10px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.jump-btn:hover { background: #3d8a7b; }

/* Page list */
.side-menu-nav {
  flex: 1;
  overflow-y: scroll; /* always show scrollbar track */
  padding: 8px 0;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--teal) var(--cream-dark); /* Firefox */
}
.side-menu-nav::-webkit-scrollbar { width: 6px; }
.side-menu-nav::-webkit-scrollbar-track {
  background: var(--cream-dark);
  border-radius: 3px;
}
.side-menu-nav::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}
.side-menu-nav::-webkit-scrollbar-thumb:hover {
  background: #3d8a7b;
}

.menu-page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* Phase group header */
.menu-phase-header {
  padding: 12px 20px 4px;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.menu-page-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.menu-page-item:hover { background: var(--teal-pale); }
.menu-page-item.is-current {
  background: var(--teal-pale);
  border-left-color: var(--teal);
}

.menu-page-num {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-light);
  min-width: 22px;
  flex-shrink: 0;
}
.menu-page-item.is-current .menu-page-num { color: var(--teal); }

.menu-page-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate-mid);
  line-height: 1.3;
}
.menu-page-item.is-current .menu-page-title { color: var(--slate); font-weight: 500; }

/* Action buttons */
.side-menu-actions {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid transparent;
  text-align: center;
}
.action-btn--neutral {
  background: var(--cream);
  border-color: var(--cream-dark);
  color: var(--slate-mid);
}
.action-btn--neutral:hover { background: var(--cream-dark); color: var(--slate); }
.action-btn--danger {
  background: none;
  border-color: transparent;
  color: var(--rose);
}
.action-btn--danger:hover { background: rgba(196,120,106,0.08); }

/* Backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(46,52,64,0.35);
  backdrop-filter: blur(2px);
}
.menu-backdrop.is-visible { display: block; }

/* ══════════════════════════════════════════════
   SCREEN CONTAINER
══════════════════════════════════════════════ */
.screen-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin-top: var(--top-bar-h);
}

/* ══════════════════════════════════════════════
   SCREENS
══════════════════════════════════════════════ */
.screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 38% 1fr;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity var(--trans), transform var(--trans);
  overflow: hidden;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.screen.exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

@media (min-width: 800px) {
  .screen {
    grid-template-rows: none;
    grid-template-columns: 50% 50%;
    /* full viewport width — image bleeds to true left edge */
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: translateX(40px);
  }
  .screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .screen.exit-left {
    opacity: 0;
    transform: translateX(-40px);
  }
}

/* ── Intro screen override ── */
.screen--intro {
  grid-template-rows: 1fr !important;
  grid-template-columns: 1fr !important;
  background: var(--slate);
  align-items: center;
  justify-items: center;
  /* full-bleed — completely undo the desktop centering */
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: translateX(40px) !important;
}
.screen--intro.active {
  transform: translateX(0) !important;
  opacity: 1 !important;
}
.screen--intro.exit-left {
  transform: translateX(-40px) !important;
}

/* ══════════════════════════════════════════════
   SCENE AREA
══════════════════════════════════════════════ */
.scene-area {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-area--dark  { background: var(--slate); }
.scene-area--light { background: var(--teal-pale); }
.scene-area--gold  { background: var(--gold-pale); }
.scene-area--teal  { background: var(--teal); }

.scene-area--dark.scene-area:has(.counselor-pull) {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 36px;
  flex-direction: column;
}

/* .scene-area--scripture-card removed — no scene uses this style */

/* ══════════════════════════════════════════════
   SCENE IMAGE WRAP
══════════════════════════════════════════════ */
.scene-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.92;
}

@media (min-width: 800px) {
  .scene-image {
    object-fit: contain;
    object-position: center center;
    opacity: 1;
  }
}

.svg-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svg-fallback svg { width: 100%; height: 100%; display: block; }

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(46,52,64,0.52) 100%);
  pointer-events: none;
}
@media (min-width: 800px) {
  .scene-overlay {
    background: linear-gradient(to right, transparent 60%, rgba(46,52,64,0.28) 100%);
  }
}

.scene-caption {
  position: absolute;
  bottom: 18px; left: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.80);
  z-index: 2;
}

/* .counselor-pull removed — no scene currently uses pullQuote field */

/* ══════════════════════════════════════════════
   INTRO SCREEN (Benne Hart)
══════════════════════════════════════════════ */
.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.intro-brand {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.intro-avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(74,158,142,0.45);
  flex-shrink: 0;
  background: var(--slate-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-avatar-fallback {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.intro-name-tag {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-top: -6px;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: white;
  line-height: 1.18;
}

.intro-body {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.80;
  max-width: 400px;
}

.intro-speech {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.70;
  text-align: left;
  border-left: 3px solid var(--gold);
}

.intro-cta {
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.intro-cta:hover { background: #3d8a7b; }
.intro-cta:active { transform: scale(0.98); }

/* ══════════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════════ */
.content-area {
  padding: 28px 28px 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
}
@media (min-width: 800px) {
  .content-area {
    padding: 48px 48px 140px;
    justify-content: center;
    max-width: none;
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .content-area {
    padding: 56px 64px 140px;
  }
}
.content-area--closing { align-items: flex-start; }

/* ══════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════ */
.screen-label {
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2px;
}

.screen-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate);
  margin-bottom: 4px;
}

.screen-subtitle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: -2px;
  margin-bottom: 6px;
}

.screen-body {
  font-family: var(--font-sans);
  font-size: clamp(0.97rem, 1.5vw, 1.08rem);
  font-weight: 400;
  line-height: 1.80;
  color: var(--slate-mid);
}

/* ══════════════════════════════════════════════
   FEEL LIST
══════════════════════════════════════════════ */
.feel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}
.feel-list li {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--slate-mid);
  padding: 12px 18px;
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   SCRIPTURE BLOCK
══════════════════════════════════════════════ */
.scripture-block {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 3px solid var(--gold);
}
.scripture-ref {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
}
.scripture-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.80;
  color: var(--slate);
}
.scripture-translation {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--slate-light);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   ACTION LIST
══════════════════════════════════════════════ */
.action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.action-item { display: flex; align-items: flex-start; gap: 16px; }
.action-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.action-item strong {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--slate);
  display: block;
  margin-bottom: 3px;
}
.action-item p {
  font-family: var(--font-sans);
  font-size: 0.91rem;
  color: var(--slate-mid);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   ANCHOR PHRASE
══════════════════════════════════════════════ */
.anchor-phrase {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--teal);
  border-left: 3px solid var(--teal);
  padding-left: 18px;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   BENNE HART GUIDANCE BAR
══════════════════════════════════════════════ */
.benne-bar {
  position: fixed;
  bottom: 72px;
  left: 0; right: 0;
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--teal-pale);
  border-top: 1px solid rgba(74,158,142,0.18);
  border-bottom: 1px solid rgba(74,158,142,0.12);
  min-height: 56px;
  animation: benneIn 0.32s ease both;
}
.benne-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 10px 20px;
}
@media (min-width: 800px) {
  .benne-bar-inner { padding: 10px 40px; }
}
@keyframes benneIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hide bar on intro screen */
.benne-bar.is-hidden { display: none; }

.benne-bar-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(74,158,142,0.45);
  background: var(--slate-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benne-bar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.benne-bar-avatar-fallback {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.70);
  font-style: italic;
}

.benne-bar-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.benne-bar-label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.benne-bar-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.82rem, 1.3vw, 0.94rem);
  color: var(--slate-mid);
  line-height: 1.45;
  white-space: normal;
}

/* bottom clearance handled by content-area 140px padding-bottom */

/* ══════════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(249,245,239,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 50;
}
@media (min-width: 800px) { .bottom-nav { padding: 0 40px; } }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--slate-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  min-width: 80px;
}
.nav-btn:hover { color: var(--slate); background: var(--cream-dark); }
.nav-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }

.nav-btn--next {
  color: var(--teal);
  background: var(--teal-pale);
  justify-content: flex-end;
}
.nav-btn--next:hover { background: var(--teal-light); color: var(--teal); }
.nav-btn--next.is-last { background: var(--teal); color: white; }
.nav-btn--next.is-last:hover { background: #3d8a7b; }
.nav-btn--back { justify-content: flex-start; }

/* ══════════════════════════════════════════════
   NAV DOTS
══════════════════════════════════════════════ */
.nav-dots {
  display: none; /* hidden on mobile — too many dots for small screens */
  align-items: center;
  gap: 5px;
}
@media (min-width: 640px) {
  .nav-dots {
    display: flex;
  }
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cream-dark);
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.nav-dot.active { background: var(--teal); transform: scale(1.35); }

/* ══════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════ */
.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 2px; }

/* ── Name input row ── */
.cert-name-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.cert-name-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-mid);
}
.cert-name-field-wrap { width: 100%; }
.cert-name-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--slate);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-name-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74,158,142,0.15);
}

/* ── Certificate card ── */
/* ── Letter-size certificate document ──
   US Letter = 8.5 × 11 inches.
   Display at 680px wide → height = 680 × (11/8.5) = 880px.
   Scale: 96dpi reference, 3× for print export.
──────────────────────────────────────── */
.cert-wrap {
  width: 680px;
  max-width: calc(100vw - 40px);
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid #C9A84C;
  box-shadow:
    0 0 0 8px rgba(201,168,76,0.12),
    0 16px 56px rgba(46,52,64,0.32);
  background: white;
  display: flex;
  flex-direction: column;
}

.cert-header {
  background: linear-gradient(135deg, #1e2d2a 0%, #2E3440 40%, #3d5a52 100%);
  padding: 22px 28px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}
.cert-header::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, transparent, #C9A84C 30%, #e8c96a 50%, #C9A84C 70%, transparent);
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.cert-header-brand {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
  margin-bottom: 5px;
}
.cert-header-sub {
  font-family: var(--font-sans);
  font-size: 0.80rem;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.06em;
}

.cert-body {
  flex: 1;
  background: white;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
  padding: 28px 48px 28px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  outline: 1.5px solid rgba(201,168,76,0.22);
  outline-offset: -14px;
}

/* Gold seal */
.cert-seal {
  position: absolute;
  top: 18px; right: 18px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: conic-gradient(#C9A84C 0deg, #f5e08a 60deg, #C9A84C 120deg,
    #e8c96a 180deg, #C9A84C 240deg, #f5e08a 300deg, #C9A84C 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px #C9A84C,
    0 6px 24px rgba(201,168,76,0.65),
    inset 0 1px 3px rgba(255,255,255,0.30);
}
.cert-seal-inner {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37, #C9A84C);
  border: 2px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-seal-text {
  font-family: var(--font-sans);
  font-size: 0.40rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Top section */
.cert-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.cert-trophy {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(201,168,76,0.45));
}
.cert-title-text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.cert-presented {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--slate-light);
}
.cert-name {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #3d5a52;
  line-height: 1.15;
  background: linear-gradient(135deg, #4A9E8E, #2d6b5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 2.5rem;
}

/* Middle section */
.cert-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cert-divider {
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C 25%, #e8c96a 50%, #C9A84C 75%, transparent);
  border-radius: 1px;
}
.cert-for {
  font-family: var(--font-sans);
  font-size: 0.90rem;
  color: var(--slate-mid);
  line-height: 1.65;
  max-width: 88%;
}
.cert-program-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.cert-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--slate-mid);
  padding: 8px 20px;
  border-left: 3px solid var(--gold);
  text-align: left;
  line-height: 1.6;
}

/* Bottom footer */
.cert-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1.5px solid rgba(201,168,76,0.28);
}
.cert-date-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--slate-light);
}
.cert-date-val {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-mid);
  margin-left: 4px;
}
.cert-url-inline {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: var(--slate-light);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 4px;
}
.cert-sig {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--slate);
  text-align: right;
}
.cert-sig-rule {
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #C9A84C);
  margin: 3px 0;
}
.cert-sig-title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  text-align: right;
}
.cert-url {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  color: var(--slate-light);
  letter-spacing: 0.12em;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
}

/* ── Completion message ── */
.completion-message {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  color: var(--slate-mid);
  line-height: 1.65;
}

/* ── Action buttons ── */
.completion-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-top: 2px;
}
.completion-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
}
.completion-btn:active { transform: scale(0.98); }
.completion-btn--download {
  background: var(--gold);
  color: white;
  font-weight: 600;
}
.completion-btn--download:hover { background: #b8962e; }
.completion-btn--primary {
  background: var(--teal);
  color: white;
}
.completion-btn--primary:hover { background: #3d8a7b; }
.completion-btn--secondary {
  background: var(--cream-dark);
  color: var(--slate-mid);
}
.completion-btn--secondary:hover { background: #e0d9cc; color: var(--slate); }

/* ── Certificate actions (inline in S43) ── */
.cert-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

/* ── Certificate screen — full-column, scrollable ── */
.screen--cert {
  grid-template-rows: 1fr !important;
  grid-template-columns: 1fr !important;
  background: var(--gold-pale) !important;
  overflow: auto !important;          /* override .screen overflow:hidden */
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.content-area--cert {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 280px;           /* 280px clears Benne bar + bottom nav */
  overflow-y: visible;                /* let the screen--cert scroll */
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--gold-pale);
  align-items: center;
  text-align: center;
}

@media (min-width: 800px) {
  .content-area--cert {
    padding: 32px 36px 280px;
  }
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════
   PRACTICE BLOCK — shared container
   Used by: worryChoice, braveThoughtChoice,
   braveStepChoice, truthCheck, ratingCheck,
   breathing, planSummary, nextTimePlan
══════════════════════════════════════════════ */
.practice-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.practice-prompt {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-mid);
  margin-bottom: -4px;
}

.practice-closing {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--cream-dark);
}
.practice-closing p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.88rem, 1.5vw, 0.97rem);
  color: var(--slate-mid);
  line-height: 1.60;
}

.practice-support {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate-light);
  line-height: 1.5;
  text-align: center;
}

/* ══════════════════════════════════════════════
   CHOICE LIST + CHOICE CARDS
══════════════════════════════════════════════ */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Stacked layout (used for truth check) */
.choice-list--stacked { gap: 8px; }

.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--slate-mid);
  line-height: 1.45;
  user-select: none;
}
.choice-card:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}
.choice-card:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--slate);
  box-shadow: 0 0 0 3px rgba(74,158,142,0.12);
}

/* Hide the native radio/checkbox visually */
.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 50%;
  flex-shrink: 0;
  background: white;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.choice-card input[type="checkbox"] { border-radius: 4px; }
.choice-card input[type="radio"]:checked,
.choice-card input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}
.choice-card input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: white;
  border-radius: 50%;
}
.choice-card input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

/* Custom text input row */
.custom-choice-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.custom-choice-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-light);
  cursor: pointer;
}
.practice-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--slate);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.practice-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74,158,142,0.13);
}

/* ══════════════════════════════════════════════
   REFLECTION CARD  (shows saved value)
══════════════════════════════════════════════ */
.reflection-card {
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reflection-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
}
.reflection-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.90rem, 1.5vw, 1.02rem);
  color: var(--slate);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════
   TRUTH CHECK FEEDBACK
══════════════════════════════════════════════ */
.truth-feedback {
  min-height: 22px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: opacity 0.22s;
}
.truth-feedback:empty { display: none; }
.truth-feedback--correct {
  background: rgba(74,158,142,0.10);
  color: #2d6b5e;
  border-left: 3px solid var(--teal);
}
.truth-feedback--nudge {
  background: rgba(201,168,76,0.10);
  color: #7a6020;
  border-left: 3px solid var(--gold);
}

/* ══════════════════════════════════════════════
   METHOD INTRO (A1)
══════════════════════════════════════════════ */
.method-steps-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.method-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--slate-mid);
}
.method-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   BREATHING PRACTICE (C1)
══════════════════════════════════════════════ */
.practice-block--breathing {
  align-items: center;
  text-align: center;
  gap: 16px;
}

.breathing-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.22;
  transition: transform 4s ease-in-out, opacity 0.4s;
  flex-shrink: 0;
}
.breathing-orb.is-inhaling {
  transform: scale(1.55);
  opacity: 0.38;
}
.breathing-orb.is-exhaling {
  transform: scale(0.85);
  opacity: 0.16;
}

.breathing-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.breathing-phase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.97rem, 1.6vw, 1.08rem);
  color: var(--slate);
}
.breathing-count {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}
.breathing-round {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-light);
  letter-spacing: 0.06em;
}

.practice-btn {
  padding: 12px 28px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.practice-btn:hover { background: #3d8a7b; }
.practice-btn:active { transform: scale(0.97); }
.practice-btn:disabled {
  background: var(--teal-light);
  color: var(--teal);
  cursor: default;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   RATING ROW (C2)
══════════════════════════════════════════════ */
.rating-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate-mid);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.rating-pill:hover { border-color: var(--teal); background: var(--teal-pale); }
.rating-pill:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--slate);
  font-weight: 500;
}

.rating-pill input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  transition: background 0.14s, border-color 0.14s;
  position: relative;
}
.rating-pill input[type="radio"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}
.rating-pill input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: white;
  border-radius: 50%;
}

/* ══════════════════════════════════════════════
   PLAN SUMMARY (E2)
══════════════════════════════════════════════ */
.plan-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.plan-step-lead {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.plan-step p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   NEXT TIME PLAN (F1)
══════════════════════════════════════════════ */
.practice-block--next-time { gap: 18px; }

.plan-recap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

/* ══════════════════════════════════════════════
   CERTIFICATE — skills + plan recap additions
══════════════════════════════════════════════ */
.cert-skills {
  width: 100%;
  text-align: left;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 4px 0;
}
.cert-skills-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.cert-skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cert-skills-list li {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--slate-mid);
  padding-left: 12px;
  position: relative;
}
.cert-skills-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.68rem;
}

.cert-plan-recap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}
.cert-plan-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: white;
  border: 1.5px solid rgba(201,168,76,0.22);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
}
.cert-plan-label {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
}
.cert-plan-val {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   GROUNDED NOTE
   Small authority footnote on the 9 practice scenes.
   Child-friendly tone, not clinical.
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   GROUNDED NOTE
   Authority source card on the 9 practice scenes.
   Must be readable at a glance — not a footnote.
══════════════════════════════════════════════ */
.grounded-note {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--slate-mid);
  line-height: 1.65;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-top: 14px;
  /* Push below the Benne bar + bottom nav clearance */
  margin-bottom: 160px;
}
.grounded-note::before {
  content: 'Grounded in research';
  display: block;
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 5px;
}

/* ══════════════════════════════════════════════
   CERT GROUNDED LINE
   Below the cert card, outside the downloadable area.
══════════════════════════════════════════════ */
.cert-grounded {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-light);
  text-align: center;
  letter-spacing: 0.03em;
  padding: 6px 0 4px;
  line-height: 1.5;
}
