/* ═══════════════════════════════════════════════════════════════
   SETU_STYLES.CSS — DNYANSETUAI UNIVERSAL STYLESHEET v4.1
═══════════════════════════════════════════════════════════════ */

/* 1) Fonts */
@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/hind-latin-devanagari.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D,
                 U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/hind-latin-devanagari-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D,
                 U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}

/* 2) Tokens */
:root {
  --navy:#0d1b3e; --navy-mid:#1a2f5e; --navy-soft:#2e4482; --navy-muted:#5a6d9e;
  --gold:#c8900a; --gold-bright:#e6a817; --gold-pale:#fdf6e3; --gold-mid:#f0c040;
  --sage:#0f6e56; --sage-pale:#e6f7f1;
  --grey-50:#f8f8fb; --grey-100:#f1f1f7; --grey-200:#e4e4ef; --grey-300:#cccce0;
  --grey-400:#9999bb; --grey-600:#52527a; --grey-800:#1a1a2e;
  --error:#c0392b; --white:#ffffff;

  --ink:var(--grey-800); --ink-soft:var(--grey-600); --ink-muted:var(--grey-400);
  --canvas:var(--grey-50); --surface:var(--grey-100); --border:var(--grey-200);
  --shadow-sm:0 1px 4px rgba(13,27,62,.08);
  --shadow-md:0 4px 16px rgba(13,27,62,.12);
  --shadow-lg:0 12px 40px rgba(13,27,62,.18);

  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --t-xs:.72rem; --t-sm:.85rem; --t-md:1rem; --t-lg:1.18rem; --t-xl:1.45rem; --t-2xl:1.85rem;
  --ff-display:'Hind', sans-serif; --ff-body:'Hind', sans-serif;

  --header-h:62px; --ulzan-h:30px; --dots-h:32px; --footer-h:72px;
  --safe-bot:env(safe-area-inset-bottom, 0px);
  --radius-sm:8px; --radius-md:12px; --radius-lg:18px; --radius-xl:24px;
}

/* 3) Reset + shell */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--t-md);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--canvas);
  box-shadow: var(--shadow-lg);
}

#header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: linear-gradient(135deg, #d4940c 0%, var(--gold) 60%, #b87800 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--s3); gap: var(--s2);
  box-shadow: 0 3px 14px rgba(180,120,0,.35);
}
#header-left { display: flex; align-items: center; gap: var(--s1); flex-shrink: 0; }
#trust-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); opacity: .75; transition: background .15s, opacity .15s;
}
#trust-btn:hover, #trust-btn:active { background: rgba(13,27,62,.12); opacity: 1; }
#brand {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
#brand-name { font-size: .72rem; font-weight: 800; color: var(--navy); letter-spacing: .12em; white-space: nowrap; }
#brand-tagline { font-size: .62rem; font-weight: 500; color: rgba(13,27,62,.72); letter-spacing: .07em; white-space: nowrap; margin-top: 1px; }
#header-right { display: flex; align-items: center; flex-shrink: 0; }
#header-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  object-fit: cover; border: 2px solid rgba(13,27,62,.2); box-shadow: 0 1px 4px rgba(13,27,62,.15);
}

#ulzan-bar {
  min-height: var(--ulzan-h);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--s5);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#ulzan-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .05em;
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .4s ease;
}
#ulzan-label:not(:empty) { opacity: 1; }

#dots-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; height: var(--dots-h);
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background .25s, transform .25s;
}
.hdot--done { background: var(--sage); }
.hdot--today { background: var(--gold); transform: scale(1.4); box-shadow: 0 0 6px var(--gold); }

/* ── Stage — 3-second controllable transition ── */
#stage {
  flex: 1; overflow-y: auto;
  padding: var(--s5) var(--s4);
  padding-bottom: calc(var(--footer-h) + var(--safe-bot) + var(--s4));
  /* CSS custom props set by JS: --t-out and --t-in */
  --t-out: 900ms;
  --t-in:  2100ms;
  will-change: filter, opacity, transform;
}

/* ── LEAVING: blur + shrink + fade ── */
#stage.s-leaving {
  animation: stageLeave var(--t-out) cubic-bezier(.55,0,1,.45) both;
  /* 'both' = apply 0% frame immediately on class add (no flash)
     AND hold 100% frame after animation ends (no snap-back)  */
}
@keyframes stageLeave {
  /* No explicit 0% — browser uses current computed style as start.
     This eliminates any jump to an initial keyframe state.        */
  0%   { opacity:1;   filter:none;      transform:none; }
  100% { opacity:0;   filter:blur(10px); transform:scale(.97) translateY(-10px); }
}

/* ── ENTERING: un-blur + grow + fade in ── */
#stage.s-entering {
  animation: stageEnter var(--t-in) cubic-bezier(.22,.68,0,1) both;
}
@keyframes stageEnter {
  0%   { opacity:0;   filter:blur(12px); transform:scale(.97)  translateY(14px); }
  25%  { opacity:.25; filter:blur(7px);  transform:scale(.984) translateY(9px);  }
  55%  { opacity:.75; filter:blur(2px);  transform:scale(.997) translateY(3px);  }
  100% { opacity:1;   filter:none;       transform:scale(1)    translateY(0);    }
}

/* ── Child stagger animation (each direct child of stage) ── */
.s-child-in {
  animation: childIn var(--t-in) cubic-bezier(.22,.68,0,1) both;
  /* opacity:0 not needed — 'both' applies 0% frame from keyframe */
}
@keyframes childIn {
  0%   { opacity:0; transform:translateY(12px) scale(.98); filter:blur(4px); }
  100% { opacity:1; transform:translateY(0)     scale(1);   filter:none; }
}

/* ── ROOTS screen: extra slow, immersive, grounded ── */
/* .qcard gets special treatment */
.qcard {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md); padding: var(--s5) var(--s4);
  margin-bottom: var(--s5);
  box-shadow: var(--shadow-lg);
  /* Transition is handled inline by JS for probe swap */
}
.qcard p {
  font-family: var(--ff-display); font-size: var(--t-xl);
  line-height: 1.55; color: var(--white);
  letter-spacing: .01em;
}

/* Options — each one is a landing card */
.opt {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4) var(--s4);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  transition: border-color .22s, background .22s, box-shadow .22s, transform .15s;
  /* Transition for probe animation handled inline by JS */
}
.opt:active { transform: scale(.98); }
.opt.sel {
  border-color: var(--gold); background: var(--gold-pale);
  box-shadow: 0 3px 12px rgba(200,144,10,.18);
}
.opt-text { font-size: var(--t-md); line-height: 1.6; color: var(--ink); }

/* ── Footer ── */
#footer {
  position: sticky; bottom: 0; z-index: 200;
  padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-bot));
  background: var(--canvas);
  border-top: 1px solid var(--border);
  min-height: var(--footer-h);
  box-shadow: 0 -2px 12px rgba(13,27,62,.06);
}

