/* Calm theme: warm ivory day, starry navy night. Loaded after styles.css. */
:root {
  --bg: #fbf7f1; --side: #f6f0e7; --hover: #f1e8db; --active: #ecdfcd; --line: #ece3d7; --line-strong: #e0d4c3;
  --text: #2a2420; --muted: #857a70; --soft: #f4ece1; --accent: #e8792b; --card: #fffdf9;
  --you: #fdeedd; --chip-bg: #fff1e2; --chip-fg: #a4520f; --saf: #e8792b; --saf2: #f4a340;
  --shadow: 0 8px 30px -18px rgba(107,74,42,.35);
  background: var(--bg);
}
[data-theme="dark"] {
  --bg: #0e1424; --side: #121a2e; --hover: #1a2440; --active: #212c4c; --line: #253050; --line-strong: #2f3b60;
  --text: #ece6dc; --muted: #9aa3b8; --soft: #1a2238; --card: #161e33; --you: #2a2440; --chip-bg: #2c2335; --chip-fg: #f6b26b;
  --shadow: 0 10px 30px -18px rgba(0,0,0,.6); color-scheme: dark;
}
body { background: var(--bg); color: var(--text); font-size: 15px; }
::selection { background: color-mix(in srgb, var(--saf) 28%, transparent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--saf); }

/* Buttons: warm saffron instead of black */
.btn { background: var(--card); border-color: var(--line-strong); border-radius: 999px; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--saf2), var(--saf)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px var(--saf); }
.btn.primary:hover { background: linear-gradient(135deg, #f6ae55, #ea8436); }
.btn.ghost { background: transparent; }
input, select, textarea { background: var(--card); color: var(--text); border-color: var(--line-strong); }
dialog, .modal, .modal-card { background: var(--card); color: var(--text); border-radius: 22px; }

/* App shell */
.sidebar { background: var(--side); border-color: var(--line); }
.thread { border-radius: 12px; transition: background .2s; }
.topbar { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.chat-view, .center-view { background-color: var(--bg); }
[data-theme="dark"] .chat-view, [data-theme="dark"] .center-view {
  background-image: radial-gradient(1px 1px at 12% 18%, #ffffff70, transparent), radial-gradient(1px 1px at 68% 9%, #ffffff60, transparent),
    radial-gradient(1.5px 1.5px at 86% 46%, #ffffff50, transparent), radial-gradient(1px 1px at 32% 72%, #ffffff50, transparent),
    radial-gradient(1px 1px at 54% 38%, #ffffff40, transparent), radial-gradient(700px 320px at 85% -10%, #3a2a5540, transparent);
  background-attachment: fixed;
}
.scroller { overscroll-behavior: contain; }

/* Messages */
.messages { gap: 22px; }
.msg { animation: msg-calm .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes msg-calm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg.user { background: var(--you); border-radius: 20px 20px 6px 20px; padding: 12px 16px; line-height: 1.6; font-size: 15.5px; }
.msg.kaal .body { background: var(--card); border: 1px solid var(--line); border-radius: 6px 22px 22px 22px; padding: 16px 18px; margin-left: 32px; box-shadow: var(--shadow); line-height: 1.75; font-size: 15.5px; }
.msg.kaal .body > :last-child { margin-bottom: 0; }
.msg.kaal .body h3, .msg.kaal .body h4 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--saf); }
.who .avatar, .kaal-av { background: var(--card); border: 1px solid var(--line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--saf) 12%, transparent); }
.body blockquote { border-left-color: var(--saf); }
.k-date { display: inline; background: var(--chip-bg); color: var(--chip-fg); font-weight: 600; border-radius: 999px; padding: 1px 8px; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.k-chip { background: var(--card); border-color: color-mix(in srgb, var(--saf) 45%, transparent); padding: 8px 14px; font-size: 14px; transition: background .2s, transform .15s; }
.k-chip:hover { background: var(--chip-bg); transform: translateY(-1px); }
.k-tl-dot { background: var(--card); }
.k-card { background: color-mix(in srgb, var(--saf) 7%, var(--card)); border-radius: 18px; }

/* Working: breathing Kaal */
.working .avatar, .working .kaal-av { animation: calm-breathe 2.4s ease-in-out infinite; }
@keyframes calm-breathe { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--saf) 14%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--saf) 4%, transparent); } }
.shimmer { background-image: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--saf) 50%, var(--muted) 65%, var(--muted) 100%); }

/* Composer */
.composer-wrap { background: linear-gradient(transparent, var(--bg) 35%); }
.composer { background: var(--card); border-color: var(--line); border-radius: 26px; padding: 12px 12px 10px 18px; box-shadow: 0 10px 30px -16px rgba(107,74,42,.45); transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--saf) 55%, var(--line)); box-shadow: 0 10px 34px -14px color-mix(in srgb, var(--saf) 55%, transparent); }
.composer textarea { font-size: 16px; color: var(--text); }
.composer .send, .composer button[type="submit"], #send { border-radius: 50% !important; background: linear-gradient(135deg, var(--saf2), var(--saf)) !important; color: #fff !important; border: 0 !important; }
.chip { background: var(--card); border-color: var(--line); padding: 8px 14px; font-size: 14px; transition: background .2s, transform .15s; }
.chip:hover { background: var(--chip-bg); transform: translateY(-1px); }
.panel { background: var(--card); border-color: var(--line); border-radius: 18px; }
.len-toggle { border-color: var(--line-strong); }
.notice { background: var(--soft); border-color: var(--line); }

