/* Madok Kothay: Wise design system (see DESIGN.md).
   Near-black #0e0f0c text, Wise green #9fe870 pill buttons with dark green #163300 text,
   30px cards with ring shadows, scale(1.05) hover / scale(0.95) active, "calt" on all text.
   Latin: Inter (Wise Sans is proprietary; the Wise spec names Inter as its fallback).
   Bangla: Kalpurush, which has a single Regular weight, so headings use browser-synthesised bold. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalpurush";
  src: url("/fonts/kalpurush.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}

:root {
  --ink: #0e0f0c;
  --paper: #ffffff;
  --green: #9fe870;
  --green-dark: #163300;
  --mint: #e2f6d5;
  --pastel: #cdffad;
  --positive: #054d28;
  --danger: #d03238;
  --text-2: #454745;
  --gray: #868685;
  --surface: #e8ebe6;
  --ring: rgba(14, 15, 12, 0.12) 0 0 0 1px;
  --sans: "Inter", "Kalpurush", Helvetica, Arial, sans-serif;
  --h-weight: 900;
  --h-lh: 0.92;
  --h-track: -0.025em;
  --body-lh: 1.55;
  --label-track: 0.08em;
  --hero-size: clamp(42px, 8.4vw, 92px);
  --h2-size: clamp(34px, 5.6vw, 60px);
}
/* Bangla: Kalpurush has no heavy weight and tall matras, so no 0.85 line-height and no tracking */
html[data-lang="bn"] {
  --h-weight: 700;
  --h-lh: 1.22;
  --h-track: 0;
  --body-lh: 1.8;
  --label-track: 0;
  --hero-size: clamp(36px, 6.6vw, 70px);
  --h2-size: clamp(30px, 4.8vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: var(--body-lh);
  font-feature-settings: "calt";
  -webkit-font-smoothing: antialiased;
}
html[data-lang="bn"] .en, html[data-lang="en"] .bn { display: none !important; }

h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; border-radius: 12px; }
.dark :focus-visible { outline-color: var(--green); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 9999px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: #ffffff;
  box-shadow: rgba(14, 15, 12, 0.08) 0 1px 0 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: var(--h-weight); font-size: 22px; letter-spacing: var(--h-track); white-space: nowrap; }
