/* =========================================================
   SmartBlock landing page
   One responsive stylesheet. Desktop first, phone layout
   below 860px (see the "PHONE" section at the bottom).
   ========================================================= */

:root {
  --teal: #0B7A7A;
  --teal-dark: #075F5F;
  --teal-soft: #E8F4F3;
  --mint: #7FD3CC;
  --navy: #0E2236;
  --night: #2B4A63;
  --slate: #5B6B7A;
  --muted: #7A8896;
  --line: #EDF1F5;
  --line-2: #E2E9EF;
  --border: #D5DEE6;
  --soft: #F7FAFC;
  --soft-2: #F1F4F7;
  --coral: #E5533D;
  --leave: #C7432E;

  --shadow-card: 0 1px 3px rgba(14,34,54,.06), 0 30px 60px -24px rgba(14,34,54,.3);
  --shadow-float: 0 24px 44px -20px rgba(14,34,54,.42);

  --container: 1240px;
  --gutter: 24px;

  /* map zoom (changed on phones) */
  --zoom-out: .5;
  --zoom-in: 9;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* desktop / phone visibility helpers */
.show-mobile, .show-mobile-inline { display: none; }
.show-desktop { display: block; }
.show-desktop-inline { display: inline; }
.show-desktop-flex { display: flex; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
}
.eyebrow--mint { color: var(--mint); }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.h2--xl { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
.h3 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.body { font-size: 18px; line-height: 1.65; color: var(--slate); text-wrap: pretty; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }
.section-head .h2 { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 14px;
  font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--lg { height: 58px; padding: 0 28px; border-radius: 16px; font-size: 17px; }
.btn--primary { background: var(--teal); color: #FFFFFF; box-shadow: 0 16px 30px -16px rgba(11,122,122,.9); }
.btn--primary:hover { background: var(--teal-dark); color: #FFFFFF; }
.btn--ghost { background: #FFFFFF; color: var(--navy); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid #F0F3F6;
}
.nav__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand__by { font-size: 12px; font-weight: 600; color: var(--slate); }
.brand__by a { font-weight: 700; }
.nav__links { display: flex; gap: 36px; font-size: 15px; font-weight: 700; }
.nav__links a, .footer__links a { color: var(--navy); }
.nav__links a:hover, .footer__links a:hover { color: var(--teal); }
.nav__toggle {
  display: none; width: 48px; height: 48px; padding: 0; border-radius: 16px;
  border: 1px solid var(--line-2); background: #FFFFFF; color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__ecg { position: absolute; left: 0; top: 64%; opacity: .07; }
.hero__ecg svg { animation: ecg 30s linear infinite; }
.float { position: absolute; opacity: .08; }
.float--1 { left: 6%; top: 70px; animation: float1 18s ease-in-out infinite; }
.float--2 { left: 46%; top: 40px; animation: float2 22s ease-in-out infinite; }
.float--3 { right: 4%; top: 120px; animation: float3 16s ease-in-out infinite; }
.float--4 { left: 38%; bottom: 60px; animation: float1 18s ease-in-out infinite; }

.hero__grid {
  position: relative;
  padding-top: 128px; padding-bottom: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy visual" "actions visual";
  column-gap: 80px; row-gap: 36px;
  align-items: center;
}
.hero__copy { grid-area: copy; align-self: end; display: flex; flex-direction: column; gap: 32px; }
.hero__visual { grid-area: visual; position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero__actions { grid-area: actions; align-self: start; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { display: none; }

.hero__title { font-size: clamp(48px, 6.6vw, 96px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.hero__line { display: block; }
.rotator { display: block; height: 1.3em; margin-top: -.1em; overflow: hidden; color: var(--teal); }
.rotator__track { display: flex; flex-direction: column; animation: rotate-words 10s cubic-bezier(.75,0,.25,1) infinite; }
.rotator__track span { height: 1.3em; line-height: 1.3em; }
.hero__lead { max-width: 520px; font-size: 20px; line-height: 1.6; color: var(--slate); }

/* rota card */
.rota-card {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 28px; border-radius: 28px; background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(14,34,54,.06), 0 40px 80px -30px rgba(14,34,54,.32);
}
.rota-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rota-card__titles { display: flex; flex-direction: column; gap: 3px; }
.rota-card__label { font-size: 12px; font-weight: 700; color: var(--slate); }
.rota-card__range { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

.status { position: relative; width: 168px; height: 34px; }
.status__pill {
  position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.status__pill--draft { opacity: 0; background: var(--soft-2); color: var(--slate); animation: st1 12s linear infinite both; }
.status__pill--ok { opacity: 0; background: var(--teal-soft); color: var(--teal-dark); animation: st2 12s linear infinite both; }
.status__pill--approved { background: var(--teal); color: #FFFFFF; animation: st3 12s linear infinite both; }
.blink-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 2s ease-in-out infinite; }

.rota { --rota-cols: 40px repeat(6, minmax(0, 1fr)); --rota-gap: 8px; position: relative; display: flex; flex-direction: column; gap: var(--rota-gap); }
.rota__row { display: grid; grid-template-columns: var(--rota-cols); gap: var(--rota-gap); align-items: center; }
.rota__row--head { font-size: 11px; font-weight: 800; color: var(--slate); text-align: center; margin-bottom: 4px; }
.rota__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--soft-2);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.rota__cell {
  height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; white-space: nowrap; font-size: 11px; font-weight: 800;
  animation: cell-in 12s cubic-bezier(.3,1.3,.5,1) infinite both;
  animation-delay: var(--d-desk);
}
.scan {
  position: absolute; top: 34px; bottom: -6px; left: 0; width: 3px; margin-left: -1px;
  border-radius: 3px; background: var(--teal); box-shadow: 0 0 18px 4px rgba(11,122,122,.35);
  opacity: 0; animation: scan 12s linear infinite both; pointer-events: none;
}
.scan__track { position: absolute; left: 48px; right: 0; top: 30px; bottom: -6px; pointer-events: none; }
.scan__track .scan { top: 0; bottom: 0; }

.rota-legend { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--slate); }
.rota-legend span { display: flex; align-items: center; gap: 6px; }
.rota-legend i { width: 10px; height: 10px; border-radius: 3px; }

.check-chip {
  position: absolute; left: -28px; bottom: -62px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 14px; border-radius: 18px; background: #FFFFFF;
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  animation: chip 12s cubic-bezier(.3,1.4,.5,1) infinite both;
}
.check-chip__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); display: flex; align-items: center; justify-content: center; }
.check-chip__text { display: flex; flex-direction: column; gap: 2px; }
.check-chip__text strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.check-chip__text small { font-size: 12px; font-weight: 600; color: var(--slate); }

/* ---------- Features marquee ---------- */
.features { padding: 40px 0 150px; display: flex; flex-direction: column; gap: 56px; }
.marquee {
  display: flex; flex-direction: column; gap: 28px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee__row { overflow: hidden; padding: 10px 0; }
.marquee__track { display: flex; align-items: center; gap: 20px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track--slow { gap: 40px; animation-duration: 72s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* With JS (.is-live), main.js moves the tracks at the speed set above and people can drag them. */
.marquee.is-live .marquee__track { animation-name: none; will-change: transform; }
.marquee.is-live .marquee__row { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.marquee.is-live .marquee__row.is-dragging { cursor: grabbing; }
.marquee__row:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 14px; }
.marquee__controls { display: flex; justify-content: center; margin-top: -30px; }
.marquee__toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 13px;
  border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--slate);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s;
}
.marquee__toggle:hover { border-color: var(--teal); color: var(--teal); }
.marquee__toggle .icon-play, .marquee__toggle.is-paused .icon-pause { display: none; }
.marquee__toggle.is-paused .icon-play { display: block; }
.pill {
  flex: none; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 28px 0 14px;
  border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line-2);
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pill:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 18px 30px -18px rgba(14,34,54,.35); }
.pill__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; }
.word {
  flex: none; display: flex; align-items: center; gap: 40px;
  font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.04em; white-space: nowrap;
}
.word::after { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--teal); opacity: .5; }
.word--soft { color: var(--muted); }

/* ---------- Proof (dots + seal) ---------- */
.proof-wrap { padding-bottom: 170px; }
.proof {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy viz" "legend viz";
  column-gap: 72px; row-gap: 36px; align-items: center;
  padding: 80px 64px; border-radius: 40px; background: var(--navy); color: #FFFFFF;
}
.proof__copy { grid-area: copy; align-self: end; display: flex; flex-direction: column; gap: 28px; }
.proof__copy .h2 { font-size: clamp(36px, 4.2vw, 56px); }
.proof__legend { grid-area: legend; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.proof__viz { grid-area: viz; position: relative; justify-self: center; }
.legend-row { display: flex; align-items: center; gap: 16px; }
.legend-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.22); }
.legend-dot--on { background: var(--mint); box-shadow: 0 0 0 6px rgba(127,211,204,.15); }
.legend-num { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--mint); }
.legend-text { font-size: 16px; line-height: 1.4; font-weight: 600; color: #B8CAD6; }

.dots { --dot: 12px; display: grid; grid-template-columns: repeat(20, var(--dot)); gap: 8px; }
.dot { width: var(--dot); height: var(--dot); border-radius: 50%; background: rgba(255,255,255,.16); }
.dot--on { background: var(--mint); animation: dot-light 9s ease-in-out infinite both; animation-delay: var(--d-desk); }

.seal {
  position: absolute; right: -44px; top: -64px; width: 140px; height: 140px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 24px 50px -18px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.seal__label { position: relative; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--teal); }

/* ---------- How it works ---------- */
.how { padding-bottom: 120px; }
.how > .section-head { padding-bottom: 56px; }
.step {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px; align-items: center; padding: 88px 0;
}
.step--flip .step__visual { order: -1; }
.step__text { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.step__visual { justify-self: center; width: 100%; max-width: 500px; }
.step__tag { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; color: var(--teal); }
.step__num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}

.card {
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  border-radius: 28px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.card__label { font-size: 12px; font-weight: 700; color: var(--slate); padding-bottom: 8px; }

/* step 1: rules */
.rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rule__name { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; }
.rule__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; }
.toggle { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--teal); animation: toggle-track 8s ease infinite both; animation-delay: var(--delay); }
.toggle__knob { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(14,34,54,.3); transform: translateX(20px); animation: toggle-knob 8s ease infinite both; animation-delay: var(--delay); }
.saved-pill {
  align-self: flex-start; margin-top: 14px; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark);
  font-size: 13px; font-weight: 800; animation: saved 8s ease infinite both;
}

/* step 2: calendar */
.cal-wrap { position: relative; }
.cal { gap: 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cal__key { display: flex; gap: 14px; font-size: 12px; font-weight: 700; color: var(--slate); }
.cal__key span { display: flex; align-items: center; gap: 6px; }
.cal__key i { width: 10px; height: 10px; border-radius: 3px; }
.key-pref { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); }
.key-leave { background: var(--leave); }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { font-size: 11px; font-weight: 800; color: var(--slate); text-align: center; }
.day { height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--soft); }
.day--blank { background: transparent; }
.day--pref { background: var(--teal-soft); color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--teal); animation: day-pref 9s ease infinite both; }
.day--leave { background: var(--leave); color: #FFFFFF; animation: day-leave 9s ease infinite both; }
.toast {
  position: absolute; right: -24px; top: -28px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px; background: #FFFFFF;
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  animation: toast-x 9s cubic-bezier(.3,1.2,.5,1) infinite both;
}
.toast__text { display: flex; flex-direction: column; gap: 2px; }
.toast__text strong { font-size: 14px; font-weight: 800; }
.toast__status { position: relative; height: 16px; font-size: 12px; font-weight: 700; }
.toast__wait, .toast__ok { position: absolute; left: 0; top: 0; white-space: nowrap; }
.toast__wait { opacity: 0; color: var(--slate); animation: wait 9s linear infinite both; }
.toast__ok { color: var(--teal); animation: ok 9s linear infinite both; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.avatar--navy { background: var(--navy); color: #FFFFFF; }
.avatar--soft { width: 46px; height: 46px; font-size: 14px; background: var(--teal-soft); color: var(--teal-dark); }

/* step 3: draft */
.draft-wrap { position: relative; }
.draft { --draft-cols: 6; position: relative; display: grid; grid-template-columns: repeat(var(--draft-cols), minmax(0, 1fr)); gap: 8px; }
.draft__cell { height: 46px; border-radius: 10px; animation: cell-in-2 9s cubic-bezier(.3,1.3,.5,1) infinite both; animation-delay: var(--d-desk); }
.scan--draft { top: -6px; bottom: -6px; animation: scan-2 9s linear infinite both; }
.ok-badge {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 60px; margin: -30px 0 0 -110px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 18px; background: var(--navy); color: #FFFFFF; font-size: 16px; font-weight: 800;
  box-shadow: 0 24px 44px -18px rgba(14,34,54,.6);
  animation: ok-pop 9s cubic-bezier(.3,1.4,.5,1) infinite both;
}

/* step 4: approve */
.approve { gap: 18px; }
.approve__who { display: flex; align-items: center; gap: 14px; }
.approve__who strong { display: block; font-size: 16px; font-weight: 800; }
.approve__who small { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-top: 2px; }
.approve__btn { position: relative; height: 54px; animation: press 9s ease infinite both; }
.approve__a, .approve__b {
  position: absolute; inset: 0; border-radius: 14px; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.approve__a { opacity: 0; background: var(--teal); color: #FFFFFF; animation: pub-a 9s linear infinite both; }
.approve__b { background: var(--teal-soft); color: var(--teal-dark); animation: pub-b 9s linear infinite both; }
.history { display: flex; flex-direction: column; padding-top: 6px; }
.history .card__label { padding-bottom: 6px; }
.history__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); animation: hist 9s ease infinite both; animation-delay: var(--delay); }
.history__icon { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--soft-2); display: flex; align-items: center; justify-content: center; }
.history__label { flex: 1; font-size: 14px; font-weight: 700; }
.history__when { font-size: 12px; font-weight: 600; color: var(--slate); }

/* ---------- Hosted in Oman ---------- */
.oman {
  padding-bottom: 180px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px; align-items: center;
}
.oman__text { display: flex; flex-direction: column; gap: 22px; max-width: 500px; }
.oman__text .h2 { font-size: clamp(36px, 4.4vw, 60px); }
.oman__text .btn { align-self: flex-start; height: 52px; font-size: 16px; }
.map {
  position: relative; justify-self: center; width: 100%; max-width: 560px; height: 440px;
  border-radius: 32px; overflow: hidden; background: var(--soft); border: 1px solid var(--line);
}
/* The zoom resizes the map instead of scaling it with transform, so the
   browser redraws the vector map at full sharpness on every frame
   (a scaled layer is drawn once and enlarged, which looks pixelated).
   --z is the zoom; --t slides the view from Oman (0) to the whole world (1). */
.map__world {
  --z: var(--zoom-in);
  --t: calc((var(--zoom-in) - var(--z)) / (var(--zoom-in) - var(--zoom-out)));
  position: absolute;
  left: calc(50% + var(--z) * (162.2px * var(--t) - 662.2px));
  top: calc(50% + var(--z) * (-65.5px * var(--t) - 184.5px));
  width: calc(1000px * var(--z)); height: calc(500px * var(--z));
  animation: zoom 12s cubic-bezier(.65,0,.35,1) infinite both;
}
.map__dots, .map__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.map__dots { opacity: .12; animation: map-dots 12s linear infinite both; }
.map__svg { overflow: visible; }
.map__oman { fill: var(--teal); fill-opacity: .8; stroke: var(--teal); stroke-width: .18; stroke-linejoin: round; stroke-dasharray: 100; animation: draw 12s ease-out infinite both; }
.map__rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: show 12s linear infinite both; }
.ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--coral); animation: ring 2.4s ease-out infinite both; }
.ring--2 { animation-delay: 1.2s; }
.map__pin { position: absolute; left: calc(50% - 13px); top: calc(50% - 34px); animation: pin 12s cubic-bezier(.3,1.4,.5,1) infinite both; }
.map__label {
  position: absolute; left: calc(50% + 26px); top: calc(50% - 46px);
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: #FFFFFF; box-shadow: 0 14px 28px -14px rgba(14,34,54,.45);
  font-size: 13px; font-weight: 800; white-space: nowrap; animation: show 12s linear infinite both;
}

