/* Gita Reflection — calm, warm, minimal.
   Palette: warm ivory, soft cream, muted sage, dusty green, soft gold, warm brown, subtle terracotta. */

:root {
  --bg: #F6F0E4;
  --bg-2: #EFE7D7;
  --surface: #FBF8F1;
  --ink: #33281F;
  --ink-2: #54463A;
  --muted: #6B5C4E;
  --sage: #9AA88F;
  --sage-ink: #4C5E46;
  --gold: #C2A56C;
  --gold-ink: #7A5C28;
  --terra: #A9614A;
  --primary: #4F6149;
  --primary-hover: #435440;
  --on-primary: #FBF8F1;
  --line: rgba(110, 84, 46, .16);
  --line-strong: rgba(110, 84, 46, .32);
  --glow-a: rgba(194, 165, 108, .22);
  --glow-b: rgba(154, 168, 143, .22);
  --focus: #7A5C28;
  --shadow: 0 1px 2px rgba(51, 40, 31, .04), 0 8px 30px rgba(51, 40, 31, .05);

  --serif: "Cormorant Garamond", "Noto Serif Devanagari", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;

  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 64px;
  --slow: 900ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

:root[data-theme="dusk"] {
  --bg: #1D1A16;
  --bg-2: #24201B;
  --surface: #2A251F;
  --ink: #F0E8DA;
  --ink-2: #DCD0BD;
  --muted: #B8AA96;
  --sage: #7F8E76;
  --sage-ink: #AFC1A3;
  --gold: #B89A62;
  --gold-ink: #D9BC80;
  --terra: #D08C72;
  --primary: #AFC1A3;
  --primary-hover: #C1D1B6;
  --on-primary: #1D1A16;
  --line: rgba(217, 188, 128, .14);
  --line-strong: rgba(217, 188, 128, .3);
  --glow-a: rgba(184, 154, 98, .12);
  --glow-b: rgba(127, 142, 118, .12);
  --focus: #D9BC80;
  --shadow: 0 8px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

:root[data-theme="sandal"] {
  --bg: #F1E4D2;
  --bg-2: #E8D6C0;
  --surface: #F8EEE1;
  --ink: #36261B;
  --ink-2: #57402F;
  --muted: #6E5644;
  --sage-ink: #5A5A3C;
  --gold-ink: #7A5124;
  --primary: #7F4F33;
  --primary-hover: #6C432B;
  --glow-a: rgba(176, 106, 79, .16);
  --glow-b: rgba(194, 165, 108, .2);
}

:root[data-theme="sage"] {
  --bg: #EDF0E6;
  --bg-2: #E2E7D8;
  --surface: #F6F7F0;
  --ink: #25302A;
  --ink-2: #3E4B42;
  --muted: #56645A;
  --sage-ink: #3F5640;
  --gold-ink: #6B5A2A;
  --primary: #415A45;
  --primary-hover: #364C3A;
  --line: rgba(55, 80, 60, .16);
  --line-strong: rgba(55, 80, 60, .3);
  --glow-a: rgba(154, 168, 143, .28);
  --glow-b: rgba(194, 165, 108, .16);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--sage-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.right { text-align: right; margin: -.25em 0 1em; font-size: .92rem; }
.muted { color: var(--muted); }
.fine { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-ink); font-weight: 500; margin-bottom: .9em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.statement { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.05rem); line-height: 1.3; color: var(--ink); max-width: 26em; margin: 0 auto .6em; }
.statement.small { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row-center { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.row-end { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 1.2em; }
.stack { display: grid; gap: 10px; margin: 1.2em 0 .6em; }

/* ---------- Ambient background (very slow, very subtle) ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .9; }
.ambient-a { background: radial-gradient(circle, var(--glow-a), transparent 65%); top: -30vmax; left: -20vmax; animation: drift-a 60s ease-in-out infinite alternate; }
.ambient-b { background: radial-gradient(circle, var(--glow-b), transparent 65%); bottom: -35vmax; right: -25vmax; animation: drift-b 75s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-6vmax, -8vmax) scale(1.05); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1120px; margin: 0 auto; height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; color: var(--gold-ink); }
.top-nav { display: flex; gap: 4px; margin: 0 auto; }
.top-nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; padding: 10px 14px; border-radius: 999px; transition: background .4s var(--ease), color .4s; }
.top-nav a:hover { background: var(--bg-2); color: var(--ink); }
.top-nav a.active { color: var(--ink); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top-nav + .header-actions { margin-left: 0; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--ink-2); transition: background .4s var(--ease), border-color .4s; position: relative; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .icon { width: 22px; height: 22px; }
#sound-toggle .wave { opacity: .25; transition: opacity .6s; }
#sound-toggle.on { color: var(--sage-ink); border-color: var(--line-strong); }
#sound-toggle.on .wave { opacity: 1; animation: wave 3.6s ease-in-out infinite; }
@keyframes wave { 50% { opacity: .35; } }

.profile-menu { position: relative; }
.profile-btn.signed-in { background: var(--primary); color: var(--on-primary); }
.profile-btn.signed-in .icon { display: none; }
.avatar-initial { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1; }
.profile-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px; display: grid; animation: fade-in .35s var(--ease);
}
.profile-pop a, .profile-pop button { display: block; text-align: left; width: 100%; padding: 11px 14px; border-radius: 12px; border: 0; background: none; color: var(--ink); text-decoration: none; font-size: .95rem; }
.profile-pop a:hover, .profile-pop button:hover { background: var(--bg-2); }
.pop-head { padding: 10px 14px 12px; margin: 0 0 4px; border-bottom: 1px solid var(--line); display: grid; }
.pop-head span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; min-height: 52px; text-decoration: none; color: var(--muted); font-size: .72rem; letter-spacing: .02em; border-radius: 12px; }
  .bottom-nav a .icon { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--sage-ink); }
  .bottom-nav a.active .icon { stroke-width: 2; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Main & motion ---------- */
.main { min-height: calc(100vh - var(--header-h)); outline: none; }
.main.enter > * { animation: fade-in .7s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--slow) var(--ease) both; animation-delay: calc(var(--d, 0) * 140ms); }
.page-loading { display: grid; place-items: center; min-height: 60vh; }
.breath-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sage); animation: breathe-dot 3.2s ease-in-out infinite; display: inline-block; }
@keyframes breathe-dot { 50% { transform: scale(1.8); opacity: .45; } }

.page-pad { padding-top: 72px; padding-bottom: 72px; }
.page-head { padding-top: 56px; padding-bottom: 24px; }
.section { padding: 72px 0; }
.section.tint { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.section-label { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); font-weight: 500; margin: 2.2em 0 1em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-label.center { justify-content: center; }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 40px auto; color: var(--gold); max-width: 280px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.divider-mark { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; background: none; color: var(--ink);
  font-weight: 500; font-size: .98rem; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background .4s var(--ease), border-color .4s, color .4s, transform .4s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { background: var(--surface); border-color: var(--gold); color: var(--ink); }
.btn-ghost[aria-pressed="true"] { border-color: var(--sage); color: var(--sage-ink); }
.btn-link { padding: 0 12px; color: var(--sage-ink); }
.btn-link:hover { color: var(--ink); background: var(--bg-2); }
.btn-danger { border-color: color-mix(in srgb, var(--terra) 50%, transparent); color: var(--terra); }
.btn-danger:hover { background: color-mix(in srgb, var(--terra) 10%, transparent); color: var(--terra); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.section .btn, .page-head .btn { margin-top: .6em; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2em; }
.chips-center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-2); text-decoration: none; font-size: .95rem;
  transition: background .4s var(--ease), border-color .4s, color .4s;
}
.chip:hover { background: var(--surface); border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip-soft { border-style: solid; background: transparent; }
.chip-small { min-height: 34px; padding: 0 14px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 11vh, 120px) 0 40px; text-align: center; }
.hero-title { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: .25em; }
.hero .lead { margin: 0 auto 2em; font-size: clamp(1.08rem, 2.2vw, 1.25rem); }

.ask {
  position: relative; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow); text-align: left;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.ask:focus-within { border-color: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 14%, transparent), var(--shadow); }
.ask textarea {
  width: 100%; border: 0; background: transparent; resize: none; outline: none;
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.45rem); line-height: 1.45; min-height: 64px; max-height: 220px; padding: 6px 8px;
}
.ask textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.ask textarea.nudge { animation: nudge .8s var(--ease); }
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.ask-btn { justify-self: end; }
.hint { font-size: .88rem; color: var(--muted); margin: 14px auto 0; }