/* ── Spinner ── */
#spinner {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(248,248,251,.78);
  backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
}
#spinner > div { display: flex; gap: 9px; }
.spin-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold);
  animation: spBounce .6s infinite alternate;
}
.spin-dot:nth-child(2) { animation-delay: .2s; }
.spin-dot:nth-child(3) { animation-delay: .4s; }
@keyframes spBounce {
  from { transform: translateY(0); opacity: .5; }
  to   { transform: translateY(-13px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   4. TRUST MODAL
═══════════════════════════════════════════════════════════════ */
#trust-modal {
  display: none; position: fixed; inset: 0;
  z-index: 9000; align-items: center; justify-content: center;
}
#trust-modal.open { display: flex; }
#trust-overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,62,.6);
  backdrop-filter: blur(4px);
  animation: trustFade .22s ease both;
}
#trust-panel {
  position: relative; z-index: 1;
  width: 95vw; height: 95vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: trustUp .26s cubic-bezier(.22,.68,0,1.2) both;
}
#trust-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .9rem;
  background: rgba(0,0,0,.07); color: #555;
  transition: background .15s, color .15s;
}
#trust-close:hover { background: rgba(0,0,0,.16); color: #000; }
#trust-frame { width: 100%; flex: 1; border: none; display: block; }
@keyframes trustFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes trustUp   { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; border-radius: var(--radius-md);
  font-size: var(--t-md); font-family: var(--ff-body);
  font-weight: 700; padding: 0 var(--s5);
  letter-spacing: .02em;
  transition: transform .13s, box-shadow .13s, background .15s;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn.full { width: 100%; }
.btn.gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(200,144,10,.35);
}
.btn.gold:hover { box-shadow: 0 6px 18px rgba(200,144,10,.45); }
.btn.gold:disabled, .btn.gold.btn--disabled {
  background: var(--grey-200); color: var(--grey-400);
  box-shadow: none; pointer-events: none;
}
.btn.secondary {
  background: var(--surface); color: var(--navy-mid);
  border: 1.5px solid var(--border);
}
.btn.secondary:hover { border-color: var(--navy-muted); }
.btn-logout {
  font-size: var(--t-xs); color: var(--grey-400);
  padding: 4px var(--s3);
  border: 1px solid var(--border); border-radius: 6px;
  transition: color .15s, border-color .15s;
}
.btn-logout:hover { color: var(--error); border-color: var(--error); }
.setu-btn { /* no extra style — inherits .btn */ }

/* ═══════════════════════════════════════════════════════════════
   6. TYPOGRAPHY & COMMON ELEMENTS
═══════════════════════════════════════════════════════════════ */
.s-h1 { font-family: var(--ff-display); font-size: var(--t-2xl); line-height: 1.28; color: var(--navy); }
.s-h2 { font-family: var(--ff-display); font-size: var(--t-xl);  line-height: 1.32; color: var(--navy); }
.s-sub     { color: var(--ink-soft);  font-size: var(--t-sm); margin-top: var(--s2); line-height: 1.55; }
.s-sub-sm  { color: var(--ink-muted); font-size: var(--t-xs); }
.s-hint    { color: var(--ink-muted); font-size: var(--t-sm); text-align: center; margin-top: var(--s3); }
.s-hint-sm { color: var(--ink-muted); font-size: var(--t-xs); text-align: center; margin-top: var(--s4); }
.s-eyebrow {
  font-size: var(--t-xs); font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s2);
}
.s-title  { margin-bottom: var(--s5); }
.s-link   { color: var(--gold); font-weight: 600; }
.s-link:hover { color: var(--gold-bright); text-decoration: underline; }
.s-error  { color: var(--error); font-size: var(--t-sm); margin-top: var(--s2); }
.s-match  { font-size: var(--t-sm); margin-top: var(--s2); }
.s-match--ok { color: var(--sage); }
.s-match--no { color: var(--error); }
.err-screen  { padding: var(--s7) var(--s4); text-align: center; color: var(--error); }

