/* ElectroBill landing page 2026.12.03 */
@font-face { font-family: "Bitter"; src: url("fonts/bitter-var.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-var.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
    --ink: #0e2244;
    --ink-soft: #2b3d5e;
    --muted: #5a6b86;
    --blue: #1f4fd8;
    --blue-deep: #163a9e;
    --cyan: #19b5d8;
    --mist: #eef3f8;
    --paper: #ffffff;
    --line: #d5deea;
    --green: #13795b;
    --display: "Bitter", Georgia, "Times New Roman", serif;
    --text: "DM Sans", "Segoe UI", Roboto, system-ui, sans-serif;
    --hindi: "Nirmala UI", "Noto Sans Devanagari", Mangal, sans-serif;
    --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 650; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 650 1rem/1 var(--text); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn-quiet:hover { border-color: var(--ink-soft); }
.btn-ghost { min-height: 42px; padding: 0 18px; color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(238, 243, 248, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .97rem; }
.site-nav a:hover { color: var(--blue); }

/* Hero */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-hindi { font-family: var(--hindi); color: var(--blue); font-weight: 600; font-size: 1.05rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.35rem); line-height: 1.04; max-width: 15ch; text-wrap: balance; }
.lede { margin-top: 24px; font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* The counter: scanner + receipt */
.counter { position: relative; justify-self: center; width: min(100%, 440px); padding-top: 34px; }
.scanner { position: relative; z-index: 2; margin: 0 auto -18px; width: 78%; height: 58px; border-radius: 16px; background: var(--ink); box-shadow: 0 18px 40px rgba(14, 34, 68, .25); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.scanner-beam { position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 18px 4px rgba(25, 181, 216, .65); opacity: .35; }
.scanner-code { position: relative; color: #cfe9f3; font: 600 .95rem/1 var(--text); letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.scanner.is-reading .scanner-beam { animation: beam .5s ease-out; }
@keyframes beam { 0% { opacity: 1; transform: scaleX(.2); } 60% { opacity: 1; transform: scaleX(1); } 100% { opacity: .35; } }

.receipt { position: relative; z-index: 1; background: var(--paper); border-radius: 6px 6px 0 0; padding: 42px 30px 30px; box-shadow: 0 30px 70px rgba(14, 34, 68, .16), 0 2px 0 var(--line); font-variant-numeric: tabular-nums; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(-45deg, transparent 10px, var(--paper) 0) 0 0 / 20px 14px repeat-x, linear-gradient(45deg, transparent 10px, var(--paper) 0) 0 0 / 20px 14px repeat-x; filter: drop-shadow(0 6px 6px rgba(14, 34, 68, .06)); }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.receipt-head strong { display: block; font-family: var(--display); font-size: 1.08rem; line-height: 1.25; }
.receipt-head span { color: var(--muted); font-size: .85rem; }
.receipt-no { text-align: right; white-space: nowrap; }
.receipt-no strong { color: var(--blue); }
.receipt-lines { list-style: none; padding: 6px 0; margin: 0; }
.receipt-lines li { display: grid; grid-template-columns: 1fr auto 96px; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line); transition: opacity .35s, transform .35s; }
.receipt-lines .item { font-weight: 600; }
.receipt-lines small { display: block; color: var(--muted); font-weight: 450; font-size: .8rem; }
.receipt-lines .qty { color: var(--muted); }
.receipt-lines .qty::before { content: "× "; }
.receipt-lines .amt { text-align: right; font-weight: 600; }
.receipt-sums { margin-top: 14px; display: grid; gap: 6px; transition: opacity .4s; }
.receipt-sums div { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .95rem; }
.receipt-sums dd { font-weight: 600; }
.receipt-sums .grand { margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); color: var(--ink); font-size: 1.25rem; }
.receipt-sums .grand dt { font-family: var(--display); font-weight: 700; }
.receipt-sums .grand dd { font-weight: 750; }
.receipt-foot { margin-top: 16px; color: var(--muted); font-size: .82rem; transition: opacity .4s; }
/* Animated state, only when JavaScript runs and motion is allowed */
.receipt.is-building [data-line] { opacity: 0; transform: translateY(-8px); }
.receipt.is-building [data-line].is-in { opacity: 1; transform: none; }
.receipt.is-building [data-sums], .receipt.is-building [data-foot] { opacity: 0; }
.receipt.is-building.is-done [data-sums], .receipt.is-building.is-done [data-foot] { opacity: 1; }
.receipt .bump { animation: bump .7s ease-out; }
@keyframes bump { 0% { background: rgba(25, 181, 216, .35); } 100% { background: transparent; } }

/* Band */
.band { background: var(--ink); color: #e6edf8; padding: 46px 0; }
.band p { font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.4; max-width: 46ch; font-weight: 450; }
.band strong { color: #fff; font-weight: 700; }

/* Section shared */
.how, .features, .faq { padding: 104px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.12rem; }

/* Phone frame */
.phone { background: var(--ink); padding: 9px; border-radius: 32px; box-shadow: 0 24px 50px rgba(14, 34, 68, .18); }
.phone img { border-radius: 24px; aspect-ratio: 780 / 1488; object-fit: cover; object-position: top; width: 100%; }

/* Steps: a real sequence */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; align-items: start; }
.step:nth-child(even) { margin-top: 56px; }
.step h3 { margin-top: 26px; display: flex; gap: 10px; align-items: baseline; }
.step-no { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .9rem/1 var(--display); transform: translateY(-2px); }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; }

/* GST-inclusive spotlight */
.gst { background: var(--paper); padding: 104px 0; border-block: 1px solid var(--line); }
.gst-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.gst-copy p { margin-top: 18px; color: var(--ink-soft); font-size: 1.12rem; max-width: 34em; }
.gst-copy em { font-style: normal; font-weight: 650; color: var(--ink); background: linear-gradient(transparent 62%, rgba(25, 181, 216, .28) 0); }
.slip { background: var(--mist); border-radius: 18px; padding: 30px; font-variant-numeric: tabular-nums; }
.slip-typed { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--paper); border: 2px solid var(--blue); border-radius: 12px; padding: 16px 18px; }
.slip-typed span { color: var(--muted); font-size: .95rem; }
.slip-typed strong { font-family: var(--display); font-size: 1.9rem; }
.slip dl { margin-top: 18px; display: grid; }
.slip dl div { display: flex; justify-content: space-between; padding: 11px 4px; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.slip dd { font-weight: 600; color: var(--ink); }
.slip .slip-total { border-bottom: 0; padding-top: 14px; font-size: 1.2rem; color: var(--ink); }
.slip .slip-total dt { font-weight: 700; }
.slip .slip-total dd { color: var(--green); font-weight: 750; }
.slip figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

/* Feature groups */
.feature-group { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; padding: 40px 0; }
.feature-group + .feature-group { border-top: 1px solid var(--line); }
.feature-group.reverse .feature-shot { order: 2; }
.feature-list h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.feature-list dl { margin-top: 18px; }
.feature-list dt { font-weight: 650; margin-top: 18px; }
.feature-list dd { color: var(--ink-soft); margin-top: 4px; max-width: 34em; }
.shot-paper img { border-radius: 10px; box-shadow: 0 28px 60px rgba(14, 34, 68, .16); background: var(--paper); }
.shot-phone .phone { width: min(320px, 80%); margin-inline: auto; }
.shot-wide img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 28px 60px rgba(14, 34, 68, .14); }
.extras { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.extras li { border-top: 3px solid var(--ink); padding-top: 18px; }
.extras p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq h2 { max-width: 12ch; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 2px; font-weight: 650; font-size: 1.06rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--text); color: var(--blue); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 2px 22px; color: var(--ink-soft); max-width: 40em; }

/* Contact */
.contact { background: var(--ink); color: #dfe7f4; padding: 104px 0; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-copy > p { margin-top: 16px; font-size: 1.12rem; max-width: 30em; }
.contact-list { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.contact-list span { color: #93a6c6; font-size: .92rem; }
.contact-list a { color: #fff; font-weight: 650; font-size: 1.12rem; text-decoration-color: rgba(25, 181, 216, .7); }
.contact-list p { color: #fff; }
.enquiry { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 32px; display: grid; gap: 16px; }
.enquiry label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.enquiry input, .enquiry select, .enquiry textarea { font: 450 1rem/1.4 var(--text); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.enquiry textarea { resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 216, .18); }
.enquiry [aria-invalid="true"] { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optional { color: var(--muted); font-weight: 450; }
.form-error { color: #b42318; font-weight: 600; font-size: .95rem; }
.form-error[hidden] { display: none; }
.enquiry .btn { width: 100%; }
.form-note { color: var(--muted); font-size: .85rem; text-align: center; }

/* Footer */
.site-footer { background: #0a1a36; color: #93a6c6; padding: 36px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.site-footer .brand { color: #fff; font-size: 1.1rem; }
.site-footer .logo-mark { width: 30px; height: 30px; }
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer nav a { color: #dfe7f4; text-decoration: none; }
.copyright { width: 100%; font-size: .85rem; }

/* Responsive */
@media (max-width: 980px) {
    .hero-grid, .gst-grid, .feature-group, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .feature-group.reverse .feature-shot { order: 0; }
    .steps { grid-template-columns: repeat(4, 76%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; gap: 22px; }
    .step { scroll-snap-align: start; }
    .step:nth-child(even) { margin-top: 0; }
    .extras { grid-template-columns: 1fr 1fr; }
    .site-nav { display: none; }
    .header-login { margin-left: auto; }
    .hero { padding-top: 32px; }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .how, .features, .faq, .gst, .contact { padding: 72px 0; }
    .receipt { padding: 38px 20px 24px; }
    .receipt-lines li { grid-template-columns: 1fr auto 84px; gap: 10px; }
    .extras, .field-row { grid-template-columns: 1fr; }
    .enquiry { padding: 22px; }
    .contact-list li { grid-template-columns: 80px 1fr; }
    .steps { grid-template-columns: repeat(4, 82%); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
