/* BKW India — site styles */

:root {
  --accent: #0f4c81;
  --accent-dark: #0a3157;
  --ink: #15202b;
  --ink-2: #3d4b5a;
  --muted: #5b6b7b;
  --line: #e6e9ee;
  --line-soft: #eef1f4;
  --wash: #f4f6f8;
  --wash-2: #f9fafb;
  --good: #1b7f4e;
  --warn: #b4540a;

  --night: #0f1a26;
  --night-card: #16263a;
  --night-line: #2a3a4c;
  --night-line-soft: #22344a;
  --night-text: #e9eef3;
  --night-muted: #aab8c5;
  --night-accent: #7cc4ff;
  --night-dim: #3d5a78;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
  font-size: 16px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
table { border-collapse: collapse; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 72px 24px; scroll-margin-top: 72px; }
.section--wash { background: var(--wash); }
.section--night { background: var(--night); color: var(--night-text); }
.stack { display: flex; flex-direction: column; gap: 32px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.section--night .eyebrow { color: var(--night-accent); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.section-head h2 { font-size: 34px; line-height: 1.15; }
.section-head p { color: var(--ink-2); font-size: 16px; }
.section--night .section-head h2 { color: #fff; }
.section--night .section-head p { color: var(--night-muted); }
.mono { font-family: var(--mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 8px; min-height: 44px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: #cfd6de; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--small { padding: 10px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark {
  flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand__tag {
  font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}

@media (max-width: 1440px) { .brand__tag { display: none; } }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 24px 56px; }
.hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 700; max-width: 860px; }
.hero__lead { font-size: 20px; color: var(--ink-2); max-width: 760px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero__stats strong { display: block; font-weight: 700; color: var(--ink); font-size: 22px; }
.hero__stats > div { max-width: 280px; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.ncard, .price-card, .included, .form-card { min-width: 0; }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.card__title { font-weight: 600; font-size: 17px; }
.card__body { font-size: 14px; color: var(--muted); }
.card--accent { background: var(--accent); color: #fff; border-color: var(--accent); justify-content: center; }
.card--accent .card__body { color: rgba(255, 255, 255, 0.92); }
.card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.card__icon { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: center; }
.chips strong { font-weight: 600; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dash-period {
  font-family: var(--mono); font-size: 12px; color: var(--night-muted);
  border: 1px solid var(--night-line); border-radius: 8px; padding: 8px 12px;
}
.ncard {
  background: var(--night-card); border: 1px solid var(--night-line); border-radius: 10px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.ncard--pad { padding: 22px; gap: 14px; }
.ncard__label { font-size: 12px; color: var(--night-muted); }
.ncard__value { font-size: 24px; font-weight: 700; color: #fff; }
.ncard__note { font-size: 12px; color: var(--night-accent); }
.ncard__note--warn { color: #f0b35a; }
.ncard__title { font-weight: 600; font-size: 15px; color: #fff; }
.dash-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.span-2 { grid-column: span 2; }

.legend { display: flex; gap: 14px; font-size: 12px; color: var(--night-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch--cost { background: var(--night-dim); }
.swatch--bill { background: var(--night-accent); }
.bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; height: 180px; }
.bars__pair { display: flex; gap: 4px; align-items: end; height: 100%; }
.bar { flex: 1; border-radius: 3px 3px 0 0; }
.bar--cost { background: var(--night-dim); }
.bar--bill { background: var(--night-accent); }
.bars-labels {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--night-muted); text-align: center;
}
.meter { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.meter__row { display: flex; justify-content: space-between; }
.meter__row span:last-child { color: var(--night-muted); }
.meter__track { height: 8px; background: var(--night-line-soft); border-radius: 4px; }
.meter__fill { height: 8px; background: var(--night-accent); border-radius: 4px; }
.ncard__foot { margin-top: auto; border-top: 1px solid var(--night-line); padding-top: 12px; font-size: 12px; color: var(--night-muted); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ntable { width: 100%; font-size: 13px; min-width: 640px; }
.ntable th { color: var(--night-muted); text-align: left; font-size: 12px; font-weight: 500; padding: 8px; border-bottom: 1px solid var(--night-line); }
.ntable td { padding: 8px; border-bottom: 1px solid var(--night-line-soft); }
.ntable tr:last-child td { border-bottom: none; }
.pill { border-radius: 999px; padding: 3px 10px; font-size: 12px; white-space: nowrap; }
.pill--done { background: #1f4d3a; color: #9fe3c0; }
.pill--review { background: #4a3a1a; color: #f0b35a; }
.pill--sched { background: var(--night-line-soft); color: var(--night-muted); }

/* ---------- Reconciliations ---------- */
.reco { padding: 22px; gap: 12px; }
.reco__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.reco__title { font-weight: 600; font-size: 16px; }
.reco__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rtable { width: 100%; font-size: 13px; min-width: 420px; }
.rtable--wide { min-width: 460px; }
.rtable th { color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 7px 4px; border-bottom: 1px solid var(--line-soft); }
.rtable tr:last-child td { border-bottom: none; }
.rtable .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.rtable th.num { font-family: var(--sans); }
.rtable .sub td { color: var(--muted); }
.rtable .sub td:first-child { padding-left: 20px; }
.rtable .total td { font-weight: 600; }
.rtable .zero { color: var(--good); }
.rtable .hl { color: var(--accent); }
.reco__note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 10px; }

.mapping { background: var(--wash-2); padding: 22px; gap: 14px; }
.mtable { width: 100%; font-size: 13px; min-width: 760px; background: #fff; }
.mtable th { color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.mtable td { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.mtable tr:last-child td { border-bottom: none; }
.yes { color: var(--good); }
.excl { color: var(--warn); }
.dim { color: var(--muted); }

/* ---------- Steps ---------- */
.step { padding: 22px; gap: 8px; }
.step__when { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step__title { font-weight: 600; font-size: 16px; }

/* ---------- Pricing ---------- */
.price-card { border: 2px solid var(--accent); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.price-card label { font-weight: 600; font-size: 15px; }
.price-emp { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.price-emp small, .price-fee small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.slider { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }
.slider-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.price-out { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.price-out__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-fee { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.price-call { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.price-call-link { font-weight: 600; font-size: 14px; text-decoration: none; }
.price-tx {
  background: var(--wash); border-radius: 8px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.price-tx span:first-child { font-size: 13px; color: var(--ink-2); }
.price-tx span:last-child { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.price-small { font-size: 12px; color: var(--muted); }
.included { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.included h3 { font-weight: 600; font-size: 15px; letter-spacing: 0; }
.included ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 7px; }
.included__extra { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.fine-print { font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Insights ---------- */
.insights-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.post-card {
  text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.post-card:hover { color: var(--ink); border-color: #cfd6de; box-shadow: 0 4px 16px rgba(21, 32, 43, 0.06); }
.post-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.post-card__cat { font-weight: 600; color: var(--accent); }
.post-card__title { font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.post-card__sum { font-size: 14px; color: var(--muted); }
.post-card__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.draft-badge {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: #fff4e5; color: var(--warn); border: 1px solid #f3d3a8; border-radius: 999px; padding: 2px 8px;
}
.empty-note { background: #fff; border: 1px dashed #cfd6de; border-radius: var(--radius); padding: 24px; color: var(--ink-2); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.contact-intro h2 { font-size: 30px; line-height: 1.15; color: #fff; }
.contact-intro p { color: var(--night-muted); font-size: 15px; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-top: 8px; }
.contact-lines a { color: var(--night-text); }
.contact-lines .dim { color: var(--night-muted); }
.form-card {
  background: var(--night-card); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.form-card h3 { font-weight: 600; font-size: 17px; color: #fff; letter-spacing: 0; }
.form-card__intro { font-size: 13px; color: var(--night-muted); }
.field { font-size: 13px; color: var(--night-muted); display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea {
  padding: 11px 12px; border-radius: 8px; border: 1px solid var(--night-line);
  background: var(--night); color: #fff; font-size: 16px; font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: #6f8091; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--night-accent); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 12px; color: #8495a6; }
.form-consent a { color: var(--night-muted); }
.form-status { font-size: 14px; border-radius: 8px; padding: 10px 12px; }
.form-status--ok { background: #1f4d3a; color: #c9f2dc; }
.form-status--err { background: #4a2626; color: #f6c9c9; }
.form-alt { font-size: 12px; color: #8495a6; }
.form-alt a { color: var(--night-muted); }
.btn--night-ghost { border-color: var(--night-line); color: var(--night-text); }
.btn--night-ghost:hover { border-color: var(--night-muted); color: #fff; }

/* ---------- About ---------- */
.about-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.about-points h3 { font-weight: 600; font-size: 15px; letter-spacing: 0; margin-bottom: 6px; }
.about-points p { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px; }
.site-footer__inner {
  max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* ---------- Long-form pages (articles, privacy) ---------- */
.page-head { padding: 64px 24px 32px; }
.page-head .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: 40px; line-height: 1.12; font-weight: 700; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); align-items: center; }
.crumb { font-size: 14px; text-decoration: none; font-weight: 600; }
.prose { padding: 0 24px 72px; }
.prose .wrap { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 24px; line-height: 1.25; color: var(--ink); margin: 40px 0 12px; }
.prose h3 { font-size: 19px; line-height: 1.3; color: var(--ink); margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose table { width: 100%; font-size: 15px; margin: 0 0 18px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.article-cta {
  margin-top: 40px; background: var(--wash); border-radius: var(--radius); padding: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.article-cta p { margin: 0; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.4; max-width: 460px; }
.note-banner { background: #fff4e5; border: 1px solid #f3d3a8; color: #7a3d06; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .about-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .section { padding: 56px 16px; }
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 36px; }
  .hero__lead { font-size: 18px; }
  .section-head h2 { font-size: 27px; }
  .grid--2, .grid--3, .grid--4, .contact-grid, .about-points { grid-template-columns: minmax(0, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 28px; }
  .site-header__inner { padding: 12px 16px; }
  .nav { padding: 8px 16px 20px; }
  .page-head { padding: 44px 16px 24px; }
  .page-head h1 { font-size: 30px; }
  .prose { padding: 0 16px 56px; }
  .prose .wrap { font-size: 16px; }
  .price-card, .included { padding: 22px; }
  .bars { gap: 6px; height: 150px; }
  .bars-labels { gap: 6px; font-size: 10px; }
  .site-footer { padding: 20px 16px; }
}
@media (max-width: 420px) {
  .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .brand__name { font-size: 16px; }
}
