/* Services Assistant — glarz.com
   Design: AI-native, calm, trustworthy. Brand green from the extension, gold accent from the logo.
   Arabic (RTL) first; layout uses logical properties so English (LTR) mirrors cleanly. */

/* ---------- Font: IBM Plex Sans Arabic (Arabic + Latin), self-hosted ---------- */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

/* ---------- Tokens ---------- */
:root {
  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f6f8f7;
  --bg-tint: #eaf3ef;
  --surface: #ffffff;
  --surface-2: #f0f4f2;
  --text: #10201a;
  --text-2: #43544d;
  --text-3: #5f6f69;
  --border: #dbe4e0;
  --border-strong: #c3cfca;

  --brand: #0d6b4e;
  --brand-hover: #0a5a41;
  --brand-soft: #e1f0ea;
  --on-brand: #ffffff;
  --gold: #a87a1c;
  --gold-soft: #f8efd9;
  --ok: #067647;

  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent);
  --shadow-sm: 0 1px 2px rgb(16 32 26 / 6%);
  --shadow-md: 0 10px 30px -12px rgb(16 32 26 / 20%);
  --shadow-lg: 0 30px 80px -30px rgb(13 70 52 / 35%);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 260ms;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1210; --bg-tint: #0f1b17; --surface: #131c19; --surface-2: #19241f;
    --text: #e8f0ec; --text-2: #aebcb6; --text-3: #8f9e98;
    --border: #233029; --border-strong: #33433c;
    --brand: #3cbf92; --brand-hover: #55cfa4; --brand-soft: #14302a; --on-brand: #04140e;
    --gold: #e0b453; --gold-soft: #2b2312; --ok: #47cd89;
    --shadow-md: 0 10px 30px -12px rgb(0 0 0 / 60%);
    --shadow-lg: 0 30px 80px -30px rgb(0 0 0 / 70%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--on-brand); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); }

.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn:hover { color: var(--btn-fg); border-color: var(--text-3); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-border: var(--brand); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { --btn-bg: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { font-weight: 600; min-width: 48px; }
.menu-btn { display: none; }

@media (max-width: 920px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; width: 44px; padding: 0; }
  .header-cta { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 72px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 80% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(30% 40% at 10% 30%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--text-3); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 18px; height: 18px; color: var(--ok); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
}

/* ---------- Product mock (browser + side panel) ---------- */
.mock {
  position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dots { display: flex; gap: 6px; direction: ltr; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.url {
  flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--surface); color: var(--text-3); font-size: 13px; direction: ltr; overflow: hidden; white-space: nowrap;
}
.url .icon { width: 14px; height: 14px; color: var(--ok); }
.mock-body { display: grid; grid-template-columns: 1fr 300px; min-height: 420px; }
html[dir="ltr"] .mock-body { grid-template-columns: 1fr 300px; }
.page { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.page-title { height: 14px; width: 55%; border-radius: 6px; background: var(--border-strong); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field b { height: 9px; width: 30%; border-radius: 5px; background: var(--border); }
.field span {
  height: 36px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--t-med), box-shadow var(--t-med);
  display: flex; align-items: center; padding-inline: 12px; font-size: 13px; color: var(--text-2);
}
.field.filled span { border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.page-btn { margin-top: 6px; height: 38px; width: 46%; border-radius: 9px; background: color-mix(in srgb, var(--brand) 85%, transparent); align-self: flex-start; }
.radios { display: flex; gap: 10px; }
.radios i { flex: 1; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }
.radios i.on { border-color: var(--brand); background: var(--brand-soft); }

.panel { border-inline-start: 1px solid var(--border); display: flex; flex-direction: column; background: var(--surface); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.panel-head img { width: 26px; height: 26px; border-radius: 7px; }
.points { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; }
.chat { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 92%; line-height: 1.6; }
.bubble.user { align-self: flex-start; background: var(--brand); color: var(--on-brand); border-end-start-radius: 4px; }
.steps { list-style: none; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--text-2); opacity: 0.35; transition: opacity var(--t-med) var(--ease-out); }
.steps li.done, .steps li.active { opacity: 1; }
.steps .st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--border-strong); }
.steps li.done .st { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done .st svg { width: 12px; height: 12px; stroke-width: 3; }
.steps li.active .st { border-color: var(--brand); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li .st svg { display: none; }
.steps li.done .st svg { display: block; }
.confirm {
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft);
  border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.confirm.show { opacity: 1; transform: none; }
.confirm strong { font-size: 13px; }
.confirm-actions { display: flex; gap: 8px; }
.confirm-actions i { font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; }
.confirm-actions .yes { background: var(--brand); color: var(--on-brand); }
.confirm-actions .no { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.composer { margin: 0 14px 14px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; padding-inline: 12px; color: var(--text-3); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .mock-body { grid-template-columns: 1fr; }
  .page { display: none; }
  .panel { border-inline-start: 0; }
}

/* ---------- Platforms strip ---------- */
.platforms { padding-block: 8px 0; }
.platforms p { text-align: center; color: var(--text-3); font-size: 14px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 500; font-size: 15px; }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.step-card .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 18px;
}
.step-card h3 { font-size: 20px; margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: 16px; }
.step-card q { quotes: "«" "»"; color: var(--text); font-weight: 500; }
html[lang="en"] .step-card q { quotes: "“" "”"; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features { background: var(--bg-tint); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 16px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Safety ---------- */
.safety-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: linear-gradient(160deg, #0d4f3b, #0a3a2c); color: #eaf5f0;
  border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}
.safety-wrap .eyebrow { background: rgb(255 255 255 / 10%); color: #9fe3c7; }
.safety-wrap h2 { font-size: clamp(28px, 3.4vw, 40px); }
.safety-wrap > div > p { margin-top: 14px; color: #bcd8cc; }
.safety-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.safety-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%); }
.safety-list .icon { color: #e0b453; margin-top: 3px; }
.safety-list b { display: block; color: #fff; font-weight: 600; }
.safety-list span { color: #bcd8cc; font-size: 15px; }
@media (max-width: 900px) { .safety-wrap { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.badge {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 600; padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
[dir="rtl"] .badge { transform: translateX(50%); }
.plan h3 { font-size: 20px; }
.plan .for { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price span { color: var(--text-3); font-size: 15px; }
.pts { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.pts .icon { width: 18px; height: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 28px; text-align: center; color: var(--text-3); font-size: 15px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Install ---------- */
.install { background: var(--bg-tint); }
.install-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.download-card {
  position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center;
}
.download-card img { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-md); }
.download-card h3 { font-size: 22px; }
.download-card .meta { color: var(--text-3); font-size: 14px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); background: var(--surface-2); padding: 8px 14px; border-radius: 999px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.install-steps li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.install-steps li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 18px;
}
.install-steps h3 { font-size: 18px; margin-bottom: 4px; }
.install-steps p { color: var(--text-2); font-size: 15.5px; }
.kbd { font-family: var(--mono); font-size: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 2px 8px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.copy-btn[data-copied="true"] { color: var(--ok); border-color: var(--ok); }
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; } .download-card { position: static; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--t-fast); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 17px; min-height: 56px; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final-card {
  border-radius: 28px; padding: clamp(36px, 6vw, 72px) var(--gutter);
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--border);
}
.final-card img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px; box-shadow: var(--shadow-md); }
.final-card h2 { font-size: clamp(28px, 3.6vw, 42px); }
.final-card p { color: var(--text-2); margin: 14px auto 28px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 36px; color: var(--text-3); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { flex-basis: 100%; font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal page ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--text-3); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