.feelings { margin-top: 44px; }
.feelings-label { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.feelings .chips { justify-content: center; }
.unknown-btn {
  display: inline-flex; align-items: center; gap: 12px; margin: 8px auto 0;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  transition: background .5s var(--ease);
}
.unknown-btn:hover, .unknown-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
.unknown-orb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: breathe-dot 4.5s ease-in-out infinite; }
.unknown-panel { margin: 22px auto 0; max-width: 560px; padding: 26px 22px 10px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); animation: rise .8s var(--ease) both; }
.unknown-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; color: var(--ink); margin-bottom: .3em; outline: none; }

/* ---------- Home sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

.daily-preview {
  display: grid; gap: 14px; padding: 36px 32px; border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center;
  box-shadow: var(--shadow); transition: border-color .5s var(--ease), transform .6s var(--ease);
  padding-top: 64px;
}
.daily-preview:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.daily-sa { font-family: var(--deva); font-size: 1.12rem; color: var(--ink-2); line-height: 1.9; }
.daily-meaning { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.daily-practice { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.daily-practice strong { display: block; font-weight: 500; color: var(--sage-ink); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.seven-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.seven-preview::before { content: ""; position: absolute; left: 11px; top: 16px; bottom: 16px; width: 1px; background: var(--line-strong); }
.seven-preview li { display: grid; grid-template-columns: 24px 70px 1fr; align-items: center; gap: 14px; padding: 9px 0; }
.seven-dot { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); position: relative; }
.seven-preview li:first-child .seven-dot { background: var(--gold); }
.seven-day { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seven-theme { font-family: var(--serif); font-size: 1.35rem; }

.card-mock {
  margin: 0 auto; width: min(360px, 100%); aspect-ratio: 4 / 5; padding: 38px 30px;
  background: #F7F1E6; color: #3A2E25; border-radius: 160px 160px 18px 18px; border: 1px solid rgba(184, 151, 90, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.card-mock-mark { width: 40px; height: 40px; color: #B8975A; }
.card-mock-label { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #5F7059; }
.card-mock-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 0; }
.card-mock-ref { font-size: .78rem; color: #8A6B33; margin: 0; }
.card-mock-q { font-family: var(--serif); font-style: italic; color: #6E5D4E; font-size: 1.02rem; margin: 6px 0 0; }
.card-mock-brand { font-family: var(--serif); font-weight: 600; margin: 8px 0 0; letter-spacing: .05em; }
.card-mock-host { font-size: .72rem; color: #8A6B33; margin: 0; }

/* ---------- Verse ---------- */
.verse { margin: 0 auto; }
.verse-ref { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); text-align: center; margin-bottom: 18px; }
.verse-ref a { color: inherit; text-decoration: none; }
.verse-ref a:hover { text-decoration: underline; }
.verse-arch {
  position: relative; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  padding: clamp(64px, 12vw, 96px) clamp(20px, 6vw, 56px) clamp(32px, 5vw, 44px);
  box-shadow: var(--shadow);
}
.verse-arch::before {
  content: ""; position: absolute; inset: 10px; border-radius: 232px 232px 20px 20px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); pointer-events: none;
}
.sanskrit { font-family: var(--deva); font-size: clamp(1.15rem, 2.8vw, 1.42rem); line-height: 2; color: var(--ink); margin: 0 0 22px; }
.translit { font-family: var(--serif); font-style: italic; font-size: clamp(1.02rem, 2.3vw, 1.15rem); color: var(--muted); line-height: 1.7; margin: 0; }
.layers { display: grid; gap: 4px; margin-top: 28px; }
.layer { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.layer:last-child { border-bottom: 0; }
.layer-label { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); font-weight: 500; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.layer[lang="hi"] .layer-label { letter-spacing: .04em; font-size: .9rem; text-transform: none; font-family: var(--deva); }
.translation { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.45rem); line-height: 1.45; color: var(--ink); margin: 0; }
.hindi { font-family: var(--deva); font-size: 1.06rem; line-height: 1.95; color: var(--ink-2); margin: 0; }
.simple { font-size: 1.08rem; color: var(--ink-2); margin: 0; }
.tag-interp { font-size: .66rem; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--terra) 45%, transparent); color: var(--terra); text-transform: uppercase; font-family: var(--sans); font-weight: 500; }

