/*
 * divanjee.com. The look borrows from the red-bound bahi-khata: ruled pages, a red margin line,
 * figures you can read from across the counter. Divanjee petrol and amber, one family of type
 * (Baloo, which has the same shapes in Latin, Devanagari and Kannada).
 */
:root {
  --night: #0a2c45;
  --petrol: #0f3d5e;
  --teal: #0b7a8f;
  --teal-dark: #08647a;
  --tint: #e3f2f5;
  --amber: #ffb000;
  --amber-dark: #8a5c00;
  --paper: #f3f6f8;
  --card: #ffffff;
  --ink: #13222f;
  --ink-2: #4a5b69;
  --line: #dce3e8;
  --rule: #cfe0ec;
  --khata: #a1291f;
  --khata-soft: rgba(214, 74, 62, 0.42);
  --green: #136a45;
  --green-on-dark: #9fe0bd;
  --red-on-dark: #ffb4a8;
  --font: "Baloo 2", system-ui, sans-serif;
}
/* Baloo, served from here: Latin always, Devanagari and Kannada only when a page uses them. */
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2-latin.woff") format("woff"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2-deva.woff") format("woff"); font-weight: 400 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Baloo Tamma 2"; src: url("/assets/fonts/balootamma2.woff") format("woff"); font-weight: 400 800; font-display: swap; unicode-range: U+0C80-0CFF, U+200C-200D, U+25CC, U+0964-0965; }
:lang(kn) { --font: "Baloo Tamma 2", "Baloo 2", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 19px; line-height: 1.5; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar and languages ---------- */
.top { background: var(--night); color: #fff; padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 48px; }
.logo img { height: 34px; width: auto; }
.login { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 12px; font-weight: 600; text-decoration: none; }
.langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 0 14px; }
.langs button { min-height: 52px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 18px; font-weight: 600; cursor: pointer; }
.langs button[lang="kn"] { font-family: "Baloo Tamma 2", var(--font); }
.langs button[aria-checked="true"] { background: #fff; color: var(--night); border-color: #fff; font-weight: 800; }

/* ---------- hero: a ruled khata page at night ---------- */
.hero {
  background-color: var(--night);
  background-image:
    linear-gradient(to right, transparent 8px, var(--khata-soft) 8px 9.5px, transparent 9.5px 13px, var(--khata-soft) 13px 14.5px, transparent 14.5px),
    repeating-linear-gradient(to bottom, transparent 0 43px, rgba(255, 255, 255, 0.055) 43px 44px);
  color: #fff;
  padding: 26px 0 40px;
}
.hero-grid { display: grid; gap: 26px; grid-template-areas: "text" "demo" "actions"; padding-left: 30px; }
.hero-text { grid-area: text; }
.demo { grid-area: demo; }
.hero-actions { grid-area: actions; }
.hero h1 { font-size: clamp(50px, 14.5vw, 96px); font-weight: 800; line-height: 0.98; letter-spacing: -0.01em; white-space: pre-line; }
:lang(hi) .hero h1, :lang(mr) .hero h1 { line-height: 1.12; }
:lang(kn) .hero h1 { line-height: 1.16; font-size: clamp(44px, 12.5vw, 88px); }
.lead { margin-top: 14px; font-size: 21px; line-height: 1.5; max-width: 34ch; }
.hero .lead { color: rgba(255, 255, 255, 0.88); }
.cta-block { margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 6px 16px; line-height: 1.2; text-align: center; border-radius: 14px; font-size: 19px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-go { width: 100%; min-height: 64px; background: var(--amber); color: var(--night); font-size: 23px; font-weight: 800; border: 0; box-shadow: 0 6px 0 #c98a00; }
.btn-go:active { transform: translateY(3px); box-shadow: 0 3px 0 #c98a00; }
.cta-sub { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, 0.78); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; font-size: 18px; }
.nowrap { white-space: nowrap; }

/* ---------- the demo ---------- */
.demo { align-self: start; }
.demo-head { display: flex; align-items: center; gap: 16px; }
.mic { position: relative; flex: none; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--amber); color: var(--night); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 8px rgba(255, 176, 0, 0.16); }
.mic .ic { width: 42px; height: 42px; stroke-width: 2.1; }
.mic .ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--amber); opacity: 0; }
.mic.listening .ring { animation: ring 0.9s ease-out infinite; }
.mic:disabled { cursor: default; }
@keyframes ring { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
.demo-hint { font-size: 19px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, 0.92); max-width: 15ch; }
.said { margin-top: 18px; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: rgba(255, 255, 255, 0.1); border: 1.5px solid rgba(255, 176, 0, 0.55); }
.said-who { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.said-text { font-size: 22px; font-weight: 700; }

/* The bill slip: a torn-off khata page with blue rules and the red margin. */
.slip {
  margin-top: 14px;
  padding: 14px 18px 18px 34px;
  border-radius: 6px;
  color: var(--ink);
  background-color: #fffdf6;
  background-image:
    linear-gradient(to right, transparent 18px, var(--khata) 18px 19.5px, transparent 19.5px 22px, var(--khata) 22px 23.5px, transparent 23.5px),
    repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px);
  background-position: 0 0, 0 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.8deg);
}
.slip.in { animation: slip 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes slip { from { transform: translateY(22px) rotate(-3deg); opacity: 0; } to { transform: rotate(-0.8deg); opacity: 1; } }
.slip-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.slip-top .who { font-size: 22px; font-weight: 800; }
.tag { padding: 2px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.tag-out { background: #f6e3e0; color: var(--khata); }
.tag-in { background: #e3eee7; color: var(--green); }
.slip-row { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; align-items: center; font-size: 18px; }
.slip-row b { font-size: 21px; font-variant-numeric: tabular-nums; }
.slip-total b { font-size: 28px; }
.slip-in b { color: var(--green); }
.slip-out b { color: var(--khata); }
.slip-save { margin-top: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font-size: 21px; font-weight: 800; cursor: pointer; }
.slip-done { display: flex; align-items: center; gap: 8px; min-height: 54px; margin-top: 8px; color: var(--green); font-weight: 700; }
.slip-big { display: flex; align-items: baseline; justify-content: space-between; min-height: 52px; }
.slip-big b { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slip-big span { font-size: 18px; color: var(--ink-2); }
.bars { width: 100%; height: 92px; margin-top: 8px; }
.bars rect { fill: #b6cfdc; }
.bars rect.today { fill: var(--teal); }
.again { margin-top: 18px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- sections ---------- */
.band { padding: 44px 0; }
.band-alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
h2 { font-size: clamp(30px, 8vw, 46px); font-weight: 800; line-height: 1.08; }
:lang(hi) h2, :lang(mr) h2, :lang(kn) h2 { line-height: 1.22; }
.say { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--teal); background: var(--card); color: var(--teal-dark); font-size: 17px; font-weight: 700; cursor: pointer; }
.say.on { background: var(--teal); color: #fff; }
.say-light { border-color: rgba(255, 255, 255, 0.45); background: transparent; color: #fff; }
.say-light.on { background: #fff; color: var(--night); }
.no-voice .say { display: none; }

.rows { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.rows li { display: flex; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.rows p { font-size: 17px; color: var(--ink-2); line-height: 1.45; }
.tile { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; }
.tile .ic { width: 30px; height: 30px; }
.t-teal { background: var(--tint); color: var(--teal-dark); }
.t-red { background: #f6e3e0; color: var(--khata); }
.t-green { background: #e3eee7; color: var(--green); }
.t-amber { background: #fff4d6; color: var(--amber-dark); }
.t-petrol { background: #e2e8ee; color: var(--petrol); }

.munim { background: var(--tint); padding: 44px 0; }
.munim-grid { display: grid; gap: 24px; }
.munim .lead { color: var(--ink-2); }
.brief { background: var(--night); color: #fff; border-radius: 20px; padding: 6px 0 8px; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 10px 20px; font-size: 20px; font-weight: 800; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.brief li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; font-size: 19px; line-height: 1.45; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brief li:last-child { border-bottom: 0; }
.dot { flex: none; width: 12px; height: 12px; margin-top: 0.5em; border-radius: 3px; }
.d-out { background: var(--red-on-dark); }
.d-warn { background: var(--amber); }

.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shops li { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.shops .ic { width: 28px; height: 28px; color: var(--teal); }
.note { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.jewel { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: 14px; background: #fff4d6; color: #5a3d00; font-size: 18px; font-weight: 600; }
.jewel .ic { width: 28px; height: 28px; margin-top: 2px; }

.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-size: 20px; line-height: 1.4; }
.trust .ic { width: 30px; height: 30px; color: var(--green); margin-top: 1px; }

.plans { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.plans li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.plans li:last-child { border-bottom: 0; }
.plans h3 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.plans h3 .ic { color: var(--amber-dark); width: 22px; height: 22px; }
.plans p { font-size: 17px; color: var(--ink-2); line-height: 1.4; }
.plan-voice { background: linear-gradient(to right, #fff8e6, transparent 70%); }
.plans .amt { text-align: right; flex: none; }
.plans .amt b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.plans .amt span { font-size: 15px; }

.end { background: var(--night); color: #fff; padding: 48px 0 56px; }
.end h2 { max-width: 18ch; margin-bottom: 24px; }
.end-help { margin-top: 26px; font-size: 19px; color: rgba(255, 255, 255, 0.85); }

.foot { background: #072033; color: rgba(255, 255, 255, 0.75); padding: 22px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 16px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot img { height: 26px; width: auto; opacity: 0.9; }

/* ---------- sticky start bar on phones ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 44, 69, 0.96); transform: translateY(110%); transition: transform 0.25s ease; }
.dock.show { transform: none; }
.dock .btn-go { min-height: 56px; font-size: 21px; box-shadow: none; }
.dock-call { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.dock-call .ic { width: 26px; height: 26px; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .top { position: relative; }
  .top-row { min-height: 76px; }
  .langs { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 520px; padding: 0; }
  .hero { padding: 64px 0 80px; background-image: linear-gradient(to right, transparent 40px, var(--khata-soft) 40px 41.5px, transparent 41.5px 46px, var(--khata-soft) 46px 47.5px, transparent 47.5px), repeating-linear-gradient(to bottom, transparent 0 47px, rgba(255, 255, 255, 0.055) 47px 48px); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; grid-template-areas: "text demo" "actions demo"; column-gap: 64px; row-gap: 30px; align-items: start; padding-left: 72px; }
  .hero-text { align-self: end; }
  .btn-go { width: auto; min-width: 320px; }
  .contact-row { display: flex; }
  .demo { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; padding: 28px; }
  .band, .munim { padding: 72px 0; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; }
  .rows li:nth-last-child(2) { border-bottom: 0; }
  .rows li:nth-child(odd) { border-right: 1px solid var(--line); }
  .munim-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .shops { grid-template-columns: repeat(3, 1fr); }
  .trust { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .dock { display: none; }
  .foot { padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mic.listening .ring, .slip.in { animation: none; }
  .dock { transition: none; }
}
