/* ══════════════════════════════════════════
   نيروز — shared site stylesheet
   Design tokens and shell components mirrored from landing.html so every
   sub-page (FAQ, contact, legal, download …) renders as the same site.
   ══════════════════════════════════════════ */

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

:root {
  --teal:        #22828C;
  --teal-dark:   #195f68;
  --teal-light:  #e0f4f6;
  --teal-mid:    #7ec8cd;
  --navy:        #104D6F;
  --navy-dark:   #0a3550;
  --navy-light:  #e0eef5;
  --coral:       var(--teal);
  --coral-light: var(--teal-light);
  --off-white:   #f7fafb;
  --cream:       #F5EDE3;
  --dark:        #0b1e28;
  --text:        #1a2e36;
  --text-mid:    #4a6a78;
  --text-soft:   #8aabb8;
  --border:      rgba(34,130,140,0.15);
  --font:        'Cairo', 'Tajawal', sans-serif;
  --font-editorial: 'El Messiri', serif;
  --r:           18px;
  --r-sm:        10px;
  --r-pill:      999px;
  --shadow:      0 4px 28px rgba(16,77,111,0.10);
  --shadow-lg:   0 20px 60px rgba(16,77,111,0.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 3px; }

::selection { background: var(--teal-light); color: var(--teal-dark); }

/* ──────────────────────────────────────────
   UTILITIES
──────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 5vw; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 5vw; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s; white-space: nowrap;
}
.btn-teal { background: var(--teal); color: white; box-shadow: 0 6px 20px rgba(34,130,140,0.35); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34,130,140,0.45); }
.btn-navy { background: var(--navy); color: white; box-shadow: 0 6px 20px rgba(16,77,111,0.35); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-ghost { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }

.tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: var(--r-pill); margin-bottom: 1rem;
}
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-coral { background: var(--coral-light); color: var(--teal-dark); }
.tag-navy { background: var(--navy-light); color: var(--navy-dark); }

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--dark);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-mid);
  font-weight: 400; max-width: 540px;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Keyboard focus — visible on every interactive element */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -60px; right: 1rem; z-index: 400;
  background: var(--teal); color: white;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ──────────────────────────────────────────
   NAV
──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 70px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { width: 38px; height: 38px; display: block; object-fit: contain; flex-shrink: 0; }
.footer-logo .logo-img { width: 42px; height: 42px; }
.logo-name { font-size: 1.45rem; font-weight: 900; color: var(--dark); letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a[aria-current="page"] { color: var(--teal); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-hamburger { display: none; cursor: pointer; background: none; border: none; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(10,20,30,0.95); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-size: 1.4rem; font-weight: 700; color: white; text-decoration: none; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--teal-mid); }
.mobile-menu-close {
  position: absolute; top: 1.5rem; left: 1.5rem;
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 1.5rem; cursor: pointer;
}

/* ──────────────────────────────────────────
   PAGE HERO (sub-pages)
──────────────────────────────────────────── */
.page-hero {
  padding: 140px 5vw 64px;
  background: linear-gradient(160deg, var(--off-white) 0%, #fff 62%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -180px; left: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,130,140,0.10), transparent 68%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero.center { text-align: center; }
.page-hero.center .page-hero-sub, .page-hero.center .breadcrumb { margin-inline: auto; }
.page-hero.center .breadcrumb { justify-content: center; }
.page-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 900; line-height: 1.18;
  letter-spacing: -0.02em; color: var(--dark);
  margin-bottom: 0.9rem;
}
.page-hero-sub {
  font-size: 1.06rem; color: var(--text-mid);
  max-width: 620px; line-height: 1.85;
}
.page-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.page-hero.center .page-hero-actions { justify-content: center; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  list-style: none; font-size: 0.82rem; color: var(--text-soft);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-mid); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb li::after { content: '‹'; margin-inline-start: 0.5rem; color: var(--text-soft); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb li[aria-current="page"] { color: var(--text-soft); }

/* ──────────────────────────────────────────
   GENERIC SECTIONS
──────────────────────────────────────────── */
.section { padding: 84px 5vw; }
.section.tight { padding: 56px 5vw; }
.section.soft { background: var(--off-white); }
.section.dark-band { background: var(--dark); }
.section.dark-band .section-title { color: white; }
.section.dark-band .section-sub { color: rgba(255,255,255,0.55); }

/* ──────────────────────────────────────────
   CARDS
──────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.info-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.9rem 1.6rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  height: 100%;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-mid); }
.info-card h3 { font-size: 1.06rem; font-weight: 800; color: var(--dark); margin-bottom: 0.55rem; }
.info-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; }
.info-card a.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; font-size: 0.88rem; font-weight: 700;
  color: var(--teal); text-decoration: none;
}
.info-card a.card-link:hover { color: var(--teal-dark); }

.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem; font-size: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.navy { background: var(--navy-light); color: var(--navy); }

/* stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  background: white; border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem 1.5rem; box-shadow: var(--shadow);
}
.stat-item { text-align: center; }
.stat-num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--teal); line-height: 1.1; }
.stat-label { font-size: 0.82rem; color: var(--text-mid); margin-top: 0.35rem; }

/* ──────────────────────────────────────────
   FAQ / ACCORDION
──────────────────────────────────────────── */
.faq-search {
  position: relative; max-width: 560px; margin: 0 auto 2.5rem;
}
.faq-search input {
  width: 100%; padding: 14px 46px 14px 18px;
  font-family: var(--font); font-size: 0.95rem; color: var(--text);
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-pill); transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34,130,140,0.12); }
.faq-search svg {
  position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-soft); pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 2;
}

.faq-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.faq-cat {
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  padding: 8px 18px; border-radius: var(--r-pill); cursor: pointer;
  background: white; color: var(--text-mid);
  border: 1px solid var(--border); transition: all 0.2s;
}
.faq-cat:hover { border-color: var(--teal-mid); color: var(--teal-dark); }
.faq-cat.active { background: var(--teal); color: white; border-color: var(--teal); }

.faq-group { max-width: 820px; margin: 0 auto 2.75rem; }
.faq-group-title {
  font-size: 1.15rem; font-weight: 800; color: var(--dark);
  margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.65rem;
}
.faq-group-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--teal); border-radius: 2px;
}
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: white; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item[hidden] { display: none; }
.faq-q {
  width: 100%; text-align: right;
  padding: 1.25rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.97rem; font-weight: 700;
  color: var(--dark); display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.faq-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem; transition: transform 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.5rem;
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.85;
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s;
}
.faq-item.open .faq-a { max-height: 640px; padding: 0 1.5rem 1.35rem; }
.faq-a p + p { margin-top: 0.75rem; }
.faq-a ul, .faq-a ol { margin: 0.6rem 1.1rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.faq-a a { color: var(--teal); font-weight: 600; }
.faq-empty {
  display: none; text-align: center; color: var(--text-mid);
  font-size: 0.95rem; padding: 2.5rem 1rem;
}
.faq-empty.show { display: block; }

/* ──────────────────────────────────────────
   LEGAL / PROSE DOCUMENTS
──────────────────────────────────────────── */
.doc-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 3.5rem; align-items: start;
  max-width: 1140px; margin: 0 auto; padding: 72px 5vw;
}
.doc-toc {
  position: sticky; top: 96px;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem 1.35rem;
}
.doc-toc h2 {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-soft); margin-bottom: 1rem;
}
.doc-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 0.55rem; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  font-size: 0.86rem; color: var(--text-mid); text-decoration: none;
  display: flex; gap: 0.5rem; line-height: 1.6; transition: color 0.2s;
}
.doc-toc a::before { content: counter(toc, arabic-indic) '.'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.doc-toc a:hover, .doc-toc a.active { color: var(--teal); }

.doc-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  padding: 1.1rem 1.35rem; margin-bottom: 2.5rem;
  background: var(--teal-light); border-radius: var(--r-sm);
  font-size: 0.85rem; color: var(--teal-dark);
}
.doc-meta strong { font-weight: 800; }

