/* DGT Cita Scout landing. Layout: dark hero with the calendar-and-bell illustration, then light sections:
   how it works (numbered, it is a real sequence), features, price, FAQ. Logical properties throughout so the
   Arabic page (dir="rtl") mirrors without a second stylesheet. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --fg: #14213a;
  --muted: #55627d;
  --line: #dce3ef;
  --accent: #1f5fb0;
  --accent-fg: #ffffff;
  --accent-soft: #e6eefb;
  --navy: #0e264e;
  --blue: #1f5fb0;
  --yellow: #ffc83d;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1424;
    --surface: #14213a;
    --fg: #e8eefb;
    --muted: #9fb0cf;
    --line: #25354f;
    --accent: #6fa8ff;
    --accent-fg: #0b1424;
    --accent-soft: #172a4a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible, .cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding-block: 20px 56px;
}
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 8px 36px; }
.brand { color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: .01em; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a, .langs button {
  font: inherit; font-size: 14px; color: #dbe8ff; text-decoration: none; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px 12px; cursor: pointer;
}
.langs a[aria-current="page"], .langs button[aria-current="true"] { background: #fff; color: var(--navy); border-color: #fff; font-weight: 700; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(30px, 6.4vw, 50px); line-height: 1.12; font-weight: 800; }
.lead { margin-block-start: 18px; font-size: clamp(17px, 2.6vw, 20px); color: #d3e2fb; max-width: 40em; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; margin-block-start: 28px;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 18px;
  padding: 14px 26px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.cta svg { width: 22px; height: 22px; flex: none; }
.cta:hover { filter: brightness(1.05); }
.cta-note { margin-block-start: 12px; font-size: 15px; color: #b8cdf0; }
.hero-art { max-width: 360px; width: 100%; margin-inline: auto; }
.hero-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-art { margin-inline-end: 0; }
}

/* ---------- sections ---------- */
section.block { padding-block: 56px 8px; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin-block-end: 26px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-block-end: 14px;
  border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-variant-numeric: tabular-nums;
}
.steps h3, .features h3 { font-size: 18px; line-height: 1.3; margin-block-end: 6px; }
.steps p, .features p { color: var(--muted); }

.features { display: grid; gap: 0 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.features > div { padding-block: 18px; border-block-start: 1px solid var(--line); min-width: 0; }

.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 22px; text-align: center;
  display: grid; justify-items: center; gap: 8px;
}
.price .big { font-size: clamp(52px, 12vw, 80px); font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.price .text { font-size: 19px; }
.price .note { color: var(--muted); font-size: 15px; max-width: 34em; }
.price .cta { background: var(--accent); color: var(--accent-fg); box-shadow: none; }

.faq details { border-block-end: 1px solid var(--line); }
.faq details:first-of-type { border-block-start: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; padding-block: 16px; padding-inline-end: 34px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-block-end: 18px; max-width: 46em; }

footer { padding-block: 48px 56px; color: var(--muted); font-size: 14px; text-align: center; }
footer p { max-width: 44em; margin-inline: auto; }

/* ---------- preview of all languages in one page (landing/build.py --preview) ---------- */
.langpage[hidden] { display: none; }

/* ---------- guides ---------- */
.hero.slim { padding-block: 10px; }
.hero.slim .top { padding-block: 6px; }
.guides { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.guide {
  display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; color: var(--fg); text-decoration: none; min-width: 0;
}
.guide:hover { border-color: var(--accent); }
.guide strong { font-size: 18px; line-height: 1.3; }
.guide span { color: var(--muted); font-size: 15px; }
.guide em { font-style: normal; font-weight: 700; color: var(--accent); }

.article { padding-block: 36px 8px; }
.article article { max-width: 46em; margin-inline: auto; }
.article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin-block-end: 10px; }
.article h2 { font-size: 22px; margin-block: 34px 10px; }
.article .meta { color: var(--muted); font-size: 14px; margin-block-end: 22px; }
.article .intro { font-size: 19px; color: var(--fg); }
.article p, .article li { margin-block-end: 12px; }
.article ul, .article ol { padding-inline-start: 22px; margin-block: 0 16px; }
.article li::marker { color: var(--accent); }
.box { margin-block: 38px; padding: 24px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--line); }
.box h2 { margin-block-start: 0; }
.box .cta { margin-block-start: 8px; background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.sources h2 { font-size: 18px; }
.sources ul { list-style: none; padding: 0; }
.disclaimer { color: var(--muted); font-size: 14px; border-block-start: 1px solid var(--line); padding-block-start: 16px; }
