/* Public site — marketing, pricing, registration, member area.
 *
 * Loads after app.css and reuses its tokens, so the signed-out site and the console can never drift
 * apart. It is deliberately roomier: this side has to explain and persuade, the console has to pack in
 * data. Layout: a deep navy hero and closing band (the same in both themes — they are the brand), light
 * sections between them, one gold call to action per band.
 *
 * Nothing here claims what the product cannot back: no testimonials, no user counts, no logos — the
 * trust signals are what the app actually guarantees (local Aadhaar, never submits, encrypted drafts).
 */

.site { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 68px; padding: var(--sp-3) max(var(--sp-5), calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.site-header__brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: inherit; }
.site-header__name { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: -.005em; }
.site-header__name span { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--fg-subtle); font-weight: 500; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; flex-wrap: wrap; }
.site-nav a:not(.btn) {
  position: relative;
  color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 550;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r);
  transition: color .16s ease, background-color .16s ease;
}
.site-nav a:not(.btn):hover { color: var(--fg); background: var(--surface-2); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--fg); }
.site-nav .btn { margin-left: var(--sp-2); }
#site-theme { margin-left: var(--sp-1); }

.site-main { flex: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-5); }
.wrap--narrow { max-width: 560px; }

/* A small uppercase line above a heading — a kicker, in gold ink. */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--ink-fg);
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(214,174,91,.16), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(75,123,181,.28), transparent 60%),
    linear-gradient(160deg, var(--ink-bg-2) 0%, var(--ink-bg) 62%);
  padding: var(--sp-8) 0 calc(var(--sp-8) + 40px);
}
/* A faint ruled grid — ledger paper, not decoration for its own sake. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-7); align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; margin-bottom: var(--sp-5);
  border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  background: rgba(214,174,91,.12); color: #F1D58E;
  border: 1px solid rgba(214,174,91,.35);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  max-width: 15ch; margin: 0 0 var(--sp-5); color: #fff;
}
.hero h1 em { font-style: italic; color: #F1D58E; }
.hero__lede { font-size: clamp(15.5px, 1.5vw, 18px); color: var(--ink-muted); max-width: 54ch; margin: 0 0 var(--sp-6); line-height: 1.65; }
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-6) 0 0; padding: 0; list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-muted); }
.hero__trust .icon { width: 16px; height: 16px; color: #F1D58E; }

/* The product, drawn — a deed on the desk, with what the app did to it pinned beside. */
.hero__visual { position: relative; min-height: 420px; }
.mock {
  position: absolute; border-radius: var(--r-lg);
  background: #FFFFFF; color: #0B1B33;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
.mock--deed { left: 6%; right: 4%; top: 0; padding: 0 0 var(--sp-5); transform: rotate(-1.2deg); }
.mock__bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid #E8ECF3; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #F7F9FC;
}
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: #D5DBE6; }
.mock__bar em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: #5B6881; }
.mock__doc { padding: var(--sp-5) var(--sp-5) 0; }
.mock__seal { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-4); }
.mock__seal i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F1D58E, #B8892C); box-shadow: inset 0 0 0 3px rgba(255,255,255,.45); }
.mock__title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.mock__title small { display: block; font-family: 'Nirmala UI', var(--sans); font-size: 12.5px; font-weight: 500; color: #5B6881; margin-top: 2px; }
.mock__line { height: 8px; border-radius: 4px; background: #E9EDF4; margin-top: 9px; }
.mock__line--90 { width: 90%; } .mock__line--75 { width: 75%; } .mock__line--60 { width: 60%; } .mock__line--82 { width: 82%; }
.mock__rows { margin-top: var(--sp-5); display: grid; gap: 8px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; background: #F4F6FA; font-size: 12.5px; font-weight: 600; color: #26344D; }
.mock__row b { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: #047857; }
.mock__row .icon { width: 14px; height: 14px; }
.mock--chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; font-size: 13px; font-weight: 600;
}
.mock--chip .icon { width: 18px; height: 18px; }
.mock--chip i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.mock--fill { right: -2%; bottom: 58px; transform: rotate(1.5deg); }
.mock--fill i { background: #ECFDF5; color: #047857; }
.mock--aadhaar { left: -2%; bottom: 0; }
.mock--aadhaar i { background: #FBF5E4; color: #7A5A12; }
.mock--chip small { display: block; font-size: 11.5px; font-weight: 500; color: #5B6881; }

/* ---------------------------------------------------------------- assurances */
/* What the app guarantees, on one card that overlaps the hero's edge. */
.assurances {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-3);
}
.assurance { display: flex; gap: var(--sp-3); padding: var(--sp-5); }
.assurance + .assurance { border-left: 1px solid var(--border); }
.assurance__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.assurance h3 { font-size: 14px; font-weight: 650; margin-bottom: 2px; }
.assurance p { margin: 0; font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--sp-8) 0; }
.section--muted { background: var(--surface-2); border-block: 1px solid var(--border); }
.section__head { text-align: center; margin: 0 auto var(--sp-7); max-width: 720px; }
.section__head .kicker { margin-bottom: var(--sp-3); }
.section__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.015em; line-height: 1.15; }
.section__head p { color: var(--fg-muted); margin: var(--sp-3) auto 0; max-width: 60ch; font-size: 15.5px; }

/* How it works — three numbered steps joined by a rule. */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); counter-reset: how; position: relative; }
.how__step { position: relative; padding: var(--sp-6) var(--sp-5) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.how__step::before {
  counter-increment: how; content: counter(how, decimal-leading-zero);
  display: block; margin-bottom: var(--sp-3);
  font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--gold);
}
.how__step h3 { font-size: 16.5px; margin-bottom: var(--sp-2); }
.how__step p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.6; }

