:root {
  --ink: #17211b;
  --muted: #5a675f;
  --paper: #f6f3ea;
  --card: #fffdf7;
  --green: #1d5b46;
  --green-2: #dbe9df;
  --orange: #e86f3d;
  --accent: var(--orange);
  --line: #d8d8cc;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--green); }
img { max-width: 100%; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 33, 27, .12);
  background: rgba(246, 243, 234, .94);
  backdrop-filter: blur(14px);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(232, 111, 61, .2);
}
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.hero { padding: 78px 0 68px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(38px, 7vw, 96px); align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.8rem); max-width: 11ch; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { margin: 0 0 10px; font-size: 1.25rem; }
.lede { max-width: 62ch; margin: 24px 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { margin-top: 18px; color: var(--muted); font-size: .86rem; }
.phone-stack { position: relative; min-height: 580px; }
.phone-stack img { position: absolute; width: min(66%, 315px); height: auto; border-radius: 28px; box-shadow: 0 28px 70px rgba(23, 33, 27, .18); }
.phone-stack img:first-child { top: 0; left: 0; transform: rotate(-4deg); }
.phone-stack img:last-child { bottom: 0; right: 0; transform: rotate(5deg); }
.band { padding: 18px 0; background: var(--green); color: #fff; font-weight: 700; text-align: center; }
.section { padding: 76px 0; }
.section.alt { background: var(--green-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.card p:last-child { margin-bottom: 0; }
.number { font-size: .78rem; color: var(--orange); font-weight: 900; letter-spacing: .08em; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 64px; align-items: start; }
.article { max-width: 760px; min-width: 0; }
.article h2 { margin-top: 52px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.article h3 { margin-top: 30px; }
.article li { margin: 8px 0; }
.toc { position: sticky; top: 92px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0; text-decoration: none; }
.practice { margin: 26px 0; padding: 24px; border-left: 5px solid var(--orange); background: #fff; border-radius: 0 18px 18px 0; }
.answer { padding: 18px; background: var(--green-2); border-radius: 14px; }
.checklist { padding: 0; list-style: none; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 10px; }
.source-note { padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: .92rem; }
.cta { padding: 38px; border-radius: 28px; background: var(--ink); color: #fff; }
.cta h2 { max-width: 16ch; }
.cta p { color: #d8ded9; max-width: 58ch; }
.footer { padding: 38px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: inherit; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--green-2); color: var(--green); font-weight: 760; font-size: .8rem; }
.share-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.share-card h2 { margin-bottom: 8px; }
.share-card p:last-child { margin-bottom: 0; }
.share-actions { display: grid; gap: 10px; }
.share-actions > a:last-child { text-align: center; margin-top: 4px; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.route-grid .card { display: flex; flex-direction: column; }
.route-grid .card > p { flex: 1; }
.route-grid .actions { margin-top: 16px; }
.route-grid .button { flex: 1 1 210px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.comparison { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .94rem; }
.comparison th, .comparison td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--green); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.comparison tbody tr:last-child td { border-bottom: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { text-decoration: none; }
.library-hero h1 { max-width: 13ch; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.library-group { margin-top: 58px; }
.library-group h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.alphabet-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.alphabet-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 800; text-decoration: none; }
.alphabet-nav a:hover, .alphabet-nav a:focus-visible { border-color: var(--green); color: var(--green); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.related-box { margin: 56px 0; padding-top: 40px; border-top: 1px solid var(--line); }
.vocab-list { display: grid; gap: 12px; }
.vocab-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.vocab-item h3 { margin-top: 0; }
.vocab-item p { margin: 6px 0; }
.muted { color: var(--muted); }

/* Arabic guides keep the shared visual system while preserving natural RTL flow. */
html[dir="rtl"] body { font-family: "SF Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html[dir="rtl"] .nav,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .actions,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .breadcrumbs { direction: rtl; }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { letter-spacing: 0; }
html[dir="rtl"] .practice { border-left: 0; border-right: 5px solid var(--orange); border-radius: 18px 0 0 18px; }
html[dir="rtl"] .checklist li::before { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .comparison th,
html[dir="rtl"] .comparison td { text-align: right; }
html[dir="rtl"] [lang="nl"],
html[dir="rtl"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; text-align: left; }
html[dir="rtl"] .toc a { text-align: right; }

@media (max-width: 800px) {
  .nav-links a:not(.button) { display: none; }
  .hero-grid, .guide-layout { grid-template-columns: 1fr; }
  .phone-stack { min-height: 480px; margin-top: 10px; }
  .grid-3 { grid-template-columns: 1fr; }
  .toc { position: static; order: 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.65rem; }
  .hero { padding-top: 48px; }
  .phone-stack { min-height: 410px; }
  .cta { padding: 26px; }
}

@media (max-width: 720px) {
  .share-card { grid-template-columns: 1fr; padding: 24px; }
  .share-actions .button { width: 100%; }
  .route-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
}
