/* Preditech: the customer site. A night-sky theme: deep indigo, starlight, and gold. */
:root {
  color-scheme: dark;
  --night: #080b1c; --night-2: #0e1330; --night-3: #151b42;
  --glass: rgba(255,255,255,.045); --glass-2: rgba(255,255,255,.08); --line: rgba(255,255,255,.10); --line-2: rgba(233,194,123,.35);
  --ink: #f5f0e6; --ink-2: #d9d5e6; --muted: #a3a3c2; --faint: #7d7ea3;
  --gold: #e9c27b; --gold-2: #f7e0ad; --gold-3: #b98b3f; --violet: #8f7dff; --rose: #f2a7c7;
  --good: #8fdcae; --bad: #f4a38f; --mixed: #efd57f;
  --radius: 18px; --radius-sm: 12px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif Devanagari", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", sans-serif;
  --tabbar: 0px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.6 var(--sans);
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(143,125,255,.22), transparent 60%),
    radial-gradient(900px 560px at -10% 12%, rgba(233,194,123,.10), transparent 60%),
    radial-gradient(1200px 800px at 50% 120%, rgba(60,80,200,.18), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0a0e24 50%, var(--night) 100%);
  background-attachment: fixed;
}
/* Starlight: two layers of tiny stars; the second twinkles. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 140px 80px, #ffffffb0 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 260px 40px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 330px 160px, #ffffff90 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 210px, #ffffffa0 50%, transparent 51%), radial-gradient(1.3px 1.3px at 200px 260px, #f7e0ad 50%, transparent 51%),
    radial-gradient(1px 1px at 380px 300px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 100px 360px, #ffffff80 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 380px, #ffffffa0 50%, transparent 51%), radial-gradient(1.2px 1.2px at 240px 120px, #cfd6ff 50%, transparent 51%);
  background-size: 400px 400px; opacity: .55;
}
body::after {
  background-image:
    radial-gradient(1.6px 1.6px at 90px 120px, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 310px 60px, #f7e0ad 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 180px 330px, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 420px 240px, #cfd6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 520px 420px, #fff 50%, transparent 51%);
  background-size: 640px 560px; animation: twinkle 6s ease-in-out infinite alternate; opacity: .6;
}
@keyframes twinkle { from { opacity: .15; } to { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } .sky-wheel-turn { animation: none !important; } }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
img, svg { max-width: 100%; }
.wrap { position: relative; z-index: 1; }

/* ---- top bar and tab bar ---- */
.topbar { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(8,11,28,.62); border-bottom: 1px solid var(--line); }
.topbar .inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 19px/1 var(--serif); letter-spacing: .01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav a { color: var(--muted); padding: 8px 12px; border-radius: 99px; font-size: 15px; }
.topnav a:hover { color: var(--ink); background: var(--glass); }
.topnav a.on { color: var(--ink); background: var(--glass-2); }
.topnav a.me { border: 1px solid var(--line-2); color: var(--gold); margin-left: 6px; }
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: calc(64px + env(safe-area-inset-bottom)); }
  .topnav a:not(.me) { display: none; }
  .topnav a.me { padding: 6px 12px; font-size: 14px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(8,11,28,.82); border-top: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; color: var(--faint); font-size: 11px; padding: 4px 0; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--gold); }
}
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