.features { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature {
  padding: var(--sp-5) var(--sp-5) var(--sp-6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-4);
  border-radius: 12px; color: #fff;
  background: linear-gradient(145deg, var(--primary-2), var(--primary));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 60%, transparent);
}
[data-theme="dark"] .feature__icon { background: linear-gradient(145deg, #2B568F, #16325C); }
.feature h3 { font-size: 16px; margin-bottom: var(--sp-2); }
.feature p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.6; }
.feature__tag { display: inline-block; margin-left: 6px; vertical-align: middle; }

/* Who it is for — three people, each with what they register with. */
.audiences { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.audience__head { display: flex; align-items: center; gap: var(--sp-3); }
.audience__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--info-bg); color: var(--secondary); flex: none; }
.audience h3 { font-size: 16px; }
.audience p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.6; flex: 1; }
.audience__needs { font-size: 12.5px; font-weight: 600; color: var(--gold-ink); }

/* Pricing teaser beside the value line. */
.value { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.value h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.015em; margin: var(--sp-3) 0 var(--sp-4); }
.value p { color: var(--fg-muted); font-size: 15.5px; margin: 0 0 var(--sp-5); }
.value__list { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.value__list li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.value__list .icon { color: var(--accent); margin-top: 2px; }
.value__list strong { display: block; font-size: 14.5px; }
.value__list span { font-size: 13.5px; color: var(--fg-muted); }

/* The closing band. */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--sp-7) var(--sp-6); border-radius: var(--r-xl); text-align: center; color: var(--ink-fg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(214,174,91,.18), transparent 60%),
    linear-gradient(150deg, var(--ink-bg-2), var(--ink-bg));
  box-shadow: var(--shadow-3);
}
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 36px); color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: var(--ink-muted); margin: 0 auto var(--sp-5); max-width: 52ch; font-size: 15.5px; }
.cta-band .hero__actions { justify-content: center; }

