/* सातफेरे website. Same palette as the app: maroon, gold, cream. */
/* The brand font and the opening screen are declared in index.html, so they are ready before this file loads. */

:root {
  --maroon: #7A1F3D; --maroon-dark: #4E1127; --maroon-soft: #8E2449; --gold: #C89B3C; --gold-light: #F3E3BD;
  --cream: #FBF6EF; --surface: #fff; --ink: #231A1E; --muted: #7D6F74; --line: #EADFD3;
  --ok: #2E8B57; --bad: #C62828; --warn: #9A5B00;
  --radius: 18px; --shadow: 0 10px 30px rgba(78, 17, 39, .10);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--ink); background: var(--cream); }
img { max-width: 100%; }
a { color: var(--maroon); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.brand { font-family: "Rozha One", "Noto Serif Devanagari", serif; font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid var(--maroon); background: var(--maroon); color: #fff; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--maroon-soft); box-shadow: 0 6px 18px rgba(122, 31, 61, .25); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: rgba(122, 31, 61, .06); box-shadow: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2b1d06; }
.btn.gold:hover { background: #d7ab4c; }
.btn.light { background: #fff; border-color: #fff; color: var(--maroon); }
.btn.danger { background: transparent; border-color: #e3b1b1; color: var(--bad); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--maroon); text-decoration: underline; cursor: pointer; }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; color: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122, 31, 61, .12); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin: 4px 0 0; }
.notice { background: var(--gold-light); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice.ok { background: #e2f2e9; color: #1d5f3b; } .notice.bad { background: #fbe6e6; color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--gold-light); }
.pill.ok { background: #e2f2e9; color: var(--ok); } .pill.warn { background: #fff1dc; color: var(--warn); } .pill.bad { background: #fbe6e6; color: var(--bad); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon); margin-right: auto; }
.logo img { width: 42px; height: 42px; border-radius: 11px; }
.logo .brand { font-size: 30px; line-height: 1; }
.nav a.plain { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a.plain:hover { color: var(--maroon); }

/* Landing */
.hero { background: radial-gradient(1200px 520px at 85% -10%, rgba(200, 155, 60, .22), transparent 60%), linear-gradient(135deg, var(--maroon-soft), var(--maroon-dark)); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero .eyebrow { color: var(--gold-light); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); margin: 14px 0 18px; font-weight: 800; letter-spacing: -.01em; }
.hero h1 .brand { color: var(--gold-light); font-size: 1.12em; }
.hero p.lead { font-size: 19px; max-width: 560px; color: rgba(255, 255, 255, .9); margin: 0 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: 14px; color: rgba(255, 255, 255, .86); }
.hero .trust span::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }
.stack { position: relative; height: 430px; }
.mock { position: absolute; width: 270px; background: #fff; color: var(--ink); border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.mock .pic { height: 210px; border-radius: 16px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.mock .pic i { width: 150px; height: 150px; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, .55); display: block; position: relative; }
.mock .pic i::before { content: ""; position: absolute; left: 50%; top: -62px; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.mock b { display: block; margin-top: 12px; font-size: 17px; }
.mock small { color: var(--muted); }
.mock .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mock.a { right: 150px; top: 20px; transform: rotate(-5deg); } .mock.a .pic { background: linear-gradient(160deg, #d8a5b6, #8e2449); }
.mock.b { right: 0; top: 96px; transform: rotate(4deg); } .mock.b .pic { background: linear-gradient(160deg, #e8cf95, #c89b3c); }
section.band { padding: 88px 0; }
section.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(28px, 3vw, 40px); color: var(--maroon-dark); }
.band .sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 12px 0 44px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature .icon { width: 54px; height: 54px; border-radius: 16px; background: var(--gold-light); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; color: var(--maroon-dark); }
.feature p { margin: 0; color: #4b3f44; }
.step { position: relative; padding-top: 6px; }
.step .n { font-family: "Rozha One", serif; font-size: 54px; line-height: 1; color: var(--gold); }
.step h3 { font-size: 18px; margin: 8px 0 6px; }
.step p { margin: 0; color: #4b3f44; font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.pop { border: 2px solid var(--gold); position: relative; }
.plan.pop::before { content: attr(data-pop); position: absolute; top: -13px; left: 24px; background: var(--gold); color: #2b1d06; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; color: var(--maroon-dark); }
.plan .price { font-size: 34px; font-weight: 800; color: var(--maroon); margin: 10px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.appband { background: linear-gradient(135deg, var(--maroon-soft), var(--maroon-dark)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.appband h2 { color: #fff; }
.appband .pill { color: var(--ink); }
#app { min-height: calc(100vh - 210px); }
.appband p { color: rgba(255, 255, 255, .88); margin: 12px 0 0; font-size: 17px; }
footer { background: var(--maroon-dark); color: rgba(255, 255, 255, .8); padding: 44px 0; font-size: 14px; }
footer .wrap { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; }
footer .brand { font-size: 26px; color: var(--gold-light); margin-right: auto; }

/* Sign in */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 73px); }
.split .side { background: linear-gradient(150deg, var(--maroon-soft), var(--maroon-dark)); color: #fff; padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; }
.split .side h2 { font-size: 40px; margin-bottom: 16px; }
.split .side p { font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 460px; }
.split .side ul { list-style: none; padding: 0; margin: 26px 0 0; }
.split .side li { padding: 8px 0 8px 30px; position: relative; }
.split .side li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.split .form { display: flex; align-items: center; justify-content: center; padding: 50px 28px; }
.split .form .card { width: 100%; max-width: 460px; }
.split .form h1 { font-size: 28px; margin-bottom: 6px; color: var(--maroon-dark); }
.phone { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.otp { letter-spacing: .5em; font-size: 24px; text-align: center; font-weight: 700; }

/* Profile creation */
.page { padding: 44px 0 80px; }
.wizard { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.steps { position: sticky; top: 100px; }
.steps ol { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 12px 0; color: var(--muted); font-weight: 600; }
.steps li i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; background: #fff; flex: none; }
.steps li.now { color: var(--maroon); } .steps li.now i { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.steps li.done i { border-color: var(--ok); background: var(--ok); color: #fff; }
.wizard h1 { font-size: 30px; color: var(--maroon-dark); }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* Account */
.account { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: start; }
.side-nav { position: sticky; top: 100px; padding: 16px; }
.side-nav .me { display: flex; gap: 12px; align-items: center; padding: 6px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--gold-light); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--maroon); font-size: 20px; }
.side-nav button { display: flex; width: 100%; gap: 12px; align-items: center; text-align: left; border: 0; background: none; font: inherit; font-weight: 600; padding: 11px 12px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.side-nav button:hover { background: rgba(122, 31, 61, .06); }
.side-nav button.on { background: var(--maroon); color: #fff; }
.panel h1 { font-size: 28px; color: var(--maroon-dark); margin-bottom: 6px; }
.panel > p.muted { margin: 0 0 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.tile { padding: 20px; }
.tile b { display: block; font-size: 26px; color: var(--maroon); margin-bottom: 2px; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 999px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--gold-light); aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; display: flex; gap: 6px; justify-content: center; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.photo .main { position: absolute; top: 8px; left: 8px; }
.drop { border: 2px dashed var(--gold); border-radius: 16px; aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 14px; cursor: pointer; color: var(--maroon); font-weight: 700; background: #fffaf0; }
.rowcard { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 50; box-shadow: var(--shadow); max-width: 90vw; }
.toast.bad { background: var(--bad); }

@media (max-width: 980px) {
  .hero .wrap, .split, .wizard, .account, .appband { grid-template-columns: 1fr; }
  .stack, .split .side { display: none; }
  .cols3, .plans, .tiles { grid-template-columns: 1fr; }
  .cols4 { grid-template-columns: 1fr 1fr; }
  .steps, .side-nav { position: static; }
  .nav a.plain { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  section.band { padding: 60px 0; }
}

/* profile assistant: a floating button (pandit ji) that opens a chat window */
.helper { position: fixed; right: 22px; bottom: 22px; z-index: 40; }
.pandit, .pandit svg { display: block; width: 100%; height: 100%; }
.helper-fab { display: block; margin-left: auto; width: 96px; height: 115px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 10px 12px rgba(78, 17, 39, .35)); transition: transform .15s; }
.helper-fab:hover { transform: scale(1.07); }
.helper-fab:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; border-radius: 18px; }
.helper-fab .pj-head { animation: pj-nod 5s ease-in-out infinite; transform-origin: 60px 80px; }
.pj-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: pj-blink 5s infinite; }
@keyframes pj-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
@keyframes pj-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) translateY(-1px); } }
.helper-panel { display: none; flex-direction: column; position: absolute; right: 0; bottom: 124px; width: 400px; height: min(620px, calc(100vh - 220px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(78, 17, 39, .30); overflow: hidden; }
.helper.open .helper-panel { display: flex; }
.helper-panel header { display: flex; gap: 12px; align-items: center; padding: 12px 10px 12px 14px; background: var(--maroon); color: #fff; }
.helper-panel header .pandit { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: var(--gold-light); }
.helper-panel header .hint { color: rgba(255, 255, 255, .82); }
.helper-close { margin-left: auto; border: 0; background: none; color: #fff; font-size: 18px; line-height: 1; padding: 10px; border-radius: 50%; cursor: pointer; }
.helper-close:hover { background: rgba(255, 255, 255, .15); }
.helper-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.consent { padding: 20px; overflow-y: auto; font-size: 15px; }
.consent ul { margin: 14px 0 6px; padding-left: 20px; } .consent li { margin-bottom: 8px; } .consent p { margin: 10px 0 0; }
.chatlog { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(#fff, var(--cream)); }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--maroon); border-color: var(--maroon); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble.bad { background: #fbe6e6; border-color: #f0c9c9; color: var(--bad); }
.bubble.thinking { color: var(--muted); font-style: italic; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.readybox:empty { display: none; }
.readybox { flex: none; max-height: 44%; overflow-y: auto; border-top: 2px solid var(--gold); background: #fffaf0; }
.ready { padding: 12px 16px; font-size: 14px; }
.ready h3 { font-size: 15px; margin-bottom: 6px; }
.ready .line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ready .line .btn { padding: 4px 9px; }
.composer { flex: none; display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea::placeholder { white-space: nowrap; }
.composer textarea { flex: 1; min-width: 0; resize: none; height: 44px; min-height: 44px; max-height: 120px; padding: 9px 13px; border-radius: 14px; font-size: 15px; }
.composer .btn { white-space: nowrap; height: 44px; }
.mic { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--maroon); background: #fff; font-size: 18px; cursor: pointer; }
.mic.live { background: var(--bad); border-color: var(--bad); animation: pulse 1.2s ease-in-out infinite; }
.mic:disabled { opacity: .5; cursor: default; }
.voice { flex: none; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0 14px 10px; background: #fff; }
.voice label { display: inline-flex; align-items: center; gap: 6px; }
.voice select { width: auto; font-size: 13px; padding: 3px 6px; border-width: 1px; border-radius: 8px; }
.voice input { width: auto; margin: 0; accent-color: var(--maroon); }
.chatfoot { flex: none; padding: 0 14px; background: #fff; margin: 0; } .chatfoot:not(:empty) { padding-bottom: 12px; }
.toast { z-index: 60; }
/* talking: pandit ji fills the window, the words are in speech bubbles */
.pj-mouth { display: none; transform-box: fill-box; transform-origin: 50% 20%; }
.pj-brows, .pj-pupils, .pj-smile { transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.helper.talking .helper-panel { width: 440px; height: min(720px, calc(100vh - 160px)); }
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; background: radial-gradient(circle at 50% 38%, #fff 0, var(--cream) 55%, var(--gold-light) 130%); position: relative; }
.stage .says { flex: none; align-self: stretch; margin: 14px 16px 0; max-height: 30%; overflow-y: auto; padding: 12px 16px; background: #fff; border: 1.5px solid var(--gold); border-radius: 20px; font-size: 16px; line-height: 1.45; box-shadow: var(--shadow); position: relative; }
.stage .says.bad { border-color: #f0c9c9; color: var(--bad); }
.stage .face { flex: 1 1 0; min-height: 120px; width: 100%; border: 0; background: none; padding: 6px 0 0; cursor: pointer; display: flex; justify-content: center; position: relative; }
.stage .face .pandit { width: auto; height: 100%; aspect-ratio: 120 / 144; filter: drop-shadow(0 14px 18px rgba(78, 17, 39, .28)); }
.stage .face::before { content: ""; position: absolute; left: 50%; top: 46%; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid transparent; }
.stage .heard { flex: none; align-self: flex-end; max-width: 82%; margin: 0 16px 4px; padding: 9px 14px; background: var(--maroon); color: #fff; border-radius: 18px 18px 6px 18px; font-size: 15px; overflow-wrap: anywhere; }
.stage .heard.hearing { opacity: .8; font-style: italic; }
.stage .state { flex: none; min-height: 22px; padding: 2px 16px 8px; font-size: 13px; font-weight: 700; color: var(--maroon); text-align: center; }
.stage .readybox { align-self: stretch; max-height: 38%; }
.stage .ready { padding: 8px 14px 10px; }
.stage .ready h3 { font-size: 13px; margin: 0 0 2px; }
.stage .ready .line { padding: 2px 0; border-top: 0; }
.stage .ready .line > div { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.stage .ready .line .hint::after { content: ":"; }
.stage .ready .line .btn { padding: 0 8px; border-color: transparent; }
.stage .ready .actions { margin-top: 6px; }
.stage .controls { flex: none; align-self: stretch; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 14px 12px; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--maroon); background: #fff; font: inherit; font-size: 17px; font-weight: 700; color: var(--maroon); cursor: pointer; padding: 0; }
.round:hover { background: rgba(122, 31, 61, .06); }
.stage .chatfoot { align-self: stretch; }
.stage .pj-head { transform-origin: 60px 84px; transition: transform .35s ease; animation: pj-nod 5s ease-in-out infinite; }
/* listening: head tilted, brows up, a ring that pulses */
.stage[data-mood=listening] .pj-head { animation: none; transform: rotate(-5deg); }
.stage[data-mood=listening] .pj-brows { transform: translateY(-2.5px); }
.stage[data-mood=listening] .face::before { border-color: var(--gold); animation: pj-ring 1.3s ease-out infinite; }
@keyframes pj-ring { 0% { transform: translate(-50%, -50%) scale(.82); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.22); opacity: 0; } }
/* thinking: eyes up and to the side */
.stage[data-mood=thinking] .pj-head { animation: none; transform: rotate(3deg); }
.stage[data-mood=thinking] .pj-pupils { transform: translate(2.2px, -2.6px); }
.stage[data-mood=thinking] .pj-brows { transform: translateY(-1.5px) rotate(-3deg); }
.stage[data-mood=thinking] .state { animation: pulse 1.2s ease-in-out infinite; }
/* speaking: the mouth moves */
.stage[data-mood=speaking] .pj-smile { display: none; }
.stage[data-mood=speaking] .pj-mouth { display: block; animation: pj-talk .34s ease-in-out infinite alternate; }
.stage[data-mood=speaking] .pj-head { animation: pj-speak 1.6s ease-in-out infinite; }
@keyframes pj-talk { 0% { transform: scaleY(.25); } 60% { transform: scaleY(1); } 100% { transform: scaleY(.6); } }
@keyframes pj-speak { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2deg) translateY(-1px); } 70% { transform: rotate(2deg); } }
/* happy: something was saved */
.stage[data-mood=happy] .pj-brows { transform: translateY(-3px); }
.stage[data-mood=happy] .pj-smile { transform: scale(1.25); }
.stage[data-mood=happy] .face .pandit { animation: pj-hop .5s ease-in-out 2; }
@keyframes pj-hop { 50% { transform: translateY(-10px); } }
@media (max-width: 640px) { .nav .wrap { gap: 8px; padding: 0 14px; } .logo { gap: 8px; } .logo img { width: 34px; height: 34px; } .logo .brand { font-size: 22px; } .nav .btn.small { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  .helper { right: 10px; bottom: 10px; } .helper-fab { width: 76px; height: 91px; }
  .helper.open .helper-panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; } .helper.open .helper-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .bubble.thinking, .mic.live, .pj-lid, .helper-fab .pj-head, .stage .pj-head, .stage .face::before, .stage .state, .stage .face .pandit { animation: none !important; } .helper-fab { transition: none; } }
.switcher { padding: 4px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.switcher select { margin-top: 4px; padding: 9px 12px; font-size: 14px; }

/* Consultant: the pop-up to choose one and enter their code, and the card that shows them afterwards. */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(35, 26, 30, .55); display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: 20px; width: min(860px, 100%); max-height: 88vh; overflow: auto; padding: 26px 28px; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.modal input[type=search] { width: 100%; margin-bottom: 14px; }
.consultants { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.consultant { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.consultant > span { display: flex; flex-direction: column; min-width: 0; }
.consultant:hover { border-color: var(--gold); }
.consultant.on { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122, 31, 61, .12); }
.consultant.static { cursor: default; display: inline-flex; }
.consultant.static:hover { border-color: var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 10px; }
.ticks li { padding: 5px 0 5px 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.ticks li.spent { color: var(--muted); }
@media (max-width: 640px) { .modal { padding: 20px 16px; } .modal-back { padding: 10px; } }

.ready .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.ready .chips .chip { font-size: 13px; padding: 5px 12px; }
.ready.quick .quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin: 6px 0; }
.ready.quick .field { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ready.quick select, .ready.quick input { padding: 7px 10px; font-size: 14px; }
.stage .ready.quick { max-height: 46%; overflow: auto; }
/* Answers pandit ji suggests for his question: tap one, or just say it. */
.chips.choices { justify-content: center; margin: 10px 12px 4px; }
.chips.choices .chip { border-color: var(--maroon); color: var(--maroon); font-weight: 600; }
.chips.choices .chip:hover { background: var(--maroon); color: #fff; }
.chatlog + div .chips.choices { justify-content: flex-start; margin: 6px 12px; }

/* A शादी सलाहकार's portfolio card: wide, the photo large beside their details. */
.consultants:has(.consultant.wide) { grid-template-columns: 1fr; }
.consultant.wide { display: block; padding: 0; overflow: hidden; }
.salahkar-card { display: flex; gap: 20px; align-items: stretch; min-height: 210px; }
.salahkar-card .photo { width: 180px; min-height: 210px; object-fit: cover; flex: none; background: var(--line); display: grid; place-items: center;
  font: 700 54px var(--display, inherit); color: var(--maroon); }
.salahkar-card .info { padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.salahkar-card .role { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .3px; }
.salahkar-card h3 { margin: 0; font-size: 22px; color: var(--maroon-dark, var(--maroon)); }
.salahkar-card .place { font-weight: 600; }
.salahkar-card .wins { font-weight: 700; color: var(--maroon); }
.salahkar-card p { margin: 2px 0; }
@media (max-width: 640px) {
  .salahkar-card { flex-direction: column; gap: 0; }
  .salahkar-card .photo { width: 100%; height: 42vh; min-height: 0; }
  .salahkar-card .info { padding: 14px 16px 16px; }
}

/* The salahkar's dashboard */
.dashboard .dash-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 22px; }
.dashboard .dash-head .salahkar-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: inherit; font-weight: 600; background: var(--surface); }
.tab.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.dash-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-filters input[type=search] { flex: 1 1 260px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dash-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.dash-card > img, .dash-card > .photo { width: 100%; height: 220px; object-fit: cover; background: var(--line); display: grid; place-items: center; font-size: 48px; color: var(--maroon); }
.dash-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.dash-card .actions { margin-top: 8px; gap: 6px; }
.match-tray { position: sticky; bottom: 12px; margin-top: 22px; border: 2px solid var(--gold); padding: 14px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.match-tray h3 { margin: 0 0 2px; }
.match-tray > .hint { margin: 0 0 8px; }
.match-tray .grid2 { gap: 10px; }
.match-tray .actions { margin-top: 10px; }
.match-tray .slot { padding: 6px 12px; border: 1.5px dashed var(--line); border-radius: 12px; }
.modal.wide { width: min(980px, 100%); }
.dash-detail .photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.dash-detail .photos img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
.dash-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.dash-detail dt { color: var(--muted); }
@media (max-width: 760px) { .dashboard .dash-head { grid-template-columns: 1fr; } }

/* One number, several accounts: which one to open */
.choose-list { display: grid; gap: 12px; max-width: 640px; }
.choose-card { display: flex; align-items: center; gap: 16px; text-align: left; font: inherit; color: inherit; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 18px; cursor: pointer; }
.choose-card:hover { border-color: var(--maroon); }
.choose-card img, .choose-card .photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line);
  display: grid; place-items: center; font-size: 26px; color: var(--maroon); }
.choose-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.add-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.add-photos img { width: 90px; height: 110px; object-fit: cover; border-radius: 10px; }