/* ═══════════════════════════════════════════════════════════════
   7. FORMS
═══════════════════════════════════════════════════════════════ */
.s-form   { display: flex; flex-direction: column; gap: var(--s4); }
.s-label  {
  font-size: var(--t-xs); font-weight: 700; color: var(--navy-muted);
  letter-spacing: .06em; text-transform: uppercase;
}
.s-input {
  height: 50px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 var(--s4); font-size: var(--t-md); font-family: var(--ff-body);
  color: var(--ink); background: var(--white); width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.s-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,144,10,.12);
}
.s-input--readonly { background: var(--surface); color: var(--ink-soft); }
.s-select {
  height: 50px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 var(--s4); font-size: var(--t-md); font-family: var(--ff-body);
  color: var(--ink); background: var(--white); width: 100%;
  appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.s-select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,144,10,.12);
}
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.s-col { display: flex; flex-direction: column; gap: var(--s2); }
.s-input-wrap { position: relative; }
.s-input-wrap .s-input { padding-right: 44px; }
.s-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--grey-400); font-size: 1.1rem;
  transition: color .15s;
}
.s-eye:hover { color: var(--gold); }
.s-check-row {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--t-sm); color: var(--ink-soft); cursor: pointer;
}
.s-check-lbl { font-size: var(--t-sm); color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   8. PHASE ZONES (stage bg tint)
═══════════════════════════════════════════════════════════════ */
.stage              { background: var(--canvas); }
.stage.phase--urgent {
  background: linear-gradient(160deg, #fdf1f1 0%, var(--canvas) 60%);
}
.stage.phase--weight { background: var(--surface); }
.stage.phase--reveal {
  background: linear-gradient(160deg, var(--gold-pale) 0%, var(--canvas) 70%);
}
.stage.phase--calm   { background: var(--canvas); }

/* ═══════════════════════════════════════════════════════════════
   9. RECOGNITION / HERO
═══════════════════════════════════════════════════════════════ */
.recognition-hero { margin-bottom: var(--s3); }

/* ═══════════════════════════════════════════════════════════════
   10. LOGIN SCREEN
═══════════════════════════════════════════════════════════════ */
.s-login { display: flex; flex-direction: column; gap: var(--s5); }
.s-brand { text-align: center; padding: var(--s6) 0 var(--s3); }
.brand-mark {
  font-family: var(--ff-display); font-size: var(--t-xl);
  color: var(--gold); text-align: center;
  margin-bottom: var(--s3); letter-spacing: .12em;
}
.login-links { text-align: center; padding: var(--s3) var(--s4) 0; font-size: var(--t-sm); }

/* Registration success */
.reg-success-block {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: linear-gradient(135deg, var(--sage) 0%, #1a9e7a 100%);
  color: var(--white); padding: var(--s4); border-radius: var(--radius-md);
  margin-bottom: var(--s4); box-shadow: 0 4px 16px rgba(15,110,86,.25);
  animation: regPop .4s ease both;
}
.reg-tick {
  font-size: 1.3rem; background: rgba(255,255,255,.2);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reg-success-title { font-weight: 700; font-size: var(--t-md); margin-bottom: 3px; }
.reg-success-sub   { font-size: var(--t-sm); opacity: .88; }
@keyframes regPop  { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Logout nudge */
.logout-nudge-block {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: linear-gradient(135deg, #b87800 0%, var(--gold-bright) 100%);
  color: var(--white); padding: var(--s4); border-radius: var(--radius-md);
  margin-bottom: var(--s4); box-shadow: 0 4px 16px rgba(200,144,10,.3);
  animation: regPop .4s ease both;
}
.nudge-icon  { font-size: 1.6rem; flex-shrink: 0; }
.nudge-title { font-weight: 700; font-size: var(--t-md); margin-bottom: 3px; }
.nudge-sub   { font-size: var(--t-sm); opacity: .9; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   11. PAIN SCREEN  — single-column horizontal card layout
   Layout math:
     100vh − header(62) − ulzan(30) − dots(32) − footer(72) = ~544px usable
     stage padding: top 24px + bottom ~88px → ~432px for cards
     8 cards × 49px card + 7 × 6px gap = 434px — fits exactly, no scroll
═══════════════════════════════════════════════════════════════ */

/* Wrapper: kills the old 2-col grid, no gap wasted */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Each row: 20% emoji zone | 80% text zone */
.pain-row {
  display: flex;
  align-items: stretch;
  min-height: 49px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* stagger animation applied by JS via --pain-delay */
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition:
    opacity .38s cubic-bezier(.22,.68,0,1) var(--pain-delay, 0ms),
    transform .38s cubic-bezier(.22,.68,0,1) var(--pain-delay, 0ms),
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}
.pain-row.pi-visible {
  opacity: 1;
  transform: none;
}
.pain-row:active { transform: scale(.97); }
.pain-row.sel {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 3px 12px rgba(200,144,10,.20);
}
.pain-row.sel .pain-emoji-col {
  background: rgba(200,144,10,.10);
  border-right-color: rgba(200,144,10,.25);
}
.pain-row.sel .poutcome { color: var(--gold); }

/* Left 20%: emoji centered */
.pain-emoji-col {
  width: 20%;
  min-width: 50px;
  max-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,62,.03);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: background .18s, border-right-color .18s;
  position: relative;
}
/* tick badge on selected */
.pain-row.sel .pain-emoji-col::after {
  content: '✓';
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  font-size: 8px; font-weight: 900;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  line-height: 14px; text-align: center;
}
.pain-icon {
  font-size: 1.5rem; /* 60–65% of 50px col → ~24px */
  line-height: 1;
  display: block;
}

/* Right 80%: pain title + outcome */
.pain-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px 8px 10px;
  gap: 2px;
  min-width: 0;
}
.ptitle {
  font-size: var(--t-sm);   /* .85rem ≈ 13.6px */
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poutcome {
  font-size: var(--t-xs);   /* .72rem ≈ 11.5px */
  font-weight: 600;
  color: var(--sage);
  line-height: 1.6;
  transition: color .18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hint text below cards */
#recognition-hint {
  transition: color .3s ease, font-weight .2s ease;
}
#recognition-hint.pi-confirmed {
  color: var(--sage);
  font-weight: 700;
}

/* PAIN screen: compress stage top padding to gain vertical space */
#stage.phase--urgent {
  padding-top: var(--s6);   /* 16px instead of 24px */
}

/* ═══════════════════════════════════════════════════════════════
   12. PROBE / ROOTS
═══════════════════════════════════════════════════════════════ */
/* old probe-header kept for JS animation targets */
.probe-header { display: none; }

/* Dots counter — sticky above footer, centered */
.probe-counter {
  position: sticky;
  bottom: calc(var(--footer-h, 72px) + var(--safe-bot, 0px) + 12px);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 4px;
  pointer-events: none;
  z-index: 10;
}
.probe-dots { display: flex; gap: 7px; }
.pdot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--grey-200); transition: background .22s, transform .22s;
}
.pdot.done { background: var(--sage); }
.pdot.curr { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 6px var(--gold); }
.probe-lbl { font-size: var(--t-xs); color: var(--ink-muted); }
/* .qcard and .qcard p defined in Stage section above */
.opts { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
/* .opt defined in Stage section above */
.opt-check {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-radius: 5px; flex-shrink: 0; margin-top: 2px;
  transition: background .14s, border-color .14s; position: relative;
}
.opt.sel .opt-check { background: var(--gold); border-color: var(--gold); }
.opt.sel .opt-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════════════════════
   13. WEIGHT / STAR RATINGS
═══════════════════════════════════════════════════════════════ */
.weight-cards { display: flex; flex-direction: column; gap: var(--s4); margin: var(--s4) 0; }
.weight-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: var(--s4) var(--s4) var(--s5);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.weight-q { font-size: var(--t-sm); color: var(--ink); margin-bottom: var(--s3); font-weight: 600; }
.stars    { display: flex; gap: var(--s2); }
.star-btn {
  font-size: 1.7rem; color: var(--grey-200);
  transition: color .12s, transform .12s;
}
.star-btn.lit  { color: var(--gold-mid); }
.star-btn:active { transform: scale(1.25); }

/* ═══════════════════════════════════════════════════════════════
   14. SOCHNE_DE  (thinking screen)
═══════════════════════════════════════════════════════════════ */
.sochne-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s8) var(--s4); text-align: center; min-height: 60vh;
  justify-content: center;
}
.sochne-headline {
  font-family: var(--ff-display); font-size: var(--t-xl);
  color: var(--gold); margin-bottom: var(--s6);
}
.sochne-lines { display: flex; flex-direction: column; gap: var(--s5); }
.sochne-line {
  font-size: var(--t-md); color: var(--ink-soft);
  opacity: 0; transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.sochne-line.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
  15. LEGACY STORY BLOCKS
═══════════════════════════════════════════════════════════════ */
.sum-shell {
  display: flex; flex-direction: column; gap: var(--s4);
}
.sum-tabs {
  display: flex; gap: var(--s2);
  overflow-x: auto; padding-bottom: var(--s1);
  scrollbar-width: none;
}
.sum-tabs::-webkit-scrollbar { display: none; }
.sum-tab {
  flex-shrink: 0; padding: var(--s2) var(--s4);
  border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.sum-tab--active {
  border-color: var(--gold); background: var(--gold-pale);
  box-shadow: 0 2px 8px rgba(200,144,10,.2);
}
.sum-tab-lbl { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.sum-tab-sub { font-size: var(--t-xs); color: var(--ink-muted); }
.sum-progress {
  display: flex; justify-content: center; gap: 7px;
}
.sum-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grey-300); transition: background .25s, transform .25s;
}
.sum-dot--on { background: var(--gold); transform: scale(1.4); }
.sum-panes { position: relative; }
.sum-pane  {
  border-radius: var(--radius-lg);
  overflow: visible;            /* allow content to grow freely */
  box-shadow: var(--shadow-md);
}
.sum-pane-inner { padding: var(--s5) var(--s4) var(--s6); overflow: visible; }

/* Mantra tab */
.mw-eyebrow {
  font-size: var(--t-xs); font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s3);
}
.mw-frame {
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s4) var(--s5); margin: var(--s3) 0;
  background: rgba(200,144,10,.06);
  word-break: break-word;       /* wrap long Hindi text correctly */
  overflow-wrap: anywhere;
}
.mw-line {
  font-family: var(--ff-display); font-size: var(--t-lg);
  line-height: 1.65; color: var(--navy);
  display: block;               /* each line on its own row */
  margin-bottom: var(--s2);     /* breathing space between mantra lines */
  word-break: break-word;
}
.mw-line:last-child { margin-bottom: 0; }
.mw-sub { font-size: var(--t-sm); color: var(--ink-soft); margin-top: var(--s3); }