/* ---------- Call to action ---------- */
.cta-wrap { padding-bottom: 120px; }
.cta {
  position: relative; overflow: hidden; border-radius: 40px; background: var(--teal-soft);
  padding: 120px 32px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.drift { position: absolute; border-radius: 16px; animation: drift 14s ease-in-out infinite; }
.drift--1 { left: 7%; top: 18%; width: 64px; height: 64px; background: var(--teal); opacity: .14; }
.drift--2 { left: 14%; bottom: 14%; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); opacity: .1; animation-direction: reverse; animation-duration: 18s; }
.drift--3 { right: 9%; top: 14%; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); opacity: .1; animation-direction: reverse; animation-duration: 18s; }
.drift--4 { right: 6%; bottom: 20%; width: 80px; height: 80px; border-radius: 20px; background: var(--teal); opacity: .14; }
.cta__title { position: relative; max-width: 820px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -.05em; text-wrap: balance; }
.cta__text { position: relative; max-width: 560px; font-size: 19px; line-height: 1.6; color: #3F5163; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.cta .btn--ghost { border-color: #C3D9D7; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer__inner { padding-top: 88px; }
.footer__top {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "head btn" "list list";
  align-items: end; gap: 48px 24px;
}
.footer__head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.footer__title { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; }
.footer__btn { grid-area: btn; height: 52px; font-size: 16px; }
.contacts { grid-area: list; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.contact--email .contact__text strong { overflow-wrap: normal; }
@media (max-width: 1100px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px;
  background: #FFFFFF; border: 1px solid var(--line); color: var(--navy);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.contact:hover { color: var(--navy); transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 18px 30px -18px rgba(14,34,54,.35); }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; }
.contact__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact__text small { font-size: 12px; font-weight: 700; color: var(--slate); }
.contact__text strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact__chev { display: none; }
.footer__bottom {
  margin-top: 48px; padding: 28px 0 36px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.brand--footer img { width: 34px; }
.brand--footer .brand__name { font-size: 17px; }
.brand--footer .brand__by { font-size: 13px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 700; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   PHONE (below 860px)
   ========================================================= */
@media (max-width: 860px) {
  :root { --zoom-out: .36; --zoom-in: 7.5; }

  .show-desktop, .show-desktop-inline, .show-desktop-flex { display: none !important; }
  .show-mobile { display: block; }
  .show-mobile-inline { display: inline; }

  .body { font-size: 17px; line-height: 1.7; }
  .eyebrow { font-size: 12px; letter-spacing: .16em; }
  .h2, .h2--xl { font-size: 36px; line-height: 1.1; letter-spacing: -.045em; }
  .h3 { font-size: 30px; line-height: 1.15; }

  /* header */
  .nav__inner { height: 72px; }
  .nav__links, .nav__cta, .nav .brand__by { display: none; }
  .nav .brand img { width: 34px; }
  .nav .brand__name { font-size: 19px; }
  .nav__toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; padding: 8px var(--gutter) 32px; animation: menu-in .28s cubic-bezier(.2,.9,.3,1) both; }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; height: 60px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); border-bottom: 1px solid #F0F3F6; }
  .mobile-menu a:not(.btn):last-of-type { border-bottom: 0; }
  .mobile-menu .btn { margin-top: 20px; height: 56px; border-radius: 18px; font-size: 17px; }

  /* hero: headline, small rota card on the right, button, scroll cue.
     The card and chip stay straight: rotating them made the animated card look blurry on phones. */
  .hero__ecg { top: 380px; }
  .float--2, .float--3, .float--4 { display: none; }
  .float--1 { left: auto; right: 22px; top: 40px; width: 64px; height: 64px; }
  .hero__grid {
    min-height: calc(100svh - 72px);
    padding-top: 36px; padding-bottom: 28px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual" "actions" "cue";
    grid-template-rows: auto auto auto 1fr;
    row-gap: 0; align-items: start;
  }
  .hero__copy { align-self: start; gap: 18px; }
  .hero__title { font-size: 54px; letter-spacing: -.05em; }
  .hero__lead { font-size: 18px; line-height: 1.7; }
  .hero__visual { justify-self: end; width: 264px; margin-top: 30px; }
  .hero__actions { margin-top: 60px; }
  .hero__actions .btn { flex: 1; height: 60px; border-radius: 18px; }
  .scroll-cue {
    grid-area: cue; align-self: end; justify-self: center; padding-top: 28px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--slate); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  }
  .scroll-cue__mouse { position: relative; width: 24px; height: 36px; border-radius: 12px; border: 2px solid #C9D6DF; }
  .scroll-cue__wheel { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s ease-in-out infinite; }

  .rota-card { gap: 12px; padding: 16px; border-radius: 22px; box-shadow: 0 1px 3px rgba(14,34,54,.06), 0 30px 56px -24px rgba(14,34,54,.36); }
  .rota-card__head { gap: 8px; }
  .rota-card__label { font-size: 10px; }
  .rota-card__range { font-size: 14px; }
  .status { width: 120px; height: 28px; }
  .status__pill { height: 28px; padding: 0 11px; gap: 5px; font-size: 11px; }
  .rota { --rota-cols: 26px repeat(3, minmax(0, 1fr)); --rota-gap: 6px; }
  .rota__row--head { font-size: 10px; margin-bottom: 0; }
  .rota__row > [data-col="3"], .rota__row > [data-col="4"], .rota__row > [data-col="5"],
  .rota__row[data-row="3"], .rota__row[data-row="4"] { display: none; }
  .rota__avatar { width: 26px; height: 26px; font-size: 9px; }
  .rota__cell { height: 34px; border-radius: 9px; font-size: 10px; animation-delay: var(--d-mob); }
  .scan__track { left: 32px; top: 22px; bottom: -5px; }
  .rota-legend { display: none; }
  .check-chip { left: -72px; bottom: -22px; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; box-shadow: 0 18px 36px -16px rgba(14,34,54,.42); }
  .check-chip__icon { width: 30px; height: 30px; border-radius: 10px; }
  .check-chip__icon svg { width: 15px; height: 15px; }
  .check-chip__text strong { font-size: 13px; }

  /* features */
  .features { padding: 32px 0 136px; gap: 48px; }
  .features .section-head { align-items: flex-start; text-align: left; }
  .marquee { gap: 20px; -webkit-mask-image: none; mask-image: none; }
  .marquee__row { padding: 8px 0; }
  .marquee__track { gap: 14px; animation-duration: 40s; }
  .marquee__track--slow { gap: 26px; animation-duration: 60s; }
  .marquee__controls { margin-top: -26px; }
  .pill { height: 62px; padding: 0 22px 0 12px; gap: 12px; font-size: 16px; }
  .pill__icon { width: 40px; height: 40px; }
  .pill__icon svg { width: 18px; height: 18px; }
  .word { gap: 26px; font-size: 34px; }
  .word::after { width: 10px; height: 10px; border-radius: 3px; }

  /* proof */
  .proof-wrap { padding-bottom: 144px; }
  .proof {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "viz" "legend";
    row-gap: 40px; padding: 52px 26px 44px; border-radius: 32px;
  }
  .proof__copy { gap: 18px; }
  .proof__copy .h2 { font-size: 34px; }
  .proof__viz { margin-top: 72px; }
  .dots { --dot: 10px; grid-template-columns: repeat(15, var(--dot)); }
  .dot--on { animation-delay: var(--d-mob); }
  .seal { width: 116px; height: 116px; right: -30px; top: -62px; }
  .seal__label { font-size: 18px; }
  .legend-row { gap: 14px; }
  .legend-dot { width: 12px; height: 12px; }
  .legend-num { font-size: 34px; }
  .legend-text { font-size: 15px; }

  /* how it works */
  .how { padding-bottom: 56px; }
  .how > .section-head { padding-bottom: 24px; align-items: flex-start; text-align: left; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 72px 0; }
  .step--flip .step__visual { order: 0; }
  .step__text { gap: 16px; }
  .step__tag { gap: 10px; font-size: 13px; }
  .step__num { width: 30px; height: 30px; font-size: 13px; }
  .step__visual { max-width: none; }
  .card { padding: 24px; }
  .rule__name { gap: 12px; font-size: 15px; }
  .cal-wrap { padding-top: 40px; }
  .cal { padding-top: 52px; }
  .cal__title { font-size: 16px; }
  .cal__key { gap: 12px; font-size: 11px; }
  .cal__key i { width: 9px; height: 9px; }
  .cal__dow, .cal__days { gap: 7px; }
  .day { height: 44px; border-radius: 12px; font-size: 14px; }
  .day--extra { display: none; }
  .toast { left: 18px; right: 18px; top: 0; padding: 13px 16px 13px 13px; animation-name: toast-y; }
  .draft { --draft-cols: 4; gap: 10px; }
  .draft__cell { height: 54px; border-radius: 14px; animation-delay: var(--d-mob); }
  .draft__cell[data-col="4"], .draft__cell[data-col="5"] { display: none; }
  .ok-badge { width: 200px; height: 56px; margin: -18px 0 0 -100px; font-size: 15px; }
  .approve { gap: 20px; }
  .approve__btn { height: 56px; }
  .history__row { padding: 14px 0; }

  /* oman */
  .oman { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 144px; }
  .oman__text { gap: 16px; }
  .map { height: 380px; border-radius: 30px; max-width: none; }
  .ring { left: -16px; top: -16px; width: 32px; height: 32px; }
  .map__label { left: 50%; top: auto; bottom: 26px; transform: translateX(-50%); }

  /* cta */
  .cta-wrap { padding-bottom: 112px; }
  .cta { padding: 88px 26px; border-radius: 32px; gap: 24px; }
  .cta__title { font-size: 38px; line-height: 1.1; }
  .cta__text { font-size: 17px; line-height: 1.7; }
  .cta__actions { align-self: stretch; flex-direction: column; gap: 12px; margin-top: 12px; }
  .cta__actions .btn { height: 60px; border-radius: 18px; }
  .drift--1 { left: 20px; top: 26px; width: 40px; height: 40px; border-radius: 11px; }
  .drift--2 { display: none; }
  .drift--3 { right: 26px; top: 44px; width: 28px; height: 28px; border-radius: 8px; }
  .drift--4 { right: 22px; bottom: 30px; width: 48px; height: 48px; border-radius: 13px; }

  /* footer: contacts become one list card */
  .footer__top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "btn"; gap: 0; }
  .footer__head { padding-bottom: 36px; }
  .footer__title { font-size: 32px; }
  .contacts { display: flex; flex-direction: column; gap: 0; padding: 6px 22px; border-radius: 28px; background: #FFFFFF; border: 1px solid var(--line); }
  .contact { padding: 22px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .contact:last-child { border-bottom: 0; }
  .contact:hover { transform: none; box-shadow: none; }
  .contact__icon { width: 46px; height: 46px; }
  .contact__chev { display: block; }
  .contact--email .contact__text strong { font-size: 15px; }
  .footer__btn { margin-top: 20px; height: 58px; border-radius: 18px; width: 100%; }
  .footer__bottom { margin-top: 56px; padding: 32px 0 44px; }
  .footer__links { display: none; }
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes ecg { from { transform: translateX(0); } to { transform: translateX(-720px); } }
@keyframes float1 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(10px,-18px) rotate(7deg); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-14px,12px) rotate(-6deg); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8px,16px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes rotate-words {
  0%,18% { transform: translateY(0); }
  25%,43% { transform: translateY(-1.3em); }
  50%,68% { transform: translateY(-2.6em); }
  75%,93% { transform: translateY(-3.9em); }
  100% { transform: translateY(-5.2em); }
}
@keyframes cell-in { 0% { opacity: 0; transform: translateY(-16px) scale(.6); } 5% { opacity: 1; transform: none; } 70% { opacity: 1; transform: none; } 75%,100% { opacity: 0; transform: scale(.85); } }
@keyframes scan { 0%,31% { left: 0%; opacity: 0; } 33% { left: 0%; opacity: 1; } 45% { left: 100%; opacity: 1; } 47%,100% { left: 100%; opacity: 0; } }
@keyframes st1 { 0%,44% { opacity: 1; } 46%,76% { opacity: 0; } 78%,100% { opacity: 1; } }
@keyframes st2 { 0%,45% { opacity: 0; } 47%,59% { opacity: 1; } 61%,100% { opacity: 0; } }
@keyframes st3 { 0%,60% { opacity: 0; } 62%,75% { opacity: 1; } 77%,100% { opacity: 0; } }
@keyframes chip { 0%,45% { opacity: 0; translate: 0 16px; scale: .9; } 49%,73% { opacity: 1; translate: 0 0; scale: 1; } 77%,100% { opacity: 0; translate: 0 8px; scale: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dot-light { 0% { background: rgba(255,255,255,.16); transform: scale(.6); } 10%,78% { background: #7FD3CC; transform: scale(1); } 90%,100% { background: rgba(255,255,255,.16); transform: scale(.6); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes toggle-track { 0%,8% { background: #D5DEE6; } 14%,84% { background: #0B7A7A; } 90%,100% { background: #D5DEE6; } }
@keyframes toggle-knob { 0%,8% { transform: translateX(0); } 14%,84% { transform: translateX(20px); } 90%,100% { transform: translateX(0); } }
@keyframes saved { 0%,50% { opacity: 0; transform: translateY(10px); } 56%,84% { opacity: 1; transform: none; } 90%,100% { opacity: 0; transform: none; } }
@keyframes day-pref { 0%,12% { background: #F7FAFC; color: #0E2236; box-shadow: inset 0 0 0 0 #0B7A7A; } 18%,86% { background: #E8F4F3; color: #075F5F; box-shadow: inset 0 0 0 2px #0B7A7A; } 92%,100% { background: #F7FAFC; color: #0E2236; box-shadow: inset 0 0 0 0 #0B7A7A; } }
@keyframes day-leave { 0%,46% { background: #F7FAFC; color: #0E2236; } 52%,86% { background: #C7432E; color: #FFFFFF; } 92%,100% { background: #F7FAFC; color: #0E2236; } }
@keyframes toast-x { 0%,20% { opacity: 0; transform: translateX(48px); } 28%,86% { opacity: 1; transform: none; } 92%,100% { opacity: 0; transform: none; } }
@keyframes toast-y { 0%,20% { opacity: 0; transform: translateY(-16px); } 28%,86% { opacity: 1; transform: none; } 92%,100% { opacity: 0; transform: none; } }
@keyframes wait { 0%,44% { opacity: 1; } 48%,100% { opacity: 0; } }
@keyframes ok { 0%,44% { opacity: 0; } 48%,100% { opacity: 1; } }
@keyframes cell-in-2 { 0% { opacity: 0; transform: translateY(-12px) scale(.6); } 6% { opacity: 1; transform: none; } 72% { opacity: 1; transform: none; } 78%,100% { opacity: 0; transform: scale(.85); } }
@keyframes scan-2 { 0%,36% { left: 0%; opacity: 0; } 38% { left: 0%; opacity: 1; } 52% { left: 100%; opacity: 1; } 54%,100% { left: 100%; opacity: 0; } }
@keyframes ok-pop { 0%,52% { opacity: 0; transform: scale(.7); } 57%,72% { opacity: 1; transform: none; } 76%,100% { opacity: 0; transform: none; } }
@keyframes press { 0%,30% { transform: scale(1); } 33% { transform: scale(.94); } 36%,100% { transform: scale(1); } }
@keyframes pub-a { 0%,34% { opacity: 1; } 37%,90% { opacity: 0; } 94%,100% { opacity: 1; } }
@keyframes pub-b { 0%,34% { opacity: 0; } 37%,90% { opacity: 1; } 94%,100% { opacity: 0; } }
@keyframes hist { 0%,40% { opacity: 0; transform: translateY(-10px); } 46%,88% { opacity: 1; transform: none; } 93%,100% { opacity: 0; transform: none; } }
@property --z { syntax: '<number>'; inherits: false; initial-value: 1; }
@keyframes zoom {
  0%,14% { --z: var(--zoom-out); }
  42%,88% { --z: var(--zoom-in); }
  100% { --z: var(--zoom-out); }
}
@keyframes map-dots { 0%,20% { opacity: 1; } 42%,88% { opacity: .12; } 100% { opacity: 1; } }
@keyframes draw { 0%,34% { stroke-dashoffset: 100; fill-opacity: 0; } 46% { stroke-dashoffset: 0; fill-opacity: 0; } 54%,88% { stroke-dashoffset: 0; fill-opacity: .8; } 96%,100% { stroke-dashoffset: 100; fill-opacity: 0; } }
@keyframes pin { 0%,52% { opacity: 0; transform: translateY(-28px); } 56% { opacity: 1; transform: translateY(0); } 58% { transform: translateY(-6px); } 60%,86% { opacity: 1; transform: translateY(0); } 90%,100% { opacity: 0; transform: translateY(0); } }
@keyframes show { 0%,55% { opacity: 0; } 59%,86% { opacity: 1; } 90%,100% { opacity: 0; } }
@keyframes ring { 0% { transform: scale(.25); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes drift { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(14px,-18px) rotate(9deg); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Respect people who turn motion off on their device */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
