/* EgyBattery — egybattery.com. Colours come from the app itself: icon blue, charging green, the pale blue-grey of its screens. */
:root {
  --navy: #0a1633;
  --navy-2: #10224f;
  --blue: #2468f2;
  --blue-2: #3d8bff;
  --green: #17a765;
  --green-2: #5ee0a0;
  --amber: #dd7a1e;
  --violet: #7b5cf0;
  --ink: #0d1626;
  --muted: #5c6b82;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #d9e2f0;
  --r: 22px;
  --ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --en: "Inter", "Segoe UI", system-ui, sans-serif;
  --brand: "Sora", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 var(--ar); }
html[lang="en"] body { font-family: var(--en); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 22, 51, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.brand b { font: 700 20px/1 var(--brand); letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .74); transition: color .15s; }
.nav a:hover { color: #fff; }
.lang { font: 600 14px/1 var(--en); color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
html[lang="en"] .lang { font-family: var(--ar); }
.lang:hover { border-color: rgba(255, 255, 255, .6); }
.get { text-decoration: none; font-weight: 700; font-size: 15px; background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 999px; }
.get:hover { background: var(--blue-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(900px 520px at 12% -10%, rgba(61, 139, 255, .42), transparent 62%),
    radial-gradient(700px 520px at 92% 110%, rgba(23, 167, 101, .22), transparent 60%),
    linear-gradient(160deg, #0d2466 0%, var(--navy) 58%); }
html[dir="ltr"] .hero { background:
    radial-gradient(900px 520px at 88% -10%, rgba(61, 139, 255, .42), transparent 62%),
    radial-gradient(700px 520px at 8% 110%, rgba(23, 167, 101, .22), transparent 60%),
    linear-gradient(200deg, #0d2466 0%, var(--navy) 58%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 72px 0; }
.hero-copy { padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #c9f5de; background: rgba(23, 167, 101, .16); border: 1px solid rgba(94, 224, 160, .3); padding: 6px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(94, 224, 160, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 224, 160, 0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.22; font-weight: 700; margin-top: 22px; letter-spacing: -.01em; }
html[lang="en"] .hero h1 { font-family: var(--brand); line-height: 1.1; letter-spacing: -.03em; font-size: clamp(36px, 5vw, 60px); }
.hero h1 em { font-style: normal; color: var(--green-2); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .78); margin-top: 20px; max-width: 34em; }
.lead.dim { color: var(--muted); margin-top: 12px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 18px; border-radius: 16px; text-decoration: none; min-width: 190px; }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: grid; line-height: 1.2; text-align: start; }
.store small { font-size: 12px; opacity: .78; }
.store b { font: 700 19px/1.25 var(--en); letter-spacing: -.01em; }
.store.apple { background: #fff; color: #05070d; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); transition: transform .15s, box-shadow .15s; }
.store.apple:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .7); }
.store.soon { color: rgba(255, 255, 255, .62); border: 1px dashed rgba(255, 255, 255, .3); cursor: default; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.facts li { font-size: 14px; color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .16); padding: 4px 13px; border-radius: 999px; }

.hero-art { position: relative; display: grid; place-items: end center; min-height: 560px; }
.ring { position: absolute; width: min(520px, 118%); top: 12px; left: 50%; transform: translateX(-50%); }
.ring-fill { animation: fill 1.9s cubic-bezier(.2, .7, .2, 1) .25s forwards; }
@keyframes fill { to { stroke-dashoffset: 28; } }
.phone { position: relative; width: min(292px, 70vw); aspect-ratio: 736 / 1600; border-radius: 46px; border: 9px solid #05080f; background: #05080f; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .2), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .phone { margin-bottom: -150px; }
.chip { position: absolute; display: grid; gap: 2px; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 18px; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .65); font-size: 13.5px; line-height: 1.35; animation: float 6s ease-in-out infinite; }
.chip b { font: 800 24px/1.15 var(--en); }
html[lang="ar"] .chip-b b { font-family: var(--ar); font-weight: 700; font-size: 21px; }
.chip span { color: var(--muted); font-weight: 500; }
.chip-a { top: 120px; inset-inline-start: 0; }
.chip-a b { color: var(--green); }
.chip-b { bottom: 70px; inset-inline-end: -6px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* ---------- sections ---------- */
.band { padding-block: clamp(64px, 9vw, 110px); }
.band.soft { background: #e9eef8; }
.kicker { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }
h2 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.3; font-weight: 700; margin-top: 8px; max-width: 20em; }
html[lang="en"] h2 { font-family: var(--brand); letter-spacing: -.025em; line-height: 1.16; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #b9c8e2; box-shadow: 0 22px 40px -28px rgba(13, 22, 38, .45); }
.card.accent { grid-column: span 2; border-color: rgba(23, 167, 101, .5); background: linear-gradient(140deg, #fff 55%, #e7f8ef); }
.card p { font-size: 15.5px; color: var(--muted); margin-top: 8px; line-height: 1.75; }
.ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; }
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.green { background: #dcf3e7; color: var(--green); }
.ic.blue { background: #dfe9fd; color: var(--blue); }
.ic.amber { background: #fae7d5; color: var(--amber); }
.ic.violet { background: #e8e2fc; color: var(--violet); }

/* charger test */
.test { background: #fff; border-block: 1px solid var(--line); }
.test-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font: 700 19px/1 var(--en); }
.steps b { font-size: 19px; line-height: 1.5; }
.steps span { color: var(--muted); font-size: 16px; }
.result-card { background: var(--bg); border: 1.5px solid rgba(23, 167, 101, .45); border-radius: 28px; padding: 28px; box-shadow: 0 30px 60px -40px rgba(13, 22, 38, .5); }
.result-card small { color: var(--muted); font-size: 15px; }
.result-card strong { display: block; color: var(--green); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.25; font-weight: 700; }
.result-card strong > span[dir] { font-family: var(--en); font-weight: 800; }
.result-card em { font-style: normal; font-weight: 700; font-size: 18px; }
.meter { height: 10px; border-radius: 999px; background: #dfe6f2; margin: 18px 0 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 86%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), var(--green)); transform-origin: right; }
html[dir="ltr"] .meter span { transform-origin: left; background: linear-gradient(90deg, var(--green), var(--green-2)); }
.result-card dl { margin: 14px 0 0; display: grid; }
.result-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; font-weight: 700; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.note.center { text-align: center; margin-top: 4px; }

/* screenshots */
.strip { display: flex; gap: 26px; overflow-x: auto; padding: 44px max(20px, calc((100vw - 1120px) / 2)) 30px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b9c8e2 transparent; }
.strip figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.phone.sm { width: 236px; border-radius: 38px; border-width: 7px; box-shadow: 0 0 0 1px #c5d1e6, 0 30px 50px -34px rgba(13, 22, 38, .6); }
.strip figcaption { margin-top: 14px; font-weight: 600; font-size: 15.5px; }

/* honest */
.band.dark { background: linear-gradient(180deg, var(--navy), #0c1c42); color: #fff; }
.band.dark .kicker { color: var(--green-2); }
.truths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 30px; }
.truths > div { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.truths h3 { font-size: 20px; }
.truths p { color: rgba(255, 255, 255, .72); font-size: 16px; margin-top: 8px; }

/* android */
.android { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 8px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ticks li { position: relative; padding: 14px 0; padding-inline-start: 34px; border-top: 1px solid var(--line); font-weight: 500; font-size: 16px; }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: #dcf3e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%2317a765' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-top: 12px; }
details:first-of-type { margin-top: 32px; }
summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 var(--en); color: var(--blue); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }

/* cta + footer */
.cta { text-align: center; color: #fff; padding-block: clamp(64px, 9vw, 100px); background: radial-gradient(700px 360px at 50% 0%, rgba(61, 139, 255, .5), transparent 70%), linear-gradient(180deg, #123083, var(--navy)); }
.cta img { margin-inline: auto; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 44px -20px rgba(0, 0, 0, .7); }
.cta h2 { margin: 22px auto 0; }
.cta p { color: rgba(255, 255, 255, .76); margin-top: 8px; }
.cta .store { margin-top: 28px; }
.foot { background: #070f24; color: rgba(255, 255, 255, .7); padding-block: 40px; font-size: 15px; }
.foot .wrap { display: grid; gap: 18px; }
.foot .brand { color: #fff; }
.foot .brand b { font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.fine { font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- privacy page ---------- */
.doc { padding-block: 56px 90px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.3; }
html[lang="en"] .doc h1 { font-family: var(--brand); letter-spacing: -.025em; }
.doc .date { color: var(--muted); margin-top: 6px; font-size: 15px; }
.doc h2 { font-size: 21px; margin-top: 38px; max-width: none; font-family: inherit; letter-spacing: 0; }
.doc p, .doc li { color: #2b3950; margin-top: 10px; }
.doc ul { padding-inline-start: 22px; margin: 6px 0 0; }
.doc a { color: var(--blue); }
.doc .box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 24px 20px; margin-top: 26px; }
.doc .box h2 { margin-top: 16px; }

/* ---------- motion ---------- */
.motion .card, .motion .steps li, .motion .result-card, .motion .truths > div, .motion .ticks li, .motion details, .motion .strip figure { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.motion .in { opacity: 1 !important; transform: none !important; }
.motion .card.in:hover { transform: translateY(-3px) !important; transition-delay: 0ms; }
.motion .meter span { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
.motion .result-card.in .meter span { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-fill { animation: none; stroke-dashoffset: 28; }
  .chip, .dot { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:last-child { grid-column: span 2; }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 0; gap: 8px; }
  .hero-copy { padding-bottom: 28px; text-align: center; }
  .lead { margin-inline: auto; }
  .stores, .facts { justify-content: center; }
  .hero-art { min-height: 470px; }
  .ring { width: min(430px, 104vw); top: 26px; }
  .phone { width: min(250px, 62vw); }
  .hero-art .phone { margin-bottom: -170px; }
  .chip-a { top: 96px; inset-inline-start: max(0px, calc(50% - 190px)); }
  .chip-b { bottom: 46px; inset-inline-end: max(0px, calc(50% - 196px)); }
  .test-grid, .android { grid-template-columns: 1fr; gap: 36px; }
  .truths { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .card.accent, .card:last-child { grid-column: auto; }
  .top .wrap { gap: 10px; height: 62px; }
  .brand b { font-size: 18px; }
  .get { padding: 8px 14px; }
  .lang { padding: 9px 12px; }
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .chip { padding: 9px 13px; font-size: 12.5px; }
  .chip b { font-size: 20px; }
  .phone.sm { width: 208px; }
  .strip { gap: 18px; }
  .result-card { padding: 22px 20px; }
}
