/* ==========================================================================
   بارکدبان — Website V1
   Design tokens + base + layout + components
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens (light default) ---------- */
:root {
  /* رنگ */
  --c-primary: #2563EB;
  --c-primary-strong: #1D4ED8;
  --c-signal: #0891B2;
  --c-ink: #0B1220;
  --c-success: #16803D;
  --c-warning: #B45309;
  --c-error: #B91C1C;

  --c-bg: #F7F9FC;
  --c-bg-raised: #FFFFFF;
  --c-bg-tonal: #EDF1FA;
  --c-bg-tonal-strong: #E1E9FB;
  --c-text: #0B1220;
  --c-text-muted: #48546B;
  --c-border: #DCE3F0;
  --c-border-strong: #C4D0E8;
  --c-focus: #1D4ED8;

  --c-on-primary: #FFFFFF;

  /* فاصله‌گذاری */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* تایپوگرافی */
  --font-fa: "Vazirmatn", Tahoma, "Segoe UI", "Iranian Sans", system-ui, sans-serif;
  --font-mono: "SF Mono", Consolas, "Courier New", monospace;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);
  --lh-tight: 1.25;
  --lh-normal: 1.6;
  --lh-relaxed: 1.85;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(11, 18, 32, 0.16);

  --container-w: 1120px;
  --header-h: 68px;
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #07101F;
    --c-bg-raised: #0C1729;
    --c-bg-tonal: #101F35;
    --c-bg-tonal-strong: #142943;
    --c-text: #EAF0FB;
    --c-text-muted: #9AABC9;
    --c-border: #1C2C48;
    --c-border-strong: #28405F;
    --c-focus: #7DA2FF;
    --c-on-primary: #FFFFFF;
    --c-primary: #3B76F0;
    --c-primary-strong: #5B8CF6;
    --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --c-bg: #07101F;
  --c-bg-raised: #0C1729;
  --c-bg-tonal: #101F35;
  --c-bg-tonal-strong: #142943;
  --c-text: #EAF0FB;
  --c-text-muted: #9AABC9;
  --c-border: #1C2C48;
  --c-border-strong: #28405F;
  --c-focus: #7DA2FF;
  --c-primary: #3B76F0;
  --c-primary-strong: #5B8CF6;
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] {
  --c-bg: #F7F9FC;
  --c-bg-raised: #FFFFFF;
  --c-bg-tonal: #EDF1FA;
  --c-bg-tonal-strong: #E1E9FB;
  --c-text: #0B1220;
  --c-text-muted: #48546B;
  --c-border: #DCE3F0;
  --c-border-strong: #C4D0E8;
  --c-focus: #1D4ED8;
  --c-primary: #2563EB;
  --c-primary-strong: #1D4ED8;
}

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

/* ---------- Base ---------- */
html { direction: rtl; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-fa);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  transition: background-color var(--motion-normal) var(--ease), color var(--motion-normal) var(--ease);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; }
p { color: var(--c-text); }
.text-muted { color: var(--c-text-muted); }
strong { font-weight: 700; }

/* اعداد و مقادیر فنی همیشه LTR */
.ltr, .num-ltr, time, code, .money { unicode-bidi: isolate; direction: ltr; display: inline-block; font-family: var(--font-mono); }
.money { font-family: var(--font-fa); }

a { transition: color var(--motion-fast) var(--ease); }
a:hover { color: var(--c-primary); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  right: var(--sp-4);
  top: -60px;
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--motion-fast) var(--ease);
}
.skip-link:focus-visible { top: var(--sp-3); outline-offset: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-8); }
.section-tight { padding-block: var(--sp-6); }
.section-title { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
.section-lead { color: var(--c-text-muted); font-size: var(--fs-md); max-width: 640px; margin-top: var(--sp-3); }
.section-head { margin-bottom: var(--sp-7); }
.stack > * + * { margin-top: var(--sp-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.75rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-base); line-height: 1;
  transition: transform var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-primary-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--c-bg-tonal); color: var(--c-text); border: 1px solid var(--c-border-strong); }