/* ---------- Result page ---------- */
.result-head { padding-top: 56px; text-align: center; }
.you-said { max-width: 560px; margin: 0 auto; }
.you-said-label { font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.you-said blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.35; margin: 0 0 10px; color: var(--ink); overflow-wrap: anywhere; }
.why-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.45rem); line-height: 1.5; color: var(--ink); }
.context { margin: 8px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context summary { cursor: pointer; padding: 14px 0; color: var(--sage-ink); font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.context summary::-webkit-details-marker { display: none; }
.context summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-ink); transition: transform .4s var(--ease); }
.context[open] summary::after { transform: rotate(45deg); }
.context p { color: var(--ink-2); padding-bottom: 6px; }
.moment .question, .question { font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 1.85rem); line-height: 1.35; color: var(--ink); margin-bottom: .8em; }
.journal {
  width: 100%; min-height: 120px; max-height: 60vh; resize: vertical;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 20px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.6;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.journal:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 14%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.center-actions { justify-content: center; }
.save-note a, .status a { color: var(--sage-ink); }
.next-steps { padding: 40px 20px 80px; }
.soft-card { background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-grid a { display: grid; gap: 4px; padding: 16px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .4s, background .4s; }
.next-grid a:hover { border-color: var(--line-strong); background: var(--surface); }
.next-grid strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.next-grid span { font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .next-grid { grid-template-columns: 1fr; } }

.practice { background: color-mix(in srgb, var(--sage) 12%, var(--surface)); border-radius: var(--radius-lg); padding: 6px 26px 22px; border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent); margin: 22px 0; }
.practice p { margin: 0; font-size: 1.06rem; color: var(--ink); }
.come-back { padding-bottom: 80px; }

/* ---------- Crisis ---------- */
.crisis { margin: 36px auto 0; text-align: left; background: var(--surface); border: 1px solid color-mix(in srgb, var(--terra) 40%, transparent); border-left: 4px solid var(--terra); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.crisis h2 { font-size: 1.8rem; outline: none; }
.crisis-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

/* ---------- Conversation ---------- */
.thread { display: grid; gap: 16px; margin: 20px 0; }
.msg { max-width: 92%; padding: 18px 22px; border-radius: 22px; animation: rise .8s var(--ease) both; overflow-wrap: anywhere; }
.msg p:last-child { margin-bottom: 0; }
.msg.user { justify-self: end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; max-width: 80%; }
.msg.guide { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.intro { text-align: left; }
.msg-mark { width: 32px; height: 32px; color: var(--gold-ink); display: block; margin-bottom: 8px; }
.msg .ack { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.teach { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; margin: 14px 0 16px; }
.teach .verse-ref { text-align: left; margin-bottom: 6px; }
.teach-sa { font-family: var(--deva); color: var(--ink-2); margin-bottom: 6px; }
.teach-en { font-family: var(--serif); font-size: 1.18rem; line-height: 1.45; margin: 0; }
.msg .question { font-size: 1.3rem; margin: 6px 0 4px; }
.msg-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px -12px -8px; }
.msg.crisis-msg { padding: 0; border: 0; background: none; max-width: 100%; }
.msg.crisis-msg .crisis { margin: 0; }
.sit { text-align: center; }
.sit-orb, .breath-orb { position: relative; display: grid; place-items: center; margin: 18px auto; }
.sit-orb { width: 90px; height: 90px; }
.sit-orb span, .breath-orb span { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sage) 45%, transparent), color-mix(in srgb, var(--sage) 8%, transparent) 70%); }
.sit-orb span { animation: breathe-slow 10s ease-in-out infinite; }
@keyframes breathe-slow { 0%, 100% { transform: scale(.6); } 40% { transform: scale(1); } 55% { transform: scale(1); } }
.directions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.directions .chip { font-size: .9rem; min-height: 42px; }
.composer { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 26px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); z-index: 5; }
.composer:focus-within { border-color: var(--gold); }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; padding: 10px 0; max-height: 160px; font-size: 1.02rem; line-height: 1.5; min-width: 0; }
.composer-send { width: 48px; padding: 0; flex: none; }
.convo-foot { display: flex; justify-content: center; padding: 14px 0 60px; }
@media (max-width: 860px) { .composer { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------- Library ---------- */
.search { position: relative; max-width: 560px; margin: 28px auto 0; }
.search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 56px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 22px 0 52px; font-size: 1.02rem; box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 14%, transparent); }
.cat-filter { margin-top: 8px; }
.results-meta { margin: 10px auto 26px; max-width: 40em; }
.verse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; padding-bottom: 56px; }
.verse-card {
  display: grid; align-content: start; gap: 10px; padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.verse-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.verse-card-ref { font-size: .76rem; letter-spacing: .14em; color: var(--gold-ink); }
.verse-card-sa { font-family: var(--deva); color: var(--ink-2); font-size: 1rem; line-height: 1.8; }
.verse-card-meaning { font-family: var(--serif); font-size: 1.28rem; line-height: 1.35; }
.verse-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--sage-ink); margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.detail-grid .detail p { color: var(--ink-2); }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.cta-quiet { padding: 30px 20px 90px; }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; padding: 48px 20px; max-width: 520px; margin: 0 auto; }
.empty h3, .empty .empty-title { font-size: 1.6rem; }
.empty p { color: var(--muted); }
.empty-orb { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 35%, transparent), transparent 70%); animation: breathe-slow 9s ease-in-out infinite; }
.loading-line { display: inline-flex; gap: 12px; align-items: center; color: var(--muted); margin-top: 12px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--surface), var(--bg-2)); background-size: 200% 100%; animation: shimmer 2.4s ease-in-out infinite; border-radius: var(--radius); }
.card-skeleton { width: 100%; aspect-ratio: 4 / 5; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Journey ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-bottom: 40px; }
@media (max-width: 920px) { .journey-grid { grid-template-columns: 1fr; } .journey-side { order: -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; } }
.pattern { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--radius-lg); padding: 24px 26px 14px; margin-bottom: 24px; }
.pattern-text { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.filter-chips { margin-bottom: 20px; }
.entries { display: grid; gap: 14px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px 12px; overflow-wrap: anywhere; }
.entry-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.entry-date { font-size: .84rem; color: var(--muted); }
.entry-emotion { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-ink); background: color-mix(in srgb, var(--sage) 14%, transparent); padding: 3px 10px; border-radius: 999px; }
.entry-said { font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--ink-2); }
.entry-verse { font-size: .95rem; color: var(--ink-2); }
.entry-verse a { color: var(--gold-ink); }
.entry-q { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); margin-bottom: .5em; }
.entry-text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; white-space: pre-wrap; }
.entry-tools { display: flex; justify-content: flex-end; margin: 0 -12px; }
.ghost-entry { opacity: .55; }
.journey-side { display: grid; gap: 14px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.side-card p { font-size: .96rem; }
.side-card.subtle { background: transparent; }
.progress-dots { display: flex; gap: 8px; margin: 4px 0 14px; }
.progress-dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold); transition: background .8s var(--ease); }
.progress-dots span.done { background: var(--gold); }
.progress-dots span.current { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.center-dots { justify-content: center; }
.saved-verses { padding-bottom: 40px; }
.journey-sample { display: grid; gap: 14px; }

/* ---------- Summary ---------- */
.month-picker select { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 18px; margin-top: 10px; max-width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 12px; text-align: center; display: grid; }
.stat-n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat-l { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.theme-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.theme-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; }
.theme-bar { height: 8px; border-radius: 99px; background: var(--bg-2); position: relative; overflow: hidden; }
.theme-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--sage); border-radius: inherit; }
.fav { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fav .verse-ref { text-align: left; margin-bottom: 4px; }
.fav-meaning { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.word-cloud { line-height: 2.2; text-align: center; }
.word-cloud span { font-family: var(--serif); font-size: calc(1.1rem * var(--s)); color: var(--ink-2); margin: 0 10px; display: inline-block; }
.highlight { margin: 0 0 16px; padding: 18px 22px; border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.highlight p { font-family: var(--serif); font-size: 1.2rem; overflow-wrap: anywhere; }
.highlight footer { font-size: .84rem; color: var(--muted); }
.print-only { display: none; }
.summary { padding-bottom: 60px; }

/* ---------- 7 days ---------- */
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .5s var(--ease); }
.day-row:hover { border-color: var(--gold); color: var(--ink); }
.day-row.next { border-color: var(--gold); }
.day-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-ink); font-family: var(--serif); font-size: 1.2rem; }
.day-row.done .day-n { background: var(--gold); color: var(--surface); }
.day-body { display: grid; gap: 2px; min-width: 0; }
.day-title { font-family: var(--serif); font-size: 1.3rem; }
.day-sub { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-state { font-size: .82rem; color: var(--sage-ink); }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 24px 0 80px; }
.program { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px dashed var(--line-strong); text-decoration: none; color: var(--ink); }
.program:hover { border-color: var(--gold); color: var(--ink); }
.program-days { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.program-title { font-family: var(--serif); font-size: 1.4rem; }
.program-desc { font-size: .92rem; color: var(--muted); }
.badge-premium { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .06em; color: var(--gold-ink); justify-self: start; }
.badge-premium .icon { width: 14px; height: 14px; }
.completion { text-align: center; padding-bottom: 30px; }
.completion-card { max-width: 380px; margin: 24px auto; }
.completion-card canvas { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.day-nav { display: flex; justify-content: space-between; padding: 30px 20px 80px; }
.seven-day .question { margin-bottom: 1.2em; }

/* ---------- Auth & forms ---------- */
.auth { display: grid; place-items: center; padding: 56px 20px 80px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 6vw, 40px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.2rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.input-wrap { position: relative; }
.field input, .inline-form input {
  width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg);
  padding: 0 16px; font-size: 1rem;
}
.field input:focus, .inline-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--terra); }
.field input[type="password"], .field input#password { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; min-width: 60px; border: 0; background: none; color: var(--sage-ink); font-size: .88rem; border-radius: 10px; }
.form-error:not(:empty) { background: color-mix(in srgb, var(--terra) 9%, transparent); color: var(--terra); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .94rem; }
.auth-foot { text-align: center; margin: 20px 0 14px; font-size: .95rem; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }

/* ---------- Profile ---------- */
.settings { display: grid; gap: 14px; padding-bottom: 80px; }
.setting-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 24px 22px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.theme-opt { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: transparent; }
.theme-opt[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.theme-name { font-weight: 500; }
.swatch { height: 34px; border-radius: 10px; margin-bottom: 6px; border: 1px solid var(--line); }
.swatch-ivory { background: linear-gradient(135deg, #F6F0E4 50%, #4F6149 50%); }
.swatch-dusk { background: linear-gradient(135deg, #1D1A16 50%, #AFC1A3 50%); }
.swatch-sandal { background: linear-gradient(135deg, #F1E4D2 50%, #7F4F33 50%); }
.swatch-sage { background: linear-gradient(135deg, #EDF0E6 50%, #415A45 50%); }
.switch { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--primary); }

/* ---------- Premium & shop ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; padding-bottom: 30px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.plan-premium { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.price { font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; margin-bottom: .2em; }
.price span { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--sage-ink); margin-top: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; padding-bottom: 40px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px 22px; display: flex; flex-direction: column; }
.product h2 { font-size: 1.45rem; }
.product-cover { aspect-ratio: 16 / 9; border-radius: 120px 120px 14px 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--sage) 25%, var(--bg)), color-mix(in srgb, var(--gold) 22%, var(--bg))); display: grid; place-items: end center; padding: 16px; margin-bottom: 18px; }
.product-cover span { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); text-align: center; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.product-foot .price { font-size: 1.8rem; margin: 0; }

/* ---------- Prose pages ---------- */
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose p, .prose li, .prose dd { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.layers-explained dt { font-weight: 600; color: var(--ink); margin-top: 1em; }
.layers-explained dd { margin: .2em 0 0; }
.how-list { padding-left: 1.2em; }
.how-list li::marker { font-family: var(--serif); color: var(--gold-ink); font-size: 1.3rem; }
.how-list h2 { margin-top: 1.2em; }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(40, 30, 22, .32); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .35s var(--ease); }
.modal-backdrop.show { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); padding: 30px 28px 24px; box-shadow: 0 30px 80px rgba(40, 30, 22, .2); transform: translateY(12px); transition: transform .45s var(--ease); }
.modal-backdrop.show .modal { transform: none; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.modal-title { font-size: 1.8rem; padding-right: 40px; }
@media (max-width: 600px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
.share-modal { max-width: 460px; }
.share-preview { margin: 6px auto 18px; max-width: 280px; }
.share-preview img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.share-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.share-opt { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; min-height: 76px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: .8rem; line-height: 1.2; }
.share-opt:hover { border-color: var(--gold); color: var(--ink); }
.share-opt .icon { width: 24px; height: 24px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: .94rem; max-width: calc(100% - 32px); text-align: center; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ---------- 2-minute reflection ---------- */
.breathe { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .8s var(--ease); overflow-y: auto; }
.breathe.show { opacity: 1; }
.breathe-close { position: absolute; top: 14px; right: 14px; }
.breathe-inner { max-width: 520px; text-align: center; }
.breath-orb { width: min(240px, 60vw); height: min(240px, 60vw); }
.breath-orb span { transform: scale(.55); transition: transform 4s ease-in-out; }
.breath-orb.in span { transform: scale(1); transition-duration: 4s; }
.breath-orb.hold span { transform: scale(1); }
.breath-orb.out span { transform: scale(.55); transition-duration: 6s; }
.breath-orb.still span { transform: scale(.85); transition: none; }
.breath-phase { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); min-height: 1.4em; }
.breathe-meaning { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-2); margin: 20px 0 4px; }
.breathe-question { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); margin-top: 18px; }
.breathe-time { font-size: .9rem; color: var(--muted); letter-spacing: .1em; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 28px; background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .4em; }
.footer-brand p.muted { font-size: .92rem; max-width: 30em; }
.footer-heading { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); font-weight: 500; }
.footer-links { display: grid; align-content: start; gap: 2px; }
.footer-links a { color: var(--ink-2); text-decoration: none; padding: 8px 0; font-size: .95rem; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { padding: 0 12px 0 16px; gap: 10px; }
  .brand { font-size: 1.2rem; }
  .brand .mark { width: 26px; height: 26px; }
  .section { padding: 56px 0; }
  .page-head { padding-top: 40px; }
  .ask { padding: 12px; border-radius: 22px; }
  .ask-btn { justify-self: stretch; }
  .feelings .chip { padding: 0 14px; font-size: .92rem; }
  .unknown-btn { font-size: 1.12rem; padding: 0 20px; }
  .actions .btn { flex: 1 1 calc(50% - 10px); padding: 0 14px; }
  .actions .btn-primary { flex-basis: 100%; }
  .daily-preview { padding: 56px 22px 26px; }
  .verse-arch::before { inset: 7px; }
  .stat-row { gap: 8px; }
  .stat-n { font-size: 2rem; }
  .theme-list li { grid-template-columns: 96px 1fr auto; gap: 10px; }
  .day-row { grid-template-columns: 40px 1fr; padding: 14px 16px; }
  .day-n { width: 40px; height: 40px; }
  .day-state { display: none; }
  .msg { max-width: 100%; padding: 16px 18px; }
  .msg.user { max-width: 88%; }
  .share-actions { grid-template-columns: repeat(2, 1fr); }
  .inline-form { flex-direction: column; }
  .seven-preview li { grid-template-columns: 24px 56px 1fr; }
  .card-mock { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ambient span { animation: none; }
}

/* ---------- Print (monthly summary PDF) ---------- */
@media print {
  @page { margin: 18mm; }
  body { background: #fff; color: #222; padding: 0; font-size: 12pt; }
  .site-header, .site-footer, .bottom-nav, .ambient, .skip-link, .toast, .no-print, textarea, .divider { display: none !important; }
  .print-only { display: block; font-family: var(--serif); font-size: 13pt; white-space: pre-wrap; }
  .main.enter > * { animation: none; }
  .stat, .highlight, .verse-arch, .soft-card { box-shadow: none; break-inside: avoid; }
  .page-head { padding-top: 0; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Static guide pages ---------- */
.static-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.static-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: .95rem; padding: 10px 12px; border-radius: 999px; }
.static-nav a:not(.btn):hover { background: var(--bg-2); }
.static-nav .btn { margin: 0 0 0 6px; }
.static-article { padding-bottom: 60px; }
.static-verse { margin: 28px 0 10px; }
.static-cta { margin: 36px 0; }
.verse-index li { margin-bottom: .4em; }
@media (max-width: 600px) { .static-nav a:not(.btn):not(.lang-link) { display: none; } .static-nav .lang-link { font-size: .85rem; padding: 8px; } }
@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .hero .lead { margin-bottom: 1.4em; }
  .ask textarea { min-height: 52px; }
  .feelings { margin-top: 32px; }
}

/* ---------- Language switch ---------- */
.lang-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  font: 500 .92rem var(--sans); transition: background .4s var(--ease), border-color .4s;
}
.lang-btn:hover { background: var(--bg-2); border-color: var(--gold); color: var(--ink); }
.lang-btn[lang="hi"] { font-family: "Noto Sans Devanagari", var(--sans); font-size: 1rem; }

/* ---------- हिन्दी typography ----------
   Devanagari needs more vertical room, and letter-spacing / uppercase styling
   breaks its conjuncts, so those are relaxed when the interface is in Hindi. */
:root[lang="hi"] body { line-height: 1.8; }
:root[lang="hi"] h1, :root[lang="hi"] h2, :root[lang="hi"] h3 { line-height: 1.4; letter-spacing: 0; }
:root[lang="hi"] .hero-title { font-size: clamp(2.2rem, 7vw, 3.8rem); }
:root[lang="hi"] .eyebrow, :root[lang="hi"] .section-label, :root[lang="hi"] .layer-label,
:root[lang="hi"] .footer-heading, :root[lang="hi"] .verse-ref, :root[lang="hi"] .seven-day,
:root[lang="hi"] .program-days, :root[lang="hi"] .daily-practice strong, :root[lang="hi"] .entry-emotion,
:root[lang="hi"] .card-mock-label, :root[lang="hi"] .tag-interp, :root[lang="hi"] .verse-card-ref {
  letter-spacing: 0; text-transform: none;
}
:root[lang="hi"] .eyebrow, :root[lang="hi"] .section-label, :root[lang="hi"] .layer-label, :root[lang="hi"] .footer-heading { font-size: .92rem; }
:root[lang="hi"] .why-text, :root[lang="hi"] .question, :root[lang="hi"] .translation,
:root[lang="hi"] .you-said blockquote, :root[lang="hi"] .statement, :root[lang="hi"] .pattern-text,
:root[lang="hi"] .daily-meaning, :root[lang="hi"] .verse-card-meaning, :root[lang="hi"] .unknown-title,
:root[lang="hi"] .msg .ack, :root[lang="hi"] .teach-en { line-height: 1.7; }
:root[lang="hi"] .why-text, :root[lang="hi"] .question { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }
:root[lang="hi"] .statement { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
:root[lang="hi"] .unknown-btn { font-size: 1.05rem; }
:root[lang="hi"] .breath-phase { font-size: 1.5rem; }
/* Journals and inputs: Devanagari, English or Hinglish all render comfortably */
.journal, .ask textarea, .composer textarea, .search input, .field input { font-feature-settings: normal; }
.journal:lang(hi), :root[lang="hi"] .journal, :root[lang="hi"] .ask textarea { line-height: 1.8; }

/* ---------- Premium: programs, collections, journal, templates ---------- */
.wrap-dots { flex-wrap: wrap; max-width: 420px; margin-left: auto; margin-right: auto; }
.col-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.col-card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.col-card:hover { border-color: var(--gold); color: var(--ink); }
.col-card strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.col-item { display: grid; gap: 4px; }
.col-item .btn-link { justify-self: end; }
.col-list { display: grid; gap: 6px; margin-bottom: 16px; }
.col-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.col-row input { width: 20px; height: 20px; accent-color: var(--primary); }
.narrow-form { max-width: 480px; margin: 20px auto 0; }
.prompt-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.prompt-row .question { margin-bottom: .4em; }
.deeper { margin-top: 26px; }
.deeper ol { padding-left: 1.2em; display: grid; gap: 10px; }
.deeper li { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); }
.deeper-locked { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 18px 20px; }
.feature-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 10px 0 30px; }
.feature-links a { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.feature-links a:hover { border-color: var(--gold); color: var(--ink); }
.feature-links strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.feature-links span { font-size: .88rem; color: var(--muted); }
.tpl-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px clamp(18px, 5vw, 40px); margin-bottom: 60px; }
.tpl-preview { position: relative; max-height: 560px; overflow: hidden; }
.tpl-preview::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--surface)); }
.tpl-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 8px; }
.tpl-brand { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 6px; }
.tpl-head h2 { margin-bottom: 10px; }
.tpl-verse { font-size: .95rem; color: var(--muted); margin: 0; }
.tpl-section h3 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ink-2); margin: 22px 0 6px; }
.tpl-lines { display: grid; }
.tpl-lines span { display: block; height: 34px; border-bottom: 1px solid var(--line-strong); }
.tpl-foot { text-align: center; font-size: .8rem; color: var(--muted); margin: 26px 0 0; }
:root[lang="hi"] .tpl-brand { letter-spacing: 0; text-transform: none; }
@media print {
  .template-view .tpl-page { border: none; padding: 0; margin: 0; max-height: none; overflow: visible; }
  .tpl-preview::after { display: none; }
  .tpl-lines span { height: 30px; border-bottom-color: #bbb; }
  .program-page, .programs { display: none; }
}
.side-links { display: grid; gap: 2px; }
.side-links a { padding: 8px 0; text-decoration: none; color: var(--ink-2); }
.side-links a:hover { color: var(--ink); text-decoration: underline; }
/* Headings receive focus after navigation so screen readers announce the page; no visible ring needed. */
main h1[tabindex="-1"]:focus, main h1[tabindex="-1"]:focus-visible { outline: none; }

/* Payments */
.notice-test { font-size: .88rem; color: var(--gold-ink); background: var(--glow-a); border: 1px dashed var(--gold); border-radius: 12px; padding: .55em .8em; }