/* Action cards */
.at-list { display: flex; flex-direction: column; gap: var(--s3); }
.at-card {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
  background: var(--white); border-left: 3px solid var(--at-color, var(--gold));
  box-shadow: var(--shadow-sm);
}
.at-left  { display: flex; align-items: center; gap: var(--s2); }
.at-n     {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--at-color, var(--gold)); color: var(--white);
  font-size: var(--t-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.at-icon  { font-size: 1.1rem; }
.at-body  { flex: 1; }
.at-type  { font-size: var(--t-xs); font-weight: 700; color: var(--at-color, var(--gold)); text-transform: uppercase; letter-spacing: .05em; }
.at-text  { font-size: var(--t-sm); color: var(--ink); line-height: 1.45; }
.at-time  { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; }

/* 7-day calendar */
.ck-strip {
  display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2);
  scrollbar-width: none;
}
.ck-strip::-webkit-scrollbar { display: none; }
.ck-day {
  min-width: 48px; padding: var(--s2) var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  background: var(--grey-100); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex-shrink: 0;
}
.ck-today {
  background: var(--gold-pale); border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(200,144,10,.18);
}
.ck-label    { font-size: .6rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.ck-date     { font-size: var(--t-md); font-weight: 700; color: var(--navy); }
.ck-day-name { font-size: .62rem; color: var(--ink-muted); }
.ck-tick     { font-size: var(--t-sm); color: var(--grey-300); margin-top: 2px; }

/* Ulzan→Kabu graph */
.uk-legend {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-muted);
}
.uk-dot { width: 10px; height: 10px; border-radius: 50%; }
.uk-dot--start { background: var(--error); }
.uk-dot--end   { background: var(--sage); }

/* Share nudge */
.sum-nudge {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md); padding: var(--s4);
  box-shadow: var(--shadow-md);
}
.sum-nudge-icon { font-size: 1.5rem; flex-shrink: 0; }
.sum-nudge-txt  { font-weight: 700; font-size: var(--t-sm); color: var(--white); margin-bottom: 4px; }
.sum-nudge-sub  { font-size: var(--t-xs); color: rgba(255,255,255,.72); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   16. WISDOM + ACTIONS (history/detail)
═══════════════════════════════════════════════════════════════ */
.wisdom-section { margin-bottom: var(--s6); }
.wisdom-frame {
  background: linear-gradient(135deg, var(--gold-pale), var(--white));
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s4) var(--s5); margin-top: var(--s3);
}
.w-line { font-family: var(--ff-display); font-size: var(--t-lg); line-height: 1.55; color: var(--navy); }
.actions-section { margin-bottom: var(--s4); }
.tasks-list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.task-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.task-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  font-size: var(--t-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-text { flex: 1; font-size: var(--t-sm); color: var(--ink); }
.task-time { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   17. SAVE SCREEN  (uses s-form classes)
═══════════════════════════════════════════════════════════════ */
/* No extra classes needed — all covered by s-form */

/* ═══════════════════════════════════════════════════════════════
   18. DASHBOARD — Mobile-first, engaging, all actions equal
═══════════════════════════════════════════════════════════════ */
.dashboard { display: flex; flex-direction: column; gap: var(--s4); }

.dash-hero {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg); padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-md);
}
.dash-hero-left  { display: flex; flex-direction: column; gap: 3px; }
.dash-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.dash-greeting   { font-family: var(--ff-display); font-size: var(--t-lg); color: var(--white); font-weight: 600; }
.dash-level-lbl  { font-size: var(--t-xs); color: rgba(255,255,255,.55); }
.xp-wrap  { display: flex; align-items: center; gap: var(--s2); }
.xp-track { width: 80px; height: 5px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.xp-fill  { height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }
.xp-num   { font-size: var(--t-xs); color: rgba(255,255,255,.65); min-width: 36px; text-align: right; }

.streak-row  { display: flex; align-items: center; justify-content: space-between; }
.streak-lbl  { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.streak-dots { display: flex; gap: 6px; }
.sdot { width: 11px; height: 11px; border-radius: 50%; background: var(--grey-200); transition: background .25s; }
.sdot--on { background: var(--gold); }
.sdot--pop { animation: sdotPop .4s ease; }
@keyframes sdotPop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.6)} }

/* Outcome quote — from insights.php outcome field */
.dash-outcome {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: var(--navy); border-radius: var(--radius-md);
  padding: var(--s4) var(--s4);
}
.dash-outcome-icon  { color: var(--gold); font-size: .75rem; margin-top: 3px; flex-shrink: 0; }
.dash-outcome-text  {
  font-family: var(--ff-display); font-size: var(--t-md); font-weight: 600;
  color: var(--white); line-height: 1.5; letter-spacing: .01em;
}

/* Promise card */
.dash-card {
  border-radius: var(--radius-md); padding: var(--s4) var(--s5);
  border: 1.5px solid var(--border); background: var(--white);
  box-shadow: var(--shadow-sm);
}
.dash-card--active  { border-color: var(--gold); background: var(--gold-pale); }
.dash-card--checked { border-color: var(--sage); background: var(--sage-pale); }
.dash-card--done    { border-color: var(--gold); background: var(--gold-pale); }
.dash-card--new     { border-color: var(--border); }
.dash-card-badge { font-family: var(--ff-display); font-size: var(--t-md); font-weight: 700; color: var(--navy); }
.dash-card-sub   { font-size: var(--t-sm); color: var(--ink-soft); margin-top: var(--s1); }

.dash-progress-wrap  { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.dash-progress-bar   { flex: 1; height: 6px; background: rgba(200,144,10,.18); border-radius: 3px; overflow: hidden; }
.dash-progress-fill  { height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }
.dash-progress-lbl   { font-size: var(--t-xs); color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* Mantra strip */
/* dash-mantra: see EXAM COUNTDOWN section below */

/* ── Action buttons — ALL equally prominent ── */
.dash-actions {
  display: flex; flex-direction: column; gap: var(--s3);
  margin-top: var(--s2);
}
.dash-action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: var(--s4) var(--s5);
  border-radius: var(--radius-md); font-family: var(--ff-display);
  font-size: var(--t-md); font-weight: 700; cursor: pointer;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  letter-spacing: .02em;
}
.dash-action-btn:active { transform: scale(.97); }

/* Primary: gold — check-in or new journey */
.dash-action-btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--white); border: none;
  box-shadow: 0 4px 16px rgba(200,144,10,.35);
  font-size: var(--t-lg);
  padding: var(--s5) var(--s5);
}
.dash-action-btn--primary:active { box-shadow: 0 2px 8px rgba(200,144,10,.2); }

/* Secondary: navy outline */
.dash-action-btn--secondary {
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy-mid);
}
.dash-action-btn--secondary:hover { background: var(--grey-50); }

