/* emergency - طوارئ — public website. Shares the dashboard's palette. */

:root {
  --bg: #f6f8fc;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --line: #e2e7ef;
  --text: #121826;
  --text-2: #4b5566;
  --muted: #7a8599;
  --red: #d92d32;
  --red-deep: #a8181f;
  --red-soft: #fde8e8;
  --blue: #2155c4;
  --blue-deep: #1a449d;
  --blue-soft: #e3ebfc;
  --green: #15925b;
  --green-soft: #ddf3e8;
  --amber: #d08a12;
  --amber-soft: #fbefd9;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16);
  --accent: var(--red);
  --accent-deep: var(--red-deep);
  --accent-soft: var(--red-soft);
}

/* Business pages lead with the dashboard's blue; the app page with red. */
.biz {
  --accent: var(--blue);
  --accent-deep: var(--blue-deep);
  --accent-soft: var(--blue-soft);
}

/* Dark: chosen with the header toggle (data-theme, set by theme.js before
   first paint), or the system setting when nothing was chosen and scripts
   are off. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b1017;
  --bg-alt: #101722;
  --surface: #141c27;
  --line: #243042;
  --text: #e8edf5;
  --text-2: #b4bfd0;
  --muted: #8391a7;
  --red: #f0565a;
  --red-deep: #d92d32;
  --red-soft: #3a1719;
  --blue: #6f9bff;
  --blue-deep: #4f7fe8;
  --blue-soft: #18284a;
  --green: #3fc489;
  --green-soft: #12301f;
  --amber: #f0b85e;
  --amber-soft: #352710;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b1017;
    --bg-alt: #101722;
    --surface: #141c27;
    --line: #243042;
    --text: #e8edf5;
    --text-2: #b4bfd0;
    --muted: #8391a7;
    --red: #f0565a;
    --red-deep: #d92d32;
    --red-soft: #3a1719;
    --blue: #6f9bff;
    --blue-deep: #4f7fe8;
    --blue-soft: #18284a;
    --green: #3fc489;
    --green-soft: #12301f;
    --amber: #f0b85e;
    --amber-soft: #352710;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', system-ui, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

/* Wide enough to use a big screen, with side room that grows with it —
   not a narrow column floating in the middle. */
.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

/* ── header ───────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--text-2);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

/* The call to action stands apart from the plain links. */
.site-nav .btn {
  margin-inline-start: 10px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .btn {
    margin-top: 6px;
  }
}

/* ── buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn:hover {
  background: var(--accent-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--line);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.btn.small {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 12px;
}

.btn.whatsapp {
  background: #1fa855;
  box-shadow: 0 8px 20px rgba(31, 168, 85, 0.28);
}

.btn.whatsapp:hover {
  background: #178a45;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

[data-whatsapp][hidden] {
  display: none !important;
}

/* ── hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.18rem;
  color: var(--text-2);
  max-width: 600px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 600;
}

.trust span::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  margin-inline-end: 6px;
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 48px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── phone frames ─────────────────────────────────────── */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.phone {
  width: 260px;
  border-radius: 36px;
  padding: 9px;
  background: #0d1118;
  box-shadow: var(--shadow-lg);
  flex: none;
}

.phone img {
  border-radius: 28px;
  width: 100%;
  aspect-ratio: 390 / 799;
  object-fit: cover;
  object-position: top;
}

.phones .phone.back {
  position: absolute;
  inset-inline-start: calc(50% - 250px);
  top: 54px;
  width: 220px;
  transform: rotate(-7deg);
  opacity: 0.95;
}

.phones .phone.front {
  position: relative;
  transform: translateX(-46px) rotate(3deg);
}

@media (max-width: 860px) {
  .phones {
    min-height: 0;
  }

  .phones .phone.back {
    display: none;
  }

  .phones .phone.front {
    transform: none;
    width: 240px;
  }
}

/* ── sections ─────────────────────────────────────────── */

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

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

.section-head p {
  color: var(--text-2);
  font-size: 1.08rem;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid.three,
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }
}

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

.card p {
  color: var(--text-2);
  margin: 0;
}

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

.icon svg {
  width: 24px;
  height: 24px;
}

.icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.icon.red {
  background: var(--red-soft);
  color: var(--red);
}

/* ── steps ────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 58px;
}

.step::before {
  counter-increment: step;
  content: counter(step, arabic-indic);
  position: absolute;
  top: 18px;
  inset-inline-start: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

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

/* ── split rows (text beside a phone) ─────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.split + .split {
  margin-top: 84px;
}

.split.flip > :first-child {
  order: 2;
}

.split .phone {
  margin: 0 auto;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--text-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315925b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.flip > :first-child {
    order: 0;
  }
}

/* ── the escalation timeline on the app page ──────────── */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  inset-inline: 12%;
  height: 3px;
  background: linear-gradient(to left, var(--red), var(--amber), var(--green));
  border-radius: 2px;
}

