/* qlikat.com — calm, light, exact. One accent, real screens, Arabic first. */
:root {
  --ground: #FAFAF8; --surface: #FFFFFF; --ink: #111418; --body: #3F464D; --muted: #59616A;
  --line: #E3E5E1; --line-strong: #C9CDC7; --accent: #0A7B6C; --accent-ink: #FFFFFF; --accent-soft: #E6F2EF;
  --shadow: 0 1px 2px rgba(17,20,24,.04), 0 8px 24px rgba(17,20,24,.06);
  --radius: 14px;
  --font-head: 'Readex Pro', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1113; --surface: #171B1E; --ink: #F2F3F1; --body: #C5CBD0; --muted: #9AA2AA;
    --line: #262B2F; --line-strong: #3A4045; --accent: #3CC4AE; --accent-ink: #0E1113; --accent-soft: #12302B;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1113; --surface: #171B1E; --ink: #F2F3F1; --body: #C5CBD0; --muted: #9AA2AA;
  --line: #262B2F; --line-strong: #3A4045; --accent: #3CC4AE; --accent-ink: #0E1113; --accent-soft: #12302B;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
html[lang="en"] body { line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 21px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a.link { color: var(--body); }
.nav a.link:hover { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav .link, .nav .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .nav.open { position: absolute; top: 68px; inset-inline: 0; background: var(--ground); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 14px; }
  .nav.open .link, .nav.open .hide-sm { display: block; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font: 500 15px var(--font-body); border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { padding: 88px 0 56px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.08; font-weight: 600; max-width: 900px; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--body); max-width: 680px; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--body); background: var(--surface); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* product frame (real screenshots) */
.frame { margin-top: 56px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.frame .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.frame .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame img { width: 100%; height: auto; }
.shot-missing { aspect-ratio: 16/9; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* sections */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 600; margin-top: 10px; }
html[lang="ar"] .section-head h2 { line-height: 1.35; }
.section-head p { color: var(--body); margin-top: 14px; font-size: 18px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .text { order: 2; }
.feature .num { font-family: var(--font-head); font-size: 15px; color: var(--accent); }
.feature h3 { font-size: 28px; line-height: 1.25; margin-top: 8px; font-weight: 600; }
.feature p { color: var(--body); margin-top: 12px; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { padding-inline-start: 22px; position: relative; color: var(--body); font-size: 16px; }
.feature li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 10px; height: 2px; background: var(--accent); }
.feature .frame { margin-top: 0; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip .text { order: 0; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step .n { font-family: var(--font-head); font-size: 44px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 20px; margin-top: 14px; }
.step p { color: var(--body); margin-top: 8px; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1120px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--accent); padding: 25px 21px; }
.plan.dark { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.plan.dark h3, .plan.dark .price { color: var(--ground); }
.plan.dark .muted, .plan.dark li { color: color-mix(in srgb, var(--ground) 72%, var(--ink)); }
.plan h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font: 500 12px var(--font-body); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; }
.price { font-family: var(--font-head); font-size: 40px; font-weight: 600; line-height: 1; }
.price small { font: 400 14px var(--font-body); color: var(--muted); }
.plan ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 15px; color: var(--body); }
.plan.dark ul { border-color: color-mix(in srgb, var(--ground) 20%, var(--ink)); }
.plan .btn { margin-top: auto; width: 100%; }
.plan.dark .btn-ghost { color: var(--ground); border-color: color-mix(in srgb, var(--ground) 40%, var(--ink)); }
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 18px; }
.compare th, .compare td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font-head); font-weight: 500; color: var(--muted); font-size: 14px; }
.compare td.n { text-align: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

/* faq */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--body); margin-top: 10px; max-width: 760px; }

/* cta band */
.cta-band { padding: 72px 0; border-top: 1px solid var(--line); }
.cta-band .box { background: var(--ink); color: var(--ground); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--ground); font-size: clamp(26px, 3.4vw, 36px); max-width: 640px; line-height: 1.25; }
.cta-band .btn-ghost { color: var(--ground); border-color: color-mix(in srgb, var(--ground) 40%, var(--ink)); }

/* forms */
.form-page { padding: 56px 0 88px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--body); font-weight: 500; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ground); color: var(--ink); font: 16px var(--font-body); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.invalid input, .field.invalid select { border-color: #C2410C; }
.field .err { font-size: 13px; color: #C2410C; display: none; }
.field.invalid .err { display: block; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--ink); background: var(--ground); }
.choice input { accent-color: var(--accent); width: 16px; height: 16px; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.save-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.save-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.save-note.saved .dot { background: var(--accent); }
.form-error { background: color-mix(in srgb, #C2410C 10%, var(--surface)); color: #9A3412; border-radius: 10px; padding: 10px 14px; font-size: 14px; display: none; margin-bottom: 14px; }
html[data-theme="dark"] .form-error { color: #FDBA74; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aside h3 { font-size: 18px; }
.aside ul { padding-inline-start: 18px; color: var(--body); font-size: 15px; display: grid; gap: 8px; }
.done { text-align: center; padding: 40px 20px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; font-size: 26px; }

/* legal */
.legal { padding: 56px 0 88px; }
.legal .doc { max-width: 780px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--body); margin-top: 10px; }
.legal .draft { margin-top: 18px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 14px; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font: 500 14px var(--font-head); color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.feature.solo { grid-template-columns: 1fr; }
.feature.solo .text { max-width: 760px; }
