/* VIGIMOBILE LANDING
   -----------------------------------------------------------------------
   Self-contained styles for vigimobile.html. This page carries its own brand
   - cyan and white - rather than the MediSafe orange in css/new.css, so it
   deliberately does not load that stylesheet and cannot disturb it.

   Colours were sampled from the reference artwork: the mark and "Mobile"
   wordmark read #02a0b8, the "Vigi" wordmark #080808, and the download pill
   #019db7. */

:root {
  --vm-cyan: #02a0b8;
  --vm-cyan-deep: #018299;
  --vm-cyan-ink: #016e82;
  --vm-ink: #0b0b0b;
  --vm-ink-soft: #4a5a5f;
  --vm-surface: #ffffff;
  --vm-wash: #eaf6f9;
  --vm-pill: #141414;
  --vm-radius: 999px;
  --vm-shadow: 0 24px 60px rgba(1, 108, 128, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  color: var(--vm-ink);
  background: var(--vm-surface);
  /* The reference is a soft white page that warms into cyan toward the
     right, behind the phone. */
  background-image:
    radial-gradient(70% 55% at 88% 12%, rgba(2,160,184,.22) 0%, rgba(2,160,184,0) 62%),
    radial-gradient(55% 45% at 72% 62%, rgba(2,160,184,.12) 0%, rgba(2,160,184,0) 66%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 46%, var(--vm-wash) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---------- background shapes ---------- */
/* Two soft curved bands, the way the artwork sweeps a pale cyan ribbon behind
   the device. Purely decorative, so they are hidden from assistive tech and
   never intercept a click. */
.vm-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.vm-bg svg { position: absolute; width: 140%; height: auto; left: -20%; opacity: .34; }
.vm-bg .vm-wave-top { top: -6%; }
.vm-bg .vm-wave-bottom { bottom: -10%; transform: scaleY(-1); opacity: .4; }

/* The blurred greenery in the artwork's corners, reduced to a hint of colour
   rather than a photograph - it carries the mood at a fraction of the weight. */
.vm-bg::before,
.vm-bg::after {
  content: "";
  position: absolute;
  width: 34vmax; height: 34vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .20;
}
.vm-bg::before { left: -14vmax; bottom: -10vmax; background: radial-gradient(circle, #8fc79b 0%, rgba(143,199,155,0) 70%); }
.vm-bg::after  { right: -16vmax; bottom: -16vmax; background: radial-gradient(circle, #7fbf96 0%, rgba(127,191,150,0) 70%); }

/* ---------- shell ---------- */
.vm-page {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- brand ---------- */
.vm-brand { display: flex; }
.vm-brand img {
  width: clamp(210px, 26vw, 330px);
  height: auto;
  display: block;
}

/* ---------- hero ---------- */
.vm-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.vm-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
/* The Arabic keeps its own reading order; only the block edge is aligned with
   the pill below it. */
.vm-title, .vm-lede, .vm-note { text-align: left; }

.vm-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
}
.vm-title span { color: var(--vm-cyan); }

.vm-lede {
  margin: 0;
  max-width: 46ch;
  color: var(--vm-ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
}

/* ---------- download CTA ---------- */
.vm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  align-self: flex-start;
  padding: clamp(.95rem, 1.6vw, 1.2rem) clamp(1.9rem, 3.4vw, 2.9rem);
  border: 0;
  border-radius: var(--vm-radius);
  background: var(--vm-cyan);
  color: #fff;
  font-family: 'Tajawal', 'Poppins', sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2,160,184,.32);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.vm-cta:hover { background: var(--vm-cyan-deep); transform: translateY(-2px); box-shadow: 0 20px 38px rgba(2,160,184,.38); }
.vm-cta:active { transform: translateY(0); box-shadow: 0 10px 22px rgba(2,160,184,.30); }
.vm-cta:focus-visible { outline: 3px solid var(--vm-cyan-ink); outline-offset: 4px; }
.vm-cta svg { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- platform buttons ---------- */
.vm-platforms { display: flex; flex-wrap: wrap; gap: .85rem; }

.vm-store {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.25rem;
  border-radius: var(--vm-radius);
  background: var(--vm-pill);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, opacity .18s ease;
}
.vm-store svg { width: 1.3rem; height: 1.3rem; flex: none; }
.vm-store:hover { background: #262626; transform: translateY(-2px); }
.vm-store:active { transform: translateY(0); }
.vm-store:focus-visible { outline: 3px solid var(--vm-cyan); outline-offset: 3px; }

/* Until a real store URL exists the button must not pretend to lead anywhere:
   it stays visible and readable, but is inert and says so. */
.vm-store[aria-disabled="true"] { opacity: .72; cursor: not-allowed; }
.vm-store[aria-disabled="true"]:hover { transform: none; background: var(--vm-pill); }
.vm-note { margin: 0; font-size: .82rem; color: var(--vm-ink-soft); opacity: .85; }
.vm-note[hidden] { display: none; }

/* ---------- phone ---------- */
.vm-showcase { display: flex; align-items: center; justify-content: center; position: relative; min-height: min(74dvh, 680px); }

.vm-phone {
  /* The artwork stands the device up and turns it slightly toward the reader.
     A small rotation plus perspective reproduces that without a photograph. */
  width: clamp(215px, 30vw, 350px);
  max-height: min(68dvh, 620px);
  aspect-ratio: 1 / 2.03;
  border-radius: clamp(28px, 3.4vw, 44px);
  padding: .5rem;
  background: linear-gradient(145deg, #8f979e 0%, #4a5157 22%, #23282c 52%, #3d444a 78%, #9aa2a9 100%);
  box-shadow: var(--vm-shadow), 0 2px 6px rgba(0,0,0,.35);
  transform: perspective(1400px) rotateY(-13deg) rotateZ(-2deg);
  transform-origin: center bottom;
  position: relative;
  z-index: 1;
}

.vm-screen {
  width: 100%; height: 100%;
  border-radius: clamp(23px, 2.9vw, 38px);
  background:
    radial-gradient(120% 80% at 80% 12%, rgba(2,160,184,.18) 0%, rgba(2,160,184,0) 60%),
    radial-gradient(100% 70% at 15% 95%, rgba(2,160,184,.22) 0%, rgba(2,160,184,0) 65%),
    linear-gradient(170deg, #ffffff 0%, #eaf7fa 55%, #d7eff5 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.vm-screen img { width: 52%; height: auto; display: block; }

/* the pill cut-out along the top edge */
.vm-notch {
  position: absolute;
  top: 2.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 3.4%;
  min-height: 14px;
  border-radius: var(--vm-radius);
  background: #0d0d0d;
}

/* the little stand the device rests on in the artwork */
.vm-podium {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(205px, 29vw, 335px);
  height: clamp(40px, 5vw, 62px);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #e6eef1 55%, #cfdde2 100%);
  box-shadow: 0 18px 34px rgba(1,108,128,.20);
  z-index: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .vm-hero { grid-template-columns: 1fr; gap: clamp(1.25rem, 4vw, 2rem); }
  /* Stacked, the device must not swallow the fold: the download button is the
     reason the page exists and has to be reachable without scrolling far. */
  .vm-showcase { min-height: 0; }
  .vm-phone { max-height: min(44dvh, 420px); }
  .vm-podium { width: clamp(150px, 42vw, 240px); height: clamp(26px, 6vw, 38px); }
  .vm-showcase { order: -1; }          /* device leads on a narrow screen */
  .vm-copy { align-items: center; text-align: center; }
  .vm-cta { align-self: center; }
  .vm-lede { margin-inline: auto; }
  .vm-platforms { justify-content: center; }
  .vm-brand { justify-content: center; }
  .vm-phone { transform: perspective(1400px) rotateY(-9deg) rotateZ(-1.5deg); }
}

@media (max-width: 420px) {
  .vm-store { padding: .65rem 1rem; font-size: .88rem; }
  .vm-phone { width: min(62vw, 240px); }
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .vm-phone { transform: none; }
}

/* ===========================================================================
   SPONSOR, PLATFORM GUIDANCE AND OFFICIAL RESOURCES
   Added for the JFDA reporting journey. Same aqua/white direction as above.
   =========================================================================== */

/* ---------- sponsor line ---------- */
/* Present but deferential: it credits the sponsor without competing with the
   VigiMobile mark directly beneath it. */
.vm-sponsor {
  margin: .35rem 0 0;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--vm-ink-soft);
  opacity: .85;
}
.vm-sponsor b { font-weight: 600; color: var(--vm-ink); }

/* ---------- section shell ---------- */
.vm-section { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.vm-section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.vm-h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.vm-sub { margin: 0; max-width: 62ch; color: var(--vm-ink-soft); line-height: 1.75; font-size: .98rem; }

/* ---------- platform accordions ---------- */
/* align-items: start, or the closed panel stretches to match the open one
   and reads as a large empty card sitting next to the steps. */
.vm-platform-grid { display: grid; gap: 1rem; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.vm-panel {
  border: 1px solid rgba(2,160,184,.20);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(1,108,128,.08);
  overflow: hidden;
}

/* The trigger carries the supplied button artwork, but the element itself is a
   real <button>: the artwork is decorative and the accessible name is text, so
   a screen reader and a keyboard both get a proper control. */
.vm-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: start;
}
/* Sized by height, not width: both supplied PNGs are natively 105px tall, so a
   shared height keeps the two badges optically balanced beside each other,
   where a shared width would leave the narrower iOS badge visibly taller.
   The PNGs are untouched - max-width and object-fit only stop a narrow card
   from overflowing, and never distort the artwork. */
.vm-trigger img {
  height: clamp(58px, 7.2vw, 86px);
  width: auto;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
}
[dir="rtl"] .vm-trigger img { object-position: right center; }
.vm-trigger:hover { background: rgba(2,160,184,.05); }
.vm-trigger:focus-visible { outline: 3px solid var(--vm-cyan); outline-offset: -3px; }

.vm-chev {
  flex: none; width: 1.5rem; height: 1.5rem; color: var(--vm-cyan);
  transition: transform .25s ease;
}
.vm-trigger[aria-expanded="true"] .vm-chev { transform: rotate(180deg); }

/* Collapsed height is animated via grid-template-rows, which transitions
   cleanly without needing a measured pixel height. */
/* visibility, not just a zero row: a collapsed drawer that is merely flat
   still hands its links to the Tab key, sending a keyboard to content nobody
   can see. It is held back until the closing transition has finished. */
.vm-drawer { display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
.vm-drawer > div { overflow: hidden; }
.vm-panel.is-open .vm-drawer { grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .3s ease, visibility 0s; }

.vm-drawer-inner { padding: 0 1.15rem 1.25rem; }

/* ---------- numbered steps ---------- */
.vm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.vm-steps li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.vm-num {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--vm-cyan); color: #fff;
  font-size: .82rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vm-step-body { font-size: .95rem; line-height: 1.7; color: var(--vm-ink); }
.vm-step-body small { display: block; color: var(--vm-ink-soft); font-size: .85rem; margin-top: .15rem; }
.vm-step-body a { color: var(--vm-cyan-ink); font-weight: 600; text-underline-offset: 3px; }
.vm-step-body a:focus-visible { outline: 3px solid var(--vm-cyan); outline-offset: 2px; border-radius: 4px; }

/* the one action the page exists to lead to */
.vm-primary-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .85rem;
  padding: .7rem 1.2rem;
  border-radius: var(--vm-radius);
  background: var(--vm-cyan); color: #fff;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.vm-primary-link:hover { background: var(--vm-cyan-deep); transform: translateY(-1px); }
.vm-primary-link:focus-visible { outline: 3px solid var(--vm-cyan-ink); outline-offset: 3px; }
.vm-primary-link svg { width: 1rem; height: 1rem; }

/* An honest note where an official destination does not exist. */
.vm-callout {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-inline-start: 4px solid var(--vm-cyan);
  border-radius: .6rem;
  background: rgba(2,160,184,.07);
  font-size: .88rem; line-height: 1.7; color: var(--vm-ink-soft);
}

/* ---------- brand head, CTA artwork, phone artwork ---------- */
.vm-brand-head { display: flex; flex-direction: column; align-items: flex-start; }
.vm-brand-logo { width: clamp(210px, 26vw, 330px); height: auto; display: block; }

/* The artwork is the button's face; the accessible name is the hidden text. */
.vm-cta-art {
  display: inline-block; align-self: flex-start; border-radius: var(--vm-radius);
  transition: transform .18s ease, filter .18s ease;
}
.vm-cta-art img { width: clamp(230px, 30vw, 330px); height: auto; display: block; }
.vm-cta-art:hover { transform: translateY(-2px); filter: drop-shadow(0 14px 26px rgba(2,160,184,.34)); }
.vm-cta-art:active { transform: translateY(0); }
.vm-cta-art:focus-visible { outline: 3px solid var(--vm-cyan-ink); outline-offset: 4px; }

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

/* Supplied mockup: never wider than its column, never taller than the fold. */
.vm-phone-art {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70dvh, 640px);
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(1,108,128,.26));
}

@media (max-width: 900px) {
  .vm-brand-head { align-items: center; text-align: center; }
  .vm-cta-art { align-self: center; }
  .vm-phone-art { max-height: 46dvh; }
}
