/* Self-hosted Hind Siliguri (same identity font as iban.com), latin subsets. */
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hind-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hind-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/hind-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/hind-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/hind-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/hind-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0d2440;
  --navy-2: #123a5e;
  --ink: #15202b;
  --accent: #0e9f6e;
  --accent-dark: #057a55;
  --accent-soft: #e7f7f0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --muted: #5b6b7c;
  --line: #e3e8ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 36, 64, 0.06), 0 8px 24px rgba(13, 36, 64, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.logo {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy); white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.main-nav a:hover { color: var(--navy); background: var(--bg); text-decoration: none; }
.main-nav a.active { color: var(--accent-dark); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 56px 0 96px;
}
.hero h1 {
  margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
}
.hero p.sub { margin: 0; font-size: 1.1rem; color: #c9d6e4; max-width: 640px; }
.hero .badges { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.12); color: #eaf3fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Quick widget ---------- */
.quick-card {
  margin-top: -56px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.quick-card h2 { margin: 0 0 14px; font-size: 1.05rem; color: var(--navy); }
.quick-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.quick-row .field { flex: 1; min-width: 160px; }
.quick-out {
  flex: 1.2; min-width: 200px;
  background: var(--accent-soft); border-radius: 12px; padding: 12px 16px;
}
.quick-out .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); }
.quick-out .value { font-size: 1.5rem; font-weight: 700; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-head h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--navy); letter-spacing: -0.01em; }
.section-head p { margin: 0 0 24px; color: var(--muted); }

/* ---------- Tool cards ---------- */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.tool-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  color: var(--ink); box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover { transform: translateY(-3px); text-decoration: none; border-color: var(--accent); }
.tool-card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark);
  margin-bottom: 14px;
}
.tool-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.tool-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.tool-card .tag {
  display: inline-block; margin-top: 12px; font-size: 0.75rem; font-weight: 700;
  color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px;
}
.tool-card.disabled { opacity: 0.75; cursor: default; }
.tool-card.disabled:hover { transform: none; border-color: var(--line); }

/* ---------- Page body / article ---------- */
.page-head { padding: 34px 0 8px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.page-head h1 {
  margin: 0 0 10px; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy); letter-spacing: -0.01em; line-height: 1.2;
}
.page-head .lede { font-size: 1.05rem; color: var(--muted); margin: 0; max-width: 720px; }

/* ---------- Calculator panel ---------- */
.calc-panel {
  margin: 26px 0; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.calc-inputs h2, .calc-results h2 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 0 0 16px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  min-height: 150px; resize: vertical; font-family: inherit; line-height: 1.5;
}
.cf-turnstile { margin-bottom: 16px; min-height: 65px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15);
}
.submit-btn {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 12px 24px; border-radius: 10px;
}
.submit-btn:hover { background: var(--accent-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.form-status { margin-top: 12px; font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #b00020; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.calc-results {
  background: var(--accent-soft); border-radius: 12px; padding: 20px 22px;
  align-self: start;
}
.result-big { margin-bottom: 18px; }
.result-big .label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); }
.result-big .value { font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.result-list { display: grid; gap: 8px; }
.result-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid rgba(14, 159, 110, 0.18);
  font-size: 0.95rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .k { color: var(--muted); }
.result-row .v { font-weight: 700; color: var(--navy); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; color: var(--navy); margin: 32px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.05rem; color: var(--navy); margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose td:last-child, .prose th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.callout {
  background: #fff8e6; border: 1px solid #f2dfa8; border-radius: 10px;
  padding: 12px 16px; font-size: 0.9rem; margin: 14px 0;
}
.note { font-size: 0.82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 18px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  padding: 14px 0; list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent-dark); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink); }

/* ---------- Features strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature .icon { margin-bottom: 10px; color: var(--accent-dark); }
.feature h3 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); }
.feature p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c8d8; margin-top: 56px; padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c8d8; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 18px; font-size: 0.8rem; color: #8fa3b8; }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: var(--navy); color: #dce7f2;
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.88rem;
}
.cookie-notice p { margin: 0; flex: 1; min-width: 200px; }
.cookie-notice a { color: #9fd8bd; text-decoration: underline; }
.cookie-notice button {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.88rem;
  padding: 8px 16px; border-radius: 8px;
}
.cookie-notice button:hover { background: var(--accent-dark); }
.cookie-notice.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .calc-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 84px; }
}
