/* InstaFind — بحث سريع · site styles (shared by the Arabic and English pages) */

@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/plex-arabic-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/plex-arabic-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/plex-arabic-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/plex-arabic-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #0d9488;
  --brand-text: #1d4ed8;
  --accent-text: #0f766e;
  --btn-text: #ffffff;
  --code-bg: #eef2f7;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
  --radius: 14px;
  --max: 1120px;
  --font: "Plex Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, "Noto Sans Arabic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --surface: #111a2e;
    --text: #e5ecf5;
    --muted: #9fb0c6;
    --border: #22304a;
    --brand: #3b82f6;
    --brand-2: #14b8a6;
    --brand-text: #8ab4ff;
    --accent-text: #5eead4;
    --code-bg: #16213a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.75 var(--font);
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
code { background: var(--code-bg); padding: .1em .4em; border-radius: 6px; unicode-bidi: isolate; }
kbd { background: var(--code-bg); border: 1px solid var(--border); border-bottom-width: 2px; padding: .05em .4em; border-radius: 6px; unicode-bidi: isolate; direction: ltr; display: inline-block; }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--brand); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand small { color: var(--accent-text); font-weight: 700; font-size: 1rem; }
.nav { display: flex; gap: 1.1rem; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav .lang { color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .8rem; }
@media (max-width: 760px) { .nav .opt { display: none; } }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); background:
  radial-gradient(700px 380px at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(600px 360px at 10% 100%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 70%); }
.hero .wrap { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1fr 1.1fr; } }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; font-weight: 700; color: var(--accent-text); background: color-mix(in srgb, var(--brand-2) 12%, transparent); padding: .25rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.3rem); letter-spacing: -.01em; margin-bottom: .4em; }
html[lang="en"] .hero h1 { letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 38em; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.6rem .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1.02rem; border: 1px solid transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #0d9488); color: var(--btn-text); box-shadow: 0 6px 18px rgb(37 99 235 / .28); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); margin: 0; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.shot img { display: block; width: 100%; }
.shot figcaption { font-size: .85rem; color: var(--muted); background: var(--surface); padding: .5rem .9rem; border-top: 1px solid var(--border); }

/* sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 64px; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 44em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.07rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: .55rem; }
.card p, .card ul { color: var(--muted); margin: 0; font-size: .98rem; }
.card ul { padding-inline-start: 1.1rem; }
.card li + li { margin-top: .25rem; }
.ico { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--brand-2) 18%, transparent)); color: var(--brand-text); }
.ico svg { width: 20px; height: 20px; }

/* Arabic matching examples */
.examples { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 0; padding: 0; list-style: none; }
.examples li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .3rem .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; }
.examples .q, .examples .r { font-weight: 700; font-size: 1.12rem; }
.examples .q { background: var(--code-bg); padding: .05rem .55rem; border-radius: 8px; }
.examples .r { color: var(--accent-text); }
.examples .arrow { color: var(--muted); }
.examples .why { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: .88rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .7rem; direction: ltr; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-inline-start: 1.9rem; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.2-5.4 6a1 1 0 0 1-1.4.1L5.3 11a1 1 0 1 1 1.4-1.4l1.8 1.7 4.7-5.3a1 1 0 0 1 1.5 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.2-5.4 6a1 1 0 0 1-1.4.1L5.3 11a1 1 0 1 1 1.4-1.4l1.8 1.7 4.7-5.3a1 1 0 0 1 1.5 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* speed placeholder */
.bench { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--muted); background: var(--surface); }

/* install */
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.step h3 { gap: .5rem; flex-wrap: wrap; }
.step { min-width: 0; }
@media (min-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step.direct { grid-column: 1; grid-row: 1; }
  .step.winget { grid-column: 2; grid-row: 1; }
  .step.scoop { grid-column: 1 / -1; grid-row: 2; }
}
.badge { font-size: .78rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--brand-2) 15%, transparent); color: var(--accent-text); }
.badge.soon { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
@media (prefers-color-scheme: dark) { .badge.soon { color: #fbbf24; } }
pre { direction: ltr; text-align: left; background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; margin: .75rem 0 0; line-height: 1.6; }
pre code { background: none; padding: 0; }
.step .btn { margin-top: .9rem; }
.note { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 52em; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.1rem 1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* final CTA + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 520px) {
  .hero .cta .btn, .final .cta .btn { flex: 1 1 100%; }
}

/* Speed comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.bench-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bench-table caption { caption-side: bottom; padding: .75rem 1rem; color: var(--muted); font-size: .85rem; text-align: start; }
.bench-table th, .bench-table td { padding: .7rem 1rem; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bench-table tbody tr:last-child th, .bench-table tbody tr:last-child td { border-bottom: 0; }
.bench-table thead th { color: var(--muted); font-weight: 600; }
.bench-note { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
