/* =============================================
   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 — Premium Gold Edition
══════════════════════════════════════════════ */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Deep midnight with warm undertone */
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%,  rgba(201,168,76,0.22) 0%,  transparent 55%),
    radial-gradient(ellipse 80%  60% at 10% 110%,  rgba(74,158,142,0.14) 0%,  transparent 60%),
    radial-gradient(ellipse 60%  50% at 90% 90%,   rgba(201,168,76,0.10) 0%,  transparent 50%),
    linear-gradient(160deg, #0d1117 0%, #141d1b 40%, #111820 100%);
}

/* Animated shimmer particles */
.gate-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12%  18%, rgba(201,168,76,0.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 28%  72%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 44%  35%, rgba(201,168,76,0.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 62%  88%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(2px   2px   at 78%  22%, rgba(201,168,76,0.60) 0%, transparent 100%),
    radial-gradient(1px   1px   at 88%  58%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 6%   82%, rgba(201,168,76,0.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 55%  12%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(2px   2px   at 35%  95%, rgba(201,168,76,0.40) 0%, transparent 100%),
    radial-gradient(1px   1px   at 92%  40%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72%  68%, rgba(201,168,76,0.50) 0%, transparent 100%),
    radial-gradient(1px   1px   at 18%  50%, rgba(255,255,255,0.20) 0%, transparent 100%);
  animation: gateStars 6s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Soft gold horizontal beam across middle */
.gate-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.08) 20%,
    rgba(201,168,76,0.22) 50%,
    rgba(201,168,76,0.08) 80%,
    transparent 100%);
  pointer-events: none;
}

@keyframes gateStars {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.04); }
}

.gate-card {
  position: relative;
  width: min(440px, 92vw);
  background: linear-gradient(160deg, #1a2420 0%, #151e1c 60%, #111820 100%);
  border-radius: 24px;
  padding: 48px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Layered gold border glow */
  border: 1px solid rgba(201,168,76,0.35);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.10),
    0 0 40px rgba(201,168,76,0.12),
    0 0 80px rgba(201,168,76,0.06),
    0 40px 100px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(201,168,76,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.40);
  animation: gateIn 0.68s cubic-bezier(0.34, 1.28, 0.64, 1) both;
  z-index: 1;
}

/* Top gold accent line */
.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,76,0.55) 20%,
    #C9A84C 50%,
    rgba(201,168,76,0.55) 80%,
    transparent);
  border-radius: 0 0 2px 2px;
}

/* Bottom subtle reflection */
.gate-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,76,0.20) 50%,
    transparent);
}

@keyframes gateIn {
  from { opacity: 0; transform: translateY(36px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.gate-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: -4px;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.45));
  animation: emblemPulse 3.5s ease-in-out infinite;
}
@keyframes emblemPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(201,168,76,0.40)); }
  50%       { filter: drop-shadow(0 0 22px rgba(201,168,76,0.75)); }
}

.gate-brand {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: -6px;
  /* subtle gold shimmer on the brand text */
  background: linear-gradient(90deg, #b8942e, #e8c96a, #C9A84C, #f0d980, #C9A84C);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 300% center; }
}

.gate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 600;
  color: #F9F5EF;
  line-height: 1.12;
  letter-spacing: -0.01em;
  /* Very soft text-shadow for depth */
  text-shadow:
    0 0 40px rgba(201,168,76,0.25),
    0 2px 8px rgba(0,0,0,0.50);
}

.gate-sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(201,168,76,0.70);
  line-height: 1.55;
  margin-top: -6px;
  letter-spacing: 0.02em;
}

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

