@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url('/fonts/Mukta-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Mukta'; font-weight: 500; font-display: swap; src: url('/fonts/Mukta-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url('/fonts/Mukta-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Tiro Devanagari Hindi'; font-weight: 400; font-display: swap; src: url('/fonts/TiroDevanagariHindi-Regular.woff2') format('woff2'); }
:root {
  --mist: #f6ecee;
  --paper: #fbf5f6;
  --ink: #1e2254;
  --ink-soft: #4b4e7a;
  --haze: #7d7a9c;
  --marigold: #e9a23b;
  --sindoor: #b3263e;
  --mehndi: #4f7a3a;
  --line: rgba(30, 34, 84, 0.14);
  --line-strong: rgba(30, 34, 84, 0.32);
  --display: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', Georgia, serif;
  --body: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.embed .top, body.embed .made { display: none; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 6px 12px; z-index: 10; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  max-width: 1160px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; color: var(--ink); }
.brand em { font-style: normal; font-weight: 400; color: var(--haze); margin-left: 4px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: var(--step--1); color: var(--ink-soft); }
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--mist); }

/* ---------- hero ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 5vw, 72px); padding: clamp(16px, 4vw, 48px) 0 clamp(24px, 4vw, 40px);
}
h1 {
  font: 400 var(--step-4)/1.04 var(--display); margin: 0 0 20px; letter-spacing: -0.01em; max-width: 13ch;
  text-wrap: balance;
}
:lang(hi) h1, body.hi h1 { line-height: 1.22; letter-spacing: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }
.modes { display: inline-flex; gap: 28px; border-bottom: 1px solid var(--line); }
.modes button {
  border: 0; background: none; padding: 10px 0; margin-bottom: -1px; cursor: pointer;
  font: 400 var(--step-1) var(--display); color: var(--haze); border-bottom: 2px solid transparent;
}
.modes button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--marigold); }

/* ---------- dial ---------- */
.sky { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 1; }
#dial { width: 100%; height: 100%; overflow: visible; }
.ring-out { fill: none; stroke: var(--line-strong); stroke-width: 0.8; }
.tick { stroke: var(--line-strong); stroke-width: 0.8; }
.nak-dot { fill: var(--haze); opacity: 0.5; transition: opacity .4s, fill .4s; }
.nak-dot.on { fill: var(--marigold); opacity: 1; r: 2.4; }
.sign-arc { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; transition: stroke .6s; }
.sign-arc.on { stroke: rgba(233, 162, 59, 0.45); }
.star { fill: var(--ink); opacity: 0.22; }
.score-track { fill: none; stroke: var(--line); stroke-width: 1; }
.score-arc { fill: none; stroke: var(--marigold); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1) .5s; }
.thread { fill: none; stroke: var(--marigold); stroke-width: 0.8; stroke-dasharray: 2 4; opacity: 0; transition: opacity .8s 1.2s; }
.matched .thread { opacity: 0.9; }
.moon { transform-box: view-box; transform-origin: 200px 200px; transition: transform 1.4s cubic-bezier(.4,.1,.2,1); opacity: 0; }
.matched .moon { opacity: 1; }
.moon-disc { stroke-width: 1.4; }
.moon-boy .moon-disc { fill: var(--mist); stroke: var(--ink); }
.moon-girl .moon-disc { fill: var(--marigold); stroke: var(--marigold); }
.moon-label { font: 500 11px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--mist); stroke-width: 4px; }
.rashi-label { font: 400 10px var(--display); fill: var(--haze); opacity: .75; }
/* one orchestrated moment: the ticks draw in on load */
.drawn .tick { animation: tick-in .9s both; animation-delay: calc(var(--i) * 28ms); }
@keyframes tick-in { from { opacity: 0; } to { opacity: 1; } }
/* idle centre: lotus + 36 gunas, gone once matched */
.idle { transition: opacity .6s; }
.matched .idle { opacity: 0; }
.petal { fill: rgba(233, 162, 59, 0.07); stroke: var(--marigold); stroke-width: 0.9; stroke-linejoin: round; }
.petal.p-out { stroke: var(--haze); fill: rgba(125, 122, 156, 0.05); }
.petal.p-top { fill: rgba(179, 38, 62, 0.06); stroke: #b3263e; stroke-opacity: .7; }
.lotus-base { fill: none; stroke: var(--haze); stroke-width: 0.8; stroke-linecap: round; opacity: .8; }
.lotus-bindu { fill: var(--marigold); }
.idle-num { font: 400 26px var(--display); fill: var(--ink); opacity: .85; }
.idle-cap { font: 500 8.5px var(--body); letter-spacing: .18em; fill: var(--haze); }
.drawn .lotus .petal { animation: petal-in 1.1s both; transform-origin: 0 0; }
.drawn .lotus .p-in { animation-delay: .2s; } .drawn .lotus .p-mid { animation-delay: .35s; } .drawn .lotus .p-out { animation-delay: .5s; }
@keyframes petal-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
.drawn .lotus-bindu { animation: bindu 3.6s ease-in-out infinite; }
@keyframes bindu { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .drawn .lotus .petal, .drawn .lotus-bindu { animation: none; } }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial-score { font: 400 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); }
.dial-label { font-size: var(--step--1); color: var(--haze); margin-top: 6px; }
.dial-band { justify-self: center; margin-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); }
.dial-band:empty { display: none; }
.dial-band[data-band="excellent"] { color: #b3263e; } .dial-band[data-band="good"] { color: #4f7a3a; } .dial-band[data-band="below"] { color: var(--haze); }

/* ---------- forms ---------- */
.panel { padding-top: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px); row-gap: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.person legend { display: flex; align-items: center; gap: 10px; font: 400 var(--step-2) var(--display); padding: 0; margin-bottom: 12px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-boy { border: 1.4px solid var(--ink); background: var(--mist); }
.dot-girl { background: var(--marigold); }
label { display: block; margin: 0 0 14px; }
label > span:first-child { display: block; font-size: var(--step--1); color: var(--haze); margin-bottom: 2px; }
input:not([type=checkbox]):not([type=radio]), select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent;
  padding: 8px 0 7px; font-size: var(--step-1); border-radius: 0; min-height: 44px;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus { outline: none; border-bottom: 2px solid var(--marigold); padding-bottom: 6px; }
input::placeholder { color: var(--haze); opacity: .7; }
input:disabled { opacity: .4; }
.row { display: flex; align-items: flex-end; gap: 16px; }
.grow { flex: 1; }
label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 14px; min-height: 44px; }
label.check > span:first-child, label.check > span { display: inline; margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.place { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(30,34,84,.12);
  max-height: 280px; overflow: auto;
}
.suggest li { padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.suggest li[aria-selected='true'], .suggest li:hover { background: var(--mist); }
.suggest small { color: var(--haze); }
.submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.form-error { color: var(--sindoor); margin: 0; min-height: 1.5em; font-size: var(--step--1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  cursor: pointer; text-decoration: none; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.btn.primary:hover { background: #2c3170; }
.btn.ghost { border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- result ---------- */
.result { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); outline: none; }
.verdict { max-width: 44em; margin-bottom: 36px; }
.verdict-band { font: 400 var(--step-3)/1.15 var(--display); margin: 0 0 8px; }
.verdict-note { color: var(--ink-soft); margin: 0; font-size: var(--step-1); }
.warnings { margin: 16px 0 0; padding: 0; list-style: none; }
.warnings li { color: #8a5a12; font-size: var(--step--1); padding-left: 18px; position: relative; margin-bottom: 6px; }
.warnings li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }

.systems { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.systems button { white-space: nowrap; }
.systems button { border: 0; background: none; padding: 10px 0; margin-bottom: -1px; cursor: pointer; color: var(--haze); border-bottom: 2px solid transparent; font-weight: 500; }
.systems button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }

.kootas, .poruthams { list-style: none; margin: 0; padding: 0; }
.kootas li {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 72px; gap: 8px 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.k-name { font: 400 var(--step-1) var(--display); }
.k-text { color: var(--ink-soft); font-size: var(--step--1); }
.k-text b { font-weight: 500; color: var(--ink); }
.k-score { font: 400 var(--step-1) var(--display); white-space: nowrap; text-align: right; }
.k-score small { color: var(--haze); font: 400 var(--step--1) var(--body); }
.k-bar { grid-column: 2 / 3; height: 2px; background: var(--line); position: relative; }
.k-bar i { position: absolute; inset: 0 auto 0 0; }
.lvl-hi { --lvl: var(--mehndi); } .lvl-mid { --lvl: #b07a1f; } .lvl-lo { --lvl: var(--sindoor); }
.kootas li .k-score { color: var(--lvl); }
.kootas li .k-bar i { background: var(--lvl); }
.poruthams li .p-dot, .poruthams li .p-res { color: var(--lvl); }
.dosha h3.lvl-hi, .dosha h3.lvl-mid, .dosha h3.lvl-lo { color: var(--lvl); }
.poruthams li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; align-self: center; }
.p-name { font: 400 var(--step-1) var(--display); }
.p-name small { display: block; font: 400 var(--step--1) var(--body); color: var(--ink-soft); }
.p-res { font-size: var(--step--1); font-weight: 500; }
.south-total { font: 400 var(--step-1) var(--display); margin: 20px 0 0; }

.doshas { margin-top: 48px; }
.doshas h2, .report h2 { font: 400 var(--step-2) var(--display); margin: 0 0 16px; }
.dosha { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 52em; }
.dosha h3 { font: 500 var(--step-0) var(--body); margin: 0 0 4px; }
.dosha p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.dosha ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: var(--step--1); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; align-items: center; }
.action-msg { flex-basis: 100%; margin: 4px 0 0; color: var(--mehndi); font-size: var(--step--1); min-height: 1.4em; }

.report {
  margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 32px;
  padding: clamp(24px, 4vw, 44px); background: var(--ink); color: var(--mist); border-radius: 28px 28px 28px 4px;
  position: relative; overflow: hidden;
}
.report::after { /* a quiet echo of the dial */
  content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%;
  border: 1px solid rgba(246, 236, 238, .14); box-shadow: 0 0 0 40px rgba(246,236,238,.03), 0 0 0 80px rgba(246,236,238,.02);
  pointer-events: none;
}
.report p { color: rgba(246, 236, 238, .78); margin: 0 0 16px; }
.report-list { margin: 0; padding: 0; list-style: none; }
.report-list li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid rgba(246,236,238,.12); }
.report-list li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }
.report-buy { align-self: end; position: relative; z-index: 1; }
.price { font: 400 var(--step-3) var(--display); color: var(--mist) !important; margin-bottom: 12px !important; }
.price small { font: 400 var(--step--1) var(--body); color: rgba(246,236,238,.7); }
.report .btn.primary { background: var(--marigold); border-color: var(--marigold); color: var(--ink); width: 100%; }
.report .btn.primary:hover { background: #f0b357; }
.fine { font-size: var(--step--1); color: var(--haze); }
.report .fine { margin: 10px 0 0; color: rgba(246,236,238,.6); }

/* ---------- muhurat ---------- */
.muhurat-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(110px, .6fr) auto; gap: 24px; align-items: end; max-width: 860px; }
.muhurat-form label { margin: 0; }
.couple-note { margin: 20px 0 0; color: var(--ink-soft); max-width: 44em; }
.months { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 8px; }
.months button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: var(--step--1); min-height: 36px; }
.months button[aria-pressed='true'] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.months button:disabled { opacity: .35; cursor: default; }
.muhurat-list h3 { font: 400 var(--step-2) var(--display); margin: 36px 0 4px; }
.mday { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.mday-num { font: 400 2.1rem/1 var(--display); }
.mday-num small { display: block; font: 400 var(--step--1)/1.4 var(--body); color: var(--haze); margin-top: 4px; }
.mwin { margin: 0 0 6px; }
.mwin strong { font-weight: 500; font-size: var(--step-1); }
.mwin span { color: var(--ink-soft); font-size: var(--step--1); display: block; }
.mday-rate { font-size: var(--step--1); font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mday-rate::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rate-excellent { color: var(--mehndi); } .rate-good { color: var(--ink); } .rate-average { color: var(--haze); }
.couple-tag { font-size: var(--step--1); }
.couple-tag.good { color: var(--mehndi); } .couple-tag.bad { color: var(--sindoor); }
.blocked { margin-top: 40px; color: var(--ink-soft); font-size: var(--step--1); }
.blocked h3 { font: 500 var(--step-0) var(--body); color: var(--ink); margin: 0 0 8px; }
.blocked ul { margin: 0; padding: 0; list-style: none; columns: 2 280px; }
.blocked li { padding: 3px 0; break-inside: avoid; }
.muhurat-rules { margin-top: 40px; font-size: var(--step--1); color: var(--haze); max-width: 52em; }
.loading { color: var(--haze); padding: 24px 0; }

/* ---------- dialogs ---------- */
dialog {
  border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(30,34,84,.28);
}
dialog::backdrop { background: rgba(30, 34, 84, .38); backdrop-filter: blur(2px); }
dialog form, dialog .paid { padding: clamp(22px, 5vw, 36px); }
dialog h2 { font: 400 var(--step-2)/1.2 var(--display); margin: 0 0 8px; }
.dialog-lede { color: var(--ink-soft); margin: 0 0 20px; }
fieldset.inline { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
fieldset.inline legend { font-size: var(--step--1); color: var(--haze); margin-bottom: 2px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
label.consent { align-items: flex-start; }
label.consent input { margin-top: 3px; }

/* ---------- footer ---------- */
.foot { max-width: 1160px; margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--haze); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0; }
.foot a { color: var(--ink-soft); }
.disclaimer, .made { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .sky { max-width: 300px; order: -1; }
  .pair { grid-template-columns: 1fr; }
  .person[data-who='girl'] { padding-top: 24px; border-top: 1px solid var(--line); }
  .report { grid-template-columns: 1fr; }
  .muhurat-form { grid-template-columns: 1fr 1fr; }
  .muhurat-form label.place { grid-column: 1 / -1; }
  .kootas li { grid-template-columns: minmax(0, 1fr) auto; }
  .k-text { grid-column: 1 / -1; grid-row: 2; }
  .k-bar { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .modes { gap: 20px; }
  .row { flex-wrap: wrap; gap: 0 16px; }
  .mday { grid-template-columns: 52px minmax(0, 1fr); }
  .mday-rate { grid-column: 2; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 46rem; padding-top: 24px; }
.legal h1 { font-size: var(--step-3); max-width: none; }
.legal h2 { font: 400 var(--step-1) var(--display); margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal .price-line strong { font: 400 var(--step-2) var(--display); color: var(--ink); }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.contact dt { color: var(--haze); }
.contact dd { margin: 0; }

/* after matching, the form folds into one line */
.pair-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 0 0; }
.pair-summary p { margin: 0; font: 400 var(--step-1) var(--display); }
.pair-summary .dot { margin-right: 6px; }
.result { margin-top: 28px; }

/* mobile: once a result is showing, the dial sits directly above it */
@media (max-width: 860px) {
  .sky { max-width: 260px; }
  body.has-result .hero h1, body.has-result .hero .lede { display: none; }
  body.has-result .sky { max-width: 320px; }
}
