@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("fonts/BalooBhaijaan2-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7ecda;
  --bg-soft: #fbf4e8;
  --surface: #fffdf8;
  --ink: #3d2e26;
  --muted: #74604f;
  --teal: #0f6b63;
  --teal-dark: #0a4e48;
  --teal-soft: #e3f0ec;
  --rust: #b45a38;
  --rust-soft: #f6e4da;
  --gold: #c99a3f;
  --line: #e5d5bc;
  --shadow: 0 18px 40px rgba(61, 46, 38, 0.08);
  --radius: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 253, 248, 0.9), transparent 38%),
    radial-gradient(circle at 92% 4%, rgba(246, 228, 218, 0.7), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: "Baloo Bhaijaan 2", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
}

h3 {
  font-size: 1.28rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  font-family: "DejaVu Sans Mono", ui-monospace, monospace;
  font-size: 0.84em;
  direction: ltr;
  unicode-bidi: embed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding-block: 22px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(61, 46, 38, 0.14);
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav .nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--teal-dark);
  color: #fff;
}

.lang-switch {
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal) !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch:hover {
  border-color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 86px) clamp(56px, 8vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.lead {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
  background: var(--surface);
  color: var(--teal);
}

.button.ghost-light {
  border-color: rgba(255, 253, 248, 0.45);
  background: transparent;
  color: #fff;
}

.button.ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.trust-row {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

/* Hero demo */
.demo {
  position: relative;
}

.demo::before {
  content: "";
  position: absolute;
  inset: 9% -7% -8% 9%;
  z-index: -1;
  border-radius: 44% 56% 45% 55% / 52% 44% 56% 48%;
  background: rgba(180, 90, 56, 0.12);
  transform: rotate(-4deg);
}

.demo-card {
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-head img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.demo-head .demo-badge {
  margin-inline-start: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.demo-label {
  margin: 20px 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-word {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.demo-translation {
  margin-top: 4px;
  color: var(--teal);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: start;
}

.demo-translation.rtl {
  direction: rtl;
  text-align: right;
}

.demo-translation.ltr {
  direction: ltr;
  text-align: left;
}

.demo-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.demo-actions span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.demo-save {
  background: var(--teal);
  color: #fff;
}

.demo-copy {
  border: 1.5px solid var(--line);
  color: var(--muted);
}

.demo-file {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-file strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-file code {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* Sections */
.section {
  padding-block: clamp(54px, 7vw, 88px);
}

.section.tint {
  border-block: 1.5px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 26px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.icon.rust {
  background: var(--rust-soft);
  color: var(--rust);
}

.icon.gold {
  background: #f7edd6;
  color: #8a6415;
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Facts table */
.fact-table,
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  font-size: 0.95rem;
}

.fact-table th,
.fact-table td,
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.fact-table tr:last-child th,
.fact-table tr:last-child td,
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.fact-table th,
.compare-table thead th {
  width: 34%;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
}

.compare-table thead th {
  width: auto;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table thead th:first-child {
  color: var(--teal);
}

.compare-table td:first-child {
  font-weight: 700;
}

.compare-table .yes {
  color: var(--teal);
  font-weight: 700;
}

.compare-table .varies {
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}

.table-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Article / guide */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: 840px;
  margin-inline: auto;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.article-header {
  max-width: 840px;
  margin-inline: auto;
  margin-bottom: 34px;
}

.article-header h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.article {
  max-width: 840px;
  margin-inline: auto;
}

.article h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.article h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.article p {
  margin-bottom: 1rem;
}

.article ul,
.article ol {
  margin: 0 0 1.2rem;
  padding-inline-start: 26px;
}

.article li {
  margin-bottom: 8px;
}

.article li > ul,
.article li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.article pre {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.88rem;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
}

.article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}

.article kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1.5px solid var(--line);
  border-bottom-width: 2.5px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82em;
  line-height: 1.5;
}

.article .note {
  margin: 24px 0;
  padding: 18px 22px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 14px;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.94rem;
}

.article .note strong {
  color: var(--ink);
}

.article .next-step {
  margin-top: 40px;
  padding: 28px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article .next-step h2 {
  margin-top: 0;
}

.article .next-step p:last-child {
  margin-bottom: 0;
}

/* Quote / callout */
.callout {
  align-self: start;
  padding: 28px;
  border-inline-start: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.callout p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.callout cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.faq-item summary {
  padding: 18px 22px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: inline-end;
  margin-inline-start: 16px;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-item p + p {
  padding-top: 0;
}

/* CTA */
.cta-band {
  padding: clamp(38px, 6vw, 60px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 154, 63, 0.28), transparent 40%),
    var(--teal-dark);
  color: #fffdf8;
  text-align: center;
}

.cta-band h2 {
  color: #fffdf8;
}

.cta-band p {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(255, 253, 248, 0.8);
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

/* Footer */
.site-footer {
  padding-block: 54px 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1.5px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.site-footer p {
  max-width: 34ch;
  margin-top: 10px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* Arabic page */
[dir="rtl"] body,
html[dir="rtl"] body {
  font-family: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, sans-serif;
}

html[dir="rtl"] .brand-sub,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .demo-head,
html[dir="rtl"] .demo-label,
html[dir="rtl"] .demo-file strong,
html[dir="rtl"] .site-footer h2 {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .eyebrow {
  font-size: 0.9rem;
}

html[dir="rtl"] .eyebrow::before {
  background: currentColor;
}

html[dir="rtl"] .faq-item summary::after {
  float: inline-end;
}

html[dir="rtl"] .demo-translation {
  text-align: start;
}

html[dir="rtl"] .compare-table th,
html[dir="rtl"] .compare-table td,
html[dir="rtl"] .fact-table th,
html[dir="rtl"] .fact-table td {
  text-align: start;
}

html[dir="rtl"] .callout {
  border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .demo {
    max-width: 540px;
    margin-inline: auto;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding-block: 16px;
  }

  .site-header .wrap {
    gap: 14px;
  }

  .brand strong {
    font-size: 1.2rem;
  }

  .site-nav {
    gap: 8px 16px;
    width: 100%;
    margin-inline-start: 0;
    padding-top: 4px;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .grid-3,
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .compare-table {
    min-width: 680px;
  }

  .fact-table th,
  .fact-table td {
    width: auto;
    padding: 12px 14px;
  }

  .fact-table tr {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fact-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .fact-table td {
    padding-top: 0;
  }

  .demo-card {
    padding: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