/* Logout: equally prominent, distinct but not secondary */
.dash-action-btn--logout {
  background: var(--white); color: var(--error);
  border: 2px solid var(--error);
  font-size: var(--t-md);
}
.dash-action-btn--logout:hover { background: #fdf2f2; }

/* Recent journeys */
.recent-section { margin-top: var(--s2); }
.j-chips { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.j-chip {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s3) var(--s4); background: var(--white);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.j-chip:active { background: var(--grey-50); }
.j-chip-title { font-size: var(--t-sm); font-weight: 600; color: var(--navy); }
.j-chip-meta  { font-size: var(--t-xs); color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════════
   19. CHECKIN — 4-tab reference + 5 golden questions
═══════════════════════════════════════════════════════════════ */

/* ── Header: day badge + 7 dots ── */
.checkin-wrap  { display: flex; flex-direction: column; gap: var(--s4); }
.ci-header     { display: flex; align-items: center; justify-content: space-between; }
.ci-day-badge  {
  font-family: var(--ff-display); font-size: var(--t-xl); font-weight: 700;
  color: var(--gold); letter-spacing: .02em;
}
.ci-dots { display: flex; gap: 7px; }
.cdot { width: 13px; height: 13px; border-radius: 50%; background: var(--grey-200); transition: background .22s; }
.cdot--done  { background: var(--sage); }
.cdot--today { background: var(--gold); transform: scale(1.25); box-shadow: 0 0 6px var(--gold); }

/* ── Reference card ── */
.ci-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ci-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--grey-50);
}
.ci-tab {
  flex: 1; padding: var(--s3) var(--s2);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: background .15s, border-color .15s;
}
.ci-tab--active {
  background: var(--white); border-bottom-color: var(--gold);
}
.ci-tab-lbl { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.ci-tab-sub { font-size: .65rem; color: var(--ink-muted); }
.ci-panes   { padding: var(--s4); min-height: 120px; }
.ci-tab-pane { animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

/* Mantra tab */
.ci-eyebrow {
  font-size: var(--t-xs); font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s3);
}
.ci-mantra-frame {
  border-left: 3px solid var(--gold);
  padding: var(--s3) var(--s4);
  background: rgba(200,144,10,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--s2);
}
.ci-mantra-line {
  font-family: var(--ff-display); font-style: italic;
  font-size: var(--t-md); color: var(--navy); line-height: 1.6;
  margin: 0 0 var(--s2) 0;
}
.ci-mantra-line:last-child {
  margin-bottom: 0;
}
.ci-hint { font-size: var(--t-xs); color: var(--ink-muted); margin-top: var(--s2); }

/* 4 काम tab */
.ci-tasks { display: flex; flex-direction: column; gap: var(--s2); }
.ci-task-card {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-left: 3px solid var(--at-color, var(--gold));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--grey-50);
}
.ci-task-n    { width: 20px; height: 20px; border-radius: 50%; background: var(--at-color,var(--gold)); color: var(--white); font-size: var(--t-xs); font-weight: 700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ci-task-icon { font-size: 1rem; flex-shrink: 0; }
.ci-task-body { flex: 1; }
.ci-task-type { font-size: .65rem; font-weight: 700; color: var(--at-color,var(--gold)); text-transform: uppercase; letter-spacing: .05em; display: block; }
.ci-task-text { font-size: var(--t-sm); color: var(--ink); line-height: 1.4; }
.ci-task-time { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; }

/* 7-day calendar strip */
.ck-strip { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; }
.ck-strip::-webkit-scrollbar { display: none; }
.ck-day {
  min-width: 44px; padding: var(--s2) var(--s1) var(--s2);
  border-radius: var(--radius-sm); background: var(--grey-100);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.ck-today { background: var(--gold-pale); border-color: var(--gold); }
.ck-label    { font-size: .6rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.ck-date     { font-size: var(--t-md); font-weight: 700; color: var(--navy); }
.ck-day-name { font-size: .6rem; color: var(--ink-muted); }

/* Progress dots tab */
.prog-strip { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; margin-top: var(--s3); }
.prog-dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-xs); font-weight: 700;
  background: var(--grey-200); color: var(--ink-muted);
  border: 2px solid var(--grey-300);
}
.prog-done  { background: var(--sage);  color: var(--white); border-color: var(--sage); }
.prog-today { background: var(--gold);  color: var(--white); border-color: var(--gold); box-shadow: 0 0 10px rgba(200,144,10,.4); }

/* ── Section heading between card and questions ── */
.ci-section-head {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s3); padding: var(--s2) 0;
}
.ci-section-lbl  { font-size: var(--t-xs); font-weight: 700; color: var(--navy-muted); letter-spacing: .1em; text-transform: uppercase; }
.ci-section-icon { font-size: .7rem; color: var(--gold); }

/* ── 5 Golden Questions ── */
.gold-questions { display: flex; flex-direction: column; gap: var(--s2); }
.gold-q {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--white); border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.gold-q:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 2px 8px rgba(200,144,10,.12);
}
.gold-q--charcha {
  border-style: dashed; margin-top: var(--s1);
}
.gold-q--charcha:has(input:checked) {
  border-style: solid; border-color: var(--sage);
  background: var(--sage-pale);
}
.gold-q input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.gold-q-check {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--grey-300); background: var(--white);
  transition: background .15s, border-color .15s;
  position: relative; margin-top: 1px;
}
.gold-q:has(input:checked) .gold-q-check {
  background: var(--gold); border-color: var(--gold);
}
.gold-q:has(input:checked) .gold-q-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}
.gold-q--charcha:has(input:checked) .gold-q-check {
  background: var(--sage); border-color: var(--sage);
}
.gold-q-icon  { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.gold-q-text  { flex: 1; font-size: var(--t-sm); color: var(--ink); line-height: 1.5; }
.gold-q-time  { font-size: var(--t-xs); color: var(--ink-muted); flex-shrink: 0; margin-top: 2px; }

/* ── Mood selector ── */
.mood-row  { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s2) 0; }
.mood-lbl  { font-size: var(--t-xs); color: var(--ink-muted); flex: 1; }
.mood-btn  {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); font-size: 1.3rem;
  background: var(--white); transition: background .14s, border-color .14s, transform .12s;
  display: flex; align-items: center; justify-content: center;
}
.mood-btn:active { transform: scale(1.15); }
.mood-btn.sel  { background: var(--gold-pale); border-color: var(--gold); transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════════
   20. DONE — Inspiring journey conclusion screen
═══════════════════════════════════════════════════════════════ */
.done-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s5); text-align: center; padding: var(--s3) 0; }

/* Trophy with rays */
.done-hero { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.done-trophy-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; }
.done-trophy {
  font-size: 3.2rem; line-height: 1;
  animation: trophyIn .6s .1s cubic-bezier(.22,.68,0,1.4) both;
}
@keyframes trophyIn { from{opacity:0;transform:scale(.5) rotate(-10deg)} to{opacity:1;transform:scale(1) rotate(0)} }
.done-rays { position: absolute; inset: 0; }
.done-rays span {
  position: absolute; top: 50%; left: 50%;
  width: 2px; height: 14px; background: var(--gold); border-radius: 1px; opacity: .55;
  transform-origin: 50% 40px;
  animation: rayPulse 2s ease-in-out infinite;
}
.done-rays span:nth-child(1){transform:rotate(0deg)  translateX(-50%)}
.done-rays span:nth-child(2){transform:rotate(45deg) translateX(-50%); animation-delay:.2s}
.done-rays span:nth-child(3){transform:rotate(90deg) translateX(-50%); animation-delay:.4s}
.done-rays span:nth-child(4){transform:rotate(135deg)translateX(-50%); animation-delay:.6s}
.done-rays span:nth-child(5){transform:rotate(180deg)translateX(-50%); animation-delay:.1s}
.done-rays span:nth-child(6){transform:rotate(225deg)translateX(-50%); animation-delay:.3s}
.done-rays span:nth-child(7){transform:rotate(270deg)translateX(-50%); animation-delay:.5s}
.done-rays span:nth-child(8){transform:rotate(315deg)translateX(-50%); animation-delay:.7s}
@keyframes rayPulse { 0%,100%{opacity:.3;height:12px} 50%{opacity:.7;height:18px} }

