/* Vinay Hari Astrology. One stylesheet for every page.
   Light is the primary look. Dark applies only when the visitor picks it (html[data-look="dark"]).
   Every colour is a token below, so both themes stay readable. */
:root {
  --paper: #ffffff; --paper-2: #faf6f2; --paper-3: #f3ebe4;
  --ink: #1a1012; --ink-2: #3b2c2d; --muted: #5d4c4b; --line: #e8dcd6; --line-2: #d8c8c1;
  --red: #8a1a20; --red-deep: #5c0e14; --red-ink: #8a1a20; --on-red: #ffffff; --red-soft: #f8eceb;
  --saffron: #e0661d; --saffron-ink: #ad4b0c; --saffron-soft: #fdeee3;
  --wash: #fdf2e9; --wash-2: #fbe9e6;
  --ok: #1d6f46; --ok-bg: #e4f3ea; --warn: #8a4a00; --warn-bg: #fdf0dc;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 22px 50px -30px rgba(60, 10, 14, .34);
  --shadow-sm: 0 8px 22px -14px rgba(60, 10, 14, .28);
  --radius: 18px;
  color-scheme: light;
}
:root[data-look="dark"] {
  --paper: #150d0e; --paper-2: #1e1415; --paper-3: #291b1d;
  --ink: #f8f1ee; --ink-2: #e6d8d4; --muted: #c8b5b2; --line: #3a2a2c; --line-2: #4e3a3c;
  --red: #e2604f; --red-deep: #2a0c0f; --red-ink: #ff9a8c; --on-red: #1a0507; --red-soft: #2c1517;
  --saffron: #ff9445; --saffron-ink: #ffad6e; --saffron-soft: #3a2414;
  --wash: #2a1712; --wash-2: #2a1418;
  --ok: #82d8aa; --ok-bg: #123021; --warn: #f4bf72; --warn-bg: #33240e;
  --shadow: 0 22px 50px -30px rgba(0, 0, 0, .75);
  --shadow-sm: 0 8px 22px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; font-weight: 500; line-height: 1.6; font-variation-settings: "opsz" 8; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--red-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2, .display { font-family: var(--display); font-weight: 620; letter-spacing: -.012em; font-optical-sizing: none; font-variation-settings: "opsz" 8; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h1 em, h2 em { font-style: italic; color: var(--red-ink); }
h3 { font-family: var(--body); font-size: 19px; font-weight: 650; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--saffron-ink); margin: 0 0 12px; }
.eyebrow b { color: var(--line-2); font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.note { font-size: 14.5px; color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }

/* preview strip + top bar */
.preview-bar { background: var(--paper-2); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12.5px; text-align: center; padding-block: 7px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.preview-bar::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); margin-right: 9px; vertical-align: 1px; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; color: var(--red); flex: none; }
.brand .wm { display: grid; line-height: 1; }
.brand .wm b { font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: .01em; font-variation-settings: "opsz" 8; }
.brand .wm small { font-size: 9.5px; font-weight: 700; letter-spacing: .3em; color: var(--saffron-ink); margin-top: 5px; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 11px; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red-ink); }
.nav a.lk::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); margin-right: 7px; vertical-align: 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; flex: none; transition: border-color .3s, color .3s; text-decoration: none; }
.icon-btn:hover { border-color: var(--red); color: var(--red-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-tg svg { grid-area: 1 / 1; transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.theme-tg .i-sun, :root[data-look="dark"] .theme-tg .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-look="dark"] .theme-tg .i-sun { opacity: 1; transform: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.acct-btn:hover { border-color: var(--red); }
.acct-btn i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); font-style: normal; font-size: 13px; font-weight: 700; }
@media (max-width: 1040px) { .nav a { padding: 8px 8px; font-size: 14.5px; } .nav a::after { left: 8px; right: 8px; } }
@media (max-width: 900px) { .nav { display: none; } .acct-btn span { display: none; } .acct-btn { padding: 0 6px; } }
:root.vt-theme::view-transition-old(root), :root.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.vt-theme::view-transition-new(root) { z-index: 2; }

/* buttons, chips, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 650 16px/1 var(--body); cursor: pointer; text-decoration: none; border: 1.5px solid transparent; position: relative; overflow: hidden; isolation: isolate; transition: transform .2s, border-color .25s, color .25s, background-color .25s; white-space: nowrap; }
.btn.red { background: var(--red); color: var(--on-red); }
.btn.red::before { content: ""; position: absolute; inset: 0; background: var(--saffron); transform: translateY(101%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.btn.red:hover::before { transform: translateY(0); }
.btn.line { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--red); color: var(--red-ink); }
.btn.ghost { background: transparent; color: var(--red-ink); padding: 0 6px; min-height: 40px; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }
.chip { border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 15px; font: 550 14.5px/1.2 var(--body); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .25s cubic-bezier(.2, .7, .2, 1); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }
.chip.ask { border-color: color-mix(in srgb, var(--saffron) 45%, var(--line)); background: var(--saffron-soft); color: var(--saffron-ink); }
.chip.ask::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--wash), var(--saffron) 60%); flex: none; }
.chip.ask:hover { border-color: var(--saffron); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font: 500 16.5px/1.2 var(--body); padding: 0 14px; transition: border-color .2s, box-shadow .2s; min-width: 0; }
textarea.input { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent); }
.input:disabled { opacity: .5; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.check { display: inline-flex; gap: 9px; align-items: center; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 3px; background: var(--paper); height: 52px; width: 100%; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 0 10px; font: 600 15px/1 var(--body); color: var(--muted); cursor: pointer; min-width: 0; }
.seg button[aria-pressed="true"] { background: var(--red); color: var(--on-red); }
.seg.small { height: 40px; width: auto; border-radius: 999px; }
.seg.small button { border-radius: 999px; padding: 0 14px; font-size: 13.5px; }
.combo { position: relative; }
.combo ul { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; max-height: 300px; overflow-y: auto; box-shadow: var(--shadow); }
.combo li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.combo li span { color: var(--muted); font-size: 14px; text-align: right; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--saffron-soft); }
.err { color: var(--red-ink); font-size: 14.5px; font-weight: 550; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px; min-width: 0; }
.panel.soft { background: var(--paper-2); border-color: transparent; }
.panel.wash { background: linear-gradient(135deg, var(--wash), var(--paper) 70%); border-color: var(--line); }

/* pages */
main { min-height: 60vh; }
.page { padding-block: 52px 96px; }
.page-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 34px; }
.page-head p.sub { color: var(--ink-2); font-size: 18px; }
.band { padding-block: 64px; }
.band.soft { background: var(--paper-2); }
.sec-head { display: grid; gap: 6px; margin-bottom: 26px; max-width: 60ch; }
.sec-head p { color: var(--ink-2); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 24px; }
.more { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 650; color: var(--red-ink); text-decoration: none; }
.more span { display: inline-block; transition: transform .3s; }
.more:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
}
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: .001; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* home hero: a warm wash sits behind the words so they read easily */
.hero-band { position: relative; background:
  radial-gradient(60% 80% at 12% 38%, var(--wash) 0%, transparent 72%),
  radial-gradient(42% 60% at 88% 46%, var(--wash-2) 0%, transparent 70%); }