.gate-input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border: 1.5px solid rgba(201,168,76,0.22);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #F9F5EF;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
  letter-spacing: 0.04em;
}
.gate-input::placeholder { color: rgba(249,245,239,0.28); }
.gate-input:focus {
  border-color: rgba(201,168,76,0.65);
  background: rgba(255,255,255,0.07);
  box-shadow:
    0 0 0 3px rgba(201,168,76,0.12),
    0 0 16px rgba(201,168,76,0.10);
}
.gate-input.is-error {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196,120,106,0.18);
  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: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(201,168,76,0.45);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.gate-toggle:hover { color: #C9A84C; }

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

.gate-btn {
  margin-top: 6px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #b8942e 0%, #C9A84C 40%, #e8c96a 70%, #C9A84C 100%);
  background-size: 200% auto;
  color: #1a1a0e;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.15s, box-shadow 0.2s;
  box-shadow:
    0 4px 20px rgba(201,168,76,0.35),
    0 1px 4px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.gate-btn:hover {
  background-position: right center;
  box-shadow:
    0 6px 28px rgba(201,168,76,0.50),
    0 1px 4px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.gate-btn:active { transform: scale(0.98); }

.gate-hint {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(249,245,239,0.28);
  text-align: center;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* Reviewer window expired — offer to purchase (shown above the gate form) */
.gate-offer-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: -4px;
}
.gate-offer-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #f9f5ef;
  line-height: 1.5;
  margin: 0;
}
.gate-offer-btn {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a0e;
  background: linear-gradient(135deg, #b8942e 0%, #C9A84C 40%, #e8c96a 70%, #C9A84C 100%);
  padding: 8px 14px;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
}
.gate-offer-btn:hover { filter: brightness(1.06); }

/* ══════════════════════════════════════════════
   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;
  /* Mobile: image gets 45% of height — enough to show the full subject */
  grid-template-rows: 45% 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%;
  /* contain on mobile so no subject is cropped on small screens */
  object-fit: contain;
  object-position: center center;
  display: block;
  opacity: 0.96;
}

/* On very small phones (iPhone SE etc) reduce image zone slightly */
@media (max-width: 390px) {
  .screen {
    grid-template-rows: 42% 1fr;
  }
}

@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: 22px 24px 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  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.25rem, 4.5vw, 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.92rem, 3.5vw, 1.08rem);
  font-weight: 400;
  line-height: 1.72;
  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 */

/* Professional-reviewer 30-day window reminder */
.reviewer-reminder {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 44px 10px 16px;
  background: #F9F1DC;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  animation: benneIn 0.32s ease both;
}
.reviewer-reminder[hidden] { display: none; }
.reviewer-reminder-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #4a3d1a;
  margin: 0;
  text-align: center;
}
.reviewer-reminder-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a7020;
  text-decoration: underline;
  white-space: nowrap;
}
.reviewer-reminder-close {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(74,61,26,0.55);
  cursor: pointer;
  padding: 6px;
}
.reviewer-reminder-close:hover { color: #4a3d1a; }

/* ══════════════════════════════════════════════
   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;
  /* Safe area for notched iPhones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  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: 800px;
  max-width: calc(100vw - 32px);
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 4px solid #C9A84C;
  box-shadow:
    0 0 0 8px rgba(201,168,76,0.14),
    0 0 0 10px rgba(201,168,76,0.06),
    0 20px 64px rgba(46,52,64,0.36);
  background: white;
  display: flex;
  flex-direction: column;
}

.cert-header {
  background: linear-gradient(120deg, #0d1f1c 0%, #1e3530 45%, #2a4a42 100%);
  padding: 24px 40px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}
.cert-header::after {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(201,168,76,0.4) 10%,
    #C9A84C 30%, #f5e08a 50%, #C9A84C 70%,
    rgba(201,168,76,0.4) 90%, transparent 100%);
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.cert-header-brand {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #e8c96a;
  font-weight: 600;
  margin-bottom: 6px;
}
.cert-header-sub {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
}

.cert-body {
  flex: 1;
  background: white;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%,  rgba(201,168,76,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201,168,76,0.05) 0%, transparent 60%);
  padding: 32px 60px 28px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,1), inset 0 0 0 14px rgba(201,168,76,0.18);
}

/* Gold seal */
.cert-seal {
  position: absolute;
  top: 22px; right: 28px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: conic-gradient(#b8942e 0deg, #f5e08a 60deg, #C9A84C 120deg,
    #e8c96a 180deg, #C9A84C 240deg, #f5e08a 300deg, #b8942e 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px #C9A84C,
    0 0 0 5px rgba(201,168,76,0.22),
    0 8px 30px rgba(201,168,76,0.72),
    inset 0 2px 4px rgba(255,255,255,0.35);
}
.cert-seal-inner {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8c96a, #C9A84C, #9a7020);
  border: 2.5px solid rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-seal-text {
  font-family: var(--font-sans);
  font-size: 0.46rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

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

.cert-trophy {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(201,168,76,0.55));
}

/* ARTISTIC TITLE — Playfair Display 900 weight */
.cert-title-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #0d1f1c;
  letter-spacing: 0.01em;
  line-height: 1.08;
  position: relative;
  padding-bottom: 12px;
}
.cert-title-text::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12%; right: 12%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent, #C9A84C 25%, #f5e08a 50%, #C9A84C 75%, transparent);
  border-radius: 2px;
}

.cert-presented {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.cert-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a4a3f;
  line-height: 1.15;
  min-height: 3rem;
  letter-spacing: 0.01em;
}

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

.cert-divider {
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, #C9A84C 20%, #f5e08a 50%, #C9A84C 80%, transparent);
  border-radius: 2px;
}
.cert-for {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--slate-mid);
  line-height: 1.75;
  max-width: 82%;
}
.cert-program-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: #1e6155;
  letter-spacing: 0.04em;
}
.cert-quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--slate-mid);
  padding: 10px 24px;
  border-left: 4px solid #C9A84C;
  text-align: left;
  line-height: 1.70;
  background: rgba(201,168,76,0.04);
  border-radius: 0 6px 6px 0;
}

/* Bottom footer */
.cert-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 2px solid rgba(201,168,76,0.30);
}
.cert-date-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cert-date-val {
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--slate-mid);
  margin-left: 6px;
}
.cert-url-inline {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(201,168,76,0.80);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 5px;
}
.cert-sig {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--slate);
  text-align: right;
}
.cert-sig-rule {
  height: 2px;
  background: linear-gradient(90deg, rgba(201,168,76,0.20), #C9A84C);
  margin: 4px 0;
}
.cert-sig-title {
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: right;
}
.cert-url {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  color: var(--slate-light);
  letter-spacing: 0.14em;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
}

/* ── Print: landscape, full bleed ── */
@media print {
  @page { size: landscape; margin: 0; }
  body * { visibility: hidden; }
  .cert-wrap, .cert-wrap * { visibility: visible; }
  .cert-wrap {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* ── 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;
}
