/* BSure landing page — palette and type follow design-reference/consumer */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #22262b;
  --ink-2: #4a5058;
  --muted: #82786a;
  --line: #e8e5de;
  --line-2: #d3cfc6;
  --brand: #1f5f5b;
  --brand-ink: #ffffff;
  --brand-soft: #eef3f2;
  --brand-soft-line: #d7e4e2;
  --ok: #2a6a43;      --ok-soft: #e4efe7;
  --warn: #9a6408;    --warn-soft: #f7ecd6;
  --bad: #a8322b;     --bad-soft: #f6e1de;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 38, 43, .05), 0 8px 24px rgba(34, 38, 43, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141716; --surface: #1c201f; --ink: #ebe8e2; --ink-2: #bfc3c8; --muted: #a39a8c;
    --line: #2a2f2e; --line-2: #3a403f; --brand: #5fb3ab; --brand-ink: #0f1a19;
    --brand-soft: #18302e; --brand-soft-line: #24433f;
    --ok: #6fcf97; --ok-soft: #173024; --warn: #f0b24a; --warn-soft: #33280f; --bad: #f08a80; --bad-soft: #3a1c19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #141716; --surface: #1c201f; --ink: #ebe8e2; --ink-2: #bfc3c8; --muted: #a39a8c;
  --line: #2a2f2e; --line-2: #3a403f; --brand: #5fb3ab; --brand-ink: #0f1a19;
  --brand-soft: #18302e; --brand-soft-line: #24433f;
  --ok: #6fcf97; --ok-soft: #173024; --warn: #f0b24a; --warn-soft: #33280f; --bad: #f08a80; --bad-soft: #3a1c19;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.mark svg { width: 17px; height: 17px; }
.brand-name { font-weight: 700; font-size: 18px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--brand); }
@media (min-width: 860px) { .nav { display: flex; } }
.lang { margin-left: auto; display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
@media (min-width: 860px) { .lang { margin-left: 8px; } }
.lang button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; padding: 5px 11px; cursor: pointer; min-width: 44px; }
.lang button + button { border-left: 1px solid var(--line-2); }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--brand); transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: var(--surface); color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 56px; background:
  radial-gradient(900px 400px at 85% 0%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-soft-line); padding: 3px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 700; line-height: 1.22; }
.lead { margin-top: 18px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 36em; }
.badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.badges li { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--ink-2); }
.badges li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a6a43' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .cta .btn { width: 100%; } }

/* phone mock */
.phone {
  justify-self: center; width: min(290px, 74vw); aspect-ratio: 9 / 16.5; border-radius: 38px; padding: 11px;
  background: #22262b; box-shadow: 0 30px 60px -20px rgba(31, 95, 91, .45), 0 0 0 1px rgba(0,0,0,.08);
  transform: rotate(2deg);
}
.phone-screen { height: 100%; border-radius: 28px; background: #f7f6f3; color: #22262b; padding: 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ph-top { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.ph-mark { width: 22px; height: 22px; border-radius: 6px; background: #1f5f5b; color: #fff; display: grid; place-items: center; }
.ph-mark svg { width: 13px; height: 13px; }
.ph-url { font-size: 11px; color: #4a5058; background: #e8e5de; border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.ph-result { background: #e4efe7; border: 1px solid #c9dfd0; border-radius: 16px; padding: 18px 14px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.ph-result b { color: #2a6a43; font-size: 19px; }
.ph-result > span:not(.ph-check) { font-size: 12.5px; color: #2a6a43; line-height: 1.45; }
.ph-check { width: 48px; height: 48px; border-radius: 50%; background: #2a6a43; color: #fff; display: grid; place-items: center; margin-bottom: 6px; animation: pop .6s .3s both cubic-bezier(.2, 1.4, .4, 1); }
.ph-check svg { width: 24px; height: 24px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ph-check { animation: none; } }
.ph-product { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e8e5de; border-radius: 12px; padding: 10px; }
.ph-product b { display: block; font-size: 13px; }
.ph-product span { font-size: 11px; color: #82786a; }
.ph-img { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg, #d7e4e2, #eef3f2); }
.ph-lines { display: grid; gap: 7px; padding: 4px 2px; }
.ph-lines i { height: 7px; border-radius: 4px; background: #e8e5de; }
.ph-lines i.short { width: 60%; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-lead { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.step-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.step-icon svg { width: 26px; height: 26px; }
.step-no { position: absolute; top: 18px; right: 20px; font-size: 34px; font-weight: 700; color: var(--line-2); line-height: 1; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* manual check */
.check-band { background: var(--surface); border-block: 1px solid var(--line); }
.check-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .check-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.check-form { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.check-form label { font-weight: 600; font-size: 15px; }
.check-form input {
  height: 56px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 500 20px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; width: 100%;
}
.check-form input::placeholder { color: var(--line-2); }
.check-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.check-form input[aria-invalid="true"] { border-color: var(--bad); }
.help { font-size: 13.5px; color: var(--muted); }
.err { font-size: 14px; color: var(--bad); font-weight: 500; }
.check-form .btn { margin-top: 8px; width: 100%; }

/* results */
.results { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .results { grid-template-columns: repeat(4, 1fr); } }
.res { border-radius: var(--radius); padding: 20px; border: 1px solid; }
.res h3 { margin-top: 10px; font-size: 17px; }
.res p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.res-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.res-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.res.ok   { background: var(--ok-soft);   border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.res.ok .res-tag, .res.ok h3 { color: var(--ok); }
.res.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.res.warn .res-tag, .res.warn h3 { color: var(--warn); }
.res.bad, .res.stop { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.res.bad .res-tag, .res.bad h3, .res.stop .res-tag, .res.stop h3 { color: var(--bad); }
.note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* stay safe */
.safe { background: var(--brand-soft); border-block: 1px solid var(--brand-soft-line); }
.safe-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .safe-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.url-demo { margin-top: 24px; display: grid; gap: 8px; }
.url { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.url .ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; color: #fff; }
.url.good { border-color: var(--ok); }
.url.good .ico { background: var(--ok); }
.url.good b { color: var(--ink); }
.url.bad { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.url.bad .ico { background: var(--bad); }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tips li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.tips li::before { content: "!"; position: absolute; left: 14px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.tips b { color: var(--ink); }

/* privacy */
.privacy { display: flex; gap: 18px; align-items: flex-start; max-width: 860px; }
.privacy h2 { font-size: 22px; }
.privacy p { margin-top: 6px; color: var(--ink-2); }
.privacy-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.privacy-icon svg { width: 24px; height: 24px; }

/* faq */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot { display: grid; gap: 10px; justify-items: start; }
.foot p { color: var(--ink-2); }
.foot .small { font-size: 13.5px; color: var(--muted); }
