/* Device Inspector website. System fonts only, no external requests, no JavaScript needed. */
:root {
  --brand: #4a4fe0;
  --brand-2: #006e87;
  --glow: #22d3ee;
  --bg: #f7f8fc;
  --bg-2: #eef0fb;
  --surface: #ffffff;
  --surface-2: #f3f4fb;
  --border: rgba(30, 34, 80, 0.10);
  --text: #12142b;
  --muted: #5a5f7a;
  --ok: #138a53;
  --shadow: 0 1px 2px rgba(18, 20, 43, 0.06), 0 12px 32px -12px rgba(40, 44, 120, 0.18);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8589ff;
    --brand-2: #3fe0f5;
    --glow: #9ef6ff;
    --bg: #0a0b17;
    --bg-2: #10122a;
    --surface: #14162e;
    --surface-2: #1a1d3a;
    --border: rgba(160, 170, 255, 0.14);
    --text: #eef0ff;
    --muted: #a3a8c9;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
}
[lang="en"] { direction: ltr; unicode-bidi: isolate; }
/* English lines inside Arabic (RTL) blocks follow the Arabic alignment. */
html[dir="rtl"] .card [lang="en"] { text-align: right; }
html[dir="rtl"] .plan [lang="en"], html[dir="rtl"] .download [lang="en"], html[dir="rtl"] .center-page [lang="en"],
html[dir="rtl"] .hero [lang="en"], html[dir="rtl"] .section-title [lang="en"], html[dir="rtl"] .center-note [lang="en"] { text-align: center; }
[lang="en"] { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.en { display: block; color: var(--muted); font-size: .95em; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #4a4fe0, #2a7fd8 55%, #13b5cf); box-shadow: 0 10px 24px -10px rgba(74, 79, 224, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(34, 211, 238, .6); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(40% 50% at 30% 30%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 70%),
              radial-gradient(35% 45% at 72% 40%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%); filter: blur(10px); }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 24px; filter: drop-shadow(0 18px 30px rgba(40, 44, 140, .35)); }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; margin-inline: auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.req { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* Sections */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }
.features { grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.card p { color: var(--muted); margin: 0; }
.feature .glyph { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--glow)); }
.free-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 0; list-style: none; }
.free-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .95rem; }
.free-list li span { color: var(--muted); }
.pro { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); }
.badge-pro { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: #3b2a00; background: linear-gradient(135deg, #ffd66b, #f5a524); vertical-align: middle; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 36px auto 0; }
.plan { text-align: center; position: relative; }
.plan.best { border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), var(--shadow); }
.plan .tag { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .plan .tag { transform: translateX(50%); }
.price { font-size: 2.2rem; font-weight: 800; margin: 6px 0; direction: ltr; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.trust { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust .card { box-shadow: none; }

/* Download */
.download { text-align: center; }
.download .card { max-width: 720px; margin-inline: auto; padding: 40px 24px; background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--brand) 18%, var(--surface)), var(--surface)); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal .lang-block + .lang-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.toc { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 24px; }

/* Centered pages (return, 404) */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(50% 40% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent), var(--bg); }
.center-page .card { max-width: 520px; width: 100%; text-align: center; padding: 40px 28px; }
.center-page h1 { font-size: 1.8rem; }
.center-page h2 { font-size: 1.35rem; margin-top: 1em; }
.check { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: #fff; background: linear-gradient(135deg, #16a34a, #22d3ee); box-shadow: 0 12px 30px -10px rgba(34, 211, 238, .6); }
.big-404 { font-size: 4.5rem; font-weight: 800; line-height: 1; margin-bottom: 12px; }

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
.center-note { text-align: center; margin-top: 20px; }
.legal a, .site-footer a { overflow-wrap: anywhere; }
.brand { white-space: nowrap; }
