:root {
  /* Quickreach brand palette */
  --midnight: #10222E;   /* primary: logo background, dark sections, text */
  --ivory: #EDE7D3;      /* logo line art, text on midnight */
  --brass: #C9A45C;      /* accent: buttons on dark, highlights */
  --brass-deep: #8A6A2E; /* brass for small text on light backgrounds */
  --paper: #F7F4EC;      /* page background */

  --bg: var(--paper);
  --surface: #ffffff;
  --ink: var(--midnight);
  --muted: #56636B;
  --line: #E3DDCB;
  --brand: var(--midnight);
  --brand-ink: var(--ivory);
  --accent: var(--brass);
  --soft: #EFE8D6;
  --chat-bg: #efe7dc;
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --radius: 18px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] .eyebrow,
html[lang="ar"] .tag { letter-spacing: 0; }
html[lang="ar"] h1 { line-height: 1.3; }
html[lang="ar"] h2 { line-height: 1.4; }

/* per-language blocks (legal pages) */
[data-lang][hidden] { display: none !important; }

a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.lang-picker { position: relative; display: inline-flex; align-items: center; }
.lang-picker svg { position: absolute; inset-inline-start: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 32px 8px 34px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
html[dir="rtl"] .lang-select { padding: 8px 34px 8px 32px; background-position: left 12px center; }
.lang-select:hover, .lang-select:focus { border-color: var(--brand); outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 700; border-radius: 999px; padding: 15px 26px; font-size: 17px; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px -8px rgba(15, 92, 77, .6);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(15, 92, 77, .7); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }

/* hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* phone mock */
.phone {
  justify-self: center; width: 100%; max-width: 360px;
  background: #0b141a; border-radius: 34px; padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(18, 33, 31, .55);
}
.phone-screen { background: var(--chat-bg); border-radius: 26px; overflow: hidden; }
.chat-head { background: #075e54; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #cfe9e2; color: #075e54; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.chat-head small { display: block; opacity: .8; font-size: 12px; }
.chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.bubble { max-width: 84%; padding: 8px 11px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.in { background: var(--bubble-in); align-self: flex-start; border-start-start-radius: 4px; }
.bubble.out { background: var(--bubble-out); align-self: flex-end; border-start-end-radius: 4px; }
.qr-buttons { display: flex; flex-direction: column; gap: 6px; align-self: flex-end; max-width: 84%; width: 84%; }
.qr-buttons span { background: #fff; color: #027eb5; text-align: center; padding: 7px; border-radius: 10px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.handoff { align-self: center; background: #fff7d6; color: #6b5300; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; text-align: center; }

/* sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.step-num { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.features strong { display: block; }
.features span.d { color: var(--muted); font-size: 16px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card.us { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.compare ul { margin: 12px 0 0; padding-inline-start: 20px; color: var(--muted); }
.compare li { margin: 6px 0; }
.tag { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.us .tag { color: var(--brand); }

/* faq */
.faq { max-width: 760px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* final cta */
.final { text-align: center; }
.final .box { background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 24px; }
.final h2 { color: #fff; }
.final p { color: #cfe5df; max-width: 34em; margin: 0 auto 28px; font-size: 18px; }
.final .btn { background: #fff; color: var(--brand); }

/* footer */
footer { padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 42px); }
.legal h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #2c3b38; }
.legal ul { padding-inline-start: 22px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

/* responsive */
@media (max-width: 860px) {
  .hero { padding: 40px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .compare { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .btn-sm { display: none; }
  .cta-row .btn { width: 100%; }
  .final .box { padding: 40px 18px; border-radius: 22px; }
}


/* ===================== Brand theme ===================== */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--font-display); font-weight: 600; }

/* header: midnight bar with the ivory logo */
.top { background: var(--midnight); border-bottom-color: rgba(237, 231, 211, .12); backdrop-filter: none; }
.logo img { height: 36px; width: auto; display: block; }
.lang-picker svg { color: rgba(237, 231, 211, .7); }
.lang-select {
  background-color: transparent; color: var(--ivory); border-color: rgba(237, 231, 211, .28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23EDE7D3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.lang-select:hover, .lang-select:focus { border-color: var(--brass); }
.lang-select option { color: var(--midnight); background: #fff; }

/* buttons */
.btn { background: var(--midnight); color: var(--ivory); box-shadow: 0 6px 18px -8px rgba(16, 34, 46, .55); }
.btn:hover { box-shadow: 0 10px 22px -8px rgba(16, 34, 46, .65); }
.btn-gold, .top .btn, .hero .btn:not(.btn-ghost), .final .btn { background: var(--brass); color: var(--midnight); box-shadow: 0 8px 22px -10px rgba(201, 164, 92, .7); }
.btn-gold:hover, .top .btn:hover, .hero .btn:not(.btn-ghost):hover, .final .btn:hover { background: #D4B16C; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }

/* hero on midnight */
.hero { background: var(--midnight); color: var(--ivory); padding-bottom: 72px; }
.hero h1 { color: var(--ivory); }
.hero .lead { color: rgba(237, 231, 211, .78); }
.hero .eyebrow { background: rgba(201, 164, 92, .14); color: var(--brass); }
.hero .btn-ghost { color: var(--ivory); border-color: rgba(237, 231, 211, .3); }
.hero .btn-ghost:hover { border-color: var(--ivory); }
.hero .fine { color: rgba(237, 231, 211, .6); }
.hero .phone { background: #050d12; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(237, 231, 211, .08); }

/* accents on light sections */
.eyebrow { background: var(--soft); color: var(--brass-deep); }
.step-num { background: var(--midnight); color: var(--ivory); }
.check { background: var(--soft); color: var(--brass-deep); }
.compare .card.us { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.us .tag { color: var(--brass-deep); }
summary::after { color: var(--brass-deep); }
a { color: var(--midnight); }

/* final call to action */
.final .box { background: var(--midnight); position: relative; overflow: hidden; }
.final h2 { color: var(--ivory); }
.final p { color: rgba(237, 231, 211, .75); }

/* footer */
.foot-logo { height: 54px; width: auto; display: block; margin-bottom: 12px; }
.hero .phone .chat { color: #111b21; }

/* ===================== Theme toggle ===================== */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ivory); border: 1px solid rgba(237, 231, 211, .28); padding: 0;
}
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--brass); outline: none; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.foot-logo.on-dark { display: none; }
html[data-theme="dark"] .foot-logo.on-light { display: none; }
html[data-theme="dark"] .foot-logo.on-dark { display: block; }

/* ===================== Dark mode ===================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1820;
  --surface: #132A37;
  --ink: #EDE7D3;
  --muted: #A9B4B8;
  --line: rgba(237, 231, 211, .12);
  --soft: rgba(201, 164, 92, .14);
}
html[data-theme="dark"] a { color: var(--ivory); }
html[data-theme="dark"] .top { background: #0B1820; }
html[data-theme="dark"] .hero { background: var(--midnight); border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .section-alt { background: #0F1F29; }
html[data-theme="dark"] .section-alt .card { background: var(--surface); }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .check,
html[data-theme="dark"] .us .tag, html[data-theme="dark"] summary::after { color: var(--brass); }
html[data-theme="dark"] .step-num { background: var(--brass); color: var(--midnight); }
html[data-theme="dark"] .btn-ghost { color: var(--ivory); border-color: var(--line); }
html[data-theme="dark"] .final .box { background: var(--surface); border: 1px solid var(--line); }
html[data-theme="dark"] .legal p, html[data-theme="dark"] .legal li { color: #D5D9D6; }
html[data-theme="dark"] footer a:hover { color: var(--ivory); }

/* ===================== Readability: bigger type, less clutter ===================== */
body { font-size: 18px; line-height: 1.65; }
:root { --muted: #45525A; }
html[data-theme="dark"] { --muted: #BAC3C6; }
.lead { font-size: 22px; line-height: 1.5; max-width: 26em; margin-bottom: 32px; }
h1 { font-size: clamp(38px, 5.6vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 32px; }
.card { padding: 28px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 18px; }
.step-num { width: 40px; height: 40px; font-size: 18px; margin-bottom: 16px; }
.features { gap: 26px 40px; }
.features strong { font-size: 20px; margin-bottom: 2px; }
.features span.d { font-size: 18px; }
.check { width: 30px; height: 30px; font-size: 16px; }
summary { font-size: 19px; padding: 20px 0; }
details p { font-size: 18px; }
.final p { font-size: 20px; }
.btn { font-size: 18px; padding: 16px 28px; }
.btn-sm { font-size: 15px; padding: 9px 16px; }
footer { font-size: 15.5px; }

/* one-line statement band */
.statement { padding: 72px 0; text-align: center; }
.statement p { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; margin: 0 auto; max-width: 22em; color: var(--muted); font-family: var(--font-display); font-weight: 500; }
html[lang="ar"] .statement p { font-family: var(--font-ar); }
.statement strong { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .lead { font-size: 20px; }
}
@media (max-width: 480px) {
  body { font-size: 17.5px; }
  .card p, .features span.d, details p { font-size: 17.5px; }
  .card h3 { font-size: 21px; }
  h2 { margin-bottom: 24px; }
  .statement { padding: 52px 0; }
}
