:root {
  --brand: #57c21c;
  --brand-dark: #3f9a14;
  --on-brand: #12300a;
  --brand-soft: #eefae3;
  --ink: #15181c;
  --muted: #5c6770;
  --line: #e5ebe6;
  --bg: #f5f7f6;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(20, 40, 24, 0.08);
  --header: 76px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
}

button,
input {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 235, 230, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: #2b333a;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-current {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.lang {
  position: relative;
  margin-left: 4px;
}

.lang-toggle {
  min-width: 52px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  max-height: 70vh;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lang.is-open .lang-menu {
  display: grid;
}

.lang-menu a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.lang-menu a:hover,
.lang-menu a.is-current {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 22px rgba(87, 194, 28, 0.28);
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: #46a514;
  color: var(--on-brand);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-line {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--brand);
  box-shadow: none;
}

.btn-line:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-block {
  width: 100%;
}

.header-cta {
  min-height: 42px;
  padding: 0 16px;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(87, 194, 28, 0.2), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(87, 194, 28, 0.08), transparent 32%),
    linear-gradient(180deg, #f3fbf4 0%, #ffffff 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9eadc;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero .lead {
  margin: 16px 0 0;
  max-width: 560px;
  color: #3d474f;
  font-size: 17px;
  line-height: 1.65;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  min-width: 108px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.facts strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 194, 28, 0.28), rgba(87, 194, 28, 0) 68%);
}

.hero-phone {
  position: relative;
  width: 210px;
  filter: drop-shadow(0 18px 28px rgba(17, 60, 24, 0.16));
}

.hero-phone img {
  width: 100%;
  height: auto;
  clip-path: inset(0 0 8% 0);
}

.prose.wrap,
.center-block {
  width: min(1120px, calc(100% - 48px));
}

.center-block {
  margin: 28px auto 8px;
  text-align: left;
}

.center-block h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.045em;
  text-align: center;
}

.center-logo {
  width: 72px;
  height: 72px;
  margin: 16px auto 14px;
}

.center-block p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.shot-center {
  max-width: 520px;
  margin: 8px auto 20px;
}

.cat-title {
  margin: 34px 0 0;
  text-align: center;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.toc {
  position: sticky;
  top: calc(var(--header) + 18px);
}

.toc p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b9690;
}

.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid #e3ebe4;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.toc a:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  scroll-margin-top: 96px;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
  scroll-margin-top: 96px;
}

.prose p,
.prose li {
  color: #2d363c;
  font-size: 17px;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 14px;
}

.home-anchor {
  color: var(--brand-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.chips,
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}

.chips li,
.pills li {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #146426;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.pills li {
  background: #f3f5f4;
  color: #243028;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}

th {
  background: #f4faf5;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 8px;
}

.card,
.note,
.problem {
  background: var(--bg);
  border-radius: 18px;
  padding: 16px 16px 14px;
}

.card h3,
.problem strong {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card p,
.problem p,
.note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.steps {
  margin: 14px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 12px;
  color: #2d363c;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 14px;
}

.checks {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23147a28' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5.2-5.2L12.7 5z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  letter-spacing: -0.02em;
}

.faq details p {
  margin-top: 0;
}

.apps {
  padding: 72px 0 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 206, 74, 0.12), transparent 42%),
    #fff;
}

.apps h2,
.related h2,
.page-intro h1,
.post-head h1 {
  margin: 0;
  text-align: center;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.apps h2,
.related h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.apps .sub,
.related .sub,
.post-head p,
.page-intro .lead {
  max-width: 640px;
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 34px 18px;
  margin-top: 42px;
}

.app-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.app-tile img,
.related-card img,
.post-logo {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 16px;
  object-fit: cover;
  background: #f2f3f2;
  transition: transform 0.2s ease;
}

.app-tile:hover img,
.related-card:hover img {
  transform: translateY(-4px) scale(1.04);
}

.related {
  padding: 28px 0 80px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 22px;
  margin-top: 42px;
}

.related-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.related-card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.related-card p {
  margin: 0 auto;
  max-width: 240px;
  color: #6a737b;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-head,
.page-intro {
  padding: 36px 0 10px;
  text-align: center;
}

.post-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
}

.post-head h1,
.page-intro h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.post-head .btn {
  margin: 22px auto 0;
}

.crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand-dark);
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
}

.dl-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dl-grid .crumbs {
  justify-content: flex-start;
}

.dl-grid h1,
.dl-grid .lead {
  text-align: left;
  margin-left: 0;
}

.spec h2 {
  margin: 0;
  padding: 18px 20px;
  background: #f4faf5;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.spec dl {
  margin: 0;
}

.spec div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}

.spec dt {
  color: var(--muted);
  font-weight: 600;
}

.spec dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.install {
  padding: 10px 0 72px;
}

.install h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
  scroll-margin-top: 96px;
}

.site-footer {
  background: #121714;
  color: #d5ded7;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.site-footer p {
  margin: 8px 0 0;
  max-width: 460px;
  color: #aeb8b1;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.footer-links a {
  color: #d7f5dc;
  text-decoration: none;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #8be59a;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .dl-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc {
    position: static;
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 8px;
  }

  .toc p {
    display: none;
  }

  .toc a {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-left-width: 1px;
    border-radius: 999px;
    padding: 8px 12px;
  }
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html[lang="bn"] body {
  font-family: "Noto Sans Bengali", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html[lang="hi"] body {
  font-family: "Noto Sans Devanagari", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

[dir="rtl"] .center-block,
[dir="rtl"] .center-block p {
  text-align: right;
}

[dir="rtl"] .center-block h2 {
  text-align: center;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

@media (max-width: 760px) {
  .lang {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: 8px;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    padding: 12px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open {
    display: flex;
  }

  .hero-visual {
    display: none;
  }

  .icon-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .facts,
  .hero-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-tile img,
  .related-card img {
    transition: none;
  }
}