.done-headline { font-family: var(--ff-display); font-size: var(--t-2xl); font-weight: 800; color: var(--navy); }
.done-sub      { font-size: var(--t-md); color: var(--ink-soft); }

/* 7 filled dots */
.done-dots { display: flex; gap: 8px; justify-content: center; }

/* XP badge */
.done-xp-badge {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--white); font-family: var(--ff-display);
  font-size: var(--t-md); font-weight: 700;
  padding: var(--s2) var(--s5); border-radius: 20px;
  box-shadow: 0 3px 12px rgba(200,144,10,.3);
}

/* Journey detail card */
.done-journey-card {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--gold); border-radius: var(--radius-md);
  padding: var(--s4); text-align: left;
}
.done-journey-lbl  { font-size: var(--t-xs); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s2); }
.done-journey-pain { font-family: var(--ff-display); font-size: var(--t-lg); font-weight: 700; color: var(--navy); }
.done-outcome      { font-size: var(--t-sm); color: var(--sage); font-weight: 600; margin-top: var(--s2); }

/* Mantra block */
.done-mantra-block {
  width: 100%; background: var(--gold-pale);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s4); text-align: left;
}
.done-mantra-lbl  { font-size: var(--t-xs); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s2); }
.done-mantra-text { font-family: var(--ff-display); font-size: var(--t-lg); color: var(--navy); font-style: italic; line-height: 1.55; }
.done-wisdom-line {
  margin: 0 0 var(--s2) 0;
}
.done-wisdom-line:last-child {
  margin-bottom: 0;
}

/* Inspiring push */
.done-inspire { text-align: center; padding: var(--s2) 0; }
.done-inspire-line { font-size: var(--t-md); color: var(--ink-soft); margin-bottom: var(--s1); }
.done-inspire-bold { font-family: var(--ff-display); font-size: var(--t-xl); font-weight: 800; color: var(--navy); margin-top: var(--s3); }

/* ═══════════════════════════════════════════════════════════════
   21. HISTORY / DETAIL
═══════════════════════════════════════════════════════════════ */
/* Covered by .j-chip, .wisdom-frame, .cdot classes above */

/* ═══════════════════════════════════════════════════════════════
   22. UTILITIES
═══════════════════════════════════════════════════════════════ */
.s-input-wrap  { position: relative; }
.s-check-row   { display: flex; align-items: center; gap: var(--s3); cursor: pointer; }
.s-check-lbl   { font-size: var(--t-sm); color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   EXAM COUNTDOWN — always visible anchor to reality
   States: calm (>30d) · urgent (≤30d) · critical (≤7d)
═══════════════════════════════════════════════════════════════ */
.countdown {
  display: flex; align-items: center; gap: var(--s4);
  border-radius: var(--radius-md); padding: var(--s4) var(--s5);
  border: 2px solid var(--border);
}
.countdown--calm     { background: var(--grey-50); border-color: var(--grey-200); }
.countdown--urgent   { background: rgba(200,144,10,.08); border-color: var(--gold); }
.countdown--critical { background: rgba(192,57,43,.08);  border-color: var(--error); }
.countdown-num {
  font-family: var(--ff-display); font-size: 2.4rem; font-weight: 800;
  line-height: 1; flex-shrink: 0;
}
.countdown--calm     .countdown-num { color: var(--navy); }
.countdown--urgent   .countdown-num { color: var(--gold); }
.countdown--critical .countdown-num { color: var(--error); }
.countdown-right { display: flex; flex-direction: column; gap: 2px; }
.countdown-lbl  { font-size: var(--t-xs); font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.countdown-exam { font-size: var(--t-sm); font-weight: 600; color: var(--navy); }

/* ── dash-card--day1 (registration day welcome) ── */
.dash-card--day1 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: none; box-shadow: var(--shadow-md);
}
.dash-card--day1 .dash-card-badge { color: var(--gold); font-size: var(--t-lg); }
.dash-card--day1 .dash-card-sub   { color: rgba(255,255,255,.7); }

/* ── Day 1 welcome note ── */
.dash-welcome-note {
  background: var(--gold-pale); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--s4);
}
.dash-welcome-line {
  font-size: var(--t-sm); color: var(--navy); line-height: 1.6;
  font-weight: 500;
}
.dash-welcome-line + .dash-welcome-line { margin-top: var(--s1); }

/* ── Mantra on dashboard — with label ── */
.dash-mantra {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4); border-radius: var(--radius-md);
  background: var(--navy); border: none;
}
.dash-mantra-lbl {
  font-size: var(--t-xs); font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .1em;
}
.dash-mantra-text {
  font-family: var(--ff-display); font-style: italic;
  font-size: var(--t-md); color: var(--white); line-height: 1.6;
}
.dash-wisdom-line {
  margin: 0 0 var(--s2) 0;
}
.dash-wisdom-line:last-child {
  margin-bottom: 0;
}

/* ── Checkin countdown strip ── */
.ci-countdown {
  display: flex; align-items: center; gap: var(--s3);
  background: rgba(200,144,10,.1); border-radius: var(--radius-sm);
  padding: var(--s2) var(--s4); margin-bottom: var(--s1);
}
.ci-countdown-num {
  font-family: var(--ff-display); font-size: var(--t-xl);
  font-weight: 800; color: var(--gold); line-height: 1;
  flex-shrink: 0;
}
.ci-countdown-lbl {
  font-size: var(--t-xs); font-weight: 700; color: var(--navy);
  letter-spacing: .04em;
}
/**
 * setu_styles.css — ADDITIONS for v4.0
 * Append these rules to the END of setu_styles.css
 *
 * New sections:
 *   23. ENTRY SCREEN (3-button landing)
 *   24. STORY SCROLL
 */

/* ═══════════════════════════════════════════════════════════════
   23. ENTRY SCREEN — 3-button routing gate
═══════════════════════════════════════════════════════════════ */
.entry-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  padding: var(--s6) 0 var(--s4);
  min-height: calc(100vh - var(--header-h) - var(--ulzan-h) - var(--footer-h));
  justify-content: center;
}

.entry-hero {
  text-align: center;
  padding: 0 var(--s2);
}
.entry-brand {
  font-family: var(--ff-display);
  font-size: var(--t-xl);
  color: var(--gold);
  letter-spacing: .12em;
  margin-bottom: var(--s4);
}
.entry-headline {
  font-family: var(--ff-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
  margin-bottom: var(--s3);
}
.entry-sub {
  font-size: var(--t-md);
  color: var(--ink-soft);
  line-height: 1.6;
}

.entry-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.entry-primary {
  font-size: var(--t-lg);
  height: 60px;
  box-shadow: 0 6px 20px rgba(200,144,10,.4);
}
.entry-divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--ink-muted);
  font-size: var(--t-xs);
  padding: var(--s1) 0;
}
.entry-divider::before,
.entry-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.entry-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.entry-secondary {
  font-size: var(--t-sm);
}

.entry-free-badge {
  text-align: center;
  padding: var(--s4) 0 var(--s2);
  border-top: 1px solid var(--border);
}
.entry-free-icon {
  font-size: .75rem;
  color: var(--gold);
  opacity: .6;
  display: block;
  margin-bottom: var(--s2);
}
.entry-free-text {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--s1);
}
.entry-free-sub {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  letter-spacing: .02em;
}


