@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --ink: #17231d; --muted: #5b6a62; --line: #dde4df; --paper: #f6f7f3; --card: #fff;
  --accent: #14674a; --accent-dark: #0e4f38; --accent-soft: #e4f2ea;
  --warn-bg: #fff4d6; --warn-ink: #6e4a00; --bad: #a32020; --good: #14674a;
  --radius: 12px; --wide: 1040px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.button) { color: var(--muted); text-decoration: none; }
.nav a:not(.button):hover { color: var(--ink); }

/* Controls */
.button, button { font: inherit; font-weight: 600; display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none; text-align: center; }
.button:hover, button:hover { background: var(--accent-dark); }
button:disabled { opacity: .6; cursor: wait; }
.quiet { background: transparent; color: var(--accent); border-color: var(--line); }
.quiet:hover { background: var(--accent-soft); }
.link { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; }
.link:hover { background: none; color: var(--ink); }
input { font: inherit; color: var(--ink); background: #fff; padding: 9px 12px; border: 1px solid #c8d2cb; border-radius: 8px; width: 100%; min-width: 0; }
input:focus-visible, button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; gap: 8px; }
.row button { flex: none; }

/* Home */
.hero { padding: 64px 0 56px; }
.hero h1 { font-size: clamp(32px, 6vw, 50px); max-width: 15em; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 16px 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero .price { color: var(--muted); }
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: 28px; margin-bottom: 22px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(step, bengali); display: block; font-weight: 700; font-size: 22px; color: var(--accent); }
.steps h3 { font-size: 18px; margin: 2px 0 4px; }
.steps p { color: var(--muted); font-size: 16px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.split h3 { font-size: 20px; margin-bottom: 8px; }
.split ul { margin: 0; padding-left: 20px; }
.split li { margin-bottom: 6px; }
.pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pricing strong { font-size: 44px; color: var(--accent); line-height: 1.1; }
.faq h3 { font-size: 18px; margin: 18px 0 2px; }
.faq p { color: var(--muted); max-width: 44em; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--muted); font-size: 15px; }
.foot strong { color: var(--ink); }

/* Dashboard and admin */
.app { padding: 26px 0 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h2 { font-size: 19px; margin-bottom: 10px; }
.card + .card { margin-top: 0; }
.stack > * + * { margin-top: 12px; }
.narrow { max-width: 420px; margin: 8vh auto 0; }
.balance { font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1.15; }
.hint { color: var(--muted); font-size: 15px; }
.message { min-height: 24px; font-size: 15px; }
.message.error { color: var(--bad); }
.message.ok { color: var(--good); }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.alert { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-weight: 600; color: var(--muted); }
th, td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.plus { color: var(--good); }
.minus { color: var(--bad); }
.empty { color: var(--muted); padding: 10px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile b { display: block; font-size: 28px; line-height: 1.2; }
.tile span { color: var(--muted); font-size: 15px; }
.tile small { display: block; color: var(--muted); font-size: 14px; }
.card.full { margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head input { max-width: 240px; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(420px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(10, 20, 15, .45); }
.notice-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; text-align: center; }
.notice-page .card { max-width: 440px; }
.notice-page h1 { font-size: 24px; margin-bottom: 8px; }
.notice-page p { margin-bottom: 18px; color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .nav a:not(.button) { display: none; }
  .row { flex-wrap: wrap; }
  .row button { flex: 1 1 100%; }
}

/* Added services go in as further .service cards. */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 14px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.service h3 { font-size: 20px; margin-bottom: 6px; }
.service p { color: var(--muted); }
.service-price { margin-top: 10px; }
.service-price strong { font-size: 26px; color: var(--accent); }
.service.soon { background: transparent; border-style: dashed; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 15px; }

/* Policy and demo pages */
.policy { max-width: 760px; }
.policy h1 { font-size: 30px; margin-bottom: 6px; }
.policy h2 { font-size: 21px; margin: 28px 0 8px; }
.policy h3 { font-size: 18px; margin: 18px 0 6px; }
.policy p { margin-bottom: 10px; }
.policy ul { margin: 0 0 10px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.foot a { color: inherit; }
.narrow-form { max-width: 620px; margin: 0 auto; }
.demo-title { font-size: 24px; }
.demo-id { color: var(--bad); }
.page-foot { margin-top: 18px; text-align: center; font-size: 15px; }