.hero { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; padding-block: 56px 72px; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: 56px; } }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.1; }
.hero h1 .ln { display: block; overflow: hidden; padding: 0 .14em .12em 0; margin-bottom: -.12em; }
.hero h1 .ln > span { display: inline-block; }
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 46ch; margin-top: 20px; }
.ask-box { margin-top: 32px; }
.ask-q { font-weight: 650; font-size: 16px; margin-bottom: 12px; }
.ask-q span { font-weight: 450; color: var(--muted); }
.worry { display: flex; flex-wrap: wrap; gap: 8px; max-width: 590px; }
.worry button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 550 15px/1 var(--body); cursor: pointer; transition: border-color .25s, color .25s, background-color .25s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.worry button:hover { border-color: var(--red); color: var(--red-ink); background: var(--red-soft); transform: translateY(-2px); }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.proof { font-size: 14.5px; color: var(--muted); }
.sky { position: relative; width: min(500px, 100%); justify-self: center; margin: 0; }
.sky canvas { width: 100%; aspect-ratio: 1; display: block; max-width: 100%; }
.sky-cap { display: grid; gap: 6px; justify-items: center; text-align: center; margin: 14px auto 0; font-size: 14.5px; color: var(--ink-2); max-width: 38ch; }
.sky-cap .live { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.sky-cap .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.sky-cap .live .mono { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
@media (max-width: 520px) { .hero .eyebrow .opt { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .sky-cap .live i { animation: livePing 2.4s ease-out infinite; }
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > h1 { animation: none; }
  .hero h1 .ln > span { animation: lineUp 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 .ln + .ln > span { animation-delay: .1s; }
  .hero-copy > .lede { animation-delay: .22s; }
  .hero-copy > .ask-box { animation-delay: .32s; }
  .hero-copy > .ctas { animation-delay: .62s; }
  .worry button { animation: chipIn .55s .4s cubic-bezier(.2, .7, .2, 1) both; }
  .worry button:nth-child(2) { animation-delay: .44s; } .worry button:nth-child(3) { animation-delay: .48s; } .worry button:nth-child(4) { animation-delay: .52s; }
  .worry button:nth-child(5) { animation-delay: .56s; } .worry button:nth-child(6) { animation-delay: .6s; } .worry button:nth-child(7) { animation-delay: .64s; }
  .sky-cap { animation: rise .8s 1.2s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }
@keyframes chipIn { from { opacity: .001; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--saffron) 55%, transparent); } 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--saffron) 0%, transparent); } }

