/* Fluenvi website - one shared stylesheet. No external fonts or assets. */

:root {
  --bg: #F7FBFA;
  --card: #FFFFFF;
  --text: #0F2E2C;
  --muted: #3E5653;
  --primary: #0B7A75;
  --on-primary: #FFFFFF;
  --accent: #F5A524;
  --on-accent: #2A1A00;
  --border: #D5E5E2;
  --soft: #E6F3F1;
  --link: #0B6A66;
  --focus: #F5A524;
  --radius: 14px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-bn: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1917;
    --card: #12241F;
    --text: #E4F2EF;
    --muted: #A9C2BE;
    --primary: #3FB8B0;
    --on-primary: #04201E;
    --accent: #F5A524;
    --on-accent: #2A1A00;
    --border: #24403B;
    --soft: #163330;
    --link: #6FD3CB;
    --focus: #F5A524;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

:lang(bn) { font-family: var(--font-bn); line-height: 1.75; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.375rem, 4.5vw, 1.875rem); margin-top: 0.2em; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.header-nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.header-nav a { font-weight: 600; text-decoration: none; }
.header-nav a:hover { text-decoration: underline; }
.lang-switch {
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* Sections */
main { display: block; }
section { padding: 2.5rem 0; }
.section-alt { background: var(--soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.hero { padding: 3rem 0 2.5rem; }
.hero .tagline {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-art { justify-self: center; width: min(18rem, 80%); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }

.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { color: var(--primary); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--soft);
  margin-bottom: 0.75rem;
}
.card .icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem; top: 1rem;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 0.95rem;
}

.plan-premium { border: 2px solid var(--primary); }
.plan-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 0.5rem; }
details p:last-child { margin-bottom: 0; }

/* Legal / document pages */
.doc { padding: 2rem 0 3rem; }
.doc .wrap { max-width: 46rem; }
.doc h2 { margin-top: 2rem; }
.doc h3 { margin-top: 1.25rem; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }
.note {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin: 1rem 0 1.25rem;
}
.note p:last-child { margin-bottom: 0; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.toc ol { margin: 0; }

.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--card); }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
th, td { border: 1px solid var(--border); padding: 0.55rem 0.65rem; text-align: left; vertical-align: top; }
th { background: var(--soft); }

/* Stacked table on narrow screens so nothing scrolls sideways */
@media (max-width: 40rem) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.75rem; overflow: hidden; }
  table.stack td { border: 0; border-bottom: 1px solid var(--border); }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--muted); font-size: 0.85rem; }
}

.path { font-weight: 700; white-space: normal; }

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.95rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-nav li { margin: 0; }
.site-footer p { color: var(--muted); margin: 0.25rem 0; }

@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Small helpers (no inline styles: the site's Content-Security-Policy allows only this stylesheet) */
.lead-center { margin: 0 auto 1.5rem; }
.actions-center { justify-content: center; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