/* ═══════════════════════════════════════════════════════════════
  24. STORY SCROLL
   Uses --pain-theme CSS variable set inline by PHP
═══════════════════════════════════════════════════════════════ */
.ss-story {
  --pain-theme: var(--gold);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ss-section {
  padding: var(--s5) 0 var(--s6);
  border-bottom: 1px solid var(--border);
}
.ss-section:last-of-type { border-bottom: none; }

.ss-eyebrow {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pain-theme);
  opacity: .8;
  margin-bottom: var(--s3);
}

/* ── Bridge sections ── */
.ss-bridge {
  padding: var(--s4) 0 var(--s5);
  border-bottom: 1px solid var(--border);
}
.ss-bridge--open { padding-top: var(--s2); }
.ss-bridge-line {
  font-family: var(--ff-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--s2);
  line-height: 1.38;
}
.ss-bridge-sub {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
.ss-bridge--action .ss-bridge-line { color: var(--pain-theme); }
.ss-pain-name { color: var(--pain-theme); font-weight: 600; }

/* ── Mirror ── */
.ss-mirror {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--s4) var(--s4) var(--s5);
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.ss-mirror-body { margin: var(--s2) 0 var(--s4); }
.ss-mirror-line {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  border-left: 3px solid var(--pain-theme);
  padding-left: var(--s3);
  margin-bottom: var(--s2);
  line-height: 1.5;
  font-style: italic;
}
.ss-mirror-close {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  font-style: italic;
}

/* ── Mantra ── */
.ss-mantra-frame {
  background: var(--gold-pale);
  border-left: 4px solid var(--pain-theme);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s5) var(--s5) var(--s4);
  margin: var(--s2) 0 var(--s3);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ss-mantra-line {
  font-family: var(--ff-display);
  font-size: var(--t-lg);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.65;
  display: block;
  margin-bottom: var(--s2);
}
.ss-mantra-line:last-child { margin-bottom: 0; }
.ss-mantra-anchor {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  font-style: italic;
}

/* ── 4 Kaam ── */
.ss-kaam-total {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  margin-bottom: var(--s4);
}
.ss-kaam-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.ss-kaam-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}
.ss-kaam-num {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--pain-theme);
  color: var(--white);
  font-size: var(--t-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ss-kaam-body { flex: 1; }
.ss-kaam-text {
  font-size: var(--t-sm);
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--s1);
}
.ss-kaam-time {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--pain-theme);
  background: var(--surface);
  padding: 2px var(--s2);
  border-radius: 8px;
  display: inline-block;
}

/* ── 7 Days ── */
.ss-seven-why {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: var(--s4);
  line-height: 1.55;
}
.ss-fear-remove {
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin-top: var(--s3);
  font-style: italic;
  line-height: 1.55;
}
.ss-fear-remove strong {
  color: var(--ink);
  font-style: normal;
}

/* ── Natija ── */
.ss-natija-frame {
  background: var(--pain-theme);
  border-radius: var(--radius-md);
  padding: var(--s5) var(--s4);
  margin: var(--s3) 0 var(--s3);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ss-natija-text {
  font-family: var(--ff-display);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}
.ss-natija-sub {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  font-style: italic;
  text-align: center;
}

/* ── Chart ── */
.ss-chart-intro {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  margin-bottom: var(--s3);
}

/* ── Charcha ── */
.ss-charcha {
  text-align: center;
  padding: var(--s5) 0 var(--s4);
}
.ss-charcha-icon { font-size: 1.8rem; margin-bottom: var(--s2); display: block; }
.ss-charcha-line {
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--s2);
}
.ss-charcha-sub {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   NEW SCREENS: VALIDATION | WISDOM | ACTIONS | COMMITMENT
═══════════════════════════════════════════════════════════════ */

/* ── VALIDATION SCREEN ── */
.validation-wrap {
  min-height: 100vh;
  display: block !important;
  padding: 10px !important;
  background: linear-gradient(135deg, rgba(12, 11, 4, 0.02), rgba(200, 144, 10, 0.04));
}
.validation-content {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-in-out;
}
.validation-headline {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--s5);
  word-spacing: 100vw;
}
.validation-body {
  font-size: var(--t-md);
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: var(--s5);
  background: var(--white);
  padding: var(--s5);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--pain-theme);
  box-shadow: var(--shadow-sm);
  white-space: normal !important;
  word-break: keep-all;
  display: block !important;
}
.validation-cta {
  font-size: var(--t-sm);
  color: var(--pain-theme);
  font-weight: 600;
  margin-top: var(--s4);
}

/* ── WISDOM SCREEN ── */
.wisdom-wrap {
  min-height: 100vh;
  display: block !important;
  padding: 10px !important;
  background: linear-gradient(135deg, var(--pain-theme), rgba(200, 144, 10, 0.3));
}
.wisdom-content {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-in-out;
}
.wisdom-headline {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--s6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  word-spacing: 100vw;
}
.wisdom-frame {
  background: var(--white);
  border: 3px solid var(--pain-theme);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: var(--s4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}
.wisdom-line {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: var(--s3);
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  display: block !important;
}
.wisdom-line:last-child { margin-bottom: 0; }
.wisdom-label {
  font-size: var(--t-sm);
  color: var(--white);
  margin-bottom: var(--s2);
  opacity: 0.9;
  font-weight: 600;
}
.wisdom-note {
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-style: italic;
}

/* ── ACTIONS SCREEN ── */
.actions-wrap {
  min-height: 100vh;
  display: block !important;
  padding: 10px !important;
  background: linear-gradient(135deg, rgba(12, 11, 4, 0.02), rgba(200, 144, 10, 0.04));
  box-sizing: border-box !important;
}
.actions-header {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center;
  margin-bottom: var(--s6);
}
.actions-headline {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: var(--s4);
  word-spacing: 100vw;
}
.actions-total {
  font-size: var(--t-md);
  color: var(--ink-soft);
  font-weight: 600;
}
.actions-container {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0 auto var(--s6);
  min-height: 280px;
}
.action-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border: 2px solid var(--pain-theme);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: var(--s4);
  box-shadow: var(--shadow-md);
}
.action-type {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--pain-theme);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--s2);
}
.action-text {
  font-size: var(--t-md);
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: var(--s3);
  font-weight: 500;
  white-space: normal !important;
  word-break: keep-all;
  display: block !important;
}
.action-time {
  font-size: var(--t-sm);
  color: var(--pain-theme);
  font-weight: 600;
}
.actions-instruction {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-top: var(--s5);
}
.actions-instruction strong {
  color: var(--pain-theme);
  font-weight: 700;
}

