:root {
  --ink: #12261d;
  --muted: #5a6f64;
  --forest: #0f3d2e;
  --forest-2: #0a2c21;
  --brass: #c4a035;
  --brass-2: #f0e2b0;
  --paper: #f2f7f4;
  --paper-2: #e4eee8;
  --card: #ffffff;
  --line: #d5e3da;
  --good: #1f8a5b;
  --bad: #a33b32;
  --leaf: #2aa56d;
  --shadow: 0 18px 50px rgba(15, 61, 46, 0.08);
  --serif: "Syne", "Segoe UI", sans-serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(42, 165, 109, 0.18), transparent 55%),
    radial-gradient(700px 380px at 0% 0%, rgba(196, 160, 53, 0.12), transparent 50%),
    linear-gradient(180deg, #eef6f1 0%, var(--paper) 40%, #eaf3ee 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
p { margin: 0 0 0.8em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--forest); color: white; padding: 0.5rem 0.8rem; z-index: 5;
}
.skip:focus { top: 0.5rem; }

.nav, .site-foot, .band, .page-intro, .auth-grid, .ladder, .trio, .faq, .steps, .panel-form {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0; position: sticky; top: 0; z-index: 4;
  background: rgba(242, 247, 244, 0.92); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-family: var(--serif); }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card); border-radius: 12px; min-height: 42px; padding: 0 0.9rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0 1.15rem; border-radius: 14px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-weight: 650;
}
.btn-small { min-height: 40px; padding: 0 0.9rem; }
.btn-brass { background: linear-gradient(180deg, #e8d078, #c4a035); color: #2a2108; }
.btn-forest { background: var(--forest); color: #f3faf6; }
.btn-line { background: transparent; border-color: var(--line); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(42, 165, 109, 0.45); outline-offset: 2px;
}

.hero {
  width: min(1120px, calc(100% - 2rem)); margin: 1.2rem auto 2.5rem;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 1.4rem; align-items: stretch;
  min-height: min(72vh, 640px);
}
.hero-copy { padding: 1rem 0 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--leaf); font-weight: 700; margin-bottom: 0.65rem; }
.hindi { background: rgba(42, 165, 109, 0.1); border-left: 3px solid var(--leaf); padding: 0.8rem 1rem; max-width: 40rem; border-radius: 0 14px 14px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; max-width: 32rem; margin: 1.2rem 0 0; }
.stat-row div { padding-top: 0.7rem; border-top: 1px solid var(--line); }
.stat-row dt { color: var(--muted); font-size: 0.82rem; }
.stat-row dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.hero-panel, .card, .callout, .panel-form, .ticket {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.hero-panel { padding: 1.3rem; align-self: center; }
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 1rem 0; }
.split span:nth-child(1) { background: #1f8a5b; }
.split span:nth-child(2) { background: #c4a035; }
.split span:nth-child(3) { background: #2f7d9b; }
.split span:nth-child(4) { background: #d5e3da; }
.split-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.split-key li { display: flex; align-items: center; gap: 0.5rem; }
.swatch { width: 0.8rem; height: 0.8rem; border-radius: 99px; display: inline-block; }
.swatch.ref { background: #1f8a5b; } .swatch.pull { background: #c4a035; } .swatch.up { background: #2f7d9b; } .swatch.pool { background: #d5e3da; }
.fine { color: var(--muted); font-size: 0.92rem; }
.narrow { max-width: 46rem; }

.band { padding: 1rem 0 3.2rem; }
.band-ink {
  width: 100%; max-width: none; background: linear-gradient(160deg, #0a2c21, #134d3a 55%, #0f3d2e); color: #f3faf6; padding: 3.2rem 0;
}
.band-ink .section-head, .band-ink .story, .band-ink .narrow { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.band-ink .narrow { color: #c9dbd2; }
.section-head { margin-bottom: 1.2rem; }
.center { text-align: center; margin-top: 1.2rem; }

.ladder, .trio { display: grid; gap: 0.9rem; }
.ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 1rem; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ticket, .trio article, .card { padding: 1.1rem; }
.ticket h3, .price { margin-bottom: 0.2rem; }
.price strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.tier-silver { box-shadow: inset 0 4px 0 #b7c0c8, var(--shadow); }
.tier-gold { box-shadow: inset 0 4px 0 #d4b15a, var(--shadow); }
.tier-platinum { box-shadow: inset 0 4px 0 #8ea4b8, var(--shadow); }
.tier-diamond { box-shadow: inset 0 4px 0 #6d8fbe, var(--shadow); }
.tier-emerald { box-shadow: inset 0 4px 0 #1f8a70, var(--shadow); }
.num { font-family: var(--serif); font-size: 1.7rem; color: var(--brass); margin: 0; }

.story { display: grid; justify-items: center; gap: 0; margin-bottom: 1.2rem; }
.node { width: min(420px, 100%); border-radius: 16px; padding: 0.9rem 1rem; background: #14543f; }
.node b, .node span { display: block; }
.node span { color: #c9d6d0; font-size: 0.92rem; }
.node.gold { background: #3c3118; }
.node.you { background: #f2f7f4; color: var(--ink); }
.node.you span { color: var(--muted); }
.rail { width: 1px; height: 22px; background: #6e5a30; }

.page-intro { padding: 2rem 0 1rem; }
.page-intro h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hindi-block { margin-top: 1.4rem; background: rgba(42, 165, 109, 0.1); border-radius: 18px; padding: 1.2rem 1.3rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.steps li, .callout { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step); font-family: var(--serif); font-size: 1.35rem; color: var(--brass);
}
.faq { display: grid; gap: 0.6rem; padding-bottom: 3rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); margin: 0.6rem 0 0.2rem; }

.auth-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 1.5rem; padding: 2rem 0 4rem; align-items: start; }
.panel-form { display: grid; gap: 0.75rem; padding: 1.1rem; margin-bottom: 1.2rem; }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0.75rem 0.8rem; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { min-height: 1.2em; color: var(--bad); }
.referral-preview {
  display: block; margin-top: 0.35rem; padding: 0.55rem 0.7rem; border-radius: 10px;
  font-size: 0.92rem; font-weight: 650;
}
.referral-preview.is-ok { background: #e7f6ee; color: #14543f; }
.referral-preview.is-bad { background: #f8e4e1; color: var(--bad); }
.pay-box { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.payout-qr { margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .pay-box { grid-template-columns: 1fr; }
}
.hp { position: absolute; left: -9999px; }
.site-foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem;
  border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted);
}
.site-foot a { display: block; text-decoration: none; margin: 0.25rem 0; }
.site-foot strong { color: var(--ink); display: block; margin-bottom: 0.4rem; }

.app-body { background: #eaf3ee; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, #0a2c21, #0f3d2e); color: #f3faf6; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.side .brand { color: white; margin-bottom: 1rem; }
.side button, .side a.side-link {
  text-align: left; background: transparent; border: 0; color: #d5ddd8; border-radius: 12px; padding: 0.7rem 0.75rem; cursor: pointer; text-decoration: none;
}
.side button[aria-current="page"], .side a[aria-current="page"] { background: rgba(42, 165, 109, 0.28); color: white; }
.side .grow { margin-top: auto; }
.main { padding: 1.2rem 1.2rem 3rem; }
.desk-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1rem; flex-wrap: wrap; }
.desk-top h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.balance-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.75rem 1rem; min-width: min(100%, 220px);
}
.balance-chip span { display: block; color: var(--muted); font-size: 0.8rem; }
.balance-chip .exact { font-size: 1.7rem; margin: 0; }
.balance-chip small, .exact small { font-size: 0.55em; color: var(--muted); font-family: var(--sans); font-weight: 650; }
.banner, .note { border-radius: 14px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.banner { background: #e7f6ee; color: #194a36; border: 1px solid #c6e6d5; }
.note { background: #f8e4e1; color: var(--bad); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; }
.metric span { display: block; color: var(--muted); font-size: 0.82rem; }
.metric strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.metric-sub { display: block; color: var(--muted); font-size: 0.82rem; font-style: normal; margin-top: 0.2rem; }
.wallet-hero {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
  background: linear-gradient(135deg, #0f3d2e, #1a5c44 60%, #2aa56d); color: #f3faf6;
  border-radius: 20px; padding: 1.2rem 1.3rem; margin-bottom: 1rem;
}
.wallet-hero .eyebrow { color: #b7e0cb; }
.wallet-hero .exact { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0.15rem 0; }
.wallet-hero .fine { color: #cfe6da; margin: 0; }
.wallet-status { text-align: right; }
.wallet-status .fine { margin-top: 0.35rem; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1rem; }
.plan-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; margin: 0.8rem 0 1rem; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem; min-height: 150px; display: flex; flex-direction: column; }
.plan-card.is-on { background: #e7f3ee; border-color: #b9dcc9; }
.plan-card .btn { margin-top: auto; }
.stack { display: grid; gap: 0.8rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
dialog {
  width: min(480px, calc(100% - 1.5rem)); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; background: var(--card);
}
dialog::backdrop { background: rgba(10, 44, 33, 0.5); }
.exact { font-family: var(--serif); font-size: 2.1rem; margin: 0.2rem 0; }
.qr { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line); }
.mono { font-variant-numeric: tabular-nums; word-break: break-all; }
.pill { display: inline-flex; border-radius: 999px; padding: 0.15rem 0.6rem; background: var(--paper-2); font-size: 0.8rem; text-transform: capitalize; }
.pill.sent, .pill.confirmed { background: #d9f0e4; color: #14543f; }
.pill.failed, .pill.rejected, .pill.expired { background: #f8e4e1; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.filters input, .filters select { max-width: 280px; }

@media (max-width: 980px) {
  .hero, .auth-grid, .ladder, .trio, .metrics, .plan-rail, .wallet-grid, .metrics-3 { grid-template-columns: 1fr 1fr; }
  .site-foot { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: sticky; top: 0; z-index: 3; flex-direction: row; overflow-x: auto; align-items: center;
    padding: 0.65rem 0.75rem; gap: 0.25rem;
  }
  .side .brand, .side .grow { display: none; }
  .side button, .side a.side-link { white-space: nowrap; font-size: 0.92rem; padding: 0.55rem 0.7rem; }
  .wallet-status { text-align: left; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 1rem; right: 1rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem;
    flex-direction: column; align-items: stretch; box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .hero, .auth-grid, .trio, .metrics, .ladder, .plan-rail, .stat-row, .wallet-grid, .metrics-3 { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
  .main { padding: 1rem 0.85rem 5rem; }
  .hero { min-height: auto; margin-top: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