main.page { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 24px 16px calc(56px + var(--tabbar)); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(30px, 5.5vw, 44px); line-height: 1.1; margin: 6px 0 10px; }
h2 { font-size: clamp(23px, 3.6vw, 30px); line-height: 1.2; margin: 44px 0 10px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.display { font-size: clamp(38px, 8.4vw, 68px); line-height: 1.02; margin: 10px 0 16px;
  background: linear-gradient(180deg, #fffaf0 10%, var(--gold-2) 60%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .7; }
.lede { color: var(--ink-2); font-size: clamp(16.5px, 2.2vw, 19px); max-width: 60ch; margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { color: var(--muted); font-size: 14px; }
.section-note { color: var(--muted); margin: 0 0 16px; max-width: 64ch; }

/* ---- buttons, chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 99px; font: 600 16px/1 var(--sans); cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn.primary { color: #1b1405; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  box-shadow: 0 8px 30px rgba(233,194,123,.25), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover { color: #1b1405; box-shadow: 0 10px 38px rgba(233,194,123,.38), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost { color: var(--ink); border-color: var(--line-2); background: rgba(233,194,123,.06); }
.btn.ghost:hover { background: rgba(233,194,123,.12); color: var(--ink); }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14.5px; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 99px; background: var(--glass);
  border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; cursor: pointer; font-family: var(--sans); text-align: left; line-height: 1.3; }
.chip:hover { border-color: var(--line-2); color: var(--ink); background: var(--glass-2); }
.chip .icon { color: var(--gold); }
.chip.on { border-color: var(--gold); color: var(--gold); }

/* ---- cards ---- */
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.card.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(247,224,173,.55), transparent 40%, transparent 60%, rgba(143,125,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- home ---- */
.hero { display: grid; gap: 28px; align-items: center; grid-template-columns: 1.1fr .9fr; padding: 28px 0 8px; }
.hero .copy { order: 1; }
.hero .visual { order: 2; position: relative; display: grid; place-items: center; }
.hero .visual::before { content: ""; position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(233,194,123,.12); box-shadow: 0 0 120px rgba(143,125,255,.25) inset; }
.hero .visual::after { content: ""; position: absolute; width: 128%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(233,194,123,.10); }
.sky-wheel { width: min(460px, 100%); height: auto; display: block; }
.sky-wheel-turn { transform-origin: 50% 50%; animation: turn 480s linear infinite; }
@keyframes turn { to { transform: rotate(-360deg); } }
.sw-glyph { fill: var(--gold-2); font: 17px/1 "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", var(--serif); }
.sw-label { font: 700 10.5px/1 var(--sans); }
.sky-caption { margin-top: 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.sky-caption b { color: var(--gold-2); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: var(--gold); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .hero .visual { order: 0; margin: 0 auto; width: min(340px, 86vw); }
}
.ask-strip { margin-top: 26px; }
.ask-strip .label { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { padding: 22px 20px; }
.step .num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  font: 600 17px/1 var(--serif); color: #1b1405; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 0 24px rgba(233,194,123,.35); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.feature { display: grid; grid-template-rows: auto 1fr; gap: 14px; color: inherit; transition: transform .2s, border-color .2s; overflow: hidden; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); color: inherit; }
.feature .art { height: 120px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 0%, rgba(143,125,255,.28), transparent 60%), radial-gradient(100% 100% at 100% 100%, rgba(233,194,123,.18), transparent 55%), #0c1130; }
.feature .art svg { height: 96px; width: auto; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .go { color: var(--gold); font-size: 14.5px; font-weight: 600; margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; }
.today { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 760px) { .today { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.books { display: flex; flex-wrap: wrap; gap: 10px; }
.book { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass); font: 500 15px/1.2 var(--serif); color: var(--ink-2); }
.book .icon { color: var(--gold); }
.privacy { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.privacy .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--gold);
  background: rgba(233,194,123,.1); border: 1px solid var(--line-2); }
.privacy .badge .icon { width: 26px; height: 26px; }
.cta-band { margin-top: 48px; text-align: center; padding: 36px 20px; }
.cta-band h2 { margin-top: 0; }

/* ---- forms ---- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span, .field > label, .legend { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 13px; color: var(--faint); }
input[type=text], input[type=date], input[type=time], input[type=password], textarea, select {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: rgba(5,8,22,.55); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 14px; min-height: 50px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,194,123,.18); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; }
::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.5) saturate(3) hue-rotate(5deg); }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.segmented { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(5,8,22,.55); border: 1px solid var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; padding: 8px 16px; border-radius: 99px; color: var(--muted); font-size: 14.5px; cursor: pointer; }
.segmented input:checked + span { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1405; font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); }
.person-card { display: grid; gap: 16px; }
.person-card h3 { display: flex; align-items: center; gap: 10px; }
.person-card h3 .icon { color: var(--gold); }
.combo { position: relative; }
.suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #121839; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.5); max-height: 320px; overflow: auto; }
.suggestions[hidden] { display: none; }
.suggestions li { padding: 11px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.suggestions li[aria-selected=true], .suggestions li:hover { background: rgba(233,194,123,.14); color: var(--ink); }
.error { color: var(--bad); background: rgba(244,163,143,.08); border: 1px solid rgba(244,163,143,.3); border-radius: 12px; padding: 10px 14px; margin: 0; }
.notice { background: rgba(143,125,255,.10); border: 1px solid rgba(143,125,255,.3); border-radius: 14px; padding: 12px 16px; margin: 14px 0; color: var(--ink-2); }
.saved { display: flex; gap: 12px; align-items: center; }
.toggle-partner { justify-self: start; }

/* ---- reading ---- */
.reading-head { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); align-items: start; }
@media (max-width: 860px) { .reading-head { grid-template-columns: 1fr; } }
.north-chart { width: 100%; height: auto; display: block; }
.nc-sign { fill: var(--faint); font: 500 12px/1 var(--sans); }
.nc-planets { font: 700 15px/1 var(--sans); }
.nc-retro { font-size: 9px; fill: var(--muted); }
.nc-asc { fill: var(--gold); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.glance { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 18px 0; }
.glance .card { padding: 14px 16px; }
.glance .label { color: var(--muted); font-size: 13px; }
.glance .value { font: 600 22px/1.2 var(--serif); margin-top: 3px; color: var(--gold-2); }
.glance .sub { color: var(--muted); font-size: 13.5px; }
.area { margin: 22px 0 8px; }
.area h3 { font-size: 20px; }
.statement { padding: 12px 14px 12px 16px; border-left: 3px solid var(--line); margin: 8px 0; background: var(--glass); border-radius: 0 12px 12px 0; }
.statement.favourable { border-left-color: var(--good); }
.statement.unfavourable { border-left-color: var(--bad); }
.statement.mixed { border-left-color: var(--mixed); }
.statement .text { font-weight: 600; color: var(--ink); }
.statement .why { color: var(--muted); font-size: 14px; margin-top: 3px; }
.statement .meta { color: var(--faint); font-size: 12.5px; margin-top: 5px; }
.tone { font-weight: 600; }
.tone.favourable { color: var(--good); } .tone.unfavourable { color: var(--bad); } .tone.mixed { color: var(--mixed); }
details summary { cursor: pointer; color: var(--gold); }
.more summary { margin: 8px 0 0 16px; font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.retro { color: var(--muted); font-size: 12px; }
.loading { display: grid; justify-items: center; gap: 14px; padding: 60px 0; color: var(--muted); text-align: center; }
.orbit { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; animation: turn 2.4s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.empty { text-align: center; padding: 30px 10px; }
.empty .art svg { width: 160px; height: auto; }

/* ---- ask ---- */
.ask-page { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - 110px - var(--tabbar)); min-height: calc(100dvh - 110px - var(--tabbar)); }
.who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.who .pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 99px; background: var(--glass);
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.who .pill .icon { color: var(--gold); }
.who a { font-size: 14px; }
.thread { display: grid; gap: 18px; padding: 10px 0 20px; align-content: start; }
.msg { max-width: 100%; }
.msg.user { justify-self: end; max-width: 86%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; color: #1b1405;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-weight: 500; white-space: pre-wrap; }
.msg.reader { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.msg.reader .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 30% 30%, #2a2f66, #0d1230); border: 1px solid var(--line-2); }
.msg.reader .avatar svg { width: 20px; height: 20px; }
.msg.reader .body { padding: 14px 18px; border-radius: 4px 18px 18px 18px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line); min-width: 0; }
.answer p { margin: 0 0 10px; }
.answer p:last-child { margin-bottom: 0; }
.answer ul { margin: 6px 0 12px; padding-left: 20px; }
.answer li { margin: 5px 0; }
.answer li::marker { color: var(--gold); }
.answer strong { color: var(--gold-2); font-weight: 600; }
.cite { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; margin: 0 1px; border-radius: 99px;
  background: rgba(233,194,123,.16); color: var(--gold-2); font: 600 11px/1 var(--sans); vertical-align: 2px; border: 1px solid rgba(233,194,123,.35); cursor: pointer; }
.focus-line { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.focus-line .icon { color: var(--gold); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.refs { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.refs summary { font-size: 14px; }
.refs ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.refs li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 14px; }
.refs .text { color: var(--ink-2); }
.refs .src { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.refs .quote { color: var(--muted); font-style: italic; font-size: 13px; margin-top: 2px; }
.refs li.flash { animation: flash 1.2s ease; border-radius: 8px; }
@keyframes flash { from { background: rgba(233,194,123,.2); } to { background: transparent; } }
.composer { position: sticky; bottom: calc(var(--tabbar) + 10px); z-index: 20; margin-top: 8px; }
.composer::before { content: ""; position: absolute; left: -16px; right: -16px; top: -18px; bottom: calc(-10px - var(--tabbar));
  background: linear-gradient(to top, var(--night) 55%, rgba(8,11,28,0)); z-index: -1; pointer-events: none; }
.composer form { display: flex; gap: 10px; align-items: flex-end; padding: 8px 8px 8px 16px; border-radius: 26px;
  background: rgba(14,19,48,.92); border: 1px solid var(--line-2); box-shadow: 0 16px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.composer textarea { border: 0; background: transparent; padding: 10px 0; min-height: 44px; max-height: 160px; resize: none; box-shadow: none; }
.composer textarea:focus { box-shadow: none; }
.composer button { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex: none; }
.composer .note { text-align: center; color: var(--faint); font-size: 12px; margin-top: 6px; }
.starter { text-align: center; padding: 18px 0 8px; }
.starter .art svg { width: 120px; height: auto; }
.starter h1 { margin-top: 6px; }
.starter .groups { display: grid; gap: 14px; text-align: left; margin-top: 18px; }
.starter .group-title { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---- match ---- */
.score { display: grid; justify-items: center; gap: 6px; }
.score svg { width: 200px; height: 200px; }
.score .total { font: 600 46px/1 var(--serif); fill: var(--gold-2); }
.score .of { font: 500 14px/1 var(--sans); fill: var(--muted); }
.verdict { font: 600 20px/1.3 var(--serif); color: var(--gold-2); text-align: center; }
.koota { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.koota:last-child { border-bottom: 0; }
.koota .name { font-weight: 600; }
.koota .pts { font-weight: 600; color: var(--gold-2); }
.koota .meaning, .koota .pair { color: var(--muted); font-size: 13.5px; grid-column: 1 / -1; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.bar.zero i { background: var(--bad); }

/* ---- outlook, prophecies ---- */
.prophecy { padding: 12px 14px 12px 16px; border-left: 3px solid var(--line-2); margin: 10px 0; background: var(--glass); border-radius: 0 12px 12px 0; }
.prophecy .words { font-style: italic; color: var(--muted); font-size: 14px; margin-top: 4px; font-family: var(--serif); }
.year { font: 600 18px/1.2 var(--serif); color: var(--gold-2); margin: 22px 0 6px; }

footer.site-footer { position: relative; z-index: 1; max-width: 1120px; margin: 30px auto 0; padding: 24px 16px calc(28px + var(--tabbar));
  border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
footer.site-footer a { color: var(--muted); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1; }
.login-shell .card { width: min(420px, 100%); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 10px rgba(255,255,255,.35); }
.today .facts dd { font-size: 15px; }

/* ---- sign in, packs, legal ---- */
.signin-card { display: grid; gap: 14px; padding: 28px 22px; }
.signin-logo { display: grid; place-items: center; } .signin-logo svg { width: 48px; height: 48px; }
.signin-buttons { display: grid; gap: 10px; }
.btn.provider { width: 100%; justify-content: center; gap: 12px; font-weight: 600; }
.btn.provider.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn.provider.google:hover { color: #1f1f1f; box-shadow: 0 6px 24px rgba(255,255,255,.15); }
.btn.provider.facebook { background: #1877f2; color: #fff; }
.btn.provider.facebook:hover { color: #fff; filter: brightness(1.08); }
.demo-login summary { font-size: 14px; text-align: center; }
.packs { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
@media (max-width: 620px) { .packs { grid-template-columns: 1fr; } }
.pack { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 24px 16px; }
.pack-note { position: absolute; top: -11px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #1b1405;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.pack-count { font: 600 44px/1 var(--serif); color: var(--gold-2); }
.pack-label { color: var(--muted); font-size: 14px; }
.pack-price { font-size: 20px; font-weight: 600; margin: 8px 0 12px; }
.pack .btn { width: 100%; }
.prose h2 { font-size: 22px; margin-top: 30px; }
.prose li { margin: 8px 0; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.gate { text-align: center; padding: 18px; }
.gate h3 { margin-bottom: 4px; }
@media (max-width: 760px) { .hide-narrow { display: none; } }
.composer .card { background: #10153a; box-shadow: 0 16px 50px rgba(0,0,0,.5); }
@media (max-width: 620px) {
  .pack { grid-template-columns: auto 1fr auto; column-gap: 16px; row-gap: 0; justify-items: start; align-items: center;
    text-align: left; padding: 16px 18px; }
  .pack-count { grid-row: 1 / span 2; font-size: 38px; min-width: 1.4em; text-align: center; }
  .pack-label { grid-column: 2; grid-row: 1; align-self: end; }
  .pack-price { grid-column: 2; grid-row: 2; margin: 0; align-self: start; font-size: 18px; }
  .pack .btn { grid-column: 3; grid-row: 1 / span 2; width: auto; min-width: 92px; }
  .pack-note { right: 14px; }
}

/* ---- "How we came to this conclusion": the astrology, one tap away ---- */
.how-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(233,194,123,.07); color: var(--gold-2); font: 600 14px/1 var(--sans); cursor: pointer; }
.how-toggle:hover { background: rgba(233,194,123,.14); }
.how-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease; }
.how-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.how-panel { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.how-looking { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
[data-how-scope]:not(.show-how) .how { display: none !important; }
.how-bar { display: flex; justify-content: center; margin: 26px 0 6px; }
.how-section { margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
