/* Khadhami Translator — generated from the page sources.
   Filenames carry a content hash; edit the source, not this file. */
/* ==========================================================================
   Khadhami Translator - landing page
   One document, no external CSS or web fonts: the whole page paints from a
   single request, which is what keeps the largest paint fast on slow links.
   ========================================================================== */



*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--arabic); }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #001028; padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 650;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header -- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  background: color-mix(in srgb, var(--navy-800) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(1px)) { .site-head { background: var(--navy-800); } }

.head-in { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; flex: none; }
.brand span { font-size: 1.02rem; }

.nav { display: flex; gap: 4px; margin-inline-start: 18px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500;
  padding: 7px 11px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

.head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  appearance: none; background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  height: 36px; min-width: 36px; padding: 0 10px;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 16px; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 650; font-size: .94rem;
  padding: 11px 20px; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #00142e; }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
html[data-theme="light"] .btn-primary { color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* A button has no target until the manifest resolves; show that honestly. */
a.btn[data-download]:not([href]) { opacity: .55; cursor: progress; }
a.btn[data-download][data-download-failed] { opacity: .55; cursor: not-allowed; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding-block: clamp(48px, 7vw, 92px) clamp(52px, 8vw, 100px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58rem 26rem at 12% -8%, rgba(11,140,250,.13), transparent 62%),
    radial-gradient(40rem 22rem at 92% 4%, rgba(254,155,10,.06), transparent 60%);
}
html[data-theme="light"] .hero::before { opacity: .5; }
.hero > * { position: relative; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.eyebrow::after { content: ""; flex: 1; max-width: 52px; height: 1px; background: var(--line); }
html[lang="ar"] .eyebrow { letter-spacing: normal; text-transform: none; }

h1 { font-size: clamp(2.05rem, 1.3rem + 2.6vw, 3.15rem); max-width: 15ch; margin-bottom: 20px; }
h1 .alt { color: var(--ink-3); display: block; }

.lede { font-size: clamp(1rem, .96rem + .25vw, 1.09rem); color: var(--ink-2); max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.specs {
  display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 26px;
  color: var(--ink-3); font-size: .85rem;
}

/* Product shot in a restrained frame. */
.shot {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 8px;
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.8);
}
.shot img { border-radius: 9px; width: 100%; }
html[data-theme="light"] .shot { box-shadow: 0 18px 44px -26px rgba(12,23,48,.35); }

/* ------------------------------------------------------------- section UI - */
.sec-head { max-width: 60ch; margin-bottom: clamp(34px, 4.4vw, 54px); }
.sec-head h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.05rem); margin-bottom: 12px; }
.sec-head p { color: var(--ink-2); }

/* The popup is the thing the headline describes, so show it beside the steps
   rather than leaving the claim unillustrated. */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(30px, 4vw, 60px); align-items: center; }
.how-shot { display: flex; justify-content: center; }
.how-shot img { width: 100%; max-width: 420px; filter: drop-shadow(0 22px 40px rgba(0,0,0,.45)); }
html[data-theme="light"] .how-shot img { filter: drop-shadow(0 18px 34px rgba(12,23,48,.22)); }
.how-caption { color: var(--ink-3); font-size: .84rem; margin-top: 14px; text-align: center; }
@media (max-width: 1000px) { .how-grid { grid-template-columns: 1fr; } }

/* Numbered process: three real steps, not a grid of identical cards. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.how-grid .steps .step { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
.how-grid .steps .step:last-child { border-bottom: 0; }
.how-grid .steps .step:not(:first-child) { padding-inline-start: 0; }
.step { padding: 30px 28px 30px 0; border-inline-end: 1px solid var(--line); }
.step:last-child { border-inline-end: 0; }
.step:not(:first-child) { padding-inline-start: 28px; }
.step .num {
  font-family: var(--mono); font-size: .78rem; color: var(--blue);
  letter-spacing: .08em; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .94rem; }

/* Feature list reads as an editorial spread rather than six equal tiles. */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px) clamp(32px, 5vw, 72px); }
.feat { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.feat .ic { color: var(--blue); padding-top: 3px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: .93rem; }

/* Engines */
.engines { display: flex; flex-wrap: wrap; gap: 8px; }
.engine {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: .87rem; color: var(--ink-2); background: var(--surface);
}
.engine[data-offline] { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); color: var(--ink); }
.engine[data-offline]::before { content: "\25CF"; color: var(--amber); margin-inline-end: 7px; font-size: .7em; vertical-align: 2px; }

/* Privacy panel */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px);
}
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-block: 9px; color: var(--ink-2); font-size: .94rem; }
.checks li + li { border-top: 1px solid var(--line-soft); }
.checks svg { width: 17px; height: 17px; color: var(--blue); margin-top: 4px; }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
caption { text-align: start; color: var(--ink-3); font-size: .85rem; padding: 0 0 12px; }
th, td { text-align: start; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--surface); color: var(--ink); font-weight: 650; font-size: .86rem; letter-spacing: .01em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--blue-200); }
td.no { color: var(--ink-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0;
  font-weight: 600; font-size: 1rem; position: relative;
}
html[dir="rtl"] .faq summary { padding: 18px 0 18px 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 0 20px; color: var(--ink-2); max-width: 72ch; }

/* Closing call to action */
.close-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.close-cta h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem); margin-bottom: 8px; }
.close-cta p { color: var(--ink-2); max-width: 52ch; }

/* Footer */
.site-foot { border-top: 1px solid var(--line-soft); padding-block: 40px 52px; color: var(--ink-3); font-size: .87rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; color: var(--ink-3); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { max-width: 20ch; }
  .lede { max-width: 60ch; }
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; inset-inline: var(--pad); top: 64px;
    background: var(--navy-700); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 8px; margin: 0;
    box-shadow: 0 20px 44px -24px rgba(0,0,0,.85);
  }
  .nav.open a { padding: 11px 12px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-inline-end: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .step:not(:first-child) { padding-inline-start: 0; }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cta-row .btn { width: 100%; }
  .head-actions .btn-primary { display: none; }
  .close-cta .btn { width: 100%; }
}

/* Print: the download link is useless on paper, the content is not. */
@media print {
  .site-head, .cta-row, .close-cta .btn, .site-foot { display: none; }
  body { background: #fff; color: #000; }
}
