/* Shared stylesheet for the local-language pages (/bn/, /hi/, /vi/, /id/, …).
 *
 * These pages are self-contained by design: styles.css is injected async on
 * the English site and wins the cascade unpredictably, so the localised pages
 * carry their own CSS instead. This file is head-linked (not async), so it
 * lands before first paint and nothing shifts.
 *
 * Per-script overrides live at the bottom under [lang=…] and [dir=rtl];
 * never fork this file per language.
 */

:root{
  --ground:#F4F1E9;
  --navy:#1E2045;
  --navy-deep:#11172F;
  --accent:#047857;
  --accent-bright:#1FB884;
  --muted:#53605D;
  --line:#DCD6C8;
  --card:#FFFFFF;
  --footer:#0f172a;
  --on-dark:#C7D0E0;
  --on-dark-dim:#A9B3C7;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--ground);
  color:var(--navy);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.7;
  font-size:17px;
}

.wrap{max-width:1140px;margin:0 auto;padding:0 20px}
a{color:var(--accent)}

h1,h2,h3{line-height:1.32;margin:0 0 14px}
h1{font-size:2.1rem;font-weight:800}
h2{font-size:1.5rem;font-weight:700;margin-top:0}
h3{font-size:1.12rem;font-weight:700}
p,li{max-width:68ch}

