/* ═══════════════════════════════════════════════════════════════
   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;
}
#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;
  
}
#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;
}
.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));
}



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

/* ═══════════════════════════════════════════════════════════════
   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);
}
#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;
}
#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; }



/* ═══════════════════════════════════════════════════════════════
   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: 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);
}
.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; }


/* 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);
}
.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);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.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;
  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;
}
#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
═══════════════════════════════════════════════════════════════ */
.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;
}
.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;
}
.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);
  
}


/* ═══════════════════════════════════════════════════════════════
  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;
}
.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;  }
.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); }

/* 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;  }
.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: box-shadow .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; }

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

.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;
}
.done-rays span:nth-child(1){transform:rotate(0deg)  translateX(-50%)}
.done-rays span:nth-child(2){transform:rotate(45deg) translateX(-50%);        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;
}

/* ── Community join button — WhatsApp green, entry screen only ── */
.entry-community {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-size: var(--t-md);
  font-weight: 700;
  border-radius: var(--radius-md);
  height: 52px;
  text-decoration: none;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(37,211,102,.30);
  transition: box-shadow .15s;
}
.entry-community:active {
  transform: scale(.97);
  box-shadow: 0 2px 8px rgba(37,211,102,.20);
}
.entry-community:hover { color: #fff; }

/* WhatsApp circle icon — pure CSS, no external asset */
.entry-wa-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
}


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



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


/* ══════════════════════════════════════════════════════════════
   v5 — FIT EVERY SCREEN TO THE PHONE (no page scroll)
   · sizes follow the phone height (vh, dvh fallback)
   · the app fills the screen; the stage sits between header and footer
   · long-list screens (.phase--scroll) keep an inner scroll
   · probe options reveal one by one (class based, no flash)
   · multi-screen forms: .wz-step / .wz-nav (see setu.js WZ)
══════════════════════════════════════════════════════════════ */
:root {
  --header-h: clamp(46px, 7.2vh, 58px);
  --ulzan-h:  clamp(22px, 3.6vh, 30px);
  --footer-h: clamp(58px, 9vh, 74px);
  --t-xs: clamp(.64rem, 1.7vh, .74rem);
  --t-sm: clamp(.78rem, 2vh, .88rem);
  --t-md: clamp(.9rem, 2.3vh, 1rem);
  --t-lg: clamp(1rem, 2.6vh, 1.12rem);
  --t-xl: clamp(1.08rem, 3vh, 1.32rem);
  --s2: clamp(4px, .9vh, 7px);
  --s3: clamp(6px, 1.2vh, 10px);
  --s4: clamp(9px, 1.6vh, 13px);
  --s5: clamp(12px, 2vh, 16px);
  --s6: clamp(14px, 2.4vh, 20px);
}

#app {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

#stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--s4) 16px var(--s3);
  padding-bottom: var(--s3);
}
#stage.phase--scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
#stage > * { flex-shrink: 0; }
#stage > .pain-list { flex: 1 1 auto; flex-shrink: 1; min-height: 0; }

#footer {
  position: relative;
  flex: 0 0 auto;
  min-height: var(--footer-h);
  padding: var(--s3) 16px calc(var(--s3) + var(--safe-bot));
}

/* Forms: tighter spacing so four fields fit comfortably */
.s-form { gap: var(--s3); }
.s-h2   { font-size: var(--t-xl); }
.s-sub  { font-size: var(--t-sm); margin-top: var(--s2); }
.s-label { font-size: var(--t-xs); margin-bottom: 2px; }
.s-input, .s-select { padding: clamp(8px, 1.4vh, 11px) 12px; font-size: var(--t-md); }
.recognition-hero { margin-bottom: var(--s3); }
.s-hint, .s-hint-sm { font-size: var(--t-xs); }

/* ── Wizard: one screen = up to four fields ── */
.wz-step { display: none; }
.wz-step.is-active {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.wz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s3);
  min-height: 32px;
}
.wz-back { font-size: var(--t-sm); color: var(--navy-muted); padding: 4px 2px; }
.wz-spacer { width: 72px; flex-shrink: 0; }
.wz-dots { display: flex; gap: 7px; align-items: center; }
.wz-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grey-200);
  transition: background .25s ease;
}
.wz-dot.done { background: var(--sage); }
.wz-dot.curr { background: var(--gold); transform: scale(1.3); }