.ags-wrap {
  min-height: 100vh;
  padding: var(--s6) var(--s4);
  background: linear-gradient(135deg, rgba(14, 72, 121, 0.06), rgba(10, 141, 114, 0.05));
}
.ags-headline {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  color: var(--pain-theme);
  text-align: center;
  margin-bottom: var(--s3);
}
.ags-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: var(--s5);
  font-size: var(--t-md);
}
.ags-list {
  max-width: 650px;
  margin: 0 auto var(--s5);
  padding: 0;
  list-style: none;
}
.ags-item {
  display: grid;
  grid-template-columns: 32px 1fr 110px;
  gap: var(--s2);
  background: var(--white);
  border: 2px solid rgba(45, 132, 221, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  margin-bottom: var(--s2);
}
.ags-num {
  font-weight: 700;
  color: var(--pain-theme);
}
.ags-text {
  color: var(--navy);
  font-weight: 600;
}
.ags-min {
  text-align: right;
  color: var(--pain-theme);
  font-weight: 700;
}
.ags-total {
  text-align: center;
  font-size: var(--t-md);
  color: var(--pain-theme);
  font-weight: 700;
}

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

/* ── CHARCHA SCREEN ── */
.charcha-wrap {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: var(--s6) var(--s4);
  background:
    radial-gradient(circle at top left, rgba(15, 110, 86, 0.14), transparent 42%),
    radial-gradient(circle at bottom right, rgba(200, 144, 10, 0.12), transparent 38%),
    linear-gradient(160deg, #f7fbf8 0%, #fffdf7 100%);
}
.charcha-wrap::before,
.charcha-wrap::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.charcha-wrap::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -40px;
  background: rgba(15, 110, 86, 0.08);
  filter: blur(8px);
}
.charcha-wrap::after {
  width: 160px;
  height: 160px;
  left: -30px;
  bottom: 120px;
  background: rgba(200, 144, 10, 0.10);
  filter: blur(6px);
}
.charcha-content {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: var(--s7) var(--s5);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15, 110, 86, 0.10);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(13, 27, 62, 0.10);
  backdrop-filter: blur(8px);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}
.charcha-content::before {
  content: "\0938\093E\0925";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 34px;
  padding: 0 14px;
  margin-bottom: var(--s4);
  border-radius: 999px;
  background: rgba(15, 110, 86, 0.10);
  color: var(--sage);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: none;
}
.charcha-headline {
  font-family: var(--ff-body);
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: var(--s3);
}
.charcha-subtitle {
  color: var(--pain-theme, var(--gold));
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--s6);
}
.charcha-body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.charcha-text,
.charcha-detail,
.charcha-warning,
.charcha-hope {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.72;
}
.charcha-spacer {
  height: var(--s2);
}
.charcha-text {
  color: var(--navy-mid);
}
.charcha-detail {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,248,251,0.96));
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--s3) var(--s4);
  box-shadow: var(--shadow-sm);
}
.charcha-warning {
  color: var(--navy-mid);
  font-weight: 600;
  margin-top: var(--s2);
}
.charcha-hope {
  color: var(--sage);
  font-weight: 700;
}

/* ── COMMITMENT SCREEN ── */
.commitment-wrap {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: var(--s6) var(--s4) var(--s4);
  background:
    radial-gradient(circle at top right, rgba(200, 144, 10, 0.14), transparent 40%),
    radial-gradient(circle at bottom left, rgba(13, 27, 62, 0.10), transparent 42%),
    linear-gradient(180deg, #fffcf5 0%, #f8f8fb 100%);
}
.commitment-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 35%);
  pointer-events: none;
}
.commitment-content {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-in-out;
}
.commitment-headline {
  font-family: var(--ff-display);
  font-size: clamp(3.8rem, 11vw, 5.8rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin: 0 0 var(--s2);
  line-height: .92;
  letter-spacing: -.03em;
}
.commitment-subhead {
  font-size: 1.08rem;
  color: var(--pain-theme);
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--s6);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.commitment-graph {
  margin: var(--s6) 0;
  padding: var(--s5);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,248,251,0.96));
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.10);
}
.commitment-graph canvas {
  max-width: 100%;
  height: auto;
}
.commitment-note {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin: 0 auto var(--s5);
  max-width: 460px;
  line-height: 1.7;
}

/* ── CONSENT SCREEN ── */
.consent-wrap {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: var(--s6) var(--s4);
  background:
    radial-gradient(circle at top center, rgba(200, 144, 10, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(13, 27, 62, 0.10), transparent 36%),
    linear-gradient(180deg, #fffefb 0%, #f5f6fb 100%);
}
.consent-wrap::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(200, 144, 10, 0.08);
  filter: blur(10px);
  pointer-events: none;
}
.consent-image {
  max-width: 520px;
  margin: 0 auto var(--s5);
}
.consent-img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(13, 27, 62, 0.14);
  object-fit: cover;
}
.consent-content {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: var(--s4) var(--s4) var(--s5);
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(13, 27, 62, 0.10);
  backdrop-filter: blur(8px);
}
.consent-vows {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding-top: 0;
}
.consent-vow-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,251,0.98));
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease;
}
.consent-vow-checkbox:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 110, 86, 0.25);
  box-shadow: var(--shadow-md);
}
.consent-vow-checkbox.is-checked,
.consent-vow-checkbox:has(input:checked) {
  border-color: rgba(200, 144, 10, 0.45);
  background: linear-gradient(180deg, rgba(253, 246, 227, 0.98), rgba(255,255,255,0.98));
  box-shadow: 0 14px 28px rgba(200, 144, 10, 0.14);
}
.consent-vow-checkbox input {
  margin-top: 3px;
  accent-color: var(--gold);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.consent-check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(200, 144, 10, 0.12);
  color: transparent;
  font-size: 0;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  position: relative;
}
.consent-check-mark::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  width: 6px;
  height: 12px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .18s ease;
}
.consent-vow-checkbox.is-checked .consent-check-mark,
.consent-vow-checkbox:has(input:checked) .consent-check-mark {
  background: var(--gold);
  transform: scale(1.02);
}
.consent-vow-checkbox.is-checked .consent-check-mark::after,
.consent-vow-checkbox:has(input:checked) .consent-check-mark::after {
  opacity: 1;
}
.consent-check-text {
  color: var(--ink);
  line-height: 1.65;
  font-weight: 600;
  font-size: var(--t-sm);
  flex: 1;
}

@media (max-width: 640px) {
  .charcha-content,
  .consent-content {
    padding: var(--s5) var(--s4);
  }
  .consent-wrap,
  .charcha-wrap,
  .commitment-wrap {
    padding-left: var(--s3);
    padding-right: var(--s3);
  }
  .commitment-headline {
    font-size: 3.2rem;
  }
  .commitment-graph {
    padding: var(--s4);
  }
}

/* ── Free badge ── */
.ss-free-badge {
  text-align: center;
  padding: var(--s5) 0 var(--s3);
  border-top: 1px solid var(--border);
  margin-top: var(--s2);
}
.ss-free-mark {
  font-size: .75rem;
  color: var(--gold);
  opacity: .6;
  display: block;
  margin-bottom: var(--s2);
}
.ss-free-line {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--s1);
}
.ss-free-sub {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════
  STORY CARD-BY-CARD NAVIGATION
   Full-viewport cards, paced reveal, progress tracking
═══════════════════════════════════════════════════════════════ */
.ss-story { position: relative; }

.ss-progress {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s2) var(--s4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ss-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.ss-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pain-theme), var(--gold));
  width: 10%;
  transition: width 0.3s ease;
}
.ss-progress-text {
  font-size: var(--t-xs);
  color: var(--ink-muted);
  white-space: nowrap;
  font-weight: 600;
}

.ss-cards-container {
  position: relative;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
}
.ss-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.22,.68,0,1),
              transform 0.4s cubic-bezier(.22,.68,0,1);
}
.ss-card--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.ss-card-inner {
  height: 100%;
  overflow-y: auto;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-nav {
  display: flex;
  gap: var(--s3);
  justify-content: flex-end;
  padding: var(--s4);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.ss-nav-btn {
  padding: var(--btn-py) var(--btn-px);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--pain-theme);
  color: #fff;
}
.ss-nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ss-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ss-nav-btn--prev { background: var(--ink-muted); }