/* ------------------------------------------------------------- pricing */
.packs { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5) var(--sp-5); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
/* The featured pack carries a gold ring AND a worded label — never colour alone. */
.pack--featured {
  border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-2);
  background: linear-gradient(180deg, var(--gold-soft), var(--surface) 38%);
}
.pack__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #E6C675, #C99B3C); color: var(--on-gold);
  box-shadow: 0 4px 10px -4px rgba(185,137,44,.6);
}
.pack__name { font-size: 12.5px; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .12em; }
.pack__price { font-size: 38px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.pack__coins { font-size: 14.5px; font-weight: 600; }
.pack__bonus { color: var(--accent); font-weight: 700; }
/* What the discount takes off the list price — the struck figure is coins × today's coin rate. */
.pack__was { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); min-height: 22px; margin-top: -4px; font-size: 13px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.pack__was s { color: var(--fg-subtle); }
.pack__off { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; letter-spacing: .02em; color: var(--accent); background: var(--accent-bg); }
.pack__rate {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 600; color: var(--fg-muted); font-variant-numeric: tabular-nums;
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.pack--featured .pack__rate { background: var(--surface); border-color: var(--gold-line); color: var(--gold-ink); }
.pack__desc { font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; margin: 0; flex: 1; padding-top: var(--sp-3); border-top: 1px dashed var(--border); }
.pack .btn { margin-top: var(--sp-2); min-height: 44px; }

/* FAQ — native details/summary: keyboard and screen readers work with no script. */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none;
  font-weight: 650; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { margin: 0; padding: var(--sp-4) var(--sp-5) var(--sp-5); color: var(--fg-muted); font-size: 14.5px; line-height: 1.65; }

/* ------------------------------------------------------------ auth pages */
/* A brand panel beside the form: who this is for and what it promises, while they type. */
.auth-page { padding: var(--sp-7) var(--sp-5) var(--sp-8); }
.auth-page__inner {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  max-width: 1040px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden;
}
.auth-page__inner--wide { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); max-width: 1120px; }
.auth-aside {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-6); color: var(--ink-fg);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(214,174,91,.18), transparent 60%),
    linear-gradient(165deg, var(--ink-bg-2), var(--ink-bg));
}
.auth-aside::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
/* the panel content rides along while a long form (register) scrolls past it */
.auth-aside__stick { position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--sp-5); }
.auth-aside__brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--serif); font-size: 18px; font-weight: 600; color: #fff; }
.auth-aside h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; color: #fff; margin-top: var(--sp-5); }
.auth-aside h2 em { font-style: italic; color: #F1D58E; }
.auth-aside ul { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.auth-aside li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
.auth-aside li strong { display: block; color: #fff; font-weight: 600; }
.auth-aside li .icon { color: #F1D58E; margin-top: 2px; }
.auth-aside__foot { margin-top: var(--sp-3); font-size: 12px; color: var(--ink-muted); opacity: .85; }
.auth-page .auth-card { border: 0; border-radius: 0; box-shadow: none; padding: var(--sp-7) var(--sp-7) var(--sp-6); }

.auth-card {
  padding: var(--sp-6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-2);
}
.auth-card h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.01em; margin-bottom: var(--sp-2); }
.auth-card > p.lede, .auth-card p.lede { color: var(--fg-muted); font-size: 14.5px; margin: 0 0 var(--sp-5); }
.auth-card .btn--block { min-height: 46px; font-size: 15px; margin-top: var(--sp-2); }
.auth-alt { margin: var(--sp-4) 0 0; text-align: center; font-size: 13.5px; color: var(--fg-muted); }

/* "Who are you" — a real radio group, so keyboard and screen readers get it for free. */
.seg { display: grid; gap: var(--sp-2); grid-template-columns: repeat(3, 1fr); }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg label {
  display: grid; gap: 2px; padding: var(--sp-3); cursor: pointer; text-align: center;
  border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface);
  font-size: 13.5px; font-weight: 600; min-height: 60px; align-content: center;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.seg label:hover { background: var(--surface-2); }
.seg input:checked + label {
  border-color: var(--primary); background: var(--info-bg); color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
[data-theme="dark"] .seg input:checked + label { color: var(--fg); border-color: var(--secondary); box-shadow: 0 0 0 1px var(--secondary) inset; }
.seg input:focus-visible + label { outline: 2px solid var(--secondary); outline-offset: 2px; }
.seg small { display: block; font-weight: 500; color: var(--fg-subtle); font-size: 11.5px; }
.seg input:checked + label small { color: inherit; opacity: .8; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); gap: var(--sp-6);
  max-width: 1180px; margin: 0 auto; padding: var(--sp-7) var(--sp-5) var(--sp-5);
}
.site-footer__brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: var(--sp-3); }
.site-footer p { margin: 0; font-size: 13px; color: var(--fg-subtle); line-height: 1.65; max-width: 46ch; }
.site-footer h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--sp-3); }
.site-footer ul { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.site-footer ul a { color: var(--fg-muted); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: var(--fg); text-decoration: underline; }
.site-footer .site-footer__legal { max-width: 1180px; margin: 0 auto; padding: var(--sp-4) var(--sp-5) var(--sp-5); border-top: 1px solid var(--border); font-size: 12.5px; color: var(--fg-subtle); }

/* -------------------------------------------------------- member area */
.member-grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.download-meta { display: flex; gap: var(--sp-2); flex-wrap: wrap; font-size: 12.5px; color: var(--fg-subtle); margin-top: var(--sp-4); }
.download-meta span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.hash { font-family: var(--mono); font-size: 11px; word-break: break-all; color: var(--fg-subtle); }

/* The wallet: the number people come for, on the brand's dark card. */
.card--wallet {
  position: relative; overflow: hidden; isolation: isolate; border: 0; color: var(--ink-fg);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(214,174,91,.22), transparent 60%),
    linear-gradient(155deg, var(--ink-bg-2), var(--ink-bg));
  box-shadow: var(--shadow-2);
}
.card--wallet .card__head { border-bottom-color: rgba(255,255,255,.1); }
.card--wallet .card__head h2 { color: #fff; }
.card--wallet .alert--warn { background: rgba(251,191,36,.12); color: #FCD9A0; border-color: rgba(251,191,36,.3); }
.card--wallet .btn--ghost { color: var(--ink-muted); }
.card--wallet .btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.balance { text-align: center; padding: var(--sp-4) 0 var(--sp-5); }
.balance__coin { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto var(--sp-3); border-radius: 50%; color: var(--on-gold); background: radial-gradient(circle at 35% 30%, #F4DC9A, #C99B3C 70%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 10px 24px -8px rgba(201,155,60,.7); }
.balance__coin .icon { width: 26px; height: 26px; }
.balance__value { font-size: 56px; font-weight: 750; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card--wallet .balance__value { color: #fff; }
.balance__label { font-size: 13.5px; color: var(--fg-muted); margin-top: var(--sp-2); }
.card--wallet .balance__label { color: var(--ink-muted); }

.steps { display: grid; gap: var(--sp-3); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: var(--sp-3); font-size: 14px; line-height: 1.6; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-line);
  font-size: 12px; font-weight: 750;
}

.pay-box { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r); padding: var(--sp-4); }
.pay-box dd { font-family: var(--mono); font-size: 12.5px; }

.json-view {
  margin: 0; padding: var(--sp-4); max-height: 62vh; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55; white-space: pre;
}

/* Required-field marker. Colour alone never carries meaning, so the asterisk is the signal and the
   input also carries aria-required. */
.req { color: var(--danger); font-weight: 700; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; max-width: 560px; }
  .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assurance:nth-child(3) { border-left: 0; }
  .assurance:nth-child(n+3) { border-top: 1px solid var(--border); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value { grid-template-columns: 1fr; gap: var(--sp-5); }
}
@media (max-width: 900px) {
  .auth-page__inner, .auth-page__inner--wide { grid-template-columns: 1fr; }
  .auth-aside { padding: var(--sp-5); gap: var(--sp-3); }
  .auth-aside__stick { position: static; gap: var(--sp-3); }
  .auth-aside h2 { font-size: 22px; margin-top: var(--sp-2); }
  .auth-aside ul, .auth-aside__foot { display: none; }
  .auth-page .auth-card { padding: var(--sp-6) var(--sp-5); }
  .how, .audiences { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) { .member-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .site-header { padding: var(--sp-2) var(--sp-4); min-height: 60px; gap: var(--sp-2); }
  .site-header__name { white-space: nowrap; font-size: 16.5px; }
  .site-header__name span { display: none; }
  .site-nav { flex-wrap: nowrap; gap: 2px; }
  .site-nav a:not(.btn):not([href="#/signin"]) { display: none; }
  .site-nav a:not(.btn) { padding: var(--sp-2); }
  .site-nav .btn { min-height: 38px; padding: 0 var(--sp-3); font-size: 13.5px; margin-left: 2px; }
  #site-theme { margin-left: 0; }
  .hero { padding: var(--sp-7) 0 calc(var(--sp-7) + 40px); }
  .hero__visual { display: none; }
  .assurances, .features { grid-template-columns: 1fr; }
  .assurance + .assurance { border-left: 0; border-top: 1px solid var(--border); }
  .section { padding: var(--sp-7) 0; }
  .section__head { margin-bottom: var(--sp-6); }
  .seg { grid-template-columns: 1fr; }
  .wrap { padding: 0 var(--sp-4); }
  .auth-page { padding: var(--sp-4) var(--sp-3) var(--sp-7); }
  .cta-band { padding: var(--sp-6) var(--sp-4); }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOTION
   Every animation says something happened: content arriving as it scrolls
   into view, a card answering the pointer, a figure that just changed, a panel
   coming from (and leaving to) the side it lives on. Entrances decelerate
   (ease-out), exits are quicker than entrances, and only transform and opacity
   move — nothing reflows. Ambient motion (the hero's glow, the featured pack's
   edge) is slow and faint. ALL of it is off under prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes rise     { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade     { from { opacity: 0; } }
@keyframes sheen    { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes float-in { from { opacity: 0; transform: translateY(18px) rotate(var(--r0, 0deg)); } }
@keyframes bob      { to { transform: translateY(-7px) rotate(var(--r0, 0deg)); } }
@keyframes drift    { to { transform: translate(-70px, 50px) scale(1.12); } }
@keyframes text-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes slide-out { to { transform: translateX(36px); opacity: 0; } }
@keyframes fade-out  { to { opacity: 0; } }

/* ---- public site ---------------------------------------------------------- */

/* The header settles onto the page once content scrolls beneath it. */
.site-header { transition: box-shadow .25s ease, background-color .25s ease, min-height .25s ease; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 10px 26px -16px rgba(11,27,51,.35);
}

/* Hero: eyebrow, headline, copy and buttons arrive in reading order — 60ms apart. */
.hero .eyebrow      { animation: rise .4s var(--ease) both; }
.hero h1            { animation: rise .44s var(--ease) .06s both; }
.hero__lede         { animation: rise .44s var(--ease) .12s both; }
.hero__actions      { animation: rise .44s var(--ease) .18s both; }
.hero__trust        { animation: rise .44s var(--ease) .24s both; }
/* The deed and its notes land, then breathe very slightly — paper on a desk, not a slideshow. */
.mock--deed   { --r0: -1.2deg; animation: float-in .6s var(--ease) .15s both, bob 6s ease-in-out .9s infinite alternate; }
.mock--fill   { --r0: 1.5deg;  animation: float-in .6s var(--ease) .35s both, bob 5s ease-in-out 1.2s infinite alternate; }
.mock--aadhaar{ animation: float-in .6s var(--ease) .5s both, bob 5.5s ease-in-out 1.5s infinite alternate-reverse; }
/* A warm glow drifting across the band, far behind everything. */
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; right: -140px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,174,91,.20), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
/* The gold words in the headline catch the light now and then. */
.hero h1 em {
  background: linear-gradient(100deg, #F1D58E 30%, #FFF4D1 48%, #F1D58E 66%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-sheen 8s ease-in-out 1s infinite;
}

/* Scroll reveal (reveal() in app.js): hidden until it enters the view, then rises into place; siblings
   60ms apart. `backwards` fill only — once done, the card is back to its own styles, so hover works. */
.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: rise .56s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }

/* Lift on hover — transform and shadow only. */
.feature, .pack, .audience, .how__step, .value__list li { transition: transform .22s var(--ease), box-shadow .22s ease, border-color .16s ease; }
.feature:hover, .pack:hover, .audience:hover, .how__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.value__list li:hover { transform: translateX(3px); border-color: var(--gold-line); }
.feature__icon { transition: transform .3s var(--ease); }
.feature:hover .feature__icon { transform: scale(1.06) rotate(-3deg); }
.pack--featured:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--gold), var(--shadow-3); }

/* The featured pack's edge: a gold light travelling slowly round its border. */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.pack--featured::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 64%, rgba(244,220,154,.95) 76%, #C99B3C 83%, transparent 93%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}

/* FAQ answers open downwards rather than appearing. */
.faq details[open] p { animation: rise .26s var(--ease); }

/* Auth pages arrive as one card. */
.auth-page__inner, .auth-card { animation: rise .45s var(--ease) both; }
.auth-page .auth-card { animation: none; }

/* Route changes cross-fade so the page never snaps. */
.site-main > section, .site-main > .hero { animation: fade .28s ease-out both; }

/* Buttons that carry the main call catch a sweep of light on hover. */
.btn--primary, .btn--gold { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.26) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .55s var(--ease);
}
.btn--primary:hover:not(:disabled)::after, .btn--gold:hover:not(:disabled)::after { transform: translateX(120%); }
.btn .icon--arrow { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

/* Nav underline grows from the active item rather than appearing. */
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

/* ---- console --------------------------------------------------------------- */

/* A page's cards settle in one after another as it loads — capped, so a long page never crawls. */
.main > .stack > *, .main > .card { animation: rise .36s var(--ease) both; }
.main > .stack > :nth-child(2) { animation-delay: .05s; }
.main > .stack > :nth-child(3) { animation-delay: .10s; }
.main > .stack > :nth-child(4) { animation-delay: .15s; }
.main > .stack > :nth-child(n+5) { animation-delay: .20s; }
.main .packs .pack { animation: rise .42s var(--ease) both; }
.main .packs .pack:nth-child(2) { animation-delay: .05s; }
.main .packs .pack:nth-child(3) { animation-delay: .10s; }
.main .packs .pack:nth-child(n+4) { animation-delay: .15s; }
.kpi { transition: transform .18s ease, box-shadow .18s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* The balance is the number people look for; a brief highlight marks a change without moving anything. */
@keyframes balance-change {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.06); color: #F1D58E; }
  100% { transform: scale(1); }
}
.balance__value.changed { animation: balance-change .5s var(--ease); }
/* The wallet's coin catches the light every few seconds. */
.balance__coin { position: relative; overflow: hidden; }
.balance__coin::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  background-size: 250% 100%; animation: sheen 4.5s ease-in-out 1s infinite;
}

/* Skeletons shimmer rather than blink — a moving highlight reads as "loading", a pulse as "broken". */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: sheen 1.3s ease-in-out infinite;
}

/* The drawer leaves the way it came, a little faster than it arrived (closeDrawer() waits 170ms). */
.drawer.is-closing .drawer__panel { animation: slide-out .17s ease-in forwards; }
.drawer.is-closing .drawer__scrim { animation: fade-out .17s ease-in forwards; }

tbody tr { transition: background-color .14s ease; }
.badge, .pill { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }

/* On a phone the mark alone names the site in the header; the name stays for screen readers. */
@media (max-width: 440px) {
  .site-header__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero__lede, .hero__actions, .hero__trust, .mock, .hero::after, .hero h1 em,
  .reveal.is-in, .pack--featured::after, .faq details[open] p, .auth-page__inner, .auth-card,
  .site-main > section, .site-main > .hero, .main > .stack > *, .main > .card, .main .packs .pack,
  .balance__value.changed, .balance__coin::after, .skeleton, .coin-chip--changed,
  .page-head.is-new .page-head__title, .page-head.is-new .page-head__sub, .account__menu { animation: none !important; }
  .reveal:not(.is-in) { opacity: 1; }
  .feature:hover, .pack:hover, .kpi:hover, .audience:hover, .how__step:hover, .value__list li:hover,
  .feature:hover .feature__icon, .coin-chip:hover, .btn:active { transform: none; }
  .btn--primary::after, .btn--gold::after { display: none; }
  .site-nav a:not(.btn)::after, .tabs__ink { transition: none; }
}