/* ── Probe: question fades in once, options reveal one by one ── */
.opt {
  padding: clamp(9px, 1.6vh, 13px) 12px;
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.opt.opt--hidden { pointer-events: none; }
.qcard { padding: var(--s4); margin-bottom: var(--s3); }
.qcard p { font-size: var(--t-lg); line-height: 1.5; }
.opts { gap: var(--s2); margin-top: var(--s3); }
.probe-counter { position: static; padding: var(--s2) 0 0; }

/* ── Pain screen: 2 × 4 grid so all eight fit without scrolling ── */
.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--s2);
}
.pain-row { flex-direction: column; min-height: 0; }
.pain-emoji-col {
  width: 100%; min-width: 0; max-width: none;
  padding: 6px 0 4px;
  border-right: none;
  border-bottom: 1px solid var(--border);
}
.pain-icon { font-size: 1.3rem; }
.pain-text-col { padding: 6px 8px 7px; justify-content: flex-start; }
.ptitle, .poutcome {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.pain-row.sel .pain-emoji-col::after { top: 3px; right: 3px; }
#recognition-hint { flex-shrink: 0; margin-top: var(--s2); }

/* ── Images inside screens never push the layout ── */
.consent-img { max-height: 24vh; width: auto; margin: 0 auto; object-fit: contain; }

/* ── v6 fit: ENTRY and CONSENT fit one phone screen without scrolling ── */
.entry-wrap {
  min-height: 0;
  gap: clamp(10px, 2.2vh, 20px);
  padding: clamp(6px, 1.4vh, 14px) 0 var(--s2);
  justify-content: flex-start;
}
.entry-brand { margin-bottom: clamp(2px, .8vh, 8px); }
.entry-headline { font-size: clamp(1.25rem, 3.6vh, 1.6rem); margin-bottom: clamp(4px, 1vh, 8px); }
.entry-sub { font-size: var(--t-sm); }
.entry-actions { gap: clamp(8px, 1.6vh, 12px); }
.entry-primary { height: clamp(46px, 7vh, 56px); font-size: var(--t-md); }
.entry-community { height: clamp(44px, 6.5vh, 50px); }
.entry-divider { padding: 0; }
.entry-secondary { height: clamp(40px, 5.5vh, 46px); }
.entry-free-badge { padding: clamp(6px, 1.2vh, 12px) 0 0; }
.entry-free-icon { margin-bottom: 2px; }

.consent-wrap {
  min-height: 0;
  height: auto;
  padding: clamp(8px, 1.6vh, 16px) 0 0;
  background: none;
}
.consent-image { margin: 0 auto clamp(8px, 1.6vh, 14px); max-width: 360px; }
.consent-img { max-height: 20vh; width: 100%; height: auto; border-radius: 20px; }
.consent-content { padding: clamp(10px, 1.8vh, 16px); border-radius: 22px; }
.consent-vows { gap: clamp(6px, 1.2vh, 10px); }
.consent-vow-checkbox { padding: clamp(8px, 1.4vh, 12px) 12px; gap: 10px; border-radius: 14px; }
.consent-vow-checkbox input { margin-top: 2px; }
.consent-check-mark { width: 22px; height: 22px; }
.consent-check-mark::after { left: 7px; top: 4px; }
.consent-check-text { font-size: var(--t-xs); line-height: 1.5; }

/* ── v6: SAVE split into two screens — compact so screen 1 (incl. under-18 parent fields) fits ── */
#save-form .wz-step.is-active { gap: clamp(6px, 1.2vh, 10px); }
#save-form .s-label { margin-bottom: 0; }
#save-form .s-input, #save-form .s-select { padding: clamp(7px, 1.2vh, 10px) 12px; }
#save-form .consent-vow-checkbox { padding: clamp(7px, 1.1vh, 10px) 10px; margin-top: 4px; }
#save-form .consent-check-text { font-size: var(--t-xs); }
#save-form .wz-nav { margin-top: clamp(4px, 1vh, 10px); }

/* ── v6 GSAP: GSAP owns opacity/transform/filter for these; CSS keeps only colour/border effects ── */
.opt { transition: border-color .22s, background .22s, box-shadow .22s; }
.pain-row { transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }

/* ── Loading spinner: the only animation kept (shows that the app is working) ── */
.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; }
}

/* ── Pain screen: single column list (emoji left, text right) ── */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1vh, 10px);
  grid-template-columns: none;
}
.pain-row {
  flex-direction: row;
  flex: 1 1 0;
  min-height: 0;
  max-height: 96px;
}
.pain-emoji-col {
  width: clamp(54px, 17%, 72px); min-width: 0; max-width: none;
  padding: 0;
  border-right: 1px solid var(--border);
  border-bottom: none;
}
.pain-text-col { padding: clamp(6px, 1.2vh, 10px) 12px; justify-content: center; }
.ptitle, .poutcome { -webkit-line-clamp: 2; }