.brand .logo { width: 40px; height: 40px; display: block; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { font-size: 16px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 9999px; color: var(--ink); white-space: nowrap; }
.nav a.link:hover { background: rgba(211, 242, 192, 0.4); }
@media (max-width: 860px) { .nav a.link { display: none; } }
@media (max-width: 520px) { .nav .btn-green { display: none; } }

/* ---------- buttons: pills that physically grow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 18px/1.2 var(--sans); font-feature-settings: "calt"; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 12px 24px; min-height: 48px; border-radius: 9999px; border: 0;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.95); }
.btn-green { background: var(--green); color: var(--green-dark); }
.btn-green:hover { background: var(--pastel); }
.btn-subtle { background: rgba(22, 51, 0, 0.08); color: var(--ink); }
.btn-subtle:hover { background: rgba(22, 51, 0, 0.14); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.lang { padding: 8px 16px; font-size: 16px; min-height: 40px; }

.pill { display: inline-block; font: 600 14px/1.2 var(--sans); padding: 8px 16px; border-radius: 9999px; background: var(--mint); color: var(--green-dark); }
.mono { font: 600 13px/1.2 var(--sans); text-transform: uppercase; letter-spacing: var(--label-track); color: var(--text-2); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .wrap { max-width: 980px; text-align: center; }
.hero h1 { margin: 28px 0 36px; font-size: var(--hero-size); font-weight: var(--h-weight); line-height: var(--h-lh); letter-spacing: var(--h-track); }
.hero p.lead { margin: 0 auto 36px; max-width: 660px; font-size: 20px; color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sos {
  margin: 48px auto 0; max-width: 600px; text-align: left; display: flex; gap: 16px; align-items: center;
  padding: 16px 24px; border-radius: 9999px; background: rgba(208, 50, 56, 0.07); box-shadow: rgba(208, 50, 56, 0.25) 0 0 0 1px;
  font-size: 16px; font-weight: 600;
}
.sos b { font: 900 28px/1 var(--sans); color: var(--danger); letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero p.lead { font-size: 18px; }
  .sos { border-radius: 30px; padding: 16px 20px; }
}

/* ---------- section headings ---------- */
.head { margin-bottom: 48px; max-width: 800px; }
.head h2 { margin: 14px 0 14px; font-size: var(--h2-size); font-weight: var(--h-weight); line-height: var(--h-lh); letter-spacing: var(--h-track); }
.head p { margin: 0; font-size: 20px; color: var(--text-2); }
.dark { background: var(--ink); color: #fff; }
.dark .mono { color: var(--green); }
.dark .head p { color: #c9ccc6; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 32px; border-radius: 30px; box-shadow: var(--ring); background: var(--paper); }
.step .num { font: 900 20px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--green-dark); margin-bottom: 24px; }
.step h3 { margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
html[data-lang="bn"] .step h3 { letter-spacing: 0; line-height: 1.35; }
.step p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- promises (dark section) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 28px; border-radius: 30px; box-shadow: var(--ring); background: var(--paper); }
.card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
html[data-lang="bn"] .card h3 { letter-spacing: 0; }
.card p { margin: 0; font-size: 17px; color: var(--text-2); }
.dark .card { background: rgba(255, 255, 255, 0.06); box-shadow: rgba(255, 255, 255, 0.14) 0 0 0 1px; }
.dark .card p { color: #c9ccc6; }
.dark .card.limit { background: rgba(159, 232, 112, 0.12); box-shadow: rgba(159, 232, 112, 0.5) 0 0 0 1px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.form-shell { display: grid; grid-template-columns: 1fr; max-width: 780px; }
form.tip { padding: 40px; border-radius: 40px; box-shadow: var(--ring); background: var(--paper); display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } form.tip { padding: 24px 20px; border-radius: 30px; } }
label.f { display: grid; gap: 8px; font-size: 16px; font-weight: 600; }
label.f .hint { font-weight: 400; color: var(--text-2); font-size: 15px; line-height: 1.6; }
label.f .req { color: var(--danger); margin-left: 3px; }
input[type="text"], select, textarea {
  width: 100%; font: 400 17px/1.5 var(--sans); font-feature-settings: "calt"; color: var(--ink); background: var(--paper);
  border: 0; border-radius: 10px; padding: 13px 14px; box-shadow: var(--ring);
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--gray); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--green-dark); outline-offset: 1px; box-shadow: rgb(134, 134, 133) 0 0 0 1px inset; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-2); line-height: 1.65; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--green-dark); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 16px 20px; border-radius: 20px; font-size: 16px; font-weight: 600; display: none; }
.status.show { display: block; }
.status.ok { background: var(--mint); color: var(--positive); }
.status.err { background: rgba(208, 50, 56, 0.08); color: #a3262b; }
.closed { padding: 32px; border-radius: 30px; background: var(--surface); max-width: 780px; }
.closed h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.closed p { margin: 0; color: var(--text-2); }
.fine { font-size: 15px; color: var(--text-2); margin: 0; }

/* ---------- safety ---------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ul.plain li { padding-left: 34px; position: relative; color: var(--text-2); }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 18px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-dark) inset; }
.contact { display: grid; gap: 20px; background: var(--mint); box-shadow: none; align-content: center; }
.contact .num { font: 900 clamp(44px, 6vw, 64px)/1 var(--sans); letter-spacing: -0.03em; color: var(--green-dark); }
.contact small { display: block; color: var(--text-2); font-size: 16px; font-weight: 600; margin-top: 4px; }

/* ---------- faq ---------- */
details { border-top: 1px solid rgba(14, 15, 12, 0.12); padding: 22px 0; max-width: 800px; }
details:last-of-type { border-bottom: 1px solid rgba(14, 15, 12, 0.12); }
summary { cursor: pointer; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; font: 600 22px/1 var(--sans); }
details[open] summary::after { content: "\2212"; background: var(--green); }
details p { margin: 14px 0 0; color: var(--text-2); }

/* ---------- footer ---------- */
footer { padding: 48px 0 64px; background: var(--surface); font-size: 16px; color: var(--text-2); }
footer .wrap { display: grid; gap: 8px; }
footer b { color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