.prose { max-width: 760px; }
.prose h2 {
  font-size: 1.4rem; font-weight: 900; color: var(--dark);
  margin: 2.75rem 0 0.9rem; letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--navy);
  margin: 1.75rem 0 0.6rem;
}
.prose p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.95; margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 1.35rem 1.25rem 0; display: flex; flex-direction: column; gap: 0.55rem; }
.prose li { font-size: 0.95rem; color: var(--text-mid); line-height: 1.9; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--teal); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(34,130,140,0.3); }
.prose a:hover { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.callout {
  background: var(--off-white); border-inline-start: 4px solid var(--teal);
  border-radius: var(--r-sm); padding: 1.15rem 1.35rem; margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; font-size: 0.9rem; }
.callout.navy { border-inline-start-color: var(--navy); }

.doc-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.doc-table {
  width: 100%; border-collapse: collapse; min-width: 520px;
  font-size: 0.88rem; background: white;
  border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden;
}
table.doc-table th {
  background: var(--off-white); color: var(--dark);
  font-weight: 800; text-align: right; padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
table.doc-table td {
  padding: 0.85rem 1rem; color: var(--text-mid);
  border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.75;
}
table.doc-table tr:last-child td { border-bottom: none; }

/* ──────────────────────────────────────────
   CONTACT
──────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem; align-items: start;
}
.contact-channels { display: flex; flex-direction: column; gap: 1rem; }
.channel {
  display: flex; gap: 1rem; align-items: flex-start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.35rem;
  text-decoration: none; transition: all 0.25s;
}
.channel:hover { border-color: var(--teal-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.channel .card-icon { margin-bottom: 0; width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.channel h3 { font-size: 0.98rem; font-weight: 800; color: var(--dark); margin-bottom: 0.25rem; }
.channel p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.7; }
.channel .channel-value { font-size: 0.86rem; font-weight: 700; color: var(--teal); margin-top: 0.4rem; display: block; }

.form-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--dark); }
.field .hint { font-size: 0.78rem; color: var(--text-soft); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  font-family: var(--font); font-size: 0.92rem; color: var(--text);
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--r-sm); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.field select { cursor: pointer; appearance: none; background-image: none; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: white;
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34,130,140,0.12);
}
.field input:invalid:not(:placeholder-shown) { border-color: #d9534f; }
.form-note { font-size: 0.8rem; color: var(--text-soft); line-height: 1.7; margin-top: 0.9rem; }
.form-status {
  display: none; margin-top: 1rem; padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm); font-size: 0.88rem; font-weight: 600;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--teal-light); color: var(--teal-dark); }
.form-status.err { background: #fdecea; color: #a3312c; }
/* Spam-trap field. Off-screen rather than display:none so that bots which skip
   hidden inputs still fill it in. Never focusable by a real visitor. */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* ──────────────────────────────────────────
   RELEASE TIMELINE (الجديد)
──────────────────────────────────────────── */
.releases { max-width: 820px; margin: 0 auto; position: relative; }
.releases::before {
  content: ''; position: absolute; top: 12px; bottom: 12px;
  inset-inline-start: 7px; width: 2px;
  background: linear-gradient(180deg, var(--teal-mid), rgba(126,200,205,0.12));
}
.release { position: relative; padding-inline-start: 2.5rem; padding-bottom: 3rem; }
.release:last-child { padding-bottom: 0; }
.release::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; border: 3px solid var(--teal-mid);
}
.release.latest::before { background: var(--teal); border-color: var(--teal-light); box-shadow: 0 0 0 4px rgba(34,130,140,0.15); }
.release-head { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.release-ver { font-size: 1.2rem; font-weight: 900; color: var(--dark); }
.release-date { font-size: 0.82rem; color: var(--text-soft); }
.release-pill {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--teal); color: white; text-transform: uppercase;
}
.release-body { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem 1.6rem; margin-top: 0.9rem; }
.release-body h4 {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-soft);
  margin: 1.35rem 0 0.7rem;
}
.release-body h4:first-child { margin-top: 0; }
.release-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.release-body li {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.8;
  padding-inline-start: 1.5rem; position: relative;
}
.release-body li::before {
  content: ''; position: absolute; inset-inline-start: 0.35rem; top: 0.7rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-mid);
}
.release-body li strong { color: var(--text); font-weight: 700; }

