/* cleany.ma — brand: Indigo #223961, Sky Blue #B4CFFF, White, tint #EEF4FF.
   Quicksand (headings), Inter (body), Tajawal (Arabic). Pills, flat, no gradients.
   Logical properties (inline-start/end) so the same CSS works in RTL. */

:root {
  --indigo: #223961;
  --indigo-2: #2E4775;
  --indigo-hover: #3A5A94;
  --sky: #B4CFFF;
  --sky-text: #C9DAFF;
  --tint: #EEF4FF;
  --line: #D6E3FF;
  --line-2: #E3ECFF;
  --muted: #3B4F75;
  --accent: #6E93D6;
  --white: #FFFFFF;
  --head: 'Quicksand', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
html[lang="ar"] { --head: 'Tajawal', system-ui, sans-serif; --body: 'Tajawal', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--indigo); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-hover); }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.plans :focus-visible, .cta-card :focus-visible { outline-color: var(--white); }
.plans .plan-popular :focus-visible { outline-color: var(--indigo); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-family: 'Quicksand', 'Tajawal', system-ui, sans-serif; font-weight: 700; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--indigo); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-hover); color: var(--white); }
.btn-outline { background: var(--white); color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--tint); color: var(--indigo); }
.btn-sky { background: var(--sky); color: var(--indigo); font-weight: 700; font-size: 17px; padding: 18px 30px; }
.btn-sky:hover { background: var(--white); color: var(--indigo); }
.btn-white { background: var(--white); color: var(--indigo); }
.btn-white:hover { background: var(--tint); color: var(--indigo); }
.btn-sm { padding: 12px 22px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line-2); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; direction: ltr; }
.brand-mark { width: 40px; height: 40px; border-radius: 999px; background: var(--indigo); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: 'Quicksand', 'Tajawal', system-ui, sans-serif; font-weight: 700; font-size: 24px; color: var(--indigo); }
.brand-name span { color: var(--accent); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.pills { display: flex; background: var(--tint); border-radius: 999px; padding: 4px; }
.pill { border: 0; cursor: pointer; min-width: 44px; min-height: 40px; padding: 0 18px; border-radius: 999px; font: 600 14px var(--body); color: var(--indigo); background: transparent; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pill[aria-current="page"], .pill[aria-pressed="true"] { background: var(--sky); color: var(--indigo); }
.pill:hover { color: var(--indigo); }
.pill-ar { font-family: 'Tajawal', system-ui, sans-serif; font-size: 16px; }
.pills-dark { background: var(--indigo-2); margin-top: 8px; }
.pills-dark .pill { color: var(--white); }
.pills-dark .pill[aria-pressed="true"] { color: var(--indigo); }

/* Sections */
.section { padding-block: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.section-head p { font-size: 18px; color: var(--muted); max-width: 620px; line-height: 1.6; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }

/* Hero */
.hero { background: var(--tint); }
.hero .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.badge { align-self: flex-start; background: var(--sky); color: var(--indigo); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 5.5vw, 54px); line-height: 1.1; }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.hero-visual { flex: 1 1 420px; display: flex; justify-content: center; min-width: 0; }
.hero-card { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border-radius: 40px; background: var(--sky); position: relative; display: flex; align-items: center; justify-content: center; }
.hero-card > svg { width: 78%; height: auto; }
.float { position: absolute; border-radius: 20px; }
.float-next { bottom: 24px; inset-inline-start: -16px; background: var(--white); padding: 16px 20px; box-shadow: 0 8px 24px rgba(34,57,97,.12); display: flex; flex-direction: column; gap: 4px; }
.float-next small { font-size: 13px; color: var(--muted); }
.float-next strong { font-family: var(--head); font-size: 18px; }
.float-water { top: 24px; inset-inline-end: -16px; background: var(--indigo); color: var(--white); padding: 14px 18px; font-weight: 600; font-size: 15px; }

/* Steps */
.grid { display: grid; gap: 24px; }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { border: 1.5px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step-n { width: 48px; height: 48px; border-radius: 999px; background: var(--sky); display: flex; align-items: center; justify-content: center; font-family: 'Quicksand', 'Tajawal', system-ui, sans-serif; font-weight: 700; font-size: 20px; }
.step h3 { font-size: 22px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Plans */
.plans { background: var(--indigo); color: var(--white); }
.plans .section-head p { color: var(--sky-text); }
.grid-plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.grid-plans[hidden] { display: none; }
.plan { background: var(--indigo-2); color: var(--white); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan-popular { background: var(--sky); color: var(--indigo); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 { font-size: 24px; }
.tag { background: var(--indigo); color: var(--white); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.plan-freq { font-size: 15px; opacity: .85; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .num { font-size: 48px; line-height: 1; }
.plan-price span:last-child { font-size: 16px; opacity: .85; }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.features li svg { flex-shrink: 0; margin-top: 2px; }
.features li.no { opacity: .65; text-decoration: line-through; }
.plan .btn { padding: 14px 20px; }
.plans-note { text-align: center; font-size: 14px; color: var(--sky-text); line-height: 1.6; }

/* One-time */
.table-box { border: 1.5px solid var(--line); border-radius: 28px; padding: 8px 16px; overflow-x: auto; }
.pt { width: 100%; border-collapse: collapse; }
.pt th, .pt td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.pt tbody tr:last-child th, .pt tbody tr:last-child td { border-bottom: 0; }
.pt thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.pt tbody th { font-weight: 400; }
.pt .row-name { display: flex; flex-direction: column; gap: 2px; }
.pt .row-name strong { font-weight: 600; }
.pt .row-name span { font-size: 13px; color: var(--muted); white-space: normal; min-width: 180px; }
.pt td { font-family: 'Quicksand', 'Tajawal', system-ui, sans-serif; font-weight: 700; font-size: 18px; }
.grid-boxes { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.box { background: var(--tint); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.box h3 { font-size: 22px; }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.price-list li span:last-child { font-weight: 700; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); }

/* B2B */
.b2b-card { background: var(--tint); border-radius: 40px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.b2b-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.b2b-text .badge { background: var(--white); }
.b2b-text h2 { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.2; }
.b2b-text p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.b2b-text .btn { align-self: flex-start; padding: 14px 26px; }
.fleet { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fleet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fleet li { background: var(--white); border-radius: 20px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
.fleet li .num { font-size: 20px; white-space: nowrap; }

/* Where */
.where { padding-bottom: 88px; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.where h2 { font-size: clamp(26px, 3vw, 32px); }
.where p { font-size: 17px; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li { border: 1.5px solid var(--sky); padding: 12px 22px; border-radius: 999px; font-weight: 500; }

/* FAQ */
.faq { background: var(--tint); }
.faq .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.faq h2 { font-size: clamp(28px, 3.5vw, 36px); text-align: center; margin-bottom: 16px; }
.faq details { background: var(--white); border-radius: 24px; padding: 22px 28px; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Quicksand', 'Tajawal', system-ui, sans-serif; font-size: 24px; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* CTA + footer */
.cta-card { background: var(--indigo); color: var(--white); border-radius: 40px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-card > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cta-card h2 { font-size: clamp(28px, 3.5vw, 36px); }
.cta-card p { font-size: 17px; color: var(--sky-text); line-height: 1.6; }
.site-footer { border-top: 1px solid var(--line-2); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer .brand-name { font-size: 18px; }

/* Mobile */
@media (max-width: 860px) {
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .main-nav ul { flex-wrap: nowrap; gap: 20px; padding-bottom: 4px; white-space: nowrap; }
}
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .hero .wrap { padding-block: 48px; }
  .hero-sub { font-size: 17px; }
  .float-next { inset-inline-start: 8px; }
  .float-water { inset-inline-end: 8px; }
  .b2b-card, .cta-card { padding: 32px 24px; border-radius: 32px; }
  .where { padding-bottom: 64px; }
  .brand-name { font-size: 20px; }
  .header-actions { gap: 8px; }
  .pill { padding: 0 12px; }
  .btn-sm { padding: 11px 16px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .brand-mark { display: none; }
}

/* Without JavaScript: hide the car/moto switch and show both plan groups. */
.js .nojs-only { display: none; }
.no-js .veh-tabs { display: none; }
.no-js .grid-plans[hidden] { display: grid; }