/* Landing */
#landing-view { background: radial-gradient(900px 520px at 78% -5%, #ffe2c2 0, transparent 60%), radial-gradient(760px 420px at -5% 105%, #efe4ff 0, transparent 60%), var(--bg); }
[data-theme="dark"] #landing-view { background: radial-gradient(900px 520px at 78% -5%, #3a2a5566 0, transparent 60%), var(--bg); }
.l-left h1 .accent, .l-left h1 em, .l-left h1 span:last-child { background: linear-gradient(90deg, #e8792b, #d9488b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-composer { background: var(--card); border-radius: 24px; box-shadow: 0 20px 50px -25px rgba(107,74,42,.45); border-color: var(--line); }
.l-card { background: color-mix(in srgb, var(--card) 80%, transparent); border-color: var(--line); border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.l-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.l-section { border-color: var(--line); }
.heritage { display: inline-block; background: var(--chip-bg); color: var(--chip-fg) !important; border-radius: 999px; padding: 6px 12px; text-transform: none !important; letter-spacing: .03em !important; }
.l-nav .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .msg.kaal .body { margin-left: 0; padding: 14px 15px; }
  .l-nav .btn { padding: 7px 12px; font-size: 13px; }
  .composer-wrap { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .msg, .working .avatar, .working .kaal-av { animation: none; } .scroller { scroll-behavior: auto; } }

/* Surfaces that styles.css paints pure white */
.btn.new, .card, .place-list, .chip, .l-card, .modal, .kundli-card, .plan-card, .consent-dialog, .topic, .ex-card, .faq details, .about-select, .share-pop { background: var(--card); color: var(--text); }
.kundli-card.selected { border-color: var(--saf); box-shadow: 0 0 0 1px var(--saf) inset; }
.kundli-card .k-sub, .kundli-empty, .buy-note { color: var(--muted); }
.plan-card { border-radius: 16px; transition: border-color .2s, box-shadow .2s, transform .15s; }
.plan-card:hover { transform: translateY(-1px); }
.plan-card[aria-pressed="true"] { border-color: var(--saf); box-shadow: inset 0 0 0 1px var(--saf); background: var(--chip-bg); }
#subscription-trial-badge { background: var(--chip-bg); color: var(--chip-fg); }
.consent-dialog { border-color: var(--line); border-radius: 22px; }
.consent-text { background: var(--soft); border-color: var(--line); color: var(--muted); }
.consent-actions button { background: var(--card); color: var(--text); border-color: var(--line-strong); border-radius: 999px; }
.consent-actions .consent-pay { background: linear-gradient(135deg, var(--saf2), var(--saf)); border-color: transparent; color: #fff; }
.modal .modal-x { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); }
.modal .modal-x:focus { outline: none; box-shadow: none; }
.modal .modal-x:focus-visible { outline: none; border-color: var(--saf); color: var(--text); }
.t-ic { background: var(--chip-bg); color: var(--chip-fg); }
.modal { border-color: var(--line); }
.modal::backdrop, .consent-dialog::backdrop { background: rgba(42,30,20,.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.avatar.kaal, .msg.kaal .avatar, .working .avatar, .kaal-av { background-color: #fffdf9; }
.landing { background-color: var(--bg); }
.step-n { background: var(--text); }
.text-link { color: var(--text); }
.subscription-consent { align-items: flex-start; margin-bottom: 10px; line-height: 1.45; }
.subscription-consent input { flex: none; margin-top: 3px; }
#subscription-submit { margin-top: 10px; }
.subscription-coupon-toggle { display: block; margin: 2px 0 4px; padding: 0; }
.subscription-coupon { margin: 0 0 4px; }
.subscription-coupon label { display: grid; gap: 6px; font-size: 13px; }
.subscription-coupon input { width: 100%; text-transform: uppercase; }
.manage-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.manage-offers .btn { min-height: 44px; height: auto; white-space: normal; }
#subscription-cancel { margin-top: 8px; }
@media (max-width: 359px) { .manage-offers { grid-template-columns: 1fr; } }
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--saf) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saf) 14%, transparent); }
[data-theme="dark"] .msg.kaal .body h3, [data-theme="dark"] .msg.kaal .body h4 { color: var(--saf2); }
[data-theme="dark"] .zodiac-wheel { color: #4b5578; }
[data-theme="dark"] .landing { background-image: radial-gradient(1.5px 1.5px at 12% 18%, #ffffff50 50%, transparent 51%), radial-gradient(1px 1px at 70% 40%, #ffffff40 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 66%, #ffffff40 50%, transparent 51%), radial-gradient(1px 1px at 46% 8%, #ffffff50 50%, transparent 51%); }

/* Dates: plain while typing, then glow into chips */
.k-date { transition: background-color .6s ease, padding .4s ease; }
.msg.kaal.typing .k-date { background: transparent; padding: 0; }

/* Day / night toggle */
.theme-toggle { font-size: 17px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.theme-toggle:hover { background: var(--hover); color: var(--saf); }
.side-head { display: flex; align-items: center; gap: 4px; }
.side-head .brand { margin-right: auto; }
@media (max-width: 640px) { .l-nav .theme-toggle { width: 30px; height: 30px; font-size: 15px; } }
button.side-link {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
button.side-link:hover { background: var(--hover); border-color: var(--saf); }
button.side-link:focus-visible { outline: 2px solid var(--saf); outline-offset: 2px; }
#me-avatar { background: var(--chip-bg); color: var(--chip-fg); }
@media (max-width: 640px) {
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .plan-card-price { grid-column: 2; grid-row: 1; }
  .plan-card-consults { grid-column: 1; }
  .plan-card-fee { grid-column: 2; grid-row: 2; text-align: right; }
}
.personal-offer[hidden] { display: none !important; }
@media (max-width: 640px) {
  .composer-bar { flex-wrap: wrap; row-gap: 6px; }
  #composer-hint { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; font-size: 12px; flex: 1 1 140px; min-width: 0; }
}
.modal h2, .modal h3:first-child { padding-right: 46px; }
.composer-hint-price { display: block; font-size: 11px; font-weight: 400; }
#profile-form, #profile-form > *, #profile-form label, .kundli-list { min-width: 0; max-width: 100%; }
.kundli-card { width: 100%; box-sizing: border-box; overflow: hidden; }
#profile-form .grid > *, .kundli-pick { min-width: 0; }
@media (max-width: 640px) { #profile-form .grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Premium pass: serif display type, document-style answers, calm motion ---------- */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
h1, h2, .l-left h1, .modal h2, .topbar-title #top-title, .plan-card h3, .pricing h2, .l-hero2 h1 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important; letter-spacing: -0.01em; font-weight: 600; }
.l-left h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
.l-left .l-lead { font-size: 17px; line-height: 1.6; max-width: 46ch; }
.l-composer { margin-top: 22px; }
.msg.kaal { line-height: 1.65; }
.msg.kaal p { margin: 0 0 10px; }
.msg.kaal strong { color: var(--saf, #e8792b); font-weight: 650; letter-spacing: .01em; }
.msg.kaal .k-body, .msg.kaal .body, .msg.kaal > div:not(.avatar) { border-left: 1px solid rgba(232,121,43,.35); padding-left: 14px; }
.msg.kaal ul { padding-left: 20px; }
.msg.kaal li { margin: 4px 0; }
.offer, .panel { animation: offer-in .45s ease-out both; }
@keyframes offer-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.offer strong { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 600; color: var(--text); }
.btn.primary { border-radius: 10px; padding: 10px 16px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .offer, .panel { animation: none; } }

/* ---------- Evidence pass (2026-10): tokens, type, buttons, hero, pricing, forms, waiting. Sources in ui-research.md ---------- */
:root {
  --bg: #FAF6EE; --side: #F4EEE2; --hover: #EFE6D6; --active: #E8DDC8; --line: #E6DCC8; --line-strong: #D9CDB4;
  --text: #1F1B16; --muted: #5A5248; --soft: #F3ECDF; --card: #FFFFFF; --you: #F6E9D7;
  --saf: #B4530D; --saf2: #A3480B; --accent: #B4530D; --saffron: #B4530D; --chip-bg: #FBEBDD; --chip-fg: #8F420A;
  --kumkum: #8A2A1D; --moss: #2F6B3A; --fill: #B4530D; --fill-hover: #A3480B;
  --shadow: 0 6px 24px -16px rgba(60,40,20,.35);
}
[data-theme="dark"] { --saf: #E89A52; --saf2: #F0AD6C; --accent: #E89A52; --saffron: #E89A52; --kumkum: #F0A89A; --moss: #7CC48A; --chip-fg: #F6B26B; }
body { font-size: 16px; line-height: 1.6; }
.landing { font-size: 17px; line-height: 1.6; }
[lang="hi"], .l-lead-hi { font-family: 'Noto Sans Devanagari', Inter, system-ui, sans-serif; line-height: 1.7; }
.l-left .l-lead-hi { font-size: 17.5px; }
a { color: var(--saf); }
::selection { background: color-mix(in srgb, var(--saf) 22%, transparent); }

/* Buttons: one solid action colour, >=48px primary, no gradients */
.btn { min-height: 44px; padding: 9px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.btn.primary, .consent-actions .consent-pay, .w-cta { background: var(--fill) !important; border-color: var(--fill) !important; color: #fff !important; box-shadow: none !important; min-height: 48px; border-radius: 12px; }
.btn.primary:hover, .consent-actions .consent-pay:hover, .w-cta:hover { background: var(--fill-hover) !important; }
.btn.primary:focus-visible, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--saf) 45%, transparent); outline-offset: 2px; }
.btn.primary.sm { min-height: 38px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn:active { transform: none; }
.composer .send, .composer button[type="submit"], #send { background: var(--fill) !important; }
.composer .send:hover { background: var(--fill-hover) !important; }
.composer .send { width: 44px; height: 44px; }
.send:disabled { background: var(--line-strong) !important; }
.l-composer .send { width: auto; height: 48px; padding: 0 20px; gap: 10px; border-radius: 12px !important; font-weight: 600; font-size: 16px; }
.l-composer .send svg { width: 18px; height: 18px; }
.l-nav .btn { min-height: 40px; }

/* Hero: calm page, solid type, no gradient text or coloured blobs */
#landing-view, [data-theme="dark"] #landing-view { background: var(--bg); }
.l-hero2 { padding-top: clamp(28px, 7vh, 72px); padding-bottom: 56px; gap: clamp(32px, 5vw, 72px); }
.l-left h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 600; }
.l-left h1 .accent, .l-left h1 em, .l-left h1 span:last-child, .l-left h1 .saffron { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: currentColor; color: var(--kumkum); }
.l-left .l-lead { font-size: 18px; line-height: 1.6; max-width: 34rem; margin-bottom: 14px; }
.l-left .heritage { font-size: 13px !important; padding: 6px 12px; margin: 0 0 18px !important; }
.l-composer { margin-top: 20px; border-radius: 18px; padding: 14px 14px 12px 18px; box-shadow: var(--shadow); }
.l-composer textarea { font-size: 17px; line-height: 1.5; }
.l-composer .composer-bar { margin-top: 8px; }
.l-composer .personal-offer { font-size: 14px; }
.l-chips { margin-top: 14px; gap: 8px; }
.l-chips .chip { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
.l-trust.tiny { font-size: 14px; margin-top: 18px; gap: 8px 18px; }
.l-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* Demo: a reading on paper, not a terminal */
.agent { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 0; font-size: 14.5px; border-radius: 18px; padding: 20px; }
.agent::before { display: none; }
.agent-head b { color: var(--text); font-size: 15px; }
.agent-state { color: var(--muted); }
.agent-tag { color: var(--muted); border-color: var(--line); }
.agent-q { background: var(--you); border-color: transparent; color: var(--text); font-size: 14.5px; }
.agent-steps { font-family: inherit; font-size: 14px; }
.st-name { color: var(--text); }
.st-detail { color: var(--muted); font-size: 12.5px; }
.st-ic { border-color: color-mix(in srgb, var(--saf) 30%, transparent); border-top-color: var(--saf); }
.agent-steps li.ok .st-ic { background: var(--moss); box-shadow: none; }
.agent-steps li.ok .st-ic::after { color: #fff; }
.agent-out { background: var(--bg); border-color: var(--line); color: var(--text); font-size: 15.5px; line-height: 1.6; border-radius: 14px; padding: 14px 16px; }
.agent-out b { color: var(--kumkum); }
.agent-foot { color: var(--muted); font-family: inherit; font-size: 12.5px; }
.agent-bar { background: var(--line); }
.agent-bar i { background: var(--saf); box-shadow: none; }
.agent-av { background: #fff url("/kaal-mark.svg") center/72% no-repeat !important; box-shadow: 0 0 0 1px var(--line); animation: none; }
.agent-av-wrap .agent-dot { box-shadow: 0 0 0 2px #fff; background: var(--saf); }
.agent.done .agent-dot { background: var(--moss); }
[data-theme="dark"] .agent-av { background: #0b0b0b url("/kaal-mark-dark.svg") center/72% no-repeat !important; }
[data-theme="dark"] .agent-av-wrap .agent-dot { box-shadow: 0 0 0 2px var(--card); }
@media (max-width: 860px) { .agent { min-height: 0; } }

/* Sections: 1.25 type scale, readable measure */
.l-section { padding: 64px var(--gutter); }
.l-section h2 { font-size: clamp(26px, 2.6vw, 33px); line-height: 1.15; margin: 0 0 8px; }
.l-section > p.muted { font-size: 17px; max-width: 34rem; }
.topic-grid { gap: 14px; margin-top: 22px; }
.topic { padding: 18px 20px; border-radius: 14px; gap: 4px; }
.topic:hover { border-color: var(--saf); box-shadow: var(--shadow); transform: none; }
.topic b { font-size: 16px; }
.topic span:last-child { font-size: 14.5px; }
.l-card { padding: 22px; border-radius: 16px; }
.l-card:hover { transform: none; }
.l-card h3 { font-size: 17px; margin: 12px 0 6px; }
.l-card p { font-size: 15px; line-height: 1.55; }
.step-n { background: var(--kumkum); color: #fff; }
.l-method { font-size: 15px; line-height: 1.6; max-width: 42rem; margin-top: 20px; }

/* Pricing: three tiers, middle marked, per-chat line, honest renewal sentence */
#l-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 28px; }
.l-card.price { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 22px; border-radius: 16px; }
.l-card.price h3 { margin: 0; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-family: Inter, system-ui, sans-serif !important; font-weight: 600; }
.l-card.price .price-amt { font-family: 'Fraunces', Georgia, serif; font-size: 40px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 0; line-height: 1.1; }
.l-card.price .price-amt small { font-family: Inter, system-ui, sans-serif; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.l-card.price .price-per { font-size: 14px; color: var(--muted); }
.l-card.price p.muted { font-size: 14.5px; margin-top: 8px; flex: 1; }
.l-card.price .btn { margin-top: 16px; width: 100%; }
.l-card.price.featured { border-color: var(--saf); box-shadow: inset 0 0 0 1px var(--saf), var(--shadow); }
.l-card.price .plan-badge { position: absolute; top: -12px; left: 20px; }
.plan-badge { background: var(--fill); color: #fff; font-size: 11.5px; letter-spacing: .05em; padding: 4px 10px; font-weight: 600; }
.buy-note { font-size: 15px; color: var(--muted); }
#pricing .personal-offer:last-child { font-size: 14.5px; max-width: 42rem; margin-top: 16px; }
@media (max-width: 800px) { #l-prices { grid-template-columns: 1fr; } .l-card.price.featured { order: -1; } }

.faq summary { font-size: 16px; min-height: 44px; display: flex; align-items: center; }
.faq p { font-size: 15px; line-height: 1.6; }
.faq details { border-radius: 14px; padding: 6px 18px 12px; }
.l-foot { font-size: 14px; }
.l-contact { display: block; margin: 0 0 10px; }

/* Forms & modals: >=48px inputs, 16px text, step marker, privacy line */
.modal-body { padding: 28px; gap: 14px; }
.modal-body h2 { font-size: 24px; line-height: 1.2; }
.modal-body p.muted { font-size: 15px; line-height: 1.55; }
input, select, textarea { min-height: 48px; font-size: 16px; padding: 10px 14px; border-radius: 12px; }
input[type="checkbox"], input[type="radio"], .composer textarea, .lang-pick select, .about-select, .w-check-form input, .cancel-reasons input { min-height: 0; }
label { font-size: 14px; gap: 6px; }
.step-ind { margin: 0 0 -6px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--saf); font-weight: 600; }
.code-input { font-size: 32px; letter-spacing: 12px; min-height: 64px; border-radius: 12px; }
.login-fine, .modal-body .small { font-size: 13.5px; line-height: 1.5; }
.check.small, label.check { font-size: 14px; color: var(--muted); }
.privacy-line { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.privacy-line b { color: var(--text); }
.modal-body .logo { width: 40px; height: 40px; }

/* Plan chooser */
.subscription-modal .modal-body { gap: 14px; }
.plan-cards { gap: 12px; margin: 10px 0 4px; }
.plan-card { padding: 16px; border-radius: 14px; gap: 5px; border-color: var(--line-strong); }
.plan-card strong { font-size: 16px; }
.plan-card-price { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; }
.plan-card-consults, .plan-card-per, .plan-card-fee { font-size: 13.5px; color: var(--muted); }
.plan-card[aria-pressed="true"] { border-color: var(--saf); box-shadow: inset 0 0 0 2px var(--saf); background: var(--chip-bg); }
.plan-card[data-plan-id="plus"] { border-color: color-mix(in srgb, var(--saf) 55%, var(--line-strong)); }
.subscription-consent { font-size: 14px; color: var(--text); background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; }
.offer-plans { gap: 10px; }
.offer-plan { padding: 12px 14px; }
.offer-trust { font-size: 13px; }
.offer strong { font-size: 18px; }

/* Chat: 16.5px measure, labels in kumkum, 680px column */
.messages, .working, .composer-wrap > * { max-width: 680px; }
.msg.kaal .body { font-size: 16.5px; line-height: 1.65; padding: 18px 20px; }
.msg.user { font-size: 16px; }
.msg.kaal strong { color: var(--kumkum); }
.msg.kaal .body h3, .msg.kaal .body h4 { color: var(--kumkum); font-size: 13px; }
.msg.kaal .k-body, .msg.kaal .body, .msg.kaal > div:not(.avatar) { border-left-color: color-mix(in srgb, var(--kumkum) 30%, transparent); }
.md-table table { font-size: 14.5px; }
.k-chip { font-size: 14px; min-height: 40px; }
.composer textarea { font-size: 16.5px; }

/* Waiting: three labelled steps + accelerating bar (Buell & Norton 2011; Harrison 2007) */
.working { display: block; margin: 20px auto 0; }
.working-card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.working-text { flex: 1; min-width: 0; gap: 0; }
.working-title { font-weight: 600; font-size: 15.5px; }
.working-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.working-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.working-steps li.on { color: var(--text); font-weight: 600; }
.working-steps .w-ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.working-steps li.on .w-ic { border-color: var(--saf); border-top-color: transparent; animation: spin .9s linear infinite; }
.working-steps li.ok .w-ic { background: var(--moss); border-color: var(--moss); color: #fff; }
.working-steps li.ok .w-ic::after { content: '✓'; }
.working-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 12px; }
.working-bar i { display: block; height: 100%; width: 0; background: var(--saf); border-radius: 6px; transition: width 1s linear; }
.working-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .working-steps li.on .w-ic { animation: none; } .working-bar i { transition: none; } }

@media (max-width: 640px) {
  .l-composer .composer-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .l-composer .send { width: 100%; }
  .l-composer .personal-offer { text-align: center; order: 2; }
  .l-left h1 { font-size: 34px; }
  .l-left .l-lead { font-size: 17px; }
  .l-section { padding: 48px var(--gutter); }
  .modal-body { padding: 24px 20px; }
  .l-nav .btn { min-height: 36px; }
}
.l-composer .send { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.l-composer button.send[type="submit"] { border-radius: 12px !important; }
@media (max-width: 800px) { .plan-card .plan-badge { grid-column: 1 / -1; grid-row: 1; justify-self: start; } .plan-card-consults, .plan-card-per { grid-column: 1 / -1; } .plan-card strong { grid-column: 1; } .plan-card-price { grid-column: 2; grid-row: 2; } }

/* ---------- Alive pass: vivid saffron like big brands (AstroTalk yellow, Swiggy orange, Duolingo green) ---------- */
:root {
  --fill: #FF9933; --fill-hover: #F28C28; --fill-ink: #1F1B16;
  --saf: #C2410C; --saf2: #FF9933; --accent: #C2410C; --saffron: #FF9933;
  --gold: #F2B441; --chip-bg: #FFEBD3; --chip-fg: #9A3412; --you: #FFE9CF;
  --bg: #FFF8EE; --line: #F1DFC4; --line-strong: #E8CFA8;
  --shadow: 0 10px 30px -14px rgba(194,65,12,.35);
}
.btn.primary, .consent-actions .consent-pay, .w-cta, .composer .send, .composer button[type="submit"], #send, .l-composer button.send[type="submit"] {
  background: var(--fill) !important; border-color: var(--fill) !important; color: var(--fill-ink) !important;
  box-shadow: 0 8px 22px -8px rgba(255,153,51,.75) !important; font-weight: 700;
}
.btn.primary:hover, .consent-actions .consent-pay:hover, .w-cta:hover, .composer .send:hover { background: var(--fill-hover) !important; }
.send:disabled { background: var(--line-strong) !important; box-shadow: none !important; }
.plan-badge { background: var(--kumkum); color: #fff; }
.step-n { background: var(--fill); color: var(--fill-ink); }
.agent-steps li.ok .st-ic { background: var(--gold); }
.agent-steps li.ok .st-ic::after { color: #14110D; }

/* Hero: warm glow back (AstroTalk-style cream→saffron), headline accent vivid saffron */
#landing-view { background: radial-gradient(900px 560px at 80% -8%, #FFD9A8 0, rgba(255,217,168,0) 62%), radial-gradient(700px 420px at -8% 30%, #FFE7C2 0, rgba(255,231,194,0) 60%), var(--bg) !important; }
.l-left h1 .saffron, .l-left h1 span:last-child { color: #C2410C; -webkit-text-fill-color: #C2410C; }
.heritage { background: #FFE2BF !important; color: #8A2A1D !important; border: 1px solid #F6C58E; }

/* Demo card: dark warm card that pops against the light page (pop-out by contrast), readable sans, gold highlights */
.agent { background: radial-gradient(120% 80% at 100% 0%, rgba(255,153,51,.22), transparent 55%), #17120D; color: #F5EBDD; border: 1px solid rgba(242,180,65,.28); box-shadow: 0 30px 70px -30px rgba(120,50,10,.55); }
.agent-head b, .st-name { color: #FFF6EA; }
.agent-state, .agent-tag, .st-detail, .agent-foot { color: #CDBBA5; }
.agent-tag { border-color: rgba(242,180,65,.35); }
.agent-q { background: rgba(255,153,51,.16); color: #FFF6EA; }
.agent-out { background: rgba(255,255,255,.05); border-color: rgba(242,180,65,.35); color: #F5EBDD; }
.agent-out b { color: var(--gold); }
.agent-bar { background: rgba(255,255,255,.1); }
.agent-bar i { background: linear-gradient(90deg, #FF9933, #F2B441); }
.agent-av { background: #0b0b0b url("/kaal-mark-dark.svg") center/72% no-repeat !important; box-shadow: 0 0 0 1px rgba(242,180,65,.6); }
.agent-av-wrap .agent-dot { box-shadow: 0 0 0 2px #17120D; background: #FF9933; }

/* Pricing & plan chooser: featured plan glows saffron */
.l-card.price.featured { border-color: var(--fill); box-shadow: 0 0 0 2px var(--fill), 0 18px 40px -18px rgba(255,153,51,.7); background: linear-gradient(180deg, #FFF3E2, #fff 60%); }
.plan-card[aria-pressed="true"] { border-color: var(--fill); box-shadow: inset 0 0 0 2px var(--fill); background: #FFF1DE; }
.topic:hover, .chip:hover { border-color: var(--fill); background: #FFF1DE; }
.t-ic { background: #FFE2BF; color: #9A3412; }
.working-bar i, .working-steps li.on .w-ic { background-color: transparent; }
.working-bar i { background: linear-gradient(90deg, #FF9933, #F2B441); }
.working-steps li.on .w-ic { border-color: #FF9933; border-top-color: transparent; }

/* ---------- Night pass: indigo night sky + saffron + gold (landing). Blue = competence/trust (Labrecque & Milne 2012); orange-on-blue = max colour-opponent contrast, CTA pops (Treisman pop-out) ---------- */
#landing-view { --n-bg: #0B1026; --n-surf: #151D44; --n-surf2: #1B2556; --n-line: rgba(255,255,255,.12); --n-text: #F3EEE4; --n-muted: #B9BED6; --n-gold: #F2C46D; --n-saf: #FFB547;
  color: var(--n-text);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 14%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 66%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 8%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(900px 520px at 85% -10%, rgba(255,153,51,.22), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(88,80,200,.30), transparent 60%),
    #0B1026 !important; background-attachment: scroll !important; }
#landing-view .muted, #landing-view .l-lead, #landing-view .tiny.muted, #landing-view p.muted, #landing-view .l-foot { color: var(--n-muted) !important; }
#landing-view h1, #landing-view h2, #landing-view h3, #landing-view b, #landing-view summary { color: var(--n-text); }
#landing-view .l-left h1 .saffron, #landing-view .l-left h1 span:last-child { color: var(--n-saf) !important; -webkit-text-fill-color: var(--n-saf) !important; }
#landing-view .brand { color: var(--n-text); }
#landing-view .l-links a { color: var(--n-muted); }
#landing-view .l-links a:hover { color: var(--n-text); }
#landing-view .btn:not(.primary) { background: transparent; color: var(--n-text); border-color: var(--n-line); }
#landing-view .btn:not(.primary):hover { background: rgba(255,255,255,.06); border-color: var(--n-gold); }
#landing-view .btn.ghost { border-color: transparent; }
#landing-view .heritage { background: rgba(242,196,109,.12) !important; color: var(--n-gold) !important; border: 1px solid rgba(242,196,109,.35); }
#landing-view .composer, #landing-view .l-composer { background: var(--n-surf); border-color: rgba(242,196,109,.30); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
#landing-view .l-composer:focus-within { border-color: var(--n-saf); }
#landing-view .composer textarea { color: var(--n-text); }
#landing-view .composer textarea::placeholder { color: #8E95B8; }
#landing-view .chip, #landing-view .topic, #landing-view .l-card, #landing-view .faq details { background: var(--n-surf) !important; color: var(--n-text) !important; border-color: var(--n-line) !important; }
#landing-view .chip:hover, #landing-view .topic:hover { background: var(--n-surf2) !important; border-color: var(--n-gold) !important; }
#landing-view .topic span:last-child, #landing-view .l-card p, #landing-view .faq p { color: var(--n-muted); }
#landing-view .t-ic { background: rgba(242,196,109,.14); color: var(--n-gold); }
#landing-view .l-section, #landing-view .l-foot { border-color: var(--n-line); }
#landing-view .l-foot a, #landing-view a { color: var(--n-gold); }
#landing-view .l-card.price h3, #landing-view .l-card.price .price-per, #landing-view .l-card.price .price-amt small { color: var(--n-muted); }
#landing-view .l-card.price .price-amt { color: var(--n-text); }
#landing-view .l-card.price.featured { background: linear-gradient(180deg, #24306A, var(--n-surf) 70%) !important; border-color: var(--fill) !important; box-shadow: 0 0 0 2px var(--fill), 0 24px 50px -20px rgba(255,153,51,.55) !important; }
#landing-view .agent { background: radial-gradient(120% 80% at 100% 0%, rgba(255,153,51,.18), transparent 55%), #111836; border-color: rgba(242,196,109,.30); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
#landing-view .agent-av-wrap .agent-dot { box-shadow: 0 0 0 2px #111836; }
#landing-view .theme-toggle { display: none; }
#landing-view .logo.sm { filter: none; }

/* Thumb zone: pinned Ask button on phones once the question box scrolls away (Bergstrom-Lehtovirta & Oulasvirta 2014) */
.l-sticky { display: none; }
@media (max-width: 640px) {
  .l-sticky:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(11,16,38,0), rgba(11,16,38,.96) 35%); }
  .l-sticky .btn { width: 100%; min-height: 52px; font-size: 16.5px; }
  #landing-view .l-foot { padding-bottom: 96px; }
}
#landing-view .buy-note { color: var(--n-muted) !important; }
#landing-view .agent-out b { color: var(--n-gold); }
/* Product animation replaces the demo console (NN/g: real product images get looked at, decorative ones don't) */
#agent { display: none !important; }
.l-phone { margin: 0; display: grid; place-items: center; }
.l-phone img { width: min(420px, 100%); height: auto; filter: drop-shadow(0 30px 60px rgba(255,153,51,.18)); }
@media (max-width: 860px) { .l-phone img { width: min(340px, 92%); } }
/* Declutter: one promise, one box, one button above the fold */
.l-trust { display: none !important; }
.l-left .l-lead { margin-bottom: 4px; }
.l-left .l-lead-hi { font-size: 16px; margin-bottom: 0; }
@media (max-width: 640px) {
  .l-left .heritage { font-size: 12px !important; padding: 5px 10px; margin-bottom: 14px !important; }
  .l-left h1 { font-size: 32px; margin-bottom: 10px; }
  .l-composer textarea { min-height: 56px; }
  .l-chips .chip:nth-child(n+3) { display: none; }
}
/* Headline: one sentence per line, same sans as the page, no awkward wrap */
#landing-view .l-left h1 { font-family: Inter, system-ui, sans-serif !important; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(30px, 3.6vw, 50px); }
#landing-view .l-left h1 > span { display: block; white-space: nowrap; }
@media (max-width: 640px) { #landing-view .l-left h1 { font-size: clamp(26px, 7.6vw, 32px); } }
/* Sacred symbols floating around the phone */
.l-phone { position: relative; }
.l-phone img { position: relative; z-index: 1; }
.l-sym { position: absolute; z-index: 0; font-family: 'Noto Sans Devanagari', serif; line-height: 1; pointer-events: none; color: #F2C46D; opacity: .55; text-shadow: 0 0 18px rgba(255,153,51,.55); animation: sym-float 7s ease-in-out infinite; }
.l-sym.s2, .l-sym.s4, .l-sym.s6 { color: #FF9933; font-family: 'Noto Sans', 'Segoe UI Symbol', serif; }
.l-sym.s1 { top: 4%; left: 6%; font-size: 46px; }
.l-sym.s2 { top: 16%; right: 4%; font-size: 34px; animation-delay: -1.5s; }
.l-sym.s3 { top: 48%; left: 0%; font-size: 30px; animation-delay: -3s; }
.l-sym.s4 { top: 58%; right: 0%; font-size: 40px; animation-delay: -4.5s; }
.l-sym.s5 { bottom: 6%; right: 12%; font-size: 38px; animation-delay: -2.2s; }
.l-sym.s6 { bottom: 12%; left: 10%; font-size: 28px; animation-delay: -5.4s; }
@keyframes sym-float { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: .4; } 50% { transform: translateY(-14px) rotate(6deg); opacity: .75; } }
@media (max-width: 860px) { .l-sym { font-size: 26px !important; } }
@media (prefers-reduced-motion: reduce) { .l-sym { animation: none; } }
/* Particle version: many small symbols drifting up */
.l-sym { top: auto; font-size: 14px; opacity: 0; color: #F2C46D; text-shadow: 0 0 10px rgba(255,153,51,.6); animation: sym-drift 10s linear infinite; }
.l-sym.sw { color: #FF9933; font-family: 'Noto Sans', 'Segoe UI Symbol', serif; }
@keyframes sym-drift { 0% { transform: translateY(18px) scale(.8); opacity: 0; } 15% { opacity: .75; } 85% { opacity: .55; } 100% { transform: translateY(-70px) scale(1.05); opacity: 0; } }
@media (max-width: 860px) { .l-sym { font-size: 12px !important; } }
/* Particles orbit evenly; gentle float in place */
.l-phone { padding: 28px; }
@keyframes sym-drift { 0%, 100% { transform: translate(-50%, -50%) scale(.85); opacity: .2; } 50% { transform: translate(-50%, calc(-50% - 10px)) scale(1.05); opacity: .85; } }
.l-sym { animation-name: sym-drift; animation-timing-function: ease-in-out; }

/* Alive ask box + button: breathing saffron glow, button pulse + shimmer; calm once typing */
#landing-view .l-composer { animation: box-breathe 3.2s ease-in-out infinite; }
@keyframes box-breathe { 0%, 100% { box-shadow: 0 0 0 1px rgba(255,153,51,.25), 0 0 18px -6px rgba(255,153,51,.35); border-color: rgba(242,196,109,.30); } 50% { box-shadow: 0 0 0 1px rgba(255,153,51,.6), 0 0 34px -4px rgba(255,153,51,.55); border-color: rgba(255,153,51,.7); } }
#landing-view .l-composer:focus-within { animation: none; border-color: #FF9933; box-shadow: 0 0 0 2px rgba(255,153,51,.6), 0 0 30px -6px rgba(255,153,51,.6); }
#landing-view .l-composer .send { position: relative; overflow: hidden; animation: btn-pulse 2.4s ease-in-out infinite; }
#landing-view .l-composer .send::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: btn-shine 3.6s ease-in-out infinite; }
@keyframes btn-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 8px 22px -8px rgba(255,153,51,.75), 0 0 0 0 rgba(255,153,51,.55); } 50% { transform: scale(1.03); box-shadow: 0 10px 26px -8px rgba(255,153,51,.9), 0 0 0 10px rgba(255,153,51,0); } }
@keyframes btn-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
#landing-view .l-composer:focus-within .send { animation: none; }
#landing-view .l-sticky .btn { animation: btn-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #landing-view .l-composer, #landing-view .l-composer .send, #landing-view .l-composer .send::after, #landing-view .l-sticky .btn { animation: none; } }
/* On/off flash instead of constant breathing */
#landing-view .l-composer { animation: box-flash 2.6s ease-out infinite; }
@keyframes box-flash {
  0%, 55%, 100% { box-shadow: 0 0 0 1px rgba(242,196,109,.25), 0 0 0 0 rgba(255,153,51,0); border-color: rgba(242,196,109,.30); }
  62% { box-shadow: 0 0 0 2px rgba(255,153,51,.95), 0 0 40px 0 rgba(255,153,51,.65); border-color: #FF9933; }
  72% { box-shadow: 0 0 0 1px rgba(255,153,51,.35), 0 0 12px 0 rgba(255,153,51,.2); border-color: rgba(255,153,51,.5); }
  80% { box-shadow: 0 0 0 2px rgba(255,153,51,.9), 0 0 34px 0 rgba(255,153,51,.55); border-color: #FF9933; }
}

/* ---------- Night for the signed-in app and pop-ups (matches homepage) ---------- */
#app-view, dialog, .modal, .consent-dialog, .share-pop {
  --bg: #0B1026; --side: #0F1633; --hover: #1B2556; --active: #22306A; --line: rgba(255,255,255,.12); --line-strong: rgba(255,255,255,.2);
  --text: #F3EEE4; --muted: #B9BED6; --soft: #151D44; --card: #151D44; --you: #2A2F5E; --chip-bg: rgba(242,196,109,.14); --chip-fg: #F2C46D;
  --saf: #FFB547; --kumkum: #FFB547; color: var(--text);
}
#app-view .chat-view, #app-view .center-view, #app-view .main { background: #0B1026 !important; background-image: none !important; }
#app-view .sidebar { background: var(--side); }
#app-view .topbar { background: rgba(11,16,38,.9); }
#app-view .card, #app-view .btn:not(.primary), #app-view .kundli-card, #app-view .kundli-empty, #app-view .price-note, #app-view .composer, #app-view .panel, #app-view .chip, #app-view .k-chip, #app-view button.side-link, #app-view .about-select, #app-view .msg.kaal .body, #app-view .working-card, #app-view .plan-card,
dialog .plan-card, .modal .btn:not(.primary), .modal .subscription-consent, .consent-text, .consent-actions button:not(.consent-pay) { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }
#app-view input, #app-view select, #app-view textarea, dialog input, dialog select, dialog textarea { background: #0F1633 !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
#app-view .composer textarea { background: transparent !important; }
dialog, .modal, .consent-dialog { background: #121A3A !important; color: var(--text) !important; border-color: #2A3566 !important; }
#app-view .muted, dialog .muted, #app-view .tiny, #app-view label, dialog label, .modal .small, .buy-note { color: var(--muted); }
#app-view h1, #app-view .hero, dialog h2, dialog h3, #app-view strong { color: var(--text); }
#app-view .msg.kaal strong, #app-view .msg.kaal .body h3, #app-view .msg.kaal .body h4 { color: #FFB547 !important; }
#app-view .k-date { background: rgba(242,196,109,.16); color: #F2C46D; }
#app-view .thread.active { background: var(--active); }
#app-view .plan-card[aria-pressed="true"], dialog .plan-card[aria-pressed="true"] { background: #24306A !important; border-color: #FF9933 !important; box-shadow: inset 0 0 0 2px #FF9933 !important; }
#app-view .composer-wrap { background: linear-gradient(transparent, #0B1026 35%); }
#app-view .theme-toggle { display: none; }
.code-input { color: #F2C46D; }

/* ---------- Light mode = faded night palette (pale indigo, saffron action, deep gold accents) ---------- */
html:not([data-theme="dark"]) #landing-view, html:not([data-theme="dark"]) #app-view, html:not([data-theme="dark"]) dialog, html:not([data-theme="dark"]) .modal {
  --n-bg: #EEF0FA; --n-surf: #FFFFFF; --n-surf2: #F4F5FC; --n-line: rgba(27,33,80,.12); --n-text: #1B2150; --n-muted: #545B85; --n-gold: #9A5B0C; --n-saf: #C2410C;
  --bg: #EEF0FA; --side: #E6E9F7; --hover: #DDE1F4; --active: #D3D8F0; --line: rgba(27,33,80,.12); --line-strong: rgba(27,33,80,.2);
  --text: #1B2150; --muted: #545B85; --soft: #F4F5FC; --card: #FFFFFF; --you: #E3E6F8; --chip-bg: #FCEBD5; --chip-fg: #9A5B0C; --saf: #C2410C; --kumkum: #C2410C;
}
html:not([data-theme="dark"]) #landing-view { background: radial-gradient(1.5px 1.5px at 12% 18%, rgba(27,33,80,.18) 50%, transparent 51%), radial-gradient(1px 1px at 70% 40%, rgba(27,33,80,.15) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 66%, rgba(27,33,80,.15) 50%, transparent 51%), radial-gradient(900px 520px at 85% -10%, rgba(255,153,51,.18), transparent 60%), radial-gradient(800px 600px at -10% 40%, rgba(120,110,220,.18), transparent 60%), #EEF0FA !important; }
html:not([data-theme="dark"]) #landing-view .agent, html:not([data-theme="dark"]) #landing-view .l-card.price.featured { background: #FFFFFF !important; }
html:not([data-theme="dark"]) #app-view .chat-view, html:not([data-theme="dark"]) #app-view .center-view, html:not([data-theme="dark"]) #app-view .main { background: #EEF0FA !important; }
html:not([data-theme="dark"]) #app-view .topbar { background: rgba(238,240,250,.9); }
html:not([data-theme="dark"]) #app-view input, html:not([data-theme="dark"]) #app-view select, html:not([data-theme="dark"]) #app-view textarea, html:not([data-theme="dark"]) dialog input, html:not([data-theme="dark"]) dialog select, html:not([data-theme="dark"]) dialog textarea { background: #FFFFFF !important; }
html:not([data-theme="dark"]) dialog, html:not([data-theme="dark"]) .modal, html:not([data-theme="dark"]) .consent-dialog { background: #FFFFFF !important; border-color: rgba(27,33,80,.14) !important; }
html:not([data-theme="dark"]) #app-view .composer-wrap { background: linear-gradient(transparent, #EEF0FA 35%); }
html:not([data-theme="dark"]) #app-view .plan-card[aria-pressed="true"], html:not([data-theme="dark"]) dialog .plan-card[aria-pressed="true"] { background: #FFF1DE !important; }
html:not([data-theme="dark"]) #app-view .msg.kaal strong, html:not([data-theme="dark"]) #app-view .msg.kaal .body h3 { color: #C2410C !important; }
html:not([data-theme="dark"]) #app-view .k-date { background: #FCEBD5; color: #9A5B0C; }
html:not([data-theme="dark"]) .l-sticky:not([hidden]) { background: linear-gradient(rgba(238,240,250,0), rgba(238,240,250,.96) 35%); }
html:not([data-theme="dark"]) .code-input { color: #1B2150; }
/* Day/night switch visible again */
#landing-view .theme-toggle, #app-view .theme-toggle { display: inline-grid !important; color: var(--muted); }

.cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 900px) { .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cover-grid { grid-template-columns: 1fr; } }
.l-card.cover { display: block; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.l-card.cover:hover { border-color: var(--accent, #e8892b); transform: translateY(-2px); }
.l-card.cover h3 { margin: 0 0 6px; font-size: 17px; }
.l-card.cover p { margin: 0; font-size: 14px; }
#covers .cover-ask { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; font-size: 17px; font-weight: 600; text-align: center; }
.cover-ask-btn { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--accent, #e8892b); color: var(--accent, #e8892b); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.cover-ask-btn:hover { background: var(--accent, #e8892b); color: #fff; }
#covers .cover-also { margin: 18px auto 0; max-width: 640px; font-size: 14px; text-align: center; }

[data-fastland] #landing-view[hidden] { display: flex !important; }
[data-fastland] #boot { display: none !important; }
.offer.offer-slim { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; }
#state-panel:has(.offer-slim) { padding: 12px 14px; }
.offer-slim-title { font-size: 15px !important; }
.offer-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; }
.offer-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid var(--line-strong, var(--line)); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.offer-plan strong { font-size: 13.5px; }
.offer-plan span { font-size: 12.5px; opacity: .85; }
.offer-plan:not(.best) { background: transparent !important; color: inherit !important; box-shadow: none !important; }
.offer-plan.best { border-color: var(--saffron, #f59e0b); background: color-mix(in srgb, var(--saffron, #f59e0b) 14%, transparent); }
.offer-plan .offer-plan-badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--saffron, #f59e0b); color: #1a1200; opacity: 1; white-space: nowrap; }
.offer-go { min-height: 44px; padding: 0 22px; }
.offer-terms { font-size: 11.5px; }
.offer-terms a { color: inherit; text-decoration: underline; }
.k-dakshina .offer-plans { margin-top: 14px; }
.k-dakshina .offer-terms { margin-top: 8px; }
#app-view .k-dakshina .offer-plan strong { color: inherit !important; white-space: normal; line-height: 1.2; text-align: center; font-size: 13.5px; }
#app-view .k-dakshina .offer-plan:not(.best) { color: var(--text) !important; }
#app-view .k-dakshina .offer-plan.best, #app-view .k-dakshina .offer-plan.best strong, #app-view .k-dakshina .offer-plan.best span:not(.offer-plan-badge) { color: #1a1200 !important; }
#kundli-form .tob-help { font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--saffron, #f59e0b); text-decoration: underline; text-underline-offset: 2px; }
