/* SahiBill website. Colours are the app's own (app/src/main/java/.../ui/theme): brand blue, money-in green, the home
   card's navy, on the app's warm surface. */
:root {
  --brand: #005CE9;
  --brand-strong: #0047B8;
  --brand-soft: #DCE6FF;
  --brand-faint: #EEF3FF;
  --navy: #093A94;
  --navy-deep: #06286A;
  --green: #00775C;
  --green-soft: #D5F5E9;
  --amber: #F4A100;
  --amber-soft: #FFF1D6;
  --ink: #151A2D;
  --muted: #5A5F72;
  --line: #E7E1D5;
  --surface: #FAF7F2;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(21, 26, 45, .06), 0 8px 24px -12px rgba(21, 26, 45, .18);
  --font: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--surface); text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 700; }
:lang(hi) h1, :lang(hi) h2 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
:lang(hi) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
               background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; box-shadow: 0 18px 30px -20px rgba(21,26,45,.35); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
  .lang-switch { align-self: flex-start; margin-top: 6px; }
}

/* Buttons and the Google Play badge */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #CFC7B8; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.gp-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid #A6A6A6; transition: transform .15s, box-shadow .15s; }
.gp-badge:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.gp-badge svg { width: 26px; height: 26px; flex: none; }
.gp-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.gp-badge small { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
:lang(hi) .gp-badge small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.gp-badge strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.chips svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 6% -6% auto auto; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), rgba(220,230,255,0)); z-index: 0; }
.hero-visual::after { content: ""; position: absolute; left: -2%; bottom: 4%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--green-soft), rgba(213,245,233,0)); z-index: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding-top: 32px; } }

/* Phone frame around real captures (1080x1920), with a crossfading tour */
.phone { position: relative; z-index: 1; width: min(310px, 76vw); aspect-ratio: 540 / 960; padding: 11px; border-radius: 44px; background: #10131F;
         box-shadow: 0 40px 70px -30px rgba(9, 58, 148, .45), inset 0 0 0 2px #2A2F42; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #F5F2EC; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.phone-screen img.on { opacity: 1; }
.tour { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; position: relative; z-index: 1; }
.tour button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.tour button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tour-caption { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; min-height: 1.6em; position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .phone-screen img { transition: none; } }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-faint); color: var(--brand); }
.icon svg { width: 24px; height: 24px; }
.icon.green { background: var(--green-soft); color: var(--green); }
.icon.amber { background: var(--amber-soft); color: #9A5A00; }
.icon.navy { background: #E2E9F8; color: var(--navy); }

/* Spotlights: one feature per row, text beside a picture */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px 0; }
.spot + .spot { border-top: 1px solid var(--line); }
.spot.flip .spot-media { order: -1; }
.spot-media { display: grid; justify-items: center; }
.spot-media .phone { width: min(280px, 70vw); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300775C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 900px) { .spot { grid-template-columns: minmax(0, 1fr); gap: 32px; } .spot.flip .spot-media { order: 0; } }

/* The printed pair: an A4 page and a thermal receipt with a torn edge */
.papers { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.paper-a4 { width: min(330px, 52vw); background: #fff; box-shadow: 0 22px 44px -18px rgba(21,26,45,.35); transform: rotate(-1.5deg); }
.paper-roll { width: min(180px, 28vw); margin-top: 40px; filter: drop-shadow(0 16px 22px rgba(21,26,45,.28)); transform: rotate(2deg); }
.paper-roll div { background: #fff; padding: 12px 10px 20px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.papers figcaption { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 12px; }
.papers figure { margin: 0; }

/* Languages */
.lang-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lang-cloud span { padding: 12px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 20px; box-shadow: var(--shadow); }
.lang-cloud span small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.step { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 880px; margin: 40px auto 0; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--navy); margin-bottom: 14px; }
.plan h3 { font-size: 24px; margin: 0 0 6px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin-bottom: 26px; flex: 1; }
.plan .btn, .plan .gp-badge { align-self: flex-start; }

/* FAQ */
.faqs { max-width: 860px; margin: 36px auto 0; display: grid; gap: 12px; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
details.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 18px 32px 18px 0; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details.faq > div { padding: 0 0 18px; color: var(--muted); }
details.faq > div p:last-child { margin: 0; }

/* Call to action band */
.band { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--brand)); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { color: #CFE0FF; margin: 0; font-size: 17px; }
.band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.band .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); padding: 36px 26px; } }

/* Notes and legal pages */
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 14px; padding: 16px 20px; font-size: 14.5px; color: var(--muted); }
.prose { max-width: 820px; margin-inline: auto; }
.prose h1 { font-size: clamp(30px, 4.4vw, 42px); }
.prose h2 { font-size: 24px; margin-top: 2em; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0 20px; background: var(--card); }
.prose th, .prose td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 10px 12px; }
.prose th { background: #F3EEE5; }
.table-scroll { overflow-x: auto; }
.summary, .callout { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 24px; margin: 22px 0; }
.callout { border-left: 4px solid var(--amber); }
.updated { color: var(--muted); }
.features li { margin-bottom: 6px; }
.page-head { padding: 56px 0 8px; }

/* GST calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc legend, .calc label.field { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.calc input[type="number"], .calc input[type="text"] { width: 100%; font: inherit; font-size: 22px; font-weight: 700; padding: 12px 16px; border: 1.5px solid #CFC7B8; border-radius: 14px; background: #fff; color: var(--ink); }
.calc input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.result { background: var(--navy); color: #fff; border-radius: 24px; padding: 30px; }
.result dl { margin: 0; display: grid; gap: 4px; }
.result .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 16px; }
.result .row dt { color: #CFE0FF; }
.result .row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.result .total { border-bottom: 0; padding-top: 16px; font-size: 22px; }
.result .total dt { color: #fff; font-weight: 700; }

/* Footer */
.site-footer { background: #10131F; color: #B9BED0; margin-top: 80px; padding: 56px 0 28px; font-size: 14.5px; }
.site-footer a { color: #E4E7F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .04em; text-transform: uppercase; }
:lang(hi) .foot-grid h4 { text-transform: none; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand .brand { color: #fff; }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; }
.foot-legal { border-top: 1px solid #262B3D; margin-top: 40px; padding-top: 22px; display: grid; gap: 10px; font-size: 13px; color: #8D93A8; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
