/* ============================================================
   Raqame — raqame.net
   ------------------------------------------------------------
   THEME / الهوية — عدّل الألوان من هنا فقط
   All site colors live in this :root block. Change a value here
   and the whole site follows. (Palette = app "Fluent Petrol")
   ============================================================ */
:root {
  /* --- Brand / العلامة --- */
  --brand:            #00505F;  /* Primary — Fluent Petrol (لون الهوية الأساسي) */
  --brand-dark:       #003543;  /* Hover / emphasis */
  --brand-light:      #84D2E7;  /* Accents on dark sections */
  --brand-container:  #D1E6EB;  /* Soft petrol wash — chips, highlights */
  --accent:           #047488;  /* Logo braces teal — links, small accents */

  /* --- Light surfaces / الأسطح الفاتحة --- */
  --bg:               #FAFAFA;  /* Page background */
  --surface:          #FFFFFF;  /* Cards */
  --surface-2:        #EDEDED;  /* Recessed fills */
  --border:           #E5E5E5;  /* Hairlines */
  --text:             #1B1B1B;  /* Primary text */
  --text-subtle:      #5D5D5D;  /* Secondary text */

  /* --- Dark band / القسم الداكن --- */
  --dark-bg:          #101416;
  --dark-surface:     #171C1E;
  --dark-border:      #22292C;
  --dark-text:        #E2E6E7;
  --dark-text-subtle: #8F9A9D;

  /* --- Semantic / دلالية --- */
  --success:          #0F7B0F;
  --warning:          #B45309;

  /* --- Typography / الخطوط --- */
  --font-ar: 'Zain', 'Cairo', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;

  /* --- Shape & motion --- */
  --radius:    16px;
  --radius-sm: 12px;
  --shadow:    0 1px 2px rgba(0, 53, 67, .05), 0 8px 24px rgba(0, 53, 67, .08);
  --shadow-lg: 0 2px 6px rgba(0, 53, 67, .08), 0 24px 60px rgba(0, 53, 67, .16);
  --container: 1120px;
}

/* ============================================================
   Base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; /* keep anchor targets clear of the sticky header */ }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); font-size: 16px; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Language visibility — legal pages keep both languages in the HTML */
html[lang="en"] .only-ar { display: none !important; }
html[lang="ar"] .only-en { display: none !important; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-container); }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-container); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .brand-name { color: var(--brand); }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  color: var(--text-subtle);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-container); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 18px; font-size: .92em; }

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-ar);
  font-size: .95em;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-toggle:hover { border-color: var(--brand); background: var(--brand-container); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--brand);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-block: 72px 88px;
  overflow: hidden;
}
.hero::before {
  /* soft petrol glow behind the hero */
  content: "";
  position: absolute;
  inset-inline-end: -220px;
  top: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-container) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-container);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: .9em;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15, 123, 15, .18);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 1.18em;
  color: var(--text-subtle);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { color: var(--text-subtle); font-size: .9em; }

/* --- Phone mockup (pure CSS, no screenshots needed) --- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px;
  border-radius: 40px;
  background: #0d1214;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
  direction: rtl; /* the app is Arabic-first */
}
html[lang="en"] .phone-screen { direction: ltr; }
.phone-appbar {
  background: var(--brand);
  color: #fff;
  padding: 16px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.phone-appbar .app-title { display: flex; align-items: center; gap: 8px; font-size: .95em; }
.phone-appbar img { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 2px; }
.phone-body { padding: 14px; display: grid; gap: 12px; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.kpi .kpi-label { font-size: .68em; color: var(--text-subtle); font-weight: 600; }
.kpi .kpi-value { font-size: 1.05em; font-weight: 700; color: var(--brand-dark); }
.kpi .kpi-up { color: var(--success); font-size: .66em; font-weight: 700; }
.phone-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.phone-chart .chart-title { font-size: .72em; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.chart-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.chart-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--brand-container);
}
.chart-bars span.hot { background: var(--brand); }
.phone-list { display: grid; gap: 8px; }
.phone-li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: .72em;
  font-weight: 600;
}
.phone-li .li-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-container);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.phone-li .li-amount { margin-inline-start: auto; color: var(--brand-dark); font-weight: 700; }
.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.phone-nav span {
  width: 30px; height: 4px;
  border-radius: 4px;
  background: var(--border);
}
.phone-nav span.active { background: var(--brand); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-block: 26px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { color: var(--brand); flex-shrink: 0; }
.trust-item b { display: block; font-size: .98em; color: var(--text); }
.trust-item small { color: var(--text-subtle); font-size: .82em; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: 84px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: .88em;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--brand-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-subtle); font-size: 1.06em; }

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-container);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--brand-container);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.12em; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-subtle); font-size: .93em; }

