@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #073a66;
  --navy-deep: #052844;
  --teal: #087f74;
  --gold: #e7a634;
  --ink: #152431;
  --muted: #5d6c79;
  --line: #d9e4eb;
  --mist: #f2f7fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  right: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #ffd789;
}

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero-screens {
  position: absolute;
  inset: 0;
  direction: ltr;
}

.hero-screen {
  position: absolute;
  width: 340px;
  height: auto;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-screen-patient {
  top: 100px;
  left: 7%;
  transform: rotate(-4deg);
}

.hero-screen-doctor {
  top: 245px;
  left: 28%;
  width: 300px;
  transform: rotate(5deg);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 40, 68, 0.58);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: min(760px, 88vh);
  margin: 0 auto;
  padding: 128px 0 70px;
}

.hero-content > * {
  width: min(610px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.hero .eyebrow,
.audiences .eyebrow {
  color: #ffd789;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  margin-bottom: 28px;
  color: #eff6fb;
  font-size: 22px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: var(--navy-deep);
  background: var(--gold);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(5, 40, 68, 0.36);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.release-note {
  margin-top: 18px;
  margin-bottom: 0;
  color: #c8d8e4;
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 26px;
  border-inline-start: 1px solid var(--line);
}

.trust-strip div:first-child {
  border-inline-start: 0;
}

.trust-strip strong {
  color: var(--navy);
  font-size: 16px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 92px max(20px, calc((100% - 1180px) / 2));
}

.section-heading {
  width: min(690px, 100%);
  margin-bottom: 50px;
}

.section-heading h2,
.support h2 {
  margin-bottom: 14px;
  color: var(--navy-deep);
  font-size: 38px;
  line-height: 1.35;
}

.section-heading > p:last-child,
.support-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.experience {
  background: var(--mist);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 34px;
  direction: ltr;
}

.phone-preview {
  margin: 0;
  direction: rtl;
}

.phone-preview img {
  width: 100%;
  aspect-ratio: 390 / 740;
  object-fit: cover;
  object-position: top;
  border: 9px solid #17242e;
  border-radius: 32px;
  box-shadow: 0 20px 46px rgba(25, 53, 72, 0.16);
}

.phone-preview-tall {
  margin-top: 54px;
}

.phone-preview figcaption {
  padding: 16px 4px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.audiences {
  color: var(--white);
  background: var(--navy-deep);
}

.section-heading-light h2 {
  color: var(--white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.audience-grid article {
  min-height: 250px;
  padding: 34px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}

.audience-grid article:first-child {
  border-inline-start: 0;
}

.audience-number {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.audience-grid h3 {
  margin: 46px 0 10px;
  font-size: 26px;
}

.audience-grid p {
  margin-bottom: 0;
  color: #c9d8e3;
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 80px;
  align-items: start;
}

.support-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 700;
  direction: ltr;
}

.support-links {
  border-top: 1px solid var(--line);
}

.support-links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.support-links a:hover span,
.support-links a:focus-visible span {
  color: var(--teal);
}

.support-links span {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}

.support-links small {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px max(20px, calc((100% - 1180px) / 2));
  color: #bdccd7;
  background: #031e33;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer p:last-child {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-screen-patient {
    left: -90px;
  }

  .hero-screen-doctor {
    left: 130px;
  }

  .hero-shade {
    background: rgba(5, 40, 68, 0.72);
  }

  .screen-gallery {
    gap: 18px;
  }

  .support {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 28px);
    min-height: 70px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:nth-child(2) {
    display: none;
  }

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    width: calc(100% - 32px);
    justify-content: flex-end;
    padding: 104px 0 54px;
  }

  .hero-screens {
    opacity: 0.62;
  }

  .hero-screen {
    width: 250px;
    border-width: 7px;
    border-radius: 26px;
  }

  .hero-screen-patient {
    top: 62px;
    left: -54px;
  }

  .hero-screen-doctor {
    top: 112px;
    left: 145px;
    width: 220px;
  }

  .hero-shade {
    background: rgba(5, 40, 68, 0.7);
  }

  h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .release-note {
    color: #edf4f8;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    padding: 12px 0;
  }

  .trust-strip div,
  .trust-strip div:first-child {
    padding: 14px 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 16px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .support h2 {
    font-size: 30px;
  }

  .section-heading > p:last-child,
  .support-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .screen-gallery {
    grid-template-columns: repeat(3, 72vw);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 4px 22px;
  }

  .phone-preview,
  .phone-preview-tall {
    margin-top: 0;
    scroll-snap-align: center;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid article,
  .audience-grid article:first-child {
    min-height: 0;
    padding: 26px 0;
    border-inline-start: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .audience-grid article:last-child {
    border-bottom: 0;
  }

  .audience-grid h3 {
    margin-top: 20px;
  }

  .support {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