.btn-secondary:hover { background: var(--c-bg-tonal-strong); }
.btn-ghost { background: transparent; color: var(--c-text); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--c-bg-tonal); color: var(--c-text-muted); box-shadow: none;
  cursor: not-allowed; pointer-events: none; border: 1px dashed var(--c-border-strong);
}
.btn-badge {
  font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.22);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.btn[aria-disabled="true"] .btn-badge { background: var(--c-bg-tonal-strong); color: var(--c-text-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 800; font-size: var(--fs-md); flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand-name { letter-spacing: -0.01em; }
.header-inner nav.primary-nav { flex: 1 1 auto; }
.nav-list { display: flex; align-items: center; gap: var(--sp-1); }
.nav-list a {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted);
}
.nav-list a:hover { background: var(--c-bg-tonal); color: var(--c-text); }
.nav-list a[aria-current="page"] { color: var(--c-primary); background: var(--c-bg-tonal); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill); color: var(--c-text-muted);
}
.icon-btn:hover { background: var(--c-bg-tonal); color: var(--c-text); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .header-inner nav.primary-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav-list a { padding: var(--sp-3) var(--sp-3); }
  .nav-toggle { display: inline-flex; }
  .js .primary-nav[data-collapsed] { display: none; }
  .header-inner .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--sp-7) var(--sp-8); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-8); align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-signal);
}
.hero-eyebrow .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-signal); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-signal) 20%, transparent); }
.hero-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hero h1 { font-size: var(--fs-3xl); letter-spacing: -0.015em; margin-top: var(--sp-3); }
.hero-sub { font-size: var(--fs-md); color: var(--c-text-muted); margin-top: var(--sp-4); max-width: 34em; line-height: var(--lh-relaxed); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-art { position: relative; }
.hero-art picture, .hero-art img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.hero-frame { position: absolute; inset: -14px; pointer-events: none; }
.hero-frame svg { width: 100%; height: 100%; stroke: var(--c-primary); opacity: 0.35; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---------- Steps ---------- */
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-7); position: relative; }
.step {
  background: var(--c-bg-raised); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: var(--sp-5);
}
.step-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--c-bg-tonal);
  color: var(--c-primary); font-weight: 800; font-size: var(--fs-sm);
}
.step h3 { font-size: var(--fs-md); margin-top: var(--sp-4); }
.step p { color: var(--c-text-muted); margin-top: var(--sp-2); font-size: var(--fs-sm); }
.steps-list.steps-guide { grid-template-columns: 1fr; gap: var(--sp-4); max-width: 720px; }
.steps-list.steps-guide .step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: flex-start; }

@media (max-width: 760px) {
  .steps-list { grid-template-columns: 1fr; }
}

/* ---------- Tonal panel / benefits ---------- */
.panel { background: var(--c-bg-tonal); border-radius: var(--radius-lg); padding: var(--sp-6); }
.row-list { border-top: 1px solid var(--c-border-strong); }
.row-list > li {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-1); border-bottom: 1px solid var(--c-border-strong);
}
.row-list > li .row-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--c-bg-raised); display: flex; align-items: center; justify-content: center; color: var(--c-primary);
}
.row-list > li .row-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-list h3 { font-size: var(--fs-base); }
.row-list p { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.trust-item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.trust-item .row-icon { flex-shrink:0; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--c-bg-tonal); display:flex; align-items:center; justify-content:center; color: var(--c-success); }
.trust-item .row-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-item p { font-size: var(--fs-sm); color: var(--c-text-muted); }
.trust-item strong { display:block; color: var(--c-text); font-size: var(--fs-sm); margin-bottom: 2px; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); align-items: stretch; }
.price-card {
  background: var(--c-bg-raised); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: var(--sp-5); display: flex; flex-direction: column;
}
.price-card.is-recommended {
  border: 2px solid var(--c-primary); box-shadow: var(--shadow-md); position: relative;
}
.price-card-badge {
  position: absolute; top: -13px; right: var(--sp-4);
  background: var(--c-primary); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.price-card h3 { font-size: var(--fs-md); }
.price-amount { font-size: var(--fs-xl); font-weight: 800; margin-top: var(--sp-3); }
.price-amount small { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted); }
.price-note { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: var(--sp-1); min-height: 1.4em; }
.price-features { margin-top: var(--sp-4); flex: 1; }
.price-features li { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); padding: var(--sp-1) 0; }
.price-features li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; stroke: var(--c-success); fill: none; stroke-width: 2; }
.price-card .btn { margin-top: var(--sp-5); }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-1); font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--c-text-muted); fill: none; stroke-width: 2; transition: transform var(--motion-fast) var(--ease); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 var(--sp-1) var(--sp-4); color: var(--c-text-muted); max-width: 68ch; }

