/* E-JuriBD landing page.
   Palette is the app's own BD-green rather than the generic legal navy: a site that does not look
   like the product it installs breaks trust at exactly the wrong moment. Typography follows the
   legal-services pairing — a serif with authority for headings, a plain humanist sans for reading —
   with Noto Sans Bengali carrying the Bangla, because the app is fully bilingual and the site
   should not pretend otherwise. */

:root {
  --green: #0C7A52;
  --green-dark: #095C3E;
  --green-soft: #E8F3EE;
  --ink: #0F172A;
  --body: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --gold: #B45309;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --z-nav: 30;
  --z-modal: 50;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.7 'Lato', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'EB Garamond', 'Noto Serif Bengali', Georgia, serif;
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }

p { margin: 0; }
a { color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.lede { font-size: 19px; color: var(--body); max-width: 62ch; }

/* ── Navigation ────────────────────────────────────────────────────────────────────────────── */
/* Floated off the edges rather than pinned to them: a bar welded to the viewport edge reads as a
   browser chrome element, not part of the page. */
.nav {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.nav__brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
  color: var(--body); text-decoration: none; font-size: 15px;
  transition: color 200ms ease;
}
.nav__links a:hover { color: var(--green); }

@media (max-width: 820px) { .nav__links { display: none; } }

/* ── Buttons ───────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(12, 122, 82, .35);
  outline-offset: 2px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────────────────────── */
.hero { padding: 150px 0 80px; background:
  radial-gradient(1100px 520px at 78% -10%, var(--green-soft), transparent 62%); }

.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* The phone: a CSS frame rather than a screenshot, so it stays crisp and weighs nothing. */
.phone {
  width: 290px; margin: 0 auto;
  border: 11px solid #0F172A; border-radius: 42px;
  background: #fff; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone__bar { height: 26px; background: #0F172A; }
.phone__body { padding: 16px 14px 22px; background: linear-gradient(180deg, #F6FAF8, #fff); }

.bubble { border-radius: 14px; padding: 11px 13px; font-size: 14px; margin-bottom: 10px; line-height: 1.55; }
.bubble--you { background: var(--green); color: #fff; margin-left: 34px; border-bottom-right-radius: 5px; }
.bubble--app { background: #fff; border: 1px solid var(--line); color: var(--ink); margin-right: 18px; border-bottom-left-radius: 5px; }
.cite {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700;
  color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 6px;
}

/* ── Trust strip ───────────────────────────────────────────────────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 820px) { .strip { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.strip__n { font-family: 'EB Garamond', Georgia, serif; font-size: 34px; font-weight: 600; color: var(--ink); }
.strip__l { font-size: 14.5px; color: var(--muted); }

/* ── Audience tabs ─────────────────────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 99px; margin-bottom: 34px; }
.tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px;
  background: transparent; color: var(--body);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.tab[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 10px; background: var(--green-soft); color: var(--green);
  font-weight: 700; font-size: 15px;
}
.step h3 { margin-bottom: 7px; }
.step p { font-size: 15.5px; }

/* ── Features ──────────────────────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover { border-color: rgba(12, 122, 82, .45); box-shadow: var(--shadow); }
.card svg { width: 24px; height: 24px; color: var(--green); margin-bottom: 14px; }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 15.5px; }

/* ── Download / form ───────────────────────────────────────────────────────────────────────── */
.download { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 940px) { .download { grid-template-columns: 1fr; gap: 32px; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming the page on focus */
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.textarea { min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12, 122, 82, .12); outline: none; }

.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .radios { grid-template-columns: 1fr; } }
.radio {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--body);
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio:hover { border-color: var(--green); }
.radio:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.radio:has(input:focus-visible) { outline: 3px solid rgba(12, 122, 82, .35); outline-offset: 2px; }

.error { margin-top: 10px; font-size: 14.5px; color: #B3261E; }
.legal { margin-top: 14px; font-size: 13px; color: var(--muted); }

.ready { display: none; text-align: center; padding: 8px 0; }
.ready.is-on { display: block; }
.ready svg { width: 44px; height: 44px; color: var(--green); }

/* ── FAQ ───────────────────────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 12px; font-size: 16px; }

/* ── Footer ────────────────────────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #94A3B8; padding: 52px 0 34px; }
.footer a { color: #CBD5E1; text-decoration: none; transition: color 200ms ease; }
.footer a:hover { color: #fff; }
.footer__row { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.footer__fine { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; line-height: 1.7; }

.disclaimer {
  background: #FFFBEB; border: 1px solid #FDE68A; border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 18px 20px; font-size: 15px; color: #713F12;
}

/* ── Language switcher ─────────────────────────────────────────────────────────────────────── */
/* In the nav, next to the CTA: the first thing a Bangla reader looks for is the way out of English. */
.lang {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 99px;
  background: #fff; color: var(--ink);
  font-family: 'Lato', 'Noto Sans Bengali', sans-serif; font-size: 14.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease;
}
.lang:hover { border-color: var(--green); color: var(--green); }

/* Bangla needs a touch more line height to breathe, and the serif headings fall back to a Bengali
   serif that carries the same weight of authority. */
html[lang="bn"] body { line-height: 1.8; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.35; }
html[lang="bn"] h1 { font-size: clamp(32px, 5.2vw, 52px); }

/* ── Invite leaderboard ────────────────────────────────────────────────────────────────────── */
/* The point of this section is the bragging, so the name carries the weight and the number sits
   quietly beside it. Top ten only — a top hundred is a phone book, not a competition. */
.board { list-style: none; counter-reset: rank; margin: 34px auto 0; padding: 0; max-width: 560px; text-align: left; }
.board li {
  counter-increment: rank;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.board li::before {
  content: counter(rank);
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--bg-alt); color: var(--muted);
  font-size: 14px; font-weight: 700;
}
/* Only the top three get colour. If everyone is highlighted, nobody is. */
.board li:nth-child(1)::before { background: var(--green); color: #fff; }
.board li:nth-child(2)::before,
.board li:nth-child(3)::before { background: var(--green-soft); color: var(--green-dark); }
.board__name { flex: 1; font-weight: 700; color: var(--ink); }
.board__count { font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.board__empty { margin-top: 30px; color: var(--muted); }
.board__note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* The face beside each name. Falls back to an initial, exactly as the app's own avatar does, so a
   leaderboard of people who never set a photo still looks deliberate. */
.board__face {
  flex: none; width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 16px;
}
.board__face img { width: 100%; height: 100%; object-fit: cover; }