/* ──────────────────────────────────────────
   TEMPLATE / FEATURE GALLERIES
──────────────────────────────────────────── */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
.tpl-card {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); background: white;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tpl-thumb {
  aspect-ratio: 4 / 5; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; text-align: center; overflow: hidden;
}
.tpl-thumb span {
  font-family: var(--font-editorial);
  font-size: 1.15rem; font-weight: 700; color: white;
  line-height: 1.5; text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.tpl-body { padding: 0.95rem 1.1rem 1.15rem; }
.tpl-body h3 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 0.25rem; }
.tpl-body p { font-size: 0.8rem; color: var(--text-soft); }
.tpl-count {
  position: absolute; top: 0.7rem; inset-inline-end: 0.7rem;
  background: rgba(255,255,255,0.9); color: var(--dark);
  font-size: 0.7rem; font-weight: 800;
  padding: 3px 9px; border-radius: var(--r-pill);
}

/* ──────────────────────────────────────────
   PLATFORM / DOWNLOAD
──────────────────────────────────────────── */
.store-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: all 0.25s;
  border: 1.5px solid;
}
.store-badge.dark { background: var(--dark); border-color: var(--dark); color: white; }
.store-badge.dark:hover { background: var(--navy); transform: translateY(-2px); }
.store-badge.light { background: white; border-color: white; color: var(--dark); }
.store-badge.light:hover { background: var(--teal-light); }
.store-badge.light .store-badge-text small { color: var(--text-mid); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge-text small { font-size: 0.68rem; opacity: 0.65; display: block; line-height: 1.25; }
.store-badge-text strong { font-size: 0.9rem; font-weight: 700; line-height: 1.2; }

.spec-list { display: flex; flex-direction: column; gap: 0; }
.spec-row {
  display: grid; grid-template-columns: 190px 1fr;
  gap: 1.5rem; padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-weight: 800; color: var(--dark); }
.spec-row dd { color: var(--text-mid); line-height: 1.8; }

/* ──────────────────────────────────────────
   STEPS
──────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r); padding: 1.85rem 1.6rem; position: relative;
}
.step-num {
  position: absolute; top: 1.35rem; inset-inline-end: 1.35rem;
  font-size: 2.4rem; font-weight: 900; color: rgba(255,255,255,0.07); line-height: 1;
}
.step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(34,130,140,0.18); color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.15rem;
}
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step-title { font-size: 1.05rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ──────────────────────────────────────────
   FINAL CTA
──────────────────────────────────────────── */
.cta-section {
  padding: 92px 5vw;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -150px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-section::after {
  content: ''; position: absolute; bottom: -100px; right: -50px;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-tag { background: rgba(255,255,255,0.15); color: white; }
.cta-title { color: white; margin: 0 auto 1rem; }
.cta-sub { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ──────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 70px 5vw 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo .logo-name { color: white; }
.footer-about { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 260px; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.9rem;
  transition: all 0.25s;
}
.footer-socials a:hover { background: var(--teal); color: white; border-color: var(--teal); }
.footer-col h3 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.25); }

/* ──────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .doc-toc { position: static; }
  .doc-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.25rem; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 120px 5vw 52px; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .spec-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem 1.25rem; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .section { padding: 64px 5vw; }
}

/* ──────────────────────────────────────────
   REDUCED MOTION
──────────────────────────────────────────── */
@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 !important; transform: none !important; }
}

/* ──────────────────────────────────────────
   PRINT (legal documents)
──────────────────────────────────────────── */
@media print {
  nav, footer, .mobile-menu, .cta-section, .doc-toc, .page-hero-actions, .skip-link { display: none !important; }
  body { background: white; }
  .page-hero { padding: 0 0 1.5rem; border: none; }
  .doc-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose a { border-bottom: none; color: inherit; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