/* ── Consent: one checkbox per vow — keep the gold tick, hide the browser's own box.
      The input stays in the page (form state and screen readers still use it); tapping the row toggles it. ── */
.consent-vow-checkbox { position: relative; }
.consent-vow-checkbox input.vow-check {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}

/* ── v7: check-in "talk to" + day-mood sections ───────────────── */
.talk-block{display:flex;flex-direction:column;gap:clamp(6px,1.2dvh,12px);padding:var(--s3,12px) 0}
.talk-q{margin:0;font-size:clamp(16px,2.6dvh,19px);font-weight:700;line-height:1.35;text-align:center}
.talk-sub{margin:0;font-size:clamp(12px,1.8dvh,14px);opacity:.75;text-align:center}
.talk-list{display:flex;flex-direction:column;gap:clamp(6px,1.1dvh,10px)}
.talk-opt{width:100%}

.mood-section{display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.6dvh,16px);padding:var(--s3,12px) 0;text-align:center}
.mood-head{margin:0;font-size:clamp(16px,2.6dvh,19px);font-weight:700}
.mood-line{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;background:transparent;cursor:pointer;
  border:1.5px solid var(--line,rgba(0,0,0,.15));border-radius:14px;
  color:inherit;font:inherit;padding:clamp(6px,1.2dvh,12px) 12px;
}
.mood-line .mood-emoji{line-height:1}
.mood-line .mood-word{font-weight:600}
.mood-line--big   .mood-emoji{font-size:clamp(52px,9dvh,68px)}
.mood-line--big   .mood-word {font-size:clamp(18px,3dvh,22px)}
.mood-line--mid   .mood-emoji{font-size:clamp(34px,6dvh,42px)}
.mood-line--mid   .mood-word {font-size:clamp(15px,2.4dvh,17px)}
.mood-line--small .mood-emoji{font-size:clamp(22px,3.8dvh,26px)}
.mood-line--small .mood-word {font-size:clamp(12px,2dvh,14px);opacity:.8}
.mood-line.sel{border-color:var(--gold);background:var(--gold-pale)}

/* ── v7 · Home screen option E ─────────────────────────────── */
.dash-strip{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--s3) var(--s4);margin-top:var(--s2)}
.dash-strip-lbl{margin:0 0 var(--s2);font-size:var(--t-sm);font-weight:700;color:var(--ink-soft)}
.dash-days{display:flex;gap:6px;justify-content:space-between}
.dash-day{flex:1;max-width:40px;min-width:0;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--border);font-size:var(--t-sm);font-weight:700;color:var(--ink-muted)}
.dash-day--done{background:var(--navy);border-color:transparent;color:var(--white)}
.dash-day--now{border-color:var(--gold);color:var(--gold);box-shadow:0 0 0 3px rgba(200,144,10,.18)}

.dash-mantra--hero{padding:var(--s4);text-align:center}
.dash-mantra--hero .dash-mantra-text{font-size:var(--t-lg);line-height:1.55;text-wrap:balance}
.dash-listen{margin-top:var(--s3);display:inline-flex;align-items:center;gap:6px;background:var(--gold);color:var(--white);border:0;border-radius:999px;padding:7px 16px;font:700 var(--t-sm) var(--ff-body);cursor:pointer}

.dash-step{background:var(--white);border:1px solid var(--border);border-left:4px solid var(--gold);border-radius:var(--radius-md);padding:var(--s3) var(--s4)}
.dash-step-lbl{display:block;font-size:var(--t-xs);font-weight:700;letter-spacing:.06em;color:var(--gold);margin-bottom:var(--s1)}
.dash-step-txt{margin:0;font-size:var(--t-md);color:var(--ink)}


/* ── v8 · Phase 1: welcome, landing, support bar ── */
#support-bar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--s2);padding:6px var(--s4);background:var(--gold-pale);border-bottom:1px solid var(--border);font:var(--t-xs) var(--ff-body);color:var(--ink-soft)}
.support-call{color:var(--navy);font-weight:700;text-decoration:none;white-space:nowrap}

