/* QonnektMe website. Palette follows the app (lib/Constants/colors.dart) and
   the approved brand files (brand/manifest.json). */
:root {
  --midnight: #0c1b46;
  --navy: #164f8f;
  --qme-ink: #274e8a;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --gold: #c6a15b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted: #f1f5f9;
  --stroke: #e2e8f0;
  --text: #111827;
  --text-2: #475569;
  --text-3: #64748b;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 252, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link img.icon { width: 34px; height: 34px; }
.brand-link img.wordmark { height: 20px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--stroke); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.nav-toggle svg { margin: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: .95rem; font-weight: 550; }
.site-nav a:hover { color: var(--text); background: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--navy); background: rgba(22, 79, 143, .07); }
.site-nav .lang a { font-weight: 600; color: var(--text-3); }
@media (max-width: 900px) {
  .js .nav-toggle { display: grid; }
  .site-header .bar { height: auto; min-height: 68px; flex-wrap: wrap; }
  .js .site-header .bar { height: 68px; flex-wrap: nowrap; }
  .site-nav ul { flex-wrap: wrap; }
  .js .site-nav { position: absolute; inset: 68px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--stroke); box-shadow: var(--shadow); display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background .15s, box-shadow .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(22, 79, 143, .22); }
.btn-primary:hover { background: #123f73; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--stroke); }
.btn-secondary:hover { border-color: #cbd5e1; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 40em; }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--stroke); }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-mark img { width: 100%; height: auto; }
.hero-mark { display: block; justify-self: center; width: min(100%, 360px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 30px 50px rgba(12, 27, 70, .22)); }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--text-3); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-mark { width: 220px; order: -1; justify-self: start; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--text-2); margin: 0; }
.card h3 { margin-top: 14px; }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(22, 79, 143, .08); color: var(--navy); font-weight: 700; font-size: .95rem; }
.icon-chip { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(22, 79, 143, .08); color: var(--navy); }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 30px; color: var(--text-2); }
.list-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: rgba(22, 79, 143, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23164F8F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 22px 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--midnight); color: #fff; font-weight: 700; }
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--text-2); }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Callout / CTA band */
.band { background: var(--midnight); color: #e2e8f0; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #cbd5e1; margin: 0; }
.band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.band .btn-secondary:hover { border-color: #fff; }
.band .btn-primary { background: #fff; color: var(--midnight); box-shadow: none; }
.band .btn-primary:hover { background: #e2e8f0; color: var(--midnight); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* Store badges (placeholders until store links exist) */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border-radius: 14px; border: 1px dashed #94a3b8; color: var(--text-2); background: var(--surface); font-size: .92rem; }
.store-badge strong { display: block; color: var(--text); font-size: 1rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* Page header */
.page-head { padding: clamp(44px, 6vw, 80px) 0 clamp(20px, 3vw, 32px); }
.page-head .lead { margin: 0; }

/* Legal */
.notice { border: 1px solid #f3d9a4; background: #fffaf0; color: #7c4a03; border-radius: 16px; padding: 16px 20px; margin-bottom: 28px; font-size: .95rem; }
.prose { max-width: 48rem; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--stroke); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--muted); }
.prose code { background: var(--muted); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.legal-index { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .legal-index { grid-template-columns: 1fr; } }
.legal-index a { text-decoration: none; display: block; }
.legal-index a .card { height: 100%; }
.legal-index a:hover .card { border-color: #cbd5e1; }

/* Contact */
.contact-card { display: grid; gap: 6px; }
.contact-card .value { font-size: 1.1rem; font-weight: 650; }

/* Footer */
.site-footer { background: var(--midnight); color: #cbd5e1; padding: 56px 0 32px; margin-top: 40px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h2 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; color: #94a3b8; max-width: 22rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #94a3b8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

[dir="rtl"] .list-check li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .list-check li::before { left: auto; right: 0; }