.tl {
  position: relative;
  text-align: center;
  padding: 0 10px;
}

.tl .dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 3px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.tl .when {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9rem;
}

.tl p {
  color: var(--text-2);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .timeline::before {
    inset: 0 auto 0 auto;
    inset-inline-start: 27px;
    width: 3px;
    height: auto;
  }

  .tl {
    text-align: start;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 16px;
  }

  .tl .dot {
    grid-row: span 3;
    margin: 0;
  }
}

/* ── dashboard illustration ───────────────────────────── */

.screen {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.screen-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.screen-bar span {
  margin-inline-start: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.screen svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── comparison table ─────────────────────────────────── */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: var(--bg-alt);
  font-size: 0.95rem;
}

.compare thead th.us {
  color: var(--accent);
}

.compare td.us {
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}

.compare td {
  color: var(--text-2);
}

.table-scroll {
  overflow-x: auto;
}

/* ── pricing ──────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.plan.featured {
  border: 2px solid var(--accent);
  position: relative;
}

.plan.featured::before {
  content: 'الأكثر طلباً';
  position: absolute;
  top: -13px;
  inset-inline-start: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan .name {
  font-weight: 800;
  font-size: 1.15rem;
}

.plan .band {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.93rem;
}

.plan .price {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 6px 0 0;
  line-height: 1.2;
}

.plan .price small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.plan .per {
  color: var(--muted);
  font-size: 0.85rem;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
  color: var(--text-2);
}

.plan li.no {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
}

.plan .btn {
  margin-top: auto;
}

.fine {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 18px;
  text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--text-2);
  padding-bottom: 16px;
  margin: 0;
}

/* ── call to action band ──────────────────────────────── */

.cta-band {
  border-radius: 26px;
  padding: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.cta-band .btn {
  background: #fff;
  color: var(--accent-deep) !important;
  box-shadow: none;
}

.cta-band .btn.whatsapp {
  background: #1fa855;
  color: #fff !important;
}

.cta-band .actions {
  margin: 0;
}

@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* ── audience cards on the app page ───────────────────── */

.audience {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}

.audience:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
}

.audience .more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

/* ── footer ───────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  color: var(--text-2);
  font-size: 0.93rem;
}

.site-foot .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

.site-foot h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.site-foot a {
  color: var(--text-2);
}

.site-foot .copy {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .site-foot .cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── install page ─────────────────────────────────────── */

.btn.big {
  min-height: 68px;
  padding: 12px 28px;
  border-radius: 18px;
  font-size: 1.15rem;
}

.btn.big svg {
  width: 26px;
  height: 26px;
}

.btn.big span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.btn.big small {
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.85;
}

.note-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 560px;
}

.install-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 240px;
}

.qr-card img {
  width: 190px;
  height: 190px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-card h3 {
  margin-bottom: 4px;
}

.qr-card p {
  font-size: 0.9rem;
}

.install-phone {
  width: 220px;
}

/* A phone visitor is already on the right device: no QR, no picture of one. */
@media (max-width: 860px), (pointer: coarse) {
  .qr-card,
  .install-phone {
    display: none;
  }

  .install-side {
    display: none;
  }
}

.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.install-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.install-steps .n {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.install-steps h3 {
  margin-bottom: 4px;
}

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

/* ── header tools: language and theme ─────────────────── */

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--line);
}

.tool {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.tool:hover {
  color: var(--text);
  border-color: var(--accent);
  text-decoration: none;
}

.tool svg {
  width: 18px;
  height: 18px;
}

/* The toggle shows what it switches to: a moon in light mode, a sun in dark. */
.theme-toggle .i-sun,
:root[data-theme='dark'] .theme-toggle .i-moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .i-sun {
  display: block;
}

@media (max-width: 1080px) {
  .head-tools {
    margin-inline-start: auto;
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .site-nav .btn {
    margin-inline-start: 0;
  }

  .nav-toggle {
    margin-inline-start: 0;
  }
}

/* ── English (left to right) ──────────────────────────── */

body[dir='ltr'],
html[dir='ltr'] body {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

[dir='ltr'] .timeline::before {
  background: linear-gradient(to right, var(--red), var(--amber), var(--green));
}

[dir='ltr'] .phones .phone.front {
  transform: translateX(46px) rotate(-3deg);
}

[dir='ltr'] .phones .phone.back {
  transform: rotate(7deg);
}

[dir='ltr'] .step::before {
  content: counter(step);
}

[lang='en'] .plan.featured::before {
  content: 'Most popular';
}

@media (max-width: 860px) {
  [dir='ltr'] .phones .phone.front {
    transform: none;
  }
}

/* ── long-form pages: privacy policy, account deletion ───── */

.prose {
  max-width: 820px;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 34px;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose ul,
.prose ol {
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
}

.prose b {
  color: var(--text);
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
}