.welcome-wrap{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s3) var(--s4) var(--s2);max-width:520px;margin:0 auto;min-height:0}
.welcome-head .s-h2{margin:var(--s1) 0 0}
.welcome-head .s-sub{margin:var(--s1) 0 0}
.welcome-terms{flex:1 1 auto;min-height:110px;max-height:28vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--s3) var(--s4);font-size:var(--t-sm);line-height:1.6;color:var(--ink)}
.welcome-terms p{margin:0 0 var(--s2)}
.welcome-choices{display:flex;flex-direction:column;gap:var(--s2)}
.welcome-choices-title{margin:0;font-size:var(--t-xs);font-weight:700;color:var(--ink-muted)}
.welcome-adult{margin-top:0}
.welcome-hint{margin:0;font-size:var(--t-xs);color:var(--ink-muted);text-align:center}

.landing-wrap{display:flex;flex-direction:column;gap:var(--s4);padding:var(--s6) var(--s4);max-width:520px;margin:0 auto}
.landing-hero .s-h2{margin:var(--s1) 0 0}
.landing-hero .s-sub{margin:var(--s1) 0 0}
.landing-actions{display:flex;flex-direction:column;gap:var(--s3)}
.landing-note{margin:0;font-size:var(--t-xs);color:var(--ink-muted);text-align:center}

@media (max-width:360px){
  .welcome-terms{max-height:26vh;font-size:var(--t-xs)}
  .support-text{display:block;width:100%;text-align:center}
}

/* ── v8 · Phase 2: scale step, support card, overflow fix ── */
.scale-block{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s3) 0}
.scale-head{margin:0;font-weight:700;font-size:var(--t-md);color:var(--ink)}
.scale-sub{margin:0;font-size:var(--t-xs);color:var(--ink-muted)}
.scale-row{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--s2)}
.scale-btn{min-height:52px;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--white);color:var(--navy);font:700 var(--t-lg) var(--ff-body);cursor:pointer}
.scale-btn.sel{border-color:var(--gold);background:var(--gold-pale);box-shadow:inset 0 0 0 1px var(--gold)}
.scale-skip{align-self:center;background:none;border:0;color:var(--ink-muted);font:var(--t-xs) var(--ff-body);text-decoration:underline;cursor:pointer;padding:var(--s1)}
.scale-skip.sel{color:var(--navy);font-weight:700}

.support-card{background:var(--white);border:1px solid var(--border);border-left:4px solid var(--navy);border-radius:var(--radius-md);padding:var(--s3) var(--s4);display:flex;flex-direction:column;gap:var(--s2)}
.support-card-title{margin:0;font-weight:700;color:var(--navy);font-size:var(--t-md)}
.support-card-sub{margin:0;font-size:var(--t-sm);color:var(--ink-soft)}
.support-card-btn{display:block;text-align:center;background:var(--navy);color:var(--white);border-radius:999px;padding:10px 16px;font-weight:700;text-decoration:none;font-size:var(--t-sm)}
.support-card-note{margin:0;font-size:var(--t-xs);color:var(--ink-muted)}

/* ── v8 · Phase 3: mantra view, My Actions, share, feedback, day notes ── */
.mantra-full{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s4);max-width:520px;margin:0 auto;min-height:0}
.mantra-eyebrow{margin:0;text-align:center;color:var(--gold);font-weight:700;letter-spacing:.08em}
.mantra-body{background:var(--navy);color:var(--white);border-radius:var(--radius-md);padding:var(--s5) var(--s4)}
.mantra-line{margin:0 0 var(--s3);font-size:var(--t-lg);font-weight:700;line-height:1.5}
.mantra-line:last-child{margin-bottom:0}
.mantra-tools{display:flex;gap:var(--s2);flex-wrap:wrap}
.mantra-note{margin:0;font-size:var(--t-xs);color:var(--ink-muted)}
.dash-listen--ghost{background:var(--white);color:var(--navy);border:1.5px solid var(--gold)}

.myact{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--s3) var(--s4);display:flex;flex-direction:column;gap:var(--s2)}
.myact-lbl{margin:0;font-size:var(--t-xs);font-weight:700;letter-spacing:.06em;color:var(--gold)}
.myact-row{display:flex;align-items:flex-start;gap:var(--s2);font-size:var(--t-sm);color:var(--ink);cursor:pointer}
.myact-row input{margin-top:3px;width:18px;height:18px;accent-color:var(--gold);flex-shrink:0}
.myact-txt b{color:var(--navy)}