/* ---------- Legal ---------- */
.legal-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); color: var(--c-text-muted); font-size: var(--fs-sm); border-bottom: 1px solid var(--c-border); padding-bottom: var(--sp-5); margin-bottom: var(--sp-6); }
.legal-body h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--c-text-muted); line-height: var(--lh-relaxed); }
.legal-body p + p, .legal-body ul { margin-top: var(--sp-3); }
.legal-body ul { list-style: none; padding-inline-start: var(--sp-1); }
.legal-body li { position: relative; padding-inline-start: var(--sp-4); padding-bottom: var(--sp-1); }
.legal-body li::before { content: ""; position: absolute; right: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-border-strong); }
.legal-body strong { color: var(--c-text); }
.legal-callout {
  background: var(--c-bg-tonal); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: var(--sp-3);
}
.legal-toc { background: var(--c-bg-tonal); border-radius: var(--radius-md); padding: var(--sp-5); margin-bottom: var(--sp-7); }
.legal-toc h2 { font-size: var(--fs-base); margin: 0 0 var(--sp-3); }
.legal-toc ol { columns: 2; column-gap: var(--sp-6); list-style: none; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-size: var(--fs-sm); padding: 3px 0; }
.legal-toc li a::before { content: counter(toc) ". "; color: var(--c-text-muted); }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-7); }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.support-card { background: var(--c-bg-raised); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-5); }
.warning-box {
  display: flex; gap: var(--sp-3); align-items: flex-start; background: var(--c-bg-tonal);
  background: color-mix(in srgb, var(--c-warning) 10%, var(--c-bg-tonal));
  border: 1px solid var(--c-border-strong);
  border: 1px solid color-mix(in srgb, var(--c-warning) 35%, var(--c-border));
  border-radius: var(--radius-md); padding: var(--sp-4);
}
.warning-box svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--c-warning); fill: none; stroke-width: 1.7; margin-top: 2px; }
.warning-box p { font-size: var(--fs-sm); color: var(--c-text); }
.copy-field {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  background: var(--c-bg-tonal); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
}

/* ---------- Download page ---------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }
.download-card { background: var(--c-bg-raised); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.download-card .platform-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--c-bg-tonal); display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.download-card .platform-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.download-card img, .download-card picture { border-radius: var(--radius-md); margin-top: var(--sp-2); }
.spec-list { border-top: 1px solid var(--c-border); margin-top: var(--sp-2); }
.spec-list > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-border); font-size: var(--fs-sm); }
.spec-list dt { color: var(--c-text-muted); }
.spec-list dd { margin: 0; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--c-bg-tonal); color: var(--c-text-muted); }
.status-pill .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-signal); }

/* ---------- Changelog ---------- */
.changelog-entry { border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-5); background: var(--c-bg-raised); }
.changelog-entry + .changelog-entry { margin-top: var(--sp-4); }
.changelog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.changelog-head h3 { font-size: var(--fs-md); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: var(--sp-9); }
.error-page .error-code { font-size: 5rem; font-weight: 800; color: var(--c-bg-tonal-strong); line-height: 1; }
.error-page h1 { margin-top: var(--sp-2); }
.error-page p { color: var(--c-text-muted); margin-top: var(--sp-3); }
.error-page .hero-ctas { justify-content: center; margin-top: var(--sp-6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); background: var(--c-bg-raised); margin-top: var(--sp-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-7); padding-block: var(--sp-7); }
.footer-brand .brand { margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--c-text-muted); font-size: var(--fs-sm); max-width: 32ch; }
.footer-col h4 { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: 700; margin-bottom: var(--sp-3); }
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col a { font-size: var(--fs-sm); }
.footer-bottom {
  border-top: 1px solid var(--c-border); padding-block: var(--sp-4);
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--c-text-muted);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* ---------- Final CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong));
  border-radius: var(--radius-lg); padding: var(--sp-7); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap;
}
.cta-banner h2 { font-size: var(--fs-xl); }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: var(--sp-2); }
.cta-banner .btn-primary { background: #fff; color: var(--c-primary-strong); }
.cta-banner .btn-primary:hover { background: #fff; opacity: 0.92; }
.cta-banner .btn-secondary { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.22); }

/* ---------- Guide figures / legal contact block ---------- */
.guide-figure { margin-top: var(--sp-3); max-width: 320px; }
.guide-figure img { border-radius: var(--radius-md); }
.legal-contact-block { line-height: var(--lh-relaxed); }
.download-illustration { max-width: 420px; }

/* ---------- Utility classes (kept CSP-strict: no inline style attrs) ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-block-5 { margin-block: var(--sp-5); }
.fz-sm { font-size: var(--fs-sm); }
.fz-base { font-size: var(--fs-base); }
.fz-md { font-size: var(--fs-md); }
.fz-lg { font-size: var(--fs-lg); }
.fz-2xs { font-size: 0.78rem; }
.p-inline-0 { padding-inline: 0; }
.row-center { align-items: center; }
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.minw-0 { min-width: 0; }
.wb-all { word-break: break-all; }

/* ---------- Misc ---------- */
.badge-soon { display: inline-flex; align-items: center; gap: 6px; background: var(--c-bg-tonal); color: var(--c-text-muted); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); }
hr.divider { border: none; border-top: 1px solid var(--c-border); margin-block: var(--sp-7); }
