/* =========================================================
   FocusTrack landing page — bilingual, mobile-first
   Brand color: #0F9D8F (teal/green, matches Flutter AppTheme)
   ========================================================= */

/* ---------- Self-hosted Hind Siliguri (Bengali + Latin) ---------- */
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/HindSiliguri-400-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/HindSiliguri-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/HindSiliguri-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: 500;
  font-display: swap;
  src: url("fonts/HindSiliguri-500-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/HindSiliguri-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/HindSiliguri-500-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("fonts/HindSiliguri-600-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/HindSiliguri-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-20C0, 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("fonts/HindSiliguri-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: 700;
  font-display: swap;
  src: url("fonts/HindSiliguri-700-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/HindSiliguri-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-20C0, 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("fonts/HindSiliguri-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;
}

:root {
  --brand: #0F9D8F;
  --brand-dark: #0B7A70;
  --brand-soft: #E6F4F2;
  --ink: #1F2A2B;
  --ink-2: #4B5758;
  --ink-3: #7A8485;
  --line: #E5EAEA;
  --bg: #FAFBFB;
  --card: #FFFFFF;
  --danger: #C0392B;
  --success: #1E8E3E;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(15, 30, 32, 0.06);
  --shadow-lg: 0 12px 36px rgba(15, 30, 32, 0.10);
  --font: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* account for sticky header height */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.lang-en { font-family: system-ui, -apple-system, "Segoe UI", Roboto,
                                "Helvetica Neue", Arial, sans-serif; }

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 251, 251, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 8px;
}
.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 13px;
  color: var(--ink-3);
}
.lang-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.lang-toggle .lang-active {
  color: var(--brand-dark);
  font-weight: 600;
}
.lang-toggle .lang-divider {
  color: var(--ink-3);
}

/* ===== Top nav (anchor links inside the sticky header) ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  margin: 0 12px;
}
.site-nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-decoration: none;
}
.site-nav a.nav-cta {
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  margin-left: 4px;
}
.site-nav a.nav-cta:hover {
  background: var(--brand-dark);
  color: white;
}
@media (max-width: 720px) {
  .site-nav {
    margin: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 13px; padding: 6px 10px; }
}

/* ===== Main ===== */
.site-main {
  padding: 24px 0 64px;
}

/* ===== Sections (shared) ===== */
.section {
  padding: 56px 0;
  scroll-margin-top: 76px;
}
.section-title {
  text-align: center;
  margin: 0 0 32px;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title .accent {
  color: var(--brand);
}
@media (max-width: 720px) {
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 22px; }
}

/* ===== Hero ===== */
.section-hero {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-title .accent {
  color: var(--brand);
}
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto 24px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(15, 157, 143, 0.25);
}

/* ===== How it works (numbered steps) ===== */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: how;
}
.how-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}
.how-step-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.how-step-body {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (min-width: 720px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ===== Modes / Features grid ===== */
.modes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mode-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  text-align: left;
}
.mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1;
}
.mode-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
@media (min-width: 720px) {
  .modes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* ===== Trust pillars grid ===== */
.trust-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1;
}
.trust-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.trust-card-body {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 980px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Signup section wrapper ===== */
.section-signup {
  padding-top: 32px;
}

/* ===== Card ===== */
.card-wrap {
  max-width: 480px;
  margin: 36px auto 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
}
.card-header { margin-bottom: 18px; }
.card-header h2 {
  font-size: 19px;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--ink);
}
.card-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ===== Forms ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form.hidden,
.success.hidden { display: none; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 6px;
}
.field-hint {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.field-hint .phone-again {
  color: var(--ink-2);
  font-weight: 500;
}

/* Phone input with prefix */
.phone-input {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.phone-input:focus-within {
  border-color: var(--brand);
}
.phone-prefix {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 15px;
  border-right: 1px solid var(--line);
}

input[type="tel"],
input[type="text"] {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
input:focus {
  border-color: var(--brand);
}
input::placeholder { color: var(--ink-3); }

/* Pricing card — BDApps tariff disclosure, shown below the phone field.
   Three centered lines: big amount, what's included, operator footnote. */
.pricing-card {
  margin: 14px 0 6px;
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.pricing-amount {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pricing-includes {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.pricing-foot {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Buttons */
.btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.15s ease, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover:not([disabled]) { background: var(--brand-dark); }

.link-btn {
  border: none;
  background: none;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 4px 0;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand); }
.link-btn[disabled] {
  color: var(--ink-3);
  cursor: not-allowed;
  text-decoration: none;
}
.resend { align-self: flex-start; margin-top: 4px; }

/* OTP sent text */
.otp-sent {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--success);
  background: #E8F5EE;
  border-left: 3px solid var(--success);
  padding: 8px 12px;
  border-radius: 4px;
}

/* Errors */
.error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
  min-height: 1em;
}
.error:empty { display: none; }

/* Success */
.success {
  text-align: center;
  padding: 12px 4px;
}
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E8F5EE;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.success h3 {
  margin: 6px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.success p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
.success-subid {
  margin-top: 12px !important;
  font-size: 12px !important;
  color: var(--ink-3) !important;
  word-break: break-all;
}
#openAppBtn {
  margin-top: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fine print */
.fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 16px 16px 0;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 18px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 13px;
}
.link-quiet { color: var(--ink-3); }
.link-quiet:hover { color: var(--brand-dark); }

/* Tiny phones */
@media (max-width: 380px) {
  .section-hero { padding-top: 12px; }
  .card { padding: 22px 18px 18px; }
  .brand-sub { display: none; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