.dash-daynote{margin:0;font-size:var(--t-sm);color:var(--ink-soft);background:var(--gold-pale);border-radius:var(--radius-md);padding:var(--s2) var(--s3)}
.dash-share-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);flex-wrap:wrap}
.dash-share{display:inline-block;background:#25D366;color:var(--white);border-radius:999px;padding:8px 16px;font:700 var(--t-sm) var(--ff-body);text-decoration:none}
.dash-link{background:none;border:0;color:var(--navy);font:700 var(--t-sm) var(--ff-body);text-decoration:underline;cursor:pointer;padding:var(--s1)}
.dash-thanks{margin:0;font-size:var(--t-sm);color:var(--navy);font-weight:700;text-align:center}

.feedback-wrap{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s4);max-width:520px;margin:0 auto}
.feedback-wrap .s-h2,.feedback-wrap .s-sub{margin:0}
.fb-row{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s2)}
.fb-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--s3) var(--s2);border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--white);cursor:pointer;font-family:var(--ff-body)}
.fb-btn.sel{border-color:var(--gold);background:var(--gold-pale);box-shadow:inset 0 0 0 1px var(--gold)}
.fb-emo{font-size:28px;line-height:1}
.fb-lbl{font-size:var(--t-sm);font-weight:700;color:var(--navy)}
.fb-note{min-height:72px;resize:vertical;font-family:var(--ff-body)}
.fb-changes{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--s3) var(--s4)}
.fb-changes-lbl{margin:0 0 var(--s1);font-size:var(--t-xs);font-weight:700;color:var(--gold);letter-spacing:.06em}
.fb-changes ul{margin:0;padding-left:18px;font-size:var(--t-xs);color:var(--ink-soft);line-height:1.6}

/* ── v9 · Hub: calm home with tiles (same card language as the pain screen) ── */
.hub{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s3) var(--s4) var(--s4);max-width:520px;margin:0 auto}
.hub-greet{margin:0;font-size:var(--t-lg);font-weight:700;color:var(--navy)}
.hub-greet-sub{margin:2px 0 0;font-size:var(--t-xs);color:var(--ink-muted)}

.hub-state{background:var(--navy);color:var(--white);border-radius:var(--radius-md);padding:var(--s4);display:flex;flex-direction:column;gap:var(--s1)}
.hub-state-title{margin:0;font-size:var(--t-lg);font-weight:700}
.hub-state-sub{margin:0;font-size:var(--t-sm);color:rgba(255,255,255,.82)}
.hub-state-cta{margin-top:var(--s2)}
.hub-state-cta .dash-action-btn{width:100%}

.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--s2)}
.hub-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:96px;padding:var(--s3);border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--white);box-shadow:var(--shadow-sm);text-align:left;text-decoration:none;cursor:pointer;font-family:var(--ff-body);color:var(--navy);transition:border-color .18s ease,box-shadow .18s ease}
.hub-tile:active{transform:scale(.97)}
.hub-tile:hover{border-color:var(--gold)}
.hub-icon{font-size:1.5rem;line-height:1}
.hub-title{font-size:var(--t-sm);font-weight:700;color:var(--navy);line-height:1.3}
.hub-sub{font-size:var(--t-xs);font-weight:600;color:var(--sage);line-height:1.35}
.hub-foot{text-align:center}
.hub-foot .dash-action-btn{width:auto;padding:6px 14px;font-size:var(--t-xs)}

.hub-screen{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s4);max-width:520px;margin:0 auto}
.hub-screen .s-h2,.hub-screen .s-sub{margin:0}
.hub-note{margin:0;text-align:center;font-weight:700;color:var(--navy)}
.hub-back{margin-top:var(--s1)}

.faq-list{display:flex;flex-direction:column;gap:var(--s2)}
.faq{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-sm);padding:var(--s2) var(--s3)}
.faq summary{cursor:pointer;font-weight:700;color:var(--navy);font-size:var(--t-sm);list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';float:right;color:var(--gold);font-weight:700}
.faq[open] summary::after{content:'−'}
.faq p{margin:var(--s2) 0 0;font-size:var(--t-sm);color:var(--ink-soft);line-height:1.6}

.help-block{background:var(--white);border:1px solid var(--border);border-left:4px solid var(--navy);border-radius:var(--radius-md);padding:var(--s3) var(--s4);display:flex;flex-direction:column;gap:var(--s1)}
.help-title{margin:0;font-weight:700;color:var(--navy);font-size:var(--t-sm)}
.help-note{margin:0;font-size:var(--t-xs);color:var(--ink-soft);line-height:1.5}
.help-note a{color:var(--navy);font-weight:700}
.hub-foot .dash-action-btn--logout{color:var(--ink-soft);border:1px solid var(--border);background:var(--white);box-shadow:none}