/* --- Bridge strip --- */
.bridge-strip {
  margin-top: 28px;
  background: var(--brand-container);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--brand-dark);
}
.bridge-strip svg { flex-shrink: 0; }
.bridge-strip b { font-size: 1.05em; }
.bridge-strip p { font-size: .92em; margin-top: 2px; }

/* ============================================================
   Dark band — data ownership
   ============================================================ */
.own {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.own .container {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding-block: 84px;
}
.own-mark { display: flex; justify-content: center; }
.own-mark img { width: min(300px, 70%); opacity: .96; }
.own .kicker { color: var(--brand-light); }
.own h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.3;
  margin-bottom: 26px;
}
.own-points { display: grid; gap: 18px; }
.own-point { display: flex; gap: 14px; align-items: flex-start; }
.own-point svg { color: var(--brand-light); flex-shrink: 0; margin-top: 4px; }
.own-point b { display: block; font-size: 1.04em; margin-bottom: 3px; }
.own-point p { color: var(--dark-text-subtle); font-size: .93em; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { background: var(--surface); border-block: 1px solid var(--border); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: -14px;
  inset-inline-start: 24px;
  background: var(--brand);
  color: #fff;
  font-size: .78em;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
}
.plan h3 { color: var(--brand-dark); font-size: 1.25em; margin-bottom: 4px; }
.plan .plan-sub { color: var(--text-subtle); font-size: .9em; margin-bottom: 20px; }
.plan ul { display: grid; gap: 11px; margin-bottom: 26px; }
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .93em;
  color: var(--text);
}
.plan li svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }
.plan li.muted { color: var(--text-subtle); }
.plan li.muted svg { color: var(--text-subtle); }
.plan .btn { margin-top: auto; }
.pricing-note {
  text-align: center;
  color: var(--text-subtle);
  font-size: .92em;
  margin-top: 30px;
}
.pricing-note b { color: var(--brand-dark); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--brand-container); }
.faq-item summary .chev { color: var(--brand); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-subtle); font-size: .95em; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
  padding-block: 72px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: var(--brand-light); margin-bottom: 30px; font-size: 1.05em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-subtle);
  padding-block: 56px 32px;
  font-size: .94em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-border);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--dark-text); font-weight: 700; font-size: 1.2em; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-col h4 { color: var(--dark-text); font-size: 1em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--dark-text-subtle); }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  font-size: .9em;
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 52px;
}
.legal-hero h1 { color: var(--brand-dark); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.legal-hero .legal-date { color: var(--text-subtle); font-size: .95em; }
.legal-body { max-width: 820px; margin-inline: auto; padding-block: 56px 80px; }
.legal-body h2 {
  color: var(--brand-dark);
  font-size: 1.35em;
  margin: 40px 0 14px;
  padding-top: 8px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { color: var(--text); font-size: 1.1em; margin: 24px 0 10px; }
.legal-body p { margin-bottom: 14px; color: var(--text); }
.legal-body ul { list-style: disc; padding-inline-start: 26px; margin-bottom: 16px; display: grid; gap: 8px; }
.legal-body li { color: var(--text); }
.legal-body .summary-box {
  background: var(--brand-container);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--brand-dark);
  margin-bottom: 34px;
}
.legal-body .summary-box b { display: block; margin-bottom: 8px; font-size: 1.06em; }
.legal-body .summary-box ul { margin-bottom: 0; }
.legal-body .summary-box li { color: var(--brand-dark); }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: .93em;
}
.legal-body th, .legal-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: start;
  vertical-align: top;
}
.legal-body th { background: var(--surface-2); color: var(--brand-dark); }
.table-scroll { overflow-x: auto; }

/* ============================================================
   Reveal animation — progressive enhancement only:
   the hidden state applies only when JS is running (html.js),
   so content stays visible if scripts fail to load.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .phone { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .own .container { grid-template-columns: 1fr; gap: 36px; }
  .own-mark img { width: 200px; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-burger { display: block; margin-inline-start: auto; }
  .header-actions .btn-download { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding-block: 60px; }
  .hero { padding-block: 48px 60px; }
  .bridge-strip { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