/* ---------- nav ---------- */
header.nav{background:var(--navy-deep);color:#fff;padding:14px 0}
header.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{color:#fff;font-weight:800;text-decoration:none;font-size:1.15rem;min-height:44px;display:flex;align-items:center}
.nav-links{display:flex;gap:18px;flex-wrap:wrap}
.nav-links a{color:#CFE9DF;text-decoration:none;min-height:44px;display:flex;align-items:center}
.nav-links a:hover{color:#fff;text-decoration:underline}
.lang-note{color:var(--on-dark-dim);font-size:.86rem}
.lang-note a{color:#8FE3C4}

/* ---------- hero ---------- */
.hero{background:linear-gradient(160deg,var(--navy) 0%,var(--navy-deep) 100%);color:#fff;padding:54px 0 48px}
.hero h1{color:#fff;max-width:26ch}
.hero p.lead{font-size:1.14rem;color:#DCE3F0;max-width:64ch}
.price-flag{
  display:inline-block;
  background:rgba(31,184,132,.14);
  border:1px solid var(--accent-bright);
  color:#8FE3C4;
  padding:9px 16px;border-radius:8px;font-weight:700;margin:6px 0 20px;
}
.hero-sub{color:var(--on-dark-dim);font-size:.92rem;margin-top:16px}

/* ---------- buttons ---------- */
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:12px 24px;border-radius:9px;
  font-weight:700;text-decoration:none;font-size:1rem;
}
.btn-main{background:var(--accent-bright);color:#07271C}
.btn-main:hover{background:#4AD3A6}
.btn-line{border:2px solid #7E8AA8;color:#fff}
.btn-line:hover{border-color:#fff}
/* White-on-transparent only reads over the dark hero. The closing CTA sits on
   the light ground, so that variant needs navy ink — this is the .btn-ghost
   invisibility bug from the English site, prevented here. */
#cta .btn-line{border-color:var(--navy);color:var(--navy)}
#cta .btn-line:hover{background:var(--navy);color:#fff}

/* ---------- sections ---------- */
section{padding:46px 0;border-bottom:1px solid var(--line)}
.grid{display:grid;gap:22px}
@media(min-width:760px){
  .g2{grid-template-columns:repeat(2,1fr)}
  .g3{grid-template-columns:repeat(3,1fr)}
}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px}
.card h3{margin-top:0}
.card p{margin-bottom:0;max-width:none}

/* The snippet-ready direct answer under a question heading. Capped at 72ch:
   `max-width:none` here once let prose run to 127 chars per line. */
.answer{background:#fff;border-left:4px solid var(--accent);border-radius:10px;padding:18px 20px;margin:16px 0}
.answer p{margin:0;max-width:72ch;font-size:1.04rem}

/* ---------- tables ---------- */
table{width:100%;border-collapse:collapse;background:#fff;font-size:.97rem}
th,td{border:1px solid var(--line);padding:11px 13px;text-align:left}
th{background:#EDE8DC;font-weight:700}
/* A price table is wider than a phone; it scrolls inside its own box rather
   than forcing the page to scroll. */
.tbl-scroll{overflow-x:auto}

/* ---------- numbered steps ---------- */
.steps{counter-reset:s;list-style:none;padding:0}
.steps li{
  counter-increment:s;
  background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:16px 18px 16px 58px;margin-bottom:12px;position:relative;max-width:none;
}
.steps li::before{
  content:counter(s);
  position:absolute;left:16px;top:14px;
  width:30px;height:30px;border-radius:50%;
  background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.95rem;
}

/* ---------- faq ---------- */
.faq details{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:10px}
.faq summary{padding:15px 18px;font-weight:700;cursor:pointer;min-height:48px;display:flex;align-items:center}
.faq .body{padding:0 18px 16px}
.faq .body p{margin:0;max-width:72ch}

/* ---------- stats ---------- */
.stat-row{display:grid;gap:16px;margin:18px 0}
@media(min-width:760px){.stat-row{grid-template-columns:repeat(3,1fr)}}
.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}
.stat b{display:block;font-size:1.5rem;color:var(--accent)}
.stat span{font-size:.92rem;color:var(--muted)}

/* ---------- footer ---------- */
footer.ft{background:var(--footer);color:var(--on-dark);padding:34px 0;font-size:.94rem}
footer.ft a{color:#8FE3C4}
footer.ft p{max-width:none}
.note{color:var(--muted);font-size:.9rem}
/* --muted is tuned for the light ground; on the dark footer it measures
   2.72:1, so scope a lighter token there instead of changing the global. */
footer.ft .note{color:var(--on-dark-dim)}
.src{font-size:.86rem;color:var(--muted)}

/* ================= per-script overrides =================
 *
 * FONTS ARE NOT LOADED. The site self-hosts exactly one webfont
 * (/assets/fonts/InterVariable.woff2, declared in styles.css) and these pages
 * do not load it either. The families named below are therefore *hints*: a
 * device that already has Noto Sans Devanagari uses it, everything else falls
 * back to the platform's own Unicode font — Devanagari/Bengali/Khmer/Sinhala/
 * Ethiopic coverage is good on current Android, iOS, macOS and Windows 10+.
 *
 * That is a deliberate trade, not an oversight: self-hosting eight more script
 * families would add roughly 1–3 MB for a factory on a slow connection, to
 * replace a system font that already renders correctly. The line-height rules
 * below matter far more than the family does, because they are what stops the
 * stacked marks of these scripts from clipping.
 *
 * If a specific market reports bad rendering, self-host THAT script only,
 * subset to the characters used, and add an @font-face here.
 */

/* Indic and Bengali conjuncts stack taller than Latin; without extra leading
   the matras clip at the top of a heading. Measured on /bn/ and /hi/. */
html[lang="bn"] body,
html[lang="hi"] body,
html[lang="ne"] body{line-height:1.75}
html[lang="bn"] h1,html[lang="bn"] h2,html[lang="bn"] h3,
html[lang="hi"] h1,html[lang="hi"] h2,html[lang="hi"] h3{line-height:1.45}
html[lang="bn"] body{font-family:'Hind Siliguri','Noto Sans Bengali',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
html[lang="hi"] body{font-family:'Noto Sans Devanagari','Hind',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}

/* Sinhala and Khmer also need looser leading for their stacked marks. */
html[lang="si"] body,
html[lang="km"] body,
html[lang="am"] body{line-height:1.8}
html[lang="si"] h1,html[lang="si"] h2,html[lang="si"] h3,
html[lang="km"] h1,html[lang="km"] h2,html[lang="km"] h3,
html[lang="am"] h1,html[lang="am"] h2,html[lang="am"] h3{line-height:1.5}
html[lang="si"] body{font-family:'Noto Sans Sinhala',system-ui,sans-serif}
html[lang="km"] body{font-family:'Noto Sans Khmer',system-ui,sans-serif}
html[lang="am"] body{font-family:'Noto Sans Ethiopic',system-ui,sans-serif}

/* Vietnamese stacks tone marks above already-accented vowels. */
html[lang="vi"] h1,html[lang="vi"] h2,html[lang="vi"] h3{line-height:1.4}

/* ---------- RTL (Arabic, Urdu) ---------- */
/* Logical properties would be cleaner, but these rules must also hold on
   older Android WebViews on the factory floor, so flip explicitly. */
[dir="rtl"] th,[dir="rtl"] td{text-align:right}
[dir="rtl"] .answer{border-left:0;border-right:4px solid var(--accent)}
[dir="rtl"] .steps li{padding:16px 58px 16px 18px}
[dir="rtl"] .steps li::before{left:auto;right:16px}
[dir="rtl"] table caption{text-align:right}
/* Urdu / Nastaliq.
   Nastaliq is a sloped, cursive script: glyphs legitimately paint outside the
   line box, so scrollHeight stays greater than clientHeight no matter how much
   line-height is added (measured: still 3px over on <p> at 2.2). The fix is to
   let the ink show rather than chase it with leading — `overflow:visible` plus
   a little padding. 17px is also too small to read Nastaliq comfortably. */
html[lang="ur"] body{
  font-family:'Noto Nastaliq Urdu','Jameel Noori Nastaleeq',system-ui,sans-serif;
  font-size:19px;line-height:2.1;
}
html[lang="ur"] h1,html[lang="ur"] h2,html[lang="ur"] h3{line-height:1.95;padding-bottom:.14em}
html[lang="ur"] h1,html[lang="ur"] h2,html[lang="ur"] h3,
html[lang="ur"] p,html[lang="ur"] li,
html[lang="ur"] summary,html[lang="ur"] td,html[lang="ur"] th{overflow:visible}
html[lang="ur"] .faq summary{line-height:1.95}
html[lang="ar"] body{
  font-family:'Noto Kufi Arabic','Noto Sans Arabic',system-ui,sans-serif;
  line-height:1.9;
}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{line-height:1.55}
/* Latin-digit prices and product names stay LTR inside RTL prose. */
[dir="rtl"] .ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