/* Lal Kitab feature band */
.lk-band { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--red-deep), color-mix(in srgb, var(--red) 70%, var(--red-deep))); color: #fbefe9; }
:root[data-look="dark"] .lk-band { background: linear-gradient(160deg, #2a0c0f, #3a1316); }
.lk-band .wrap { position: relative; padding-block: 72px; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .lk-band .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } }
.lk-band .eyebrow { color: #ffb27a; }
.lk-band h2 { color: #fff7f2; }
.lk-band h2 em { color: #ffb27a; }
.lk-band p.sub { color: #f8e9e3; font-size: 18px; margin-top: 14px; max-width: 46ch; }
.lk-band .btn.line { background: transparent; color: #fff7f2; border-color: rgba(255, 240, 232, .4); }
.lk-band .btn.line:hover { border-color: #ffb27a; color: #ffb27a; }
.lk-band .btn.red { background: #fff7f2; color: #5c0e14; }
.lk-band .btn.red::before { background: #ffb27a; }
.lk-points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lk-point { border: 1px solid rgba(255, 240, 232, .18); border-radius: var(--radius); padding: 22px; background: rgba(255, 255, 255, .04); }
.lk-point b { display: block; font-family: var(--display); font-size: 23px; line-height: 1.25; font-weight: 620; color: #fff7f2; font-variation-settings: "opsz" 8; }
.lk-point p { color: #f8e9e3; font-size: 15.5px; margin-top: 6px; }
.lk-point .num { font-family: var(--mono); font-size: 12px; color: #ffb27a; letter-spacing: .1em; }
.lk-art { position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; color: #ffb27a; opacity: .08; pointer-events: none; }

/* today band */
.today { display: grid; gap: 22px 36px; padding: 28px; background: var(--paper-2); border-radius: 22px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .today { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.today-day h2 { font-size: clamp(30px, 3.4vw, 42px); }
.today-day .eyebrow { margin-bottom: 6px; }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 0; }
.cells div { min-width: 0; border-top: 1px solid var(--line-2); padding-top: 10px; }
.cells dt { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cells dd { margin: 4px 0 0; font-family: var(--display); font-weight: 620; font-size: 21px; line-height: 1.2; font-variation-settings: "opsz" 8; }
.cells dd small { display: block; font-family: var(--body); font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.today-task { border-top: 2px solid var(--saffron); padding-top: 10px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.today-task .eyebrow { margin: 0; }

/* steps + promise */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-list li { display: grid; gap: 8px; align-content: start; min-width: 0; }
.step-list .n { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--red); color: var(--red-ink); font-family: var(--display); font-weight: 620; font-size: 21px; font-style: italic; transform: rotate(45deg); margin: 6px 0 12px 6px; }
.step-list .n i { display: block; transform: rotate(-45deg); line-height: 1; }
.step-list li p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.promise { position: relative; overflow: hidden; padding: 40px 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, var(--wash), var(--paper) 60%); }
.promise h2 { max-width: 24ch; }
.promise-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.promise-list li { color: var(--ink-2); font-size: 16px; padding-left: 22px; position: relative; min-width: 0; }
.promise-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; background: var(--saffron); transform: rotate(45deg); }
.promise-list b { color: var(--ink); font-weight: 650; }
.care { margin-top: 26px; padding: 14px 18px; border-radius: 14px; background: var(--saffron-soft); font-size: 15.5px; }
.care .mono { font-weight: 600; color: var(--red-ink); }

/* kundli form: one clean grid with real gaps, nothing touches */
.kform { display: grid; gap: 18px 20px; grid-template-columns: 1fr; padding: 26px; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); }
@media (min-width: 760px) { .kform { grid-template-columns: 1fr 1fr; } .kform .full { grid-column: 1 / -1; } }
.kform .time-row { display: grid; gap: 10px; }
.kform .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.topic-note { display: inline-block; justify-self: start; padding: 8px 16px; border-radius: 999px; background: var(--saffron-soft); font-size: 15px; }
.topic-note b { color: var(--red-ink); font-weight: 650; }

/* kundli result */
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; margin-top: 44px; }
.res-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.res-head .note { font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; background: var(--paper); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.stat small { display: block; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-family: var(--display); font-weight: 620; font-size: 27px; line-height: 1.15; margin-top: 6px; font-variation-settings: "opsz" 8; }
.stat span { font-size: 14px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 34px 0 26px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; position: relative; background: none; border: 0; padding: 12px 16px; font: 650 15.5px/1 var(--body); color: var(--muted); cursor: pointer; }
.tabs button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.chartwrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .chartwrap { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; } }
.chart-box { display: grid; gap: 10px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-cap { font-size: 13.5px; color: var(--muted); text-align: center; }
@keyframes draw { from { stroke-dashoffset: 1700; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .drawing .ln { stroke-dasharray: 1700; animation: draw 1.3s cubic-bezier(.4, .1, .2, 1) both; }
  .drawing .pl { animation: pop .5s both; }
}
.hints { display: grid; gap: 12px; }
.hint { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; background: var(--paper); }
.hint .k { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); }
.hint p { font-size: 16px; color: var(--ink); }
.hint .chip.ask { justify-self: start; }
.ask-card { margin-top: 28px; display: grid; gap: 14px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--saffron-soft), var(--paper) 75%); border: 1px solid color-mix(in srgb, var(--saffron) 30%, var(--line)); }
.ask-card h3 { font-family: var(--display); font-weight: 620; font-size: 26px; font-variation-settings: "opsz" 8; }
.ask-card p { color: var(--ink-2); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); margin-right: 4px; }
.tag.up { background: var(--ok-bg); color: var(--ok); }
.tag.lk { background: var(--saffron-soft); color: var(--saffron-ink); }
.timeline { display: flex; height: 54px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.timeline div { position: relative; border-right: 1px solid var(--line); background: var(--paper-2); color: var(--ink); font: 650 12.5px/54px var(--body); text-align: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.timeline div:last-child { border-right: 0; }
.timeline div.cur { background: var(--saffron-soft); color: var(--saffron-ink); }
.tl-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.adlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 18px; }
.ad { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.ad b { display: block; font-size: 16px; }
.ad.cur { border-color: var(--saffron); background: var(--saffron-soft); }
.flag { border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.flag.warn { background: var(--warn-bg); }
.flag.calm { background: var(--ok-bg); }

/* Lal Kitab page */
.lk-hero { background: radial-gradient(60% 90% at 15% 30%, var(--wash), transparent 70%); }
.lk-hero .wrap { padding-block: 56px 40px; display: grid; gap: 14px; max-width: 1180px; }
.lk-hero h1 { max-width: 16ch; }
.lk-hero .lede { font-size: 19px; color: var(--ink-2); max-width: 52ch; }
.idea-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.idea { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; background: var(--paper); }
.idea svg { width: 40px; height: 40px; color: var(--red); }
.idea h3 { font-family: var(--display); font-weight: 620; font-size: 24px; font-variation-settings: "opsz" 8; }
.idea p { color: var(--ink-2); font-size: 15.5px; }
.lk-result { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .lk-result { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; } }
.rin-list, .pakka-list { display: grid; gap: 10px; }
.rin { border-radius: 16px; padding: 16px 18px; background: var(--paper-2); display: grid; gap: 6px; }
.rin b { font-size: 17px; }
.rin p { font-size: 15.5px; color: var(--ink-2); }
.week { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.day { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; background: var(--paper); }
.day.today-d { border-color: var(--saffron); background: var(--saffron-soft); }
.day small { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.day b { font-family: var(--display); font-weight: 620; font-size: 21px; font-variation-settings: "opsz" 8; }
.day p { font-size: 15px; color: var(--ink-2); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* panchang */
.ctrl { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; max-width: 780px; }
@media (min-width: 760px) { .ctrl { grid-template-columns: 1.4fr 1fr auto; } }
.pan { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 980px) { .pan { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.vara { font-family: var(--display); font-weight: 620; font-size: clamp(46px, 6vw, 70px); line-height: 1; font-variation-settings: "opsz" 8; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); margin-top: 22px; }
.pcell { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pcell small { display: block; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcell b { font-size: 18px; font-weight: 650; }
.daybar { position: relative; height: 14px; border-radius: 999px; background: var(--paper-3); margin-top: 28px; }
.daybar .rk { position: absolute; top: 0; bottom: 0; background: var(--red); border-radius: 999px; }
.daybar .nw { position: absolute; top: -6px; width: 3px; height: 26px; background: var(--saffron); border-radius: 2px; }
.daylbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* tools */
.tool-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .tool-grid { grid-template-columns: 1fr; } }
.tool { display: grid; gap: 14px; align-content: start; }
.tool h3 { font-family: var(--display); font-weight: 620; font-size: 26px; font-variation-settings: "opsz" 8; }
.out { display: grid; gap: 10px; align-content: start; }
.out .big { font-family: var(--display); font-weight: 620; font-size: 30px; line-height: 1.15; font-variation-settings: "opsz" 8; }
.verdict { justify-self: start; display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.verdict.faith { background: var(--warn-bg); color: var(--warn); }
.big-num { font-family: var(--display); font-weight: 620; font-size: 80px; line-height: 1; color: var(--red-ink); }
.calc { font-family: var(--mono); font-size: 13px; background: var(--paper-2); border-radius: 12px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.dial { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 4px auto 0; border-radius: 50%; border: 1px solid var(--line); max-width: 100%; }
.dial::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed var(--line-2); }
.dial button { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-content: center; }
.dial button b { font-family: var(--mono); font-size: 13.5px; }
.dial button small { font-size: 10px; color: var(--muted); }
.dial button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.dial button[aria-pressed="true"] small { color: var(--on-red); }
.dial .home { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.blist { display: flex; flex-wrap: wrap; gap: 8px; }
.need-chart { display: grid; gap: 10px; justify-items: start; }

/* astrologers */
.filters { display: grid; gap: 12px; margin-bottom: 24px; }
.agrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.astro { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); transition: border-color .25s, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; min-width: 0; }
.astro:hover { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.astro .ph { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.astro .ph img { width: 100%; height: 100%; object-fit: cover; }
.astro .ph .badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.astro .ph .badges span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; border-radius: 999px; padding: 4px 10px; background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); }
.astro .ph .badges .lkb { background: var(--saffron); color: #fff; }
.astro .bd { display: grid; gap: 10px; padding: 18px 20px 20px; align-content: start; }
.astro .nm { font-family: var(--display); font-size: 24px; line-height: 1.15; font-weight: 620; font-variation-settings: "opsz" 8; }
.astro .tt { font-size: 14.5px; color: var(--saffron-ink); font-weight: 650; }
.astro .ab { font-size: 15px; color: var(--ink-2); }
.astro .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.astro .meta span { font-size: 12.5px; border-radius: 999px; padding: 3px 10px; background: var(--paper-2); color: var(--ink-2); }
.astro .price { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.astro .price b { font-family: var(--display); font-size: 27px; font-weight: 620; font-variation-settings: "opsz" 8; }
.astro .price small { display: block; color: var(--muted); font-size: 13px; }
.samp { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: s; border-top: 1px solid var(--line); }
.steps3 li { counter-increment: s; padding: 18px 20px 18px 0; color: var(--ink-2); }
.steps3 li::before { content: "0" counter(s); display: block; font-family: var(--display); font-weight: 620; font-size: 26px; color: var(--saffron-ink); margin-bottom: 4px; }
.steps3 b { color: var(--ink); }

/* store */
.shop { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.prod { display: grid; gap: 8px; align-content: start; }
.prod .art { aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(135deg, var(--wash), var(--paper-2)); display: grid; place-items: center; color: var(--red); max-width: 100%; }
.prod .art svg { width: 40%; height: auto; }
.prod .nm { font-weight: 650; font-size: 17px; }
.prod .is { font-size: 14.5px; color: var(--muted); }
.prod .not { font-size: 14px; border-left: 2px solid var(--saffron); padding-left: 10px; color: var(--ink-2); }
.prod .pr { font-family: var(--display); font-weight: 620; font-size: 24px; }

/* account dashboard */
.dash { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash .span2 { grid-column: span 2; } .dash .span3 { grid-column: 1 / -1; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card.warm { background: linear-gradient(135deg, var(--wash), var(--paper) 70%); }
.card h3 { font-family: var(--display); font-weight: 620; font-size: 24px; font-variation-settings: "opsz" 8; }
.card .k { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14.5px; }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--red)); border-radius: 999px; }
.list { display: grid; gap: 0; }
.list .it { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list .it:last-child { border-bottom: 0; }
.list .it b { font-weight: 650; }
.status { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.wait { background: var(--warn-bg); color: var(--warn); }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.demo-note { padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--ink); font-size: 14.5px; margin-bottom: 20px; }

/* dialogs (login, booking, pay) */
.dlg { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
.dlg::backdrop { background: rgba(20, 8, 10, .45); backdrop-filter: blur(3px); }
.dlg-in { background: var(--paper); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 14px; max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line); }
.dlg-in h3 { font-family: var(--display); font-weight: 620; font-size: 28px; font-variation-settings: "opsz" 8; }
.dlg-x { justify-self: end; margin: -10px -10px -24px 0; border: 0; background: none; color: var(--muted); font-size: 24px; width: 40px; height: 40px; cursor: pointer; border-radius: 50%; }
.dlg-x:hover { background: var(--paper-2); }
.dlg[open] .dlg-in { animation: pop .35s cubic-bezier(.2, .7, .2, 1) both; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slots .chip { justify-content: center; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.days .chip { flex: none; display: grid; gap: 2px; text-align: center; padding: 8px 14px; border-radius: 14px; }
.days .chip small { font-size: 11.5px; color: var(--muted); }
.sum { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); font-size: 15px; }
.sum .row { display: flex; justify-content: space-between; gap: 12px; }
.sum .row.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 700; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* Saathi: the assistant on every page */
.orb { position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); height: 56px; padding: 0 20px 0 7px; border-radius: 999px; border: 0; background: var(--red); color: var(--on-red); display: flex; align-items: center; gap: 10px; font: 650 15px/1 var(--body); cursor: pointer; box-shadow: var(--shadow); }
.orb i { position: relative; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd8ba, var(--saffron) 55%, #b23a0c); flex: none; }
.orb i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--saffron); opacity: 0; }
.orb em { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--paper); color: var(--red-ink); border-radius: 999px; padding: 3px 8px; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .orb i::after { animation: ring 2.6s ease-out infinite; } .orb.wiggle { animation: wiggle .9s cubic-bezier(.3, .7, .3, 1); } }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: translateY(-6px) rotate(-3deg); } 45% { transform: translateY(0) rotate(2deg); } 70% { transform: translateY(-2px); } }
.nudge { position: fixed; z-index: 41; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: min(350px, calc(100vw - 40px)); background: var(--paper); border: 1px solid var(--line); border-radius: 20px 20px 6px 20px; padding: 16px 16px 14px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.nudge .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-ink); }
.nudge .who i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd8ba, var(--saffron) 55%, #b23a0c); }
.nudge p { font-size: 15.5px; padding-right: 22px; }
.nudge .x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; }
.nudge .x:hover { background: var(--paper-2); }
@media (prefers-reduced-motion: no-preference) { .nudge:not([hidden]) { animation: pop .45s cubic-bezier(.2, .7, .2, 1) both; } }
.chat { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s; box-shadow: var(--shadow); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.chat.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.chat header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat header i { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd8ba, var(--saffron) 55%, #b23a0c); flex: none; }
.chat header .t { margin-right: auto; line-height: 1.25; min-width: 0; }
.chat header b { display: block; font-family: var(--display); font-size: 21px; font-weight: 620; font-variation-settings: "opsz" 8; }
.chat header small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat header button { border: 0; background: none; color: var(--muted); font-size: 24px; width: 40px; height: 40px; cursor: pointer; border-radius: 50%; flex: none; }
.chat header button:hover { background: var(--paper-2); }
.quota { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.quota b { color: var(--ink); }
.quota .dots { display: inline-flex; gap: 4px; }
.quota .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.quota .dots i.used { background: var(--line-2); }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 90%; padding: 12px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.bot { background: var(--paper-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--red); color: var(--on-red); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg .kyun { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.msg .src { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.msg.help { background: var(--warn-bg); }
.msg.wall { align-self: stretch; max-width: none; background: linear-gradient(135deg, var(--saffron-soft), var(--paper-2)); border: 1px solid color-mix(in srgb, var(--saffron) 35%, var(--line)); display: grid; gap: 10px; }
.msg.wall b.price { font-family: var(--display); font-size: 26px; font-weight: 620; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .typing i { animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; } }
@keyframes blink { 50% { opacity: .2; } }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.sugg .chip { font-size: 13.5px; padding: 7px 12px; }
.composer { display: flex; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid var(--line); }
.composer .input { height: 48px; }
.composer button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: var(--on-red); cursor: pointer; display: grid; place-items: center; }
.composer button svg { width: 20px; height: 20px; }
.chat .foot { font-size: 11.5px; color: var(--muted); padding: 0 16px 10px; }

/* footer + mobile tab bar */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 14.5px; color: var(--muted); background: var(--paper-2); }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-foot h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--red-ink); text-decoration: underline; }
.site-foot .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-decoration: none; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--red-ink); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .orb { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); padding: 0 7px; }
  .orb span { display: none; }
  .orb em { position: absolute; top: -6px; right: -6px; box-shadow: var(--shadow-sm); }
  .nudge { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  .page { padding-block: 36px 72px; }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 34px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
