/* موقع «كابتن» — هوية التطبيق نفسها: الكحلي والذهبي وخط IBM Plex Sans Arabic، فاتح وداكن، وRTL/LTR بخصائص منطقية. */

:root {
  --navy: #2e517a;
  --navy-deep: #17304d;
  --navy-ink: #0e1f33;
  --gold: #f2b35b;
  --gold-deep: #d9913a;
  --orange: #e0703a;
  --teal: #3d6670;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --ink: #142233;
  --muted: #56657a;
  --line: #dfe6ee;
  --brand: var(--navy);
  --brand-soft: #e3ecf6;
  --shadow: 0 18px 50px -24px rgba(14, 31, 51, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(14, 31, 51, 0.3);

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1522;
    --surface: #111e2f;
    --surface-2: #16263a;
    --ink: #e6edf5;
    --muted: #9fb0c3;
    --line: #22354b;
    --brand: #9cc0ea;
    --brand-soft: #1a2d44;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 6px 20px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--gold);
  color: var(--navy-ink);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.icon {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ———— الرأس ———— */

.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 0.2s, box-shadow 0.2s;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.35rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -10px rgba(46, 81, 122, 0.9);
}

.brand-mark svg {
  width: 30px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  min-height: 44px;
}

.lang .icon {
  font-size: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* ———— الأزرار ———— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 16px;
  font: 600 1rem/1.3 var(--font);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 12px 26px -14px rgba(242, 179, 91, 0.9);
}

.btn-gold:hover {
  background: #f5c173;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(46, 81, 122, 0.9);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 20px 8px 18px;
  border-radius: 16px;
  background: #0a1422;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.15s;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn .icon {
  font-size: 30px;
}

.store-btn small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
  direction: ltr;
}

/* ———— البطل ———— */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(242, 179, 91, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(61, 102, 112, 0.55), transparent 60%),
    linear-gradient(160deg, #36608f 0%, var(--navy) 38%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px);
}

.hero-pattern {
  position: absolute;
  inset-inline-start: -80px;
  top: -40px;
  width: 520px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 179, 91, 0.25);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  margin-block: 20px 18px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 36em;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust .icon {
  color: var(--gold);
  font-size: 22px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.phone {
  position: relative;
  width: min(270px, 62vw);
  aspect-ratio: 390 / 844;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(145deg, #1b2c42, #070e18);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  flex: none;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  width: 84px;
  height: 22px;
  border-radius: 99px;
  background: #05090f;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
  background: #fff;
}

.hero-visual .phone.main {
  z-index: 2;
}

.hero-visual .phone.back {
  position: absolute;
  inset-inline-start: 0;
  top: 70px;
  width: min(230px, 50vw);
  rotate: -8deg;
  opacity: 0.95;
}

[dir="ltr"] .hero-visual .phone.back {
  rotate: 8deg;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 260px;
}

.float-card .badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.float-card div > strong {
  display: block;
}

.float-card div > span {
  color: #56657a;
  font-size: 0.85rem;
}

.float-card .badge .icon {
  font-size: 24px;
}

.float-card.one {
  inset-inline-end: -8px;
  top: 90px;
  animation: floaty 6s ease-in-out infinite;
}

.float-card.two {
  inset-inline-end: 20px;
  bottom: 50px;
  animation: floaty 7s ease-in-out -2s infinite;
}

@keyframes floaty {
  50% {
    translate: 0 -10px;
  }
}

/* ———— الأقسام ———— */

section {
  scroll-margin-top: 84px;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.kicker {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* الأبواب الأربعة */

.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.door {
  position: relative;
  padding: 26px 24px 28px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.door:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.door .tile {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 18px;
}

.door .tile .icon {
  font-size: 30px;
}

.door h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.door p {
  color: var(--muted);
  font-size: 0.98rem;
}

.door .examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.door .examples li {
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.tile.navy {
  background: linear-gradient(145deg, #3b679a, var(--navy));
}

.tile.teal {
  background: linear-gradient(145deg, #4f808b, var(--teal));
}

.tile.gold {
  background: linear-gradient(145deg, #f5c373, var(--gold-deep));
}

.tile.orange {
  background: linear-gradient(145deg, #ec8c5b, #c95a28);
}

.parts-band {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(120deg, var(--brand-soft), var(--surface));
}

.parts-band .tile {
  margin: 0;
  flex: none;
}

.parts-band p {
  color: var(--muted);
}

.parts-band strong {
  color: var(--ink);
}

/* طريقتان للطلب */

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.way {
  padding: clamp(24px, 3.5vw, 40px);
  position: relative;
  overflow: hidden;
}

.way-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.way h3 {
  font-size: 1.5rem;
}

.way > p {
  color: var(--muted);
  margin-bottom: 22px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
}

.steps strong {
  display: block;
  line-height: 1.5;
}

.steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

.way.best {
  background: linear-gradient(160deg, #3f6a75 0%, var(--teal) 45%, #274750 100%);
  color: #fff;
  border-color: transparent;
}

.way.best > p,
.way.best .steps span {
  color: rgba(255, 255, 255, 0.82);
}

.way.best .steps li::before {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.way.best .pill {
  background: rgba(242, 179, 91, 0.22);
  color: var(--gold);
}

/* المزايا */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 24px;
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
  font-size: 26px;
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* عروض بالصور */

.showcase {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

.show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.show:nth-child(even) .show-visual {
  order: -1;
}

.show-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.show-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 48px;
  background: var(--glow, var(--brand-soft));
  filter: blur(2px);
  z-index: 0;
}

.show-visual .phone {
  z-index: 1;
  width: min(260px, 70vw);
}

.show h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-block: 10px 14px;
}

.show > div > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.checks .icon {
  color: var(--gold-deep);
  font-size: 24px;
  margin-top: 3px;
}

/* المهنيون */

.pro {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(242, 179, 91, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-ink));
  color: #fff;
}

.pro .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pro-item {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-item .icon {
  color: var(--gold);
  font-size: 30px;
  margin-bottom: 12px;
}

.pro-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.pro-item p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.7;
}

.pro-steps {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(242, 179, 91, 0.1);
  border: 1px solid rgba(242, 179, 91, 0.3);
}

.pro-steps ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pstep;
  flex: 1;
}

.pro-steps li {
  counter-increment: pstep;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.pro-steps li::before {
  content: counter(pstep);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* الأمان */

.safety {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.safety-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.safety-item {
  padding: 22px;
}

.safety-item .icon {
  color: var(--brand);
  font-size: 28px;
  margin-bottom: 10px;
}

.safety-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.safety-item p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.shield {
  padding: 32px;
  background: linear-gradient(160deg, var(--brand-soft), var(--surface));
}

.shield .big {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.shield .big .icon {
  font-size: 40px;
}

.shield p {
  color: var(--muted);
  margin-top: 10px;
}

.shield .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  font-weight: 600;
}

/* معرض اللقطات */

.gallery {
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  margin: 0;
  flex: none;
  scroll-snap-align: center;
  text-align: center;
}

.gallery .phone {
  width: 220px;
  border-radius: 38px;
  padding: 8px;
}

.gallery .phone::before {
  top: 15px;
  width: 64px;
  height: 18px;
}

.gallery .phone img {
  border-radius: 30px;
}

.gallery figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.gallery-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.gallery-nav button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-nav button:hover {
  background: var(--surface-2);
}

/* الأسئلة */

.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: rotate 0.25s;
  color: var(--muted);
}

.faq details[open] summary .icon {
  rotate: 180deg;
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* التحميل */

.download {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(242, 179, 91, 0.3), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 32px;
  align-items: center;
}

.download h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.download p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 12px;
  font-size: 1.05rem;
}

.download .stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-mark {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -60px;
  width: 280px;
  opacity: 0.08;
  pointer-events: none;
}

/* التذييل */

.footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  margin-top: clamp(64px, 9vw, 112px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 28em;
  font-size: 0.95rem;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer ul a {
  color: var(--muted);
  text-decoration: none;
}

.footer ul a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ———— الصفحات القانونية ———— */

.doc-hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding-block: 56px 48px;
}

.doc-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.doc-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

.doc {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 48px 24px;
}

.doc nav.toc {
  padding: 20px 24px;
  margin-bottom: 36px;
}

.doc nav.toc ol {
  margin: 8px 0 0;
  padding-inline-start: 22px;
  columns: 2;
  column-gap: 32px;
}

.doc nav.toc a {
  text-decoration: none;
}

.doc h2 {
  font-size: 1.3rem;
  margin: 36px 0 10px;
  scroll-margin-top: 90px;
}

.doc p,
.doc li {
  color: var(--ink);
  margin-bottom: 12px;
}

.doc ol.how {
  padding-inline-start: 22px;
}

.doc .note {
  padding: 18px 22px;
  margin-top: 24px;
  color: var(--muted);
}

/* ———— الظهور عند التمرير ———— */

.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.reveal.in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .float-card {
    animation: none;
  }
  .btn,
  .door,
  .store-btn {
    transition: none;
  }
}

/* ———— الأحجام ———— */

@media (max-width: 1080px) {
  .doors,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .safety {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 72px;
    flex-direction: column;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px;
    font-size: 1.05rem;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    margin-inline-start: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    min-height: 500px;
  }
  .ways,
  .show {
    grid-template-columns: 1fr;
  }
  .show:nth-child(even) .show-visual {
    order: 0;
  }
  .download {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .download .stores {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .doors,
  .features,
  .pro-grid,
  .safety-list {
    grid-template-columns: 1fr;
  }
  .header .btn-gold {
    display: none;
  }
  .hero-visual {
    min-height: 440px;
  }
  .hero-visual .phone.back {
    display: none;
  }
  .float-card.one {
    inset-inline-end: 0;
    top: 30px;
  }
  .float-card.two {
    inset-inline-end: auto;
    inset-inline-start: 0;
    bottom: 20px;
  }
  .parts-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc nav.toc ol {
    columns: 1;
  }
  .store-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta .btn {
    width: 100%;
  }
}
