/* Egy Cleaner website. Colours are the app's palette (EgyCleaner/Theme.swift). */
:root {
  --bg: #f2f7f6; --surface: #ffffff; --surface2: #e6f0ee; --line: #d2e0dd;
  --text: #0c1a22; --muted: #5a6f7a; --accent: #0ba26c; --accent-ink: #ffffff;
  --blue: #2f6bff; --purple: #7b4de0; --orange: #d9701a; --pink: #d9457f; --danger: #d92d45;
  --shadow: 0 18px 50px rgba(12, 26, 34, .10);
  --glow: rgba(11, 162, 108, .16);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #07111a; --surface: #0f1d2b; --surface2: #172a3d; --line: #22384f;
  --text: #f1f7fb; --muted: #8fa5b8; --accent: #1fd08a; --accent-ink: #062217;
  --blue: #4f9cff; --purple: #a57bff; --orange: #ff9a3d; --pink: #ff6fa5; --danger: #ff4d5e;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --glow: rgba(31, 208, 138, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.75 "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", Roboto,
    "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { display: flex; gap: 22px; margin-inline-start: 26px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip.round { width: 40px; padding: 0; }
.chip svg { width: 18px; height: 18px; }
[data-theme="light"] .i-moon, [data-theme="dark"] .i-sun { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 380px at 78% 30%, var(--glow), transparent 70%),
    radial-gradient(460px 340px at 12% 8%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%);
}
.hero .wrap {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding-top: 64px; padding-bottom: 72px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  font-size: 14px; font-weight: 700;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(17px, 1.9vw, 20px); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 24px 9px 18px;
  border-radius: 14px; background: #000; color: #fff; border: 1px solid #5c6770;
  transition: transform .15s ease, box-shadow .15s ease;
}
[dir="rtl"] .store { padding: 9px 18px 9px 24px; }
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.store .logo { width: 30px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 12px; opacity: .8; font-weight: 500; }
.store b { font-size: 19px; font-weight: 700; }
.store.soon { cursor: default; }
.store.soon:hover { transform: none; box-shadow: none; }
.store.soon small { color: #ffb347; opacity: 1; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); }

.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 262px; aspect-ratio: 639 / 1390; border-radius: 42px; overflow: hidden;
  border: 9px solid #0c1a22; background: #0c1a22; box-shadow: var(--shadow);
}
[data-theme="dark"] .phone { border-color: #22384f; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.front { inset-inline-start: 8%; top: 10px; z-index: 2; transform: rotate(-3deg); }
.phone.back { inset-inline-end: 4%; top: 58px; z-index: 1; transform: rotate(5deg) scale(.94); opacity: .96; }
[dir="rtl"] .phone.front { transform: rotate(3deg); }
[dir="rtl"] .phone.back { transform: rotate(-5deg) scale(.94); }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.head h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 700; margin-top: 8px; }
.head p { color: var(--muted); margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
}
.ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; margin-top: 16px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* Honest */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honest .card h3 { margin-top: 0; }
.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 16px; }
.list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--accent); }
.list.no svg { color: var(--danger); }
.note { color: var(--muted); font-size: 14.5px; margin-top: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 24px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-top: 14px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* Gallery */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 22px 26px; scroll-snap-type: x mandatory; justify-content: safe center; }
.shot { flex: none; width: 232px; scroll-snap-align: center; margin: 0; text-align: center; }
.shot .frame { border-radius: 36px; overflow: hidden; border: 8px solid #0c1a22; background: #0c1a22; box-shadow: var(--shadow); aspect-ratio: 639 / 1390; }
[data-theme="dark"] .shot .frame { border-color: #22384f; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }

/* Android */
.android { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; }
.android h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.android p { color: var(--muted); margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.android .cta { margin-top: 0; justify-content: center; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--surface2); font-size: 14px; font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--accent); line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* Final call + footer */
.final { text-align: center; }
.final .box { border-radius: 30px; padding: 54px 24px; background: linear-gradient(135deg, #0ba26c, #067a5a); color: #fff; }
.final img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.final h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.final p { opacity: .9; margin-top: 10px; }
.final .cta { justify-content: center; }
.final .store { border-color: #000; }

footer { padding: 34px 0 46px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--muted); font-weight: 600; }
.legal { width: 100%; font-size: 12.5px; opacity: .85; }

/* Reveal on scroll (only when scripts run) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .store { transition: none; }
}

/* Privacy page */
.doc { max-width: 780px; margin: 0 auto; padding: 44px 22px 70px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.doc h2 { font-size: 20px; font-weight: 700; margin-top: 30px; }
.doc p, .doc li { margin: 8px 0; }
.doc ul { padding-inline-start: 22px; }
.doc .muted { color: var(--muted); font-size: 15px; }

@media (max-width: 920px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta, .facts { justify-content: center; }
  .phones { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { width: 224px; }
  .phone.front { inset-inline-start: 2%; }
  .phone.back { inset-inline-end: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .honest, .android { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .shots { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .top .wrap { height: 60px; gap: 8px; }
  .brand span { font-size: 17px; }
  .phones { height: 440px; }
  .phone { width: 190px; border-width: 7px; border-radius: 34px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .android { padding: 24px; }
}
