/* Dudh Bahi website.
   Idea: the app is a digital "bahi" (milk ledger book). Deep indigo bands (from the
   Play Store banner) frame the page; white "ledger paper" panels carry the content. */
:root {
  --milk: #f5faf6;
  --paper: #ffffff;
  --ink: #18201b;
  --ink-soft: #55615a;
  --rule: #dfe6f2;
  --margin-red: #c2362b;
  --orange: #ef7b22;
  --orange-dark: #c55f10;
  --green: #2e7d32;
  --green-soft: #eaf4ea;
  /* App theme: deep dairy green + mint + orange (names kept for the existing rules) */
  --indigo: #14563a;
  --indigo-deep: #0b3a26;
  --teal: #1f7a45;
  --mint: #e6f3ea;
  --on-dark: #f1faf3;
  --on-dark-soft: #b9d9c4;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 58, 38, .06), 0 18px 40px -22px rgba(11, 58, 38, .32);
  --display: "Baloo 2", "Baloo Paaji 2", system-ui, sans-serif;
  --gurmukhi: "Baloo Paaji 2", "Baloo 2", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: linear-gradient(180deg, #edf7f0 0, var(--milk) 40rem); color: var(--ink); font-family: var(--display); font-size: 1.08rem; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 253, 250, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(11, 58, 38, .1); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 10px -4px rgba(11,58,38,.45); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta, .site-nav .nav-cta[aria-current="page"] { color: #fff; background: var(--orange); padding: 7px 18px; border-radius: 999px; box-shadow: 0 3px 0 var(--orange-dark); }
.site-nav .nav-cta:hover { background: #f38a38; color: #fff; }

/* ---------- Buttons ---------- */
.btn-play, .button {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: #fff; text-decoration: none; border: 0;
  padding: 13px 24px 13px 18px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.12rem; line-height: 1.1;
  box-shadow: 0 5px 0 var(--orange-dark), 0 18px 30px -14px rgba(239, 123, 34, .8);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.button { padding: 11px 22px; color: #fff !important; }
.btn-play:hover, .button:hover { background: #f38a38; transform: translateY(2px); box-shadow: 0 3px 0 var(--orange-dark), 0 12px 24px -14px rgba(239, 123, 34, .8); color: #fff; }
.btn-play:active, .button:active { transform: translateY(5px); box-shadow: 0 0 0 var(--orange-dark); }
.btn-play small { display: block; font-weight: 600; font-size: .78rem; opacity: .92; }
.btn-play svg { width: 26px; height: 26px; flex: none; }

/* ---------- Dark bands (home hero, download hero, page headers) ---------- */
.band {
  position: relative; color: var(--on-dark); overflow: hidden;
  background:
    radial-gradient(900px 420px at 92% 120%, rgba(239, 123, 34, .26), transparent 62%),
    radial-gradient(760px 400px at 0% -10%, rgba(140, 220, 170, .20), transparent 60%),
    linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 48%, var(--teal) 100%);
}
.band::after { /* faint ledger rules across the band */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(255,255,255,.045) 39px 40px);
}
.band > * { position: relative; z-index: 1; }
.band h1 { color: #fff; }
.band .local { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--on-dark); line-height: 1.35; }
.band .local.pa { font-family: var(--gurmukhi); }
.band .lede { color: var(--on-dark-soft); }

/* ---------- Home hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0 96px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: .96; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 800; }
.hero .lede { max-width: 36ch; margin: 18px 0 30px; font-size: 1.18rem; }
.ios-note { margin: 16px 0 0; color: var(--on-dark-soft); font-size: .98rem; }
.ios-note strong { color: #fff; }

.ledger {
  position: relative;
  background:
    linear-gradient(90deg, transparent 54px, var(--margin-red) 54px, var(--margin-red) 56px, transparent 56px),
    repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px),
    var(--paper);
  color: var(--ink);
  border-radius: 6px 20px 20px 6px;
  border-left: 14px solid #0b3a26;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6);
  padding: 42px 24px 170px 74px;
  font-size: 1.04rem;
  transform: rotate(-1.4deg);
}
.ledger-title { position: absolute; top: 7px; left: 74px; right: 24px; display: flex; justify-content: space-between; font-weight: 800; color: var(--margin-red); }
.ledger-row { height: 40px; display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: end; padding-bottom: 6px; }
.ledger-row .who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-row .ltr { color: var(--ink-soft); }
.ledger-row .amt { font-weight: 800; color: var(--green); min-width: 64px; text-align: right; }
.ledger-row.total { border-top: 2px solid var(--ink); margin-top: 6px; }
.ledger-row.total .amt { color: var(--ink); }
.ledger .rider { position: absolute; right: 4%; bottom: -54px; width: 48%; max-width: 260px; transform: rotate(1.4deg); filter: drop-shadow(0 16px 16px rgba(0,0,0,.3)); }
@media (prefers-reduced-motion: no-preference) {
  .ledger .rider, .get-art .rider { animation: ride-in .9s cubic-bezier(.2,.8,.2,1) .25s both; }
  @keyframes ride-in { from { opacity: 0; translate: 70px 0; } to { opacity: 1; translate: 0 0; } }
}

/* Proof strip overlapping the bottom of the hero */
.proof { margin-top: -38px; position: relative; z-index: 2; }
.proof ul { list-style: none; margin: 0; padding: 18px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.proof li { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.2; }
.proof svg { width: 30px; height: 30px; flex: none; color: var(--indigo); }

/* ---------- Sections ---------- */
section.block { padding: 84px 0 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; margin: 0 0 10px; font-weight: 800; letter-spacing: -.015em; }
.sub { color: var(--ink-soft); max-width: 58ch; margin: 0 0 30px; font-size: 1.12rem; }
.panel { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 10px 32px; }

/* Feature list drawn as ledger rows */
.features { list-style: none; margin: 0; padding: 0; }
.features li { display: grid; grid-template-columns: 52px 220px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.features li:last-child { border-bottom: 0; }
.features .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff1e6; color: var(--orange-dark); }
.features .ic svg { width: 24px; height: 24px; }
.features b { font-size: 1.15rem; }
.features span { color: var(--ink-soft); }

/* Steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.steps b { display: block; font-size: 1.22rem; }
.steps span { color: var(--ink-soft); }

/* Screenshot */
.show .wrap { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.phone { border: 10px solid #0c2a1c; border-radius: 38px; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -34px rgba(11, 58, 38, .55); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.langs li { font-size: 1.4rem; font-weight: 700; padding: 8px 20px; border-radius: 999px; background: var(--paper); border: 1.5px solid #f2c9a6; }
.langs .pa { font-family: var(--gurmukhi); }

/* Prices */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price { border-radius: var(--radius-lg); padding: 30px; background: var(--paper); box-shadow: var(--shadow); }
.price.paid { color: var(--on-dark); background: linear-gradient(150deg, var(--indigo-deep), var(--indigo) 60%, var(--teal)); }
.price h3 { margin: 0; font-size: 1.3rem; }
.price .amount { font-size: 3rem; font-weight: 800; line-height: 1.05; margin: 8px 0 14px; }
.price .amount small { font-size: 1rem; font-weight: 600; opacity: .8; }
.price ul { margin: 0; padding: 0; list-style: none; }
.price li { padding: 7px 0; border-top: 1px solid var(--rule); }
.price.paid li { border-top-color: rgba(255,255,255,.16); }

/* FAQ */
.faq .panel { padding: 6px 32px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--orange-dark); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 8px 0 0; color: var(--ink-soft); max-width: 70ch; }

/* Final call to action */
.final-wrap { padding: 84px 0 0; }
.final { border-radius: var(--radius-lg); padding: 44px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.final h2 { margin: 0 0 6px; color: #fff; }
.final p { margin: 0; color: var(--on-dark-soft); }

/* ---------- Footer (dark) ---------- */
.site-footer { margin-top: 96px; padding: 56px 0 40px; background: var(--indigo-deep); color: var(--on-dark-soft); font-size: .98rem; }
.site-footer .brand { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 10px; color: #fff; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .about p { margin: 10px 0 0; max-width: 32ch; }
.site-footer .legal-line { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.site-footer .legal-line a { text-decoration: underline; }

/* ---------- Long-form pages ---------- */
.page-head .wrap-narrow, .doc { width: min(820px, calc(100% - 32px)); margin-inline: auto; }
.page-head .wrap-narrow { padding: 56px 0 104px; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.02; margin: 0 0 12px; font-weight: 800; }
.page-head .lede { font-size: 1.15rem; margin: 0 0 8px; max-width: 62ch; }
.page-head .updated { color: var(--on-dark-soft); font-size: .95rem; margin: 0; }
.page-head .updated strong { color: #fff; }
.doc { margin-top: -64px; position: relative; z-index: 2; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px 40px 24px; }
.doc .policy-section { padding: 26px 0; border-top: 1px solid var(--rule); }
.doc .policy-section:first-child { border-top: 0; }
.doc .policy-section h2 { font-size: 1.45rem; margin: 0 0 8px; }
.doc .policy-section h3 { font-size: 1.12rem; margin: 18px 0 4px; }
.doc .policy-section p, .doc .policy-section li { color: #2f3a33; }
.doc .policy-section ul, .doc .policy-section ol { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a:not(.button):not(.action) { color: var(--indigo); text-underline-offset: 3px; }
.notice { margin: 18px 0; padding: 14px 16px 14px 18px; border-left: 4px solid var(--margin-red); background: #fff6f4; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px 0; }
.action { display: block; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.action strong { display: block; font-size: 1.15rem; }
.action span { color: var(--ink-soft); }
.action:hover { border-color: var(--indigo); box-shadow: var(--shadow); }
.card { margin: 22px 0; padding: 26px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.card h2 { font-size: 1.5rem; }
.checkout-button { font-size: 1.15rem; padding: 13px 28px; }
.checkout-button:disabled { cursor: wait; opacity: .65; }
.payment-status { min-height: 1.7em; margin: 16px 0 0; color: var(--ink-soft); font-weight: 700; }
.payment-status.success { color: var(--green); }
.payment-status.error { color: var(--margin-red); }
.doc-simple { text-align: center; padding: 36px 40px; }

/* ---------- Download page ---------- */
.get .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; min-height: min(78vh, 680px); padding: 56px 0 88px; }
.get h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: .95; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; }
.get .lede { max-width: 38ch; margin: 18px 0 28px; font-size: 1.15rem; }
.get-stores { display: grid; gap: 14px; max-width: 420px; }
.store { display: flex; align-items: center; gap: 14px; text-align: left; border: 2px solid rgba(255,255,255,.5); border-radius: 18px; padding: 14px 18px; text-decoration: none; color: #fff; }
.store svg { width: 34px; height: 34px; flex: none; }
.store b { display: block; font-size: 1.15rem; line-height: 1.2; }
.store span { font-size: .95rem; opacity: .85; }
.store.android { background: var(--orange); border-color: var(--orange); box-shadow: 0 6px 0 var(--orange-dark), 0 20px 34px -16px rgba(239,123,34,.9); transition: transform .12s ease, box-shadow .12s ease; }
.store.android:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-dark); }
.store.ios { border-style: dashed; background: rgba(255,255,255,.06); }
.status { min-height: 1.5em; margin: 18px 0 0; font-weight: 700; color: #b9f3c4; }
.get-art { position: relative; justify-self: center; width: min(520px, 100%); }
.get-art .phone { width: 58%; margin-left: auto; transform: rotate(4deg); }
.get-art .rider { position: absolute; left: -6%; bottom: -6%; width: 62%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.35)); }
.get-points ul { list-style: none; margin: -48px 0 0; padding: 26px 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; z-index: 2; }
.get-points b { display: block; font-size: 1.2rem; }
.get-points span { color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .site-nav .hide-sm { display: none; }
  .hero .wrap, .show .wrap, .get .wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 64px; padding: 40px 0 104px; }
  .ledger { margin-right: 8px; }
  .proof ul { grid-template-columns: 1fr 1fr; }
  .show .wrap { gap: 36px; }
  .show .phone { max-width: 260px; margin: 0 auto; }
  .steps, .prices { grid-template-columns: 1fr; }
  .panel, .faq .panel { padding: 6px 20px; }
  .features li { grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; }
  .features li > span:not(.ic), .features li > b { grid-column: 2; }
  .features li > .ic { grid-column: 1; grid-row: 1 / span 2; }
  .final { grid-template-columns: 1fr; padding: 32px 24px; }
  section.block, .final-wrap { padding-top: 64px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
  .actions { grid-template-columns: 1fr; }
  .doc { padding: 6px 20px 18px; }
  .get .wrap { min-height: 0; padding: 40px 0 88px; gap: 40px; }
  .get-art { width: min(360px, 100%); }
  .get-points ul { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
}
@media (max-width: 420px) {
  .ledger { padding: 42px 14px 150px 64px; font-size: .96rem; background:
    linear-gradient(90deg, transparent 48px, var(--margin-red) 48px, var(--margin-red) 50px, transparent 50px),
    repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px), var(--paper); }
  .ledger-title { left: 64px; right: 14px; }
  .ledger-row { gap: 10px; }
  .proof ul { grid-template-columns: 1fr; padding: 16px 20px; }
}

/* ---------- App screens showcase ---------- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.screens figure { margin: 0; }
.screens .phone { border-width: 8px; border-radius: 32px; aspect-ratio: 540 / 760; }
.screens .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screens figure:nth-child(2) { margin-top: 36px; }
.screens figcaption { margin-top: 16px; }
.screens figcaption b { display: block; font-size: 1.15rem; }
.screens figcaption span { color: var(--ink-soft); }
@media (max-width: 860px) {
  .screens { grid-template-columns: 1fr; gap: 36px; }
  .screens figure { max-width: 300px; margin: 0 auto; }
  .screens figure:nth-child(2) { margin-top: 0; }
}

/* ===== Light theme (no dark bands): mint + white like the app, green and orange accents ===== */
:root { --on-dark: #18201b; --on-dark-soft: #4f5d55; --app-green: #3a9241; }
.band {
  color: var(--ink);
  background:
    radial-gradient(800px 380px at 95% 110%, rgba(239, 123, 34, .14), transparent 62%),
    radial-gradient(700px 380px at 0% -10%, rgba(58, 146, 65, .14), transparent 60%),
    linear-gradient(180deg, #e4f2e8 0%, #f2f9f4 100%);
  border-bottom: 1px solid #d5e8db;
}
.band::after { background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(23, 107, 67, .06) 39px 40px); }
.band h1, .final h2 { color: var(--ink); }
.band .local { color: #2b5e3c; }
.band .lede, .final p, .ios-note { color: var(--ink-soft); }
.ios-note strong, .page-head .updated strong { color: var(--ink); }
.page-head .updated { color: var(--ink-soft); }
.ledger { border-left-color: var(--app-green); box-shadow: 0 30px 60px -30px rgba(23, 80, 45, .45); }
.proof ul { border: 1px solid #d5e8db; }
.proof svg { color: var(--app-green); }

/* Prices: paid plan highlighted with the app green, still light */
.price { border: 1px solid #d5e8db; }
.price.paid { color: var(--ink); background: #fff; border: 2px solid var(--app-green); box-shadow: 0 24px 50px -28px rgba(58, 146, 65, .55); }
.price.paid h3 { color: var(--app-green); }
.price.paid li { border-top-color: var(--rule); }

/* Final call to action: light band */
.final { border: 1px solid #d5e8db; }

/* Download page store buttons on a light band */
.store { color: var(--ink); border-color: #bcd9c5; }
.store.android { color: #fff; }
.store.ios { background: #fff; color: var(--ink-soft); border-color: #a9c9b4; }
.status { color: var(--app-green); }
.get-art .phone, .phone { border-color: #1f2a23; }

/* Footer: light */
.site-footer { background: #e9f4ec; color: var(--ink-soft); border-top: 1px solid #d5e8db; }
.site-footer .brand, .site-footer h2 { color: var(--ink); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal-line { border-top-color: #d5e8db; }
body { background: var(--milk); }

/* No button shadows: flat buttons, slight colour change on hover/press */
.btn-play, .button, .store.android, .site-nav .nav-cta { box-shadow: none !important; }
.btn-play:hover, .button:hover, .store.android:hover { transform: none; background: #f38a38; }
.btn-play:active, .button:active, .store.android:active { transform: none; background: var(--orange-dark); }
