/* ifes.app home page sections (EN and AR). */
section { padding: clamp(56px, 8vw, 104px) 0; }
.alt { background: var(--bg-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
html:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9rem; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.head { max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 520px at 80% -10%, rgba(37,99,235,.55), transparent 60%), radial-gradient(800px 480px at 0% 110%, rgba(14,165,164,.28), transparent 60%), linear-gradient(180deg, var(--navy), #060C22); color: #fff; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: #5EEAD4; }
.hero .lead { color: #C9D5EE; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.facts li { border: 1px solid rgba(147,197,253,.22); background: rgba(255,255,255,.04); border-radius: 14px; padding: 12px 14px; font-size: .92rem; color: #C9D5EE; }
.facts b { display: block; color: #fff; font-size: 1.15rem; }
.devices { position: relative; padding-bottom: 6%; }
.tablet { border-radius: 22px; padding: 10px; background: #0D1530; border: 1px solid rgba(147,197,253,.25); box-shadow: var(--shadow-lg); }
.tablet img { border-radius: 14px; width: 100%; }
.phone { position: absolute; width: 34%; inset-inline-start: -6%; bottom: -4%; border-radius: 30px; padding: 7px; background: #0D1530; border: 1px solid rgba(147,197,253,.3); box-shadow: var(--shadow-lg); }
.phone img { border-radius: 24px; width: 100%; }
.hero-note { font-size: .8rem; color: #8FA3C8; margin: 16px 0 0; padding-inline-start: 32%; }
@media (max-width: 900px) { .hero-note { padding-inline: 0 40%; } .hero .wrap { grid-template-columns: 1fr; } .devices { max-width: 620px; margin-inline: auto; width: 100%; } .phone { inset-inline-start: auto; inset-inline-end: -2%; } }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .16s ease-out, background .16s ease-out, transform .16s ease-out; }
@media (hover: hover) { .card:hover { border-color: var(--teal); background: var(--card-hover); transform: translateY(-2px); } }
.card p { color: var(--muted); margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-bottom: 14px; }
.ico svg { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { .ico { color: var(--sky); } }

/* Passenger split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; }
.steps h3 { margin: 6px 0 4px; }
.steps p { color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 18%, transparent); box-shadow: inset 0 0 0 2px var(--teal); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 520px; margin-inline: auto; }
.phones .phone { position: static; width: auto; }
.phones .phone:nth-child(2) { margin-top: 48px; }

/* How it works diagram */
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); box-shadow: var(--shadow); }
.diagram svg { width: 100%; }
.dg-tall { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 700px) { .dg-wide { display: none; } .dg-tall { display: block; } }
.dg-box { fill: var(--bg-2); stroke: var(--line); stroke-width: 1.5; }
.dg-key { fill: var(--navy); }
.dg-key-t { fill: #fff; font-weight: 700; }
.dg-t { fill: var(--text); font-size: 15px; font-weight: 700; }
.dg-s { fill: var(--muted); font-size: 12.5px; }
.dg-line { stroke: var(--highlight); stroke-width: 2.5; fill: none; }
.dg-dash { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.dg-zone { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.dg-zl { fill: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.dg-ac { fill: var(--sky); }
.flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: f; }
.flow li { counter-increment: f; }
.flow li::before { content: counter(f); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .9rem; margin-bottom: 8px; }
.flow p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* Portal status mock + wide shot */
.status { background: var(--navy); color: #DCE6FA; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg); font-size: .95rem; }
.status h3 { color: #fff; display: flex; align-items: center; gap: 10px; }
.status h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.status dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.status dt { color: #8FA3C8; }
.status dd { margin: 0; color: #fff; font-weight: 600; }
.status small { display: block; color: #8FA3C8; margin-top: 14px; }
.shot { margin: 0; }
.shot .tablet { background: #0D1530; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Box + specs */
.box-art { background: linear-gradient(160deg, var(--navy-2), var(--navy)); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.box-art figcaption { color: #8FA3C8; font-size: .85rem; margin-top: 12px; text-align: center; }
.specs { width: 100%; border-collapse: collapse; font-size: .96rem; }
.specs th, .specs td { text-align: start; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.specs th { width: 34%; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .specs th, .specs td { display: block; width: auto; padding: 4px 0; border: 0; } .specs tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); } }

/* Who it is for */
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; transition: border-color .16s; }
.faq details[open], .faq details:hover { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.contact .lead { color: #C9D5EE; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact a:not(.btn) { color: #fff; font-weight: 600; }
.contact li span { display: block; font-size: .85rem; color: #8FA3C8; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.portal { margin-top: 56px; }
.ports { list-style: none; counter-reset: p; padding: 0; margin: 18px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; text-align: start; color: #C9D5EE; font-size: .92rem; }
.ports li { counter-increment: p; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; }
.ports li::before { content: counter(p); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(94,234,212,.15); color: #5EEAD4; font-weight: 800; font-size: .85rem; }
.ports b { color: #fff; }
.box-art small { display: block; }
@media (max-width: 420px) { .ports { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .dg-key { fill: var(--navy-3); stroke: var(--highlight); stroke-width: 1.5; } }
