/* ==========================================================================
   formuvet.com/medishift — the MediShift app page
   Loaded ONLY by medishift.html, and scoped to body.medishift-app with an `ms-`
   prefix. style.css is shared with the home page, Rounds and the legal pages,
   so nothing here may change it.
   The palette is the app's light theme: white, ink navy #0f1a3a, interactive
   blue #2f6bea, with the icon's lime booked-day tile as the one warm note.
   Sora for display, Inter for text.
   ========================================================================== */

body.medishift-app {
  --ms-bg: #f6f9ff;
  --ms-bg-2: #edf2fc;
  --ms-card: #ffffff;
  --ms-glass: rgba(255, 255, 255, 0.74);
  --ms-line: rgba(27, 53, 90, 0.1);
  --ms-line-2: rgba(27, 53, 90, 0.18);
  --ms-ink: #0f1a3a;
  --ms-ink-2: #44537a;
  --ms-ink-3: #6b789a;
  --ms-navy: #1b355a;
  --ms-deep: #0a1530;
  --ms-blue: #2f6bea;
  --ms-blue-rgb: 47, 107, 234;
  --ms-sky: #0ea5e9;
  --ms-violet: #5b47e6;
  --ms-night: #26307a;
  --ms-lime: #eeff3f;
  --ms-green: #12a66a;
  --ms-amber: #c77a06;
  --ms-display: 'Sora', 'Inter', system-ui, sans-serif;
  --ms-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ms-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ms-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ms-shadow: 0 1px 2px rgba(15, 26, 58, 0.05), 0 12px 32px rgba(27, 53, 90, 0.08);
  --ms-shadow-lg: 0 2px 6px rgba(15, 26, 58, 0.05), 0 40px 90px rgba(27, 53, 90, 0.16);
  background: var(--ms-bg);
  color: var(--ms-ink);
  font-family: var(--ms-text);
}

/* position: sticky needs the viewport as its scrollport; `overflow-x: hidden` on body
   (style.css) makes body a scroll container of its own. `clip` cuts the same overflow without that. */
@supports (overflow: clip) {
  body.medishift-app { overflow-x: clip !important; }
}
html:has(body.medishift-app) { scroll-padding-top: 84px; }

/* style.css's green cross pattern and mesh are replaced by the date field and two cool glows */
body.medishift-app::before { background: none; }
body.medishift-app::after {
  animation: none;
  background:
    radial-gradient(ellipse 55% 45% at 88% 6%, rgba(var(--ms-blue-rgb), 0.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 6% 34%, rgba(14, 165, 233, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(91, 71, 230, 0.06), transparent 70%);
}

.medishift-app ::selection { background: rgba(var(--ms-blue-rgb), 0.9); color: #fff; }
.ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ms-main { position: relative; z-index: 1; }

/* ------------------------------------------------------------ date field */
.ms-dates {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; pointer-events: none;
  /* the plane fades into haze at the horizon and leaves the nav clean */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 42%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 42%);
  opacity: 0; animation: ms-fade 1.4s 0.2s ease forwards;
}
.ms-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 249, 255, 0.9) 0%, rgba(246, 249, 255, 0.35) 38%, rgba(246, 249, 255, 0) 70%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(246, 249, 255, 0.55), transparent 75%);
}
@keyframes ms-fade { to { opacity: 1; } }

/* ------------------------------------------------------------------- nav */
.ms-nav { z-index: 100; transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; }
.ms-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--ms-line), 0 10px 30px rgba(27, 53, 90, 0.05);
  padding-top: 10px;
  padding-bottom: 10px;
}
.ms-nav__back { gap: 10px; color: var(--ms-ink); text-decoration: none; font-family: var(--ms-text); }
.ms-nav__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 1px solid var(--ms-line-2); background: rgba(255, 255, 255, 0.7);
  transition: transform 0.25s var(--ms-spring), border-color 0.2s ease, color 0.2s ease;
}
.ms-nav__back:hover .ms-nav__arrow { transform: translateX(-3px); border-color: rgba(var(--ms-blue-rgb), 0.5); color: var(--ms-blue); }
.ms-nav__links { display: flex; align-items: center; gap: 4px; }
.ms-nav__links a {
  color: var(--ms-ink-2); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease;
}
.ms-nav__links a:hover { color: var(--ms-ink); background: rgba(27, 53, 90, 0.05); }
.ms-nav__links .ms-nav__get {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
  background: var(--ms-blue); color: #fff; padding: 9px 16px;
  box-shadow: 0 8px 22px rgba(var(--ms-blue-rgb), 0.3);
}
.ms-nav__links .ms-nav__get:hover { background: #2559d0; color: #fff; }
.ms-nav__get svg { background: #fff; border-radius: 4px; padding: 1px 2px; box-sizing: content-box; }

/* ------------------------------------------------------------ shared bits */
.ms-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 24px 11px 18px; border-radius: 16px;
  background: var(--ms-ink); color: #fff; text-decoration: none;
  border: 1px solid rgba(15, 26, 58, 0.9);
  box-shadow: 0 14px 34px rgba(15, 26, 58, 0.25);
  transition: transform 0.25s var(--ms-ease), box-shadow 0.25s ease, background 0.25s ease;
}
.ms-play span { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; }
.ms-play small { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-bottom: 3px; }
.ms-play:hover { transform: translateY(-2px); background: #15234d; box-shadow: 0 18px 40px rgba(15, 26, 58, 0.3), 0 0 0 4px rgba(var(--ms-blue-rgb), 0.16); }
.ms-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 14px;
  color: var(--ms-ink); font-weight: 600; text-decoration: none;
  border: 1px solid var(--ms-line-2); background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.25s var(--ms-ease);
}
.ms-ghost svg { color: var(--ms-blue); }
.ms-ghost:hover { border-color: rgba(var(--ms-blue-rgb), 0.5); color: var(--ms-blue); background: #fff; transform: translateY(-1px); }
.medishift-app :is(a, button, select):focus-visible { outline: 2px solid var(--ms-blue); outline-offset: 3px; }

.ms-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* -------------------------------------------------------------------- hero */
.ms-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px 0 48px;
  display: flex;
  align-items: center;
  overflow-x: clip;
}
.ms-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}
.ms-hero__copy { position: relative; min-width: 0; }
/* a soft pool of light behind the copy keeps it readable over the date field */
.ms-hero__copy::before {
  content: ''; position: absolute; inset: -8% -14% -10% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 249, 255, 0.92), rgba(246, 249, 255, 0.6) 60%, rgba(246, 249, 255, 0));
}

.ms-lockup { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.ms-lockup__mark { flex: none; border-radius: 10px; box-shadow: 0 8px 20px rgba(15, 26, 58, 0.22); }
.ms-lockup__name { font-family: var(--ms-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ms-ink); }
.ms-lockup__rule { width: 1px; height: 18px; background: var(--ms-line-2); }
.ms-lockup__tag { color: var(--ms-ink-2); font-size: 0.9rem; font-weight: 600; }

/* "Built for locum ____" with the specialty rolling through */
.ms-roll {
  display: inline-flex; align-items: center; gap: 0.34em;
  margin: 26px 0 0; padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.92rem; font-weight: 600; color: var(--ms-ink-2);
  max-width: 100%;
}
.ms-roll__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-blue); margin-right: 4px; box-shadow: 0 0 0 0 rgba(var(--ms-blue-rgb), 0.45); animation: ms-ping 2.3s ease-out infinite; flex: none; }
@keyframes ms-ping { 0% { box-shadow: 0 0 0 0 rgba(var(--ms-blue-rgb), 0.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--ms-blue-rgb), 0); } }
.ms-roll__words { display: inline-grid; overflow: hidden; height: 1.5em; line-height: 1.5em; color: var(--ms-blue); font-weight: 700; }
.ms-roll__words > span { grid-area: 1 / 1; transform: translateY(105%); opacity: 0; transition: transform 0.6s var(--ms-ease), opacity 0.45s ease; white-space: nowrap; }
.ms-roll__words > span.is-on { transform: none; opacity: 1; }
.ms-roll__words > span.is-off { transform: translateY(-105%); opacity: 0; }
html:not(.ms-js) .ms-roll__words > span:first-child { transform: none; opacity: 1; }

.ms-title {
  margin: 20px 0 22px;
  font-family: var(--ms-display);
  font-weight: 800;
  font-size: clamp(3.1rem, 6.6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ms-ink);
}
.ms-title span { display: block; }
.ms-title__blue {
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--ms-blue) 0%, var(--ms-sky) 30%, var(--ms-violet) 60%, var(--ms-blue) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ms-blue);
  animation: ms-sheen 9s ease-in-out infinite alternate;
}
@keyframes ms-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.ms-lede { margin: 0 0 30px; max-width: 34em; font-size: 1.15rem; line-height: 1.65; color: var(--ms-ink-2); text-wrap: pretty; }
.ms-lede strong { color: var(--ms-ink); font-weight: 650; }

.ms-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; color: var(--ms-ink-2); font-size: 0.9rem; font-weight: 500; }
.ms-trust li { display: inline-flex; align-items: center; gap: 8px; }
.ms-trust svg { color: #fff; background: var(--ms-blue); border-radius: 50%; padding: 3px; box-sizing: content-box; flex: none; }

/* ---- the phone ---- */
.ms-hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ms-stage {
  position: relative;
  width: 100%;
  height: clamp(480px, 62vh, 680px);
  cursor: grab;
  touch-action: pan-y;            /* vertical swipes still scroll the page */
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.ms-stage.is-dragging { cursor: grabbing; }
/* a soft contact shadow on the "floor" under the phone */
.ms-stage::before {
  content: ''; position: absolute; left: 24%; right: 24%; bottom: 1%; height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(27, 53, 90, 0.26), rgba(27, 53, 90, 0.08) 45%, transparent 70%);
  filter: blur(4px);
  animation: ms-shadow 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ms-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.75; } }
.ms-stage__canvas {
  position: absolute; left: -32%; top: -14%; width: 164%; height: 128%;
  display: block; pointer-events: none;   /* the host takes the drag; the canvas overhangs its neighbours */
  opacity: 0; transition: opacity 0.45s ease;
}
.ms-stage--live .ms-stage__canvas { opacity: 1; }

/* CSS phone (fallback, and the poster while the live one boots) */
.ms-device {
  position: absolute; left: 50%; top: 48%;
  height: 92%; aspect-ratio: 7.2 / 15.14;
  transform: translate(-50%, -50%) perspective(1600px) rotateY(-16deg) rotateX(5deg) rotateZ(2deg);
  border-radius: 13.6% / 6.5%;
  background: linear-gradient(130deg, #eef2f8 0%, #b4bfd1 22%, #d6dde8 48%, #96a3b8 78%, #e2e7ef 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 4px rgba(27, 53, 90, 0.14),
    0 50px 90px rgba(27, 53, 90, 0.28),
    0 0 120px rgba(var(--ms-blue-rgb), 0.16);
  container-type: inline-size;
  transition: opacity 0.45s ease;
  animation: ms-float 7s ease-in-out infinite;
}
@keyframes ms-float {
  0%, 100% { transform: translate(-50%, -50%) perspective(1600px) rotateY(-16deg) rotateX(5deg) rotateZ(2deg); }
  50% { transform: translate(-50%, calc(-50% - 10px)) perspective(1600px) rotateY(-12deg) rotateX(4deg) rotateZ(1.5deg); }
}
.ms-stage--live .ms-device { opacity: 0; visibility: hidden; }
.ms-stage--live::before { opacity: 0; animation: none; }
html.ms-boot .ms-stage:not(.ms-stage--static) .ms-device { opacity: 0; }
.ms-stage--static .ms-device { animation: ms-device-in 0.7s var(--ms-ease) both, ms-float 7s 0.7s ease-in-out infinite; }
@keyframes ms-device-in { from { opacity: 0; translate: 0 24px; } }

.ms-device__screen {
  position: absolute; inset: 1.32% 2.78%;
  border-radius: 15% / 6.9%;
  overflow: hidden;
  background: #fcfdff;
  box-shadow: inset 0 0 0 1px rgba(15, 26, 58, 0.5);
}
.ms-device__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease; }
.ms-device__img.is-swapping, .ms-pin__poster img.is-swapping { opacity: 0; }
.ms-device__island { position: absolute; top: 1.6%; left: 50%; width: 29%; height: 3.9%; transform: translateX(-50%); border-radius: 999px; background: #050814; }
.ms-device__splash {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-bottom: 14%;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(var(--ms-blue-rgb), 0.12), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%);
  opacity: 0; pointer-events: none;
}
.ms-device__mark { width: 40%; height: auto; overflow: visible; filter: drop-shadow(0 3cqw 5cqw rgba(15, 26, 58, 0.25)); }
.ms-sp, .ms-fm { transform-box: fill-box; transform-origin: center; }
.ms-device__word { margin-top: 8%; font-family: var(--ms-display); font-weight: 800; font-size: 11.5cqw; letter-spacing: -0.03em; color: var(--ms-ink); opacity: 0; }
.ms-device__sub { margin-top: 2%; font-size: 3cqw; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ms-blue); opacity: 0; }
.ms-device__splash.is-playing { animation: ms-splash 3s ease forwards; }
.ms-device__splash.is-playing .ms-sp--plate { animation: ms-plate 0.55s 0.1s var(--ms-spring) both; }
.ms-device__splash.is-playing .ms-sp--1 { animation: ms-pop 0.42s 0.5s var(--ms-spring) both; }
.ms-device__splash.is-playing .ms-sp--2 { animation: ms-pop 0.42s 0.6s var(--ms-spring) both; }
.ms-device__splash.is-playing .ms-sp--3 { animation: ms-pop 0.42s 0.7s var(--ms-spring) both; }
.ms-device__splash.is-playing .ms-sp--4 { animation: ms-pop 0.42s 0.8s var(--ms-spring) both; }
.ms-device__splash.is-playing .ms-sp--5 { animation: ms-drop 0.8s 1s linear both; }
.ms-device__splash.is-playing .ms-device__word { animation: ms-up 0.5s 1.55s var(--ms-ease) both; }
.ms-device__splash.is-playing .ms-device__sub { animation: ms-up 0.5s 1.7s var(--ms-ease) both; }
@keyframes ms-splash { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ms-plate { from { opacity: 0; transform: scale(0.55) rotate(-8deg); } }
@keyframes ms-pop { from { opacity: 0; transform: scale(0.2); } }
/* the booked tile drops in and bounces, like the 3D intro */
@keyframes ms-drop {
  0% { opacity: 0; transform: translateY(-260%); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  10% { opacity: 1; }
  55% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  72% { transform: translateY(-22%); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  86% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  93% { transform: translateY(-6%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes ms-up { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

.ms-hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px 0 0; font-size: 0.8rem; font-weight: 500; color: var(--ms-ink-3);
  opacity: 0; transform: translateY(4px); transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.ms-hint.is-shown { opacity: 0.95; transform: none; }
.ms-hint.is-gone { opacity: 0; }

/* ---- screen chips ---- */
.ms-picker {
  position: relative; z-index: 3;
  display: flex; gap: 4px;
  max-width: 100%;
  margin-top: 14px; padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-x: auto; scrollbar-width: none;
}
.ms-picker::-webkit-scrollbar { display: none; }
.ms-chip, .ms-spec {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 15px 10px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ms-ink-2);
  font: 600 0.86rem/1 var(--ms-text);
  cursor: pointer; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ms-ease);
  -webkit-tap-highlight-color: transparent;
}
.ms-chip:hover, .ms-spec:hover { color: var(--ms-ink); background: rgba(27, 53, 90, 0.05); }
.ms-chip--mark { padding: 5px 9px; }
.ms-chip--mark svg { border-radius: 5px; }
.ms-chip.is-active, .ms-spec.is-active { color: var(--ms-blue); background: rgba(var(--ms-blue-rgb), 0.09); box-shadow: inset 0 0 0 1px rgba(var(--ms-blue-rgb), 0.3); }
.ms-chip__bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(var(--ms-blue-rgb), 0.14); opacity: 0; overflow: hidden; }
.ms-chip--mark .ms-chip__bar { left: 9px; right: 9px; bottom: 2px; }
.is-active > .ms-chip__bar { opacity: 1; }
.ms-chip__bar::after { content: ''; position: absolute; inset: 0; background: var(--ms-blue); transform: scaleX(0); transform-origin: left; }
.is-filling > .ms-chip__bar::after { animation: ms-fill var(--hold, 6.5s) linear forwards; }
.ms-picker.is-paused .ms-chip__bar::after,
.ms-specs__chips.is-paused .ms-chip__bar::after { animation-play-state: paused; }
@keyframes ms-fill { to { transform: scaleX(1); } }
.ms-caption { min-height: 3em; max-width: 30em; margin: 14px auto 0; text-align: center; font-size: 0.95rem; line-height: 1.5; color: var(--ms-ink-2); }

/* -------------------------------------------------------------- sections */
.ms-section { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.ms-head { max-width: 760px; margin-bottom: 56px; }
.ms-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ms-head--center .ms-sub { margin-left: auto; margin-right: auto; }
.ms-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ms-blue-rgb), 0.22);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ms-blue);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.ms-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.ms-h2, .ms-step h3, .ms-why__card h3 { text-wrap: balance; }
.ms-sub, .ms-step p { text-wrap: pretty; }
.ms-h2 { margin: 0 0 16px; font-family: var(--ms-display); font-weight: 800; font-size: clamp(2.05rem, 4.3vw, 3.3rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--ms-ink); }
.ms-sub { margin: 0; max-width: 40em; font-size: 1.1rem; line-height: 1.65; color: var(--ms-ink-2); }

/* small CSS phone: story stills, the desk phone and the pinned phone's poster */
.ms-mini {
  position: relative;
  aspect-ratio: 7.2 / 15.14;
  border-radius: 13.6% / 6.5%;
  padding: 2.78% / 1.32%;
  background: linear-gradient(130deg, #eef2f8 0%, #b4bfd1 22%, #d6dde8 48%, #96a3b8 78%, #e2e7ef 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 0 0 3px rgba(27, 53, 90, 0.12), 0 30px 60px rgba(27, 53, 90, 0.22);
}
.ms-mini img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15% / 6.9%; background: #fcfdff; box-shadow: 0 0 0 1px rgba(15, 26, 58, 0.5); transition: opacity 0.18s ease; }

/* ------------------------------------------------------------- specialties */
.ms-specs__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  max-width: 980px; margin: 0 auto 40px; padding: 6px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ms-spec { --hold: 7s; }

.ms-specs__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ms-specs__stage-wrap { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ms-specs__stage {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.ms-specs__stage.is-dragging { cursor: grabbing; }
/* the plinth: a lit disc with a slowly turning ring of day ticks */
.ms-specs__stage::before {
  content: ''; position: absolute; inset: 7%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0%, rgba(255, 255, 255, 0.85) 38%, rgba(232, 239, 252, 0.6) 62%, rgba(232, 239, 252, 0) 72%);
  box-shadow: inset 0 0 0 1px rgba(var(--ms-blue-rgb), 0.06);
}
.ms-specs__stage::after {
  content: ''; position: absolute; inset: 3%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(var(--ms-blue-rgb), 0.28) 0deg 0.7deg, transparent 0.7deg 12.857deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 68.5%, transparent 69%);
  mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 68.5%, transparent 69%);
  animation: ms-turn 80s linear infinite;
}
@keyframes ms-turn { to { transform: rotate(360deg); } }
.ms-specs__stage > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1;
  transition: opacity 0.16s ease, transform 0.3s var(--ms-ease);
  -webkit-user-drag: none; user-select: none;
}
.ms-specs__stage > img.is-swapping { opacity: 0; transform: scale(0.94); }
.ms-specs__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; display: block; opacity: 0; transition: opacity 0.4s ease; }
.ms-specs__stage.is-live .ms-specs__canvas { opacity: 1; }
.ms-specs__stage.is-live > img { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.ms-specs__model { margin: 4px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--ms-ink-2); text-align: center; }
.ms-specs__drag { margin-left: 0.3em; color: var(--ms-ink-3); font-weight: 500; }

.ms-specs__panel {
  position: relative; min-width: 0;
  padding: 30px 30px 26px;
  border-radius: 28px;
  background: var(--ms-card);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-lg);
}
.ms-specs__kicker { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ms-blue); }
.ms-specs__name { margin: 0 0 12px; font-family: var(--ms-display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -0.03em; }
.ms-specs__lead { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.65; color: var(--ms-ink-2); min-height: 5em; text-wrap: pretty; }
.ms-specs__more { margin: 40px auto 0; max-width: 40em; text-align: center; font-size: 0.98rem; color: var(--ms-ink-3); }

/* the fortnight */
.ms-rota { padding: 16px; border-radius: 20px; background: var(--ms-bg); border: 1px solid var(--ms-line); }
.ms-rota__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 0.78rem; font-weight: 700; color: var(--ms-ink-2); }
.ms-rota__head span:last-child { color: var(--ms-ink-3); font-weight: 600; }
.ms-rota__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ms-rota__wd { text-align: center; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ms-ink-3); padding-bottom: 2px; }
.ms-rota__day {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  min-height: 62px; padding: 6px 6px 5px;
  border-radius: 11px; background: #fff; border: 1px solid var(--ms-line);
}
.ms-rota__day.is-weekend { background: #f9fbff; }
.ms-rota__date { font-size: 0.68rem; font-weight: 600; color: var(--ms-ink-3); line-height: 1; white-space: nowrap; }
.ms-rota__date b { font-size: 0.84rem; font-weight: 700; color: var(--ms-ink); }
.ms-rota__shift {
  display: block; min-height: 20px; border-radius: 6px; padding: 4px 4px 3px;
  font-size: 0.64rem; font-weight: 700; line-height: 1.05; text-align: center; letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-rota__day.is-free .ms-rota__shift { border: 1px dashed rgba(27, 53, 90, 0.14); }
.ms-rota__day.is-full .ms-rota__shift { background: var(--ms-blue); color: #fff; box-shadow: 0 4px 10px rgba(var(--ms-blue-rgb), 0.3); }
.ms-rota__day.is-am .ms-rota__shift { background: linear-gradient(180deg, #d9e7ff 0 50%, #eef4ff 50%); color: #1d4fc4; box-shadow: inset 0 0 0 1px rgba(var(--ms-blue-rgb), 0.25); }
.ms-rota__day.is-pm .ms-rota__shift { background: linear-gradient(180deg, #f0edff 0 50%, #e2dcff 50%); color: #4733c9; box-shadow: inset 0 0 0 1px rgba(91, 71, 230, 0.25); }
.ms-rota__day.is-split .ms-rota__shift { background: linear-gradient(90deg, var(--ms-sky) 0 calc(50% - 1px), rgba(255, 255, 255, 0.9) calc(50% - 1px) calc(50% + 1px), var(--ms-sky) calc(50% + 1px)); color: #fff; text-shadow: 0 1px 2px rgba(3, 80, 120, 0.5); }
.ms-rota__day.is-night .ms-rota__shift { background: linear-gradient(160deg, #26307a, #0f1a3a); color: #dfe4ff; }
.ms-rota__day.is-block .ms-rota__shift { background: repeating-linear-gradient(-45deg, #eef1f6 0 4px, #e1e6ee 4px 8px); color: var(--ms-ink-3); }
.ms-rota__day.is-pop .ms-rota__shift { animation: ms-rota-pop 0.5s calc(var(--i, 0) * 35ms) var(--ms-spring) both; }
@keyframes ms-rota-pop { from { opacity: 0; transform: translateY(6px) scale(0.6); } }
.ms-rota__sum { margin: 12px 0 0; font-size: 0.88rem; color: var(--ms-ink-2); }
.ms-rota__sum b { color: var(--ms-ink); }
.ms-rota__key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 0.74rem; font-weight: 600; color: var(--ms-ink-3); }
.ms-rota__key li { display: inline-flex; align-items: center; gap: 6px; }
.ms-rota__key li::before { content: ''; width: 12px; height: 8px; border-radius: 3px; }
.ms-rota__key .is-full::before { background: var(--ms-blue); }
.ms-rota__key .is-am::before { background: #d9e7ff; box-shadow: inset 0 0 0 1px rgba(var(--ms-blue-rgb), 0.35); }
.ms-rota__key .is-pm::before { background: #e2dcff; box-shadow: inset 0 0 0 1px rgba(91, 71, 230, 0.35); }
.ms-rota__key .is-split::before { background: linear-gradient(90deg, var(--ms-sky) 0 40%, #fff 40% 60%, var(--ms-sky) 60%); box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.4); }
.ms-rota__key .is-night::before { background: #26307a; }
.ms-rota__key .is-block::before { background: repeating-linear-gradient(-45deg, #eef1f6 0 2px, #cfd6e2 2px 4px); }

/* ---------------------------------------------------------------- numbers */
.ms-numbers {
  position: relative; z-index: 1;
  border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ms-numbers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ms-number { padding: 38px 24px 36px; display: flex; flex-direction: column; gap: 8px; }
.ms-number + .ms-number { border-left: 1px solid var(--ms-line); }
.ms-number b {
  font-family: var(--ms-display); font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--ms-navy), var(--ms-blue) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ms-blue);
}
.ms-number span { font-size: 0.92rem; line-height: 1.45; color: var(--ms-ink-2); max-width: 17em; }

/* ----------------------------------------------------------- how it works */
.ms-story { position: relative; }
.ms-story__rail { display: none; }
.ms-story__steps { list-style: none; margin: 0; padding: 0; }
.ms-step { position: relative; padding: 0 0 72px; }
.ms-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; color: var(--ms-blue);
  background: #fff; border: 1px solid rgba(var(--ms-blue-rgb), 0.22); box-shadow: var(--ms-shadow);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ms-spring);
}
.ms-step h3 { margin: 0 0 14px; font-family: var(--ms-display); font-weight: 800; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.ms-step p { margin: 0; max-width: 31em; font-size: 1.08rem; line-height: 1.7; color: var(--ms-ink-2); }
.ms-step__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.ms-step__facts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ms-line-2); font-size: 0.8rem; font-weight: 600; color: var(--ms-ink-2); background: rgba(255, 255, 255, 0.8); }
.ms-step__still { margin: 32px auto 0; width: min(250px, 66%); }
.ms-story__stage { display: none; }

@media (min-width: 1024px) {
  .ms-story {
    --story-h: 76vh;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: 56px;
    align-items: start;
  }
  .ms-story__rail { display: block; position: absolute; left: 19px; top: 0; bottom: 12vh; width: 2px; border-radius: 2px; background: var(--ms-line-2); }
  .ms-story__rail-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, var(--ms-sky), var(--ms-blue) 60%, var(--ms-violet)); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 12px rgba(var(--ms-blue-rgb), 0.35); }
  .ms-story__steps { grid-column: 1; padding: 0 0 12vh 64px; }
  .ms-step { min-height: var(--story-h); padding: 0; display: flex; flex-direction: column; justify-content: center; }
  .ms-step__num { position: absolute; left: -64px; top: 50%; margin: -20px 0 0; }
  .ms-step.is-current .ms-step__num { background: var(--ms-blue); color: #fff; transform: scale(1.08); box-shadow: 0 10px 24px rgba(var(--ms-blue-rgb), 0.35); }
  .ms-step > :not(.ms-step__still):not(.ms-step__num) { transition: opacity 0.45s ease, transform 0.45s var(--ms-ease); }
  .ms-step:not(.is-current) > :not(.ms-step__still):not(.ms-step__num) { opacity: 0.3; }
  .ms-step:not(.is-current) h3 { transform: translateX(-6px); }
  .ms-step__still { display: none; }
  .ms-story__stage { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc((100vh - var(--story-h)) / 2); height: var(--story-h); }
  .ms-pin { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; }
  .ms-pin::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ms-blue-rgb), 0.13), rgba(var(--ms-blue-rgb), 0.04) 45%, transparent 70%);
  }
  .ms-pin.is-dragging { cursor: grabbing; }
  .ms-pin__poster { height: 88%; width: auto; transition: opacity 0.45s ease; }
  .ms-pin__canvas { position: absolute; left: -10%; top: -12%; width: 120%; height: 124%; pointer-events: none; opacity: 0; transition: opacity 0.45s ease; }
  .ms-pin--live .ms-pin__canvas { opacity: 1; }
  .ms-pin--live .ms-pin__poster { opacity: 0; visibility: hidden; }
}

/* ---------------------------------------------------------- phone and desk */
.ms-desk { overflow-x: clip; }
.ms-desk__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.ms-desk__head { margin-bottom: 0; }
.ms-desk__head .ms-ghost { margin-top: 28px; }
.ms-desk__list { list-style: none; display: grid; gap: 10px; margin: 24px 0 0; padding: 0; font-size: 0.98rem; color: var(--ms-ink-2); }
.ms-desk__list li { display: flex; align-items: center; gap: 10px; }
.ms-desk__list svg { color: #fff; background: var(--ms-blue); border-radius: 50%; padding: 3px; box-sizing: content-box; flex: none; }

/* --p (0 → 1) is set from the scroll position: the lid opens, then the phone slides in */
.ms-desk__scene {
  --o: clamp(0, calc((var(--p, 1) - 0.08) * 1.8), 1);
  --q: clamp(0, calc((var(--p, 1) - 0.4) * 2.4), 1);
  position: relative; padding: 4% 8% 9% 0;
  perspective: 1800px;
}
.ms-laptop { position: relative; transform-style: preserve-3d; transform: rotateX(8deg); }
.ms-laptop__lid {
  position: relative; z-index: 1;
  padding: 1.6% 1.6% 2.2%;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, #1a2440, #0b1226);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px rgba(27, 53, 90, 0.25);
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--o)) * 86deg));
  will-change: transform;
}
.ms-laptop__lid::after {     /* a glare that slides as the lid opens */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0) 54%);
  background-size: 200% 100%;
  background-position: calc(120% - var(--o) * 100%) 0;
}
.ms-laptop__bar {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 8px 8px 0 0;
  background: #eef2f9; border-bottom: 1px solid #dde3ee;
}
.ms-laptop__bar i { width: 8px; height: 8px; border-radius: 50%; background: #f26b6b; }
.ms-laptop__bar i:nth-child(2) { background: #f3bf4b; }
.ms-laptop__bar i:nth-child(3) { background: #4cc27c; }
.ms-laptop__bar span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #fff; font-size: 0.68rem; color: var(--ms-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ms-laptop__lid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0 0 4px 4px; background: #fcfdff; }
.ms-laptop__base {
  position: relative; height: 16px; margin: 0 -7%;
  border-radius: 2px 2px 16px 16px;
  background: linear-gradient(180deg, #e9edf4 0%, #c6cfdc 55%, #a6b1c3 100%);
  box-shadow: 0 24px 40px rgba(27, 53, 90, 0.22), inset 0 1px 0 #fff;
}
.ms-laptop__base::before { content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #b7c1d1; }
.ms-desk__phone {
  position: absolute; right: 0; bottom: 0; width: 23%; z-index: 2;
  opacity: var(--q);
  transform: translate3d(calc((1 - var(--q)) * 60px), calc((1 - var(--q)) * 90px), 0) rotate(calc((1 - var(--q)) * 10deg - 4deg));
}

/* -------------------------------------------------------------- try it */
.ms-try__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 32px; align-items: start; }
.ms-plan {
  padding: 22px;
  border-radius: 26px;
  background: var(--ms-card);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-lg);
  min-width: 0;
}
.ms-plan__row { margin-bottom: 14px; }
.ms-plan__row--split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ms-plan__group { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-plan__group button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--ms-line-2); background: #fff;
  color: var(--ms-ink-2); font: 600 0.86rem var(--ms-text);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ms-plan__group button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ms-plan__group button:hover { border-color: var(--c); color: var(--ms-ink); }
.ms-plan__group button[aria-checked="true"] {
  color: var(--ms-ink); border-color: var(--c);
  background: #f3f6fe; background: color-mix(in srgb, var(--c) 9%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent);
}
.ms-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--ms-bg-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ms-seg::-webkit-scrollbar { display: none; }
.ms-seg button { flex: none; padding: 8px 12px; border-radius: 9px; color: var(--ms-ink-2); font: 600 0.82rem var(--ms-text); transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.ms-seg button:hover { color: var(--ms-ink); }
.ms-seg button[aria-checked="true"] { background: #fff; color: var(--ms-blue); box-shadow: 0 1px 2px rgba(15, 26, 58, 0.08), 0 4px 10px rgba(27, 53, 90, 0.08); }
.ms-plan__cur { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--ms-ink-3); }
.ms-plan__cur select {
  appearance: none; -webkit-appearance: none;
  padding: 8px 30px 8px 12px; border-radius: 10px;
  border: 1px solid var(--ms-line-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2344537a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  font: 700 0.88rem var(--ms-text); color: var(--ms-ink); cursor: pointer;
}

.ms-plan__cal { margin-top: 4px; }
.ms-plan__wd, .ms-plan__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ms-plan__wd span { text-align: center; padding-bottom: 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ms-ink-3); }
.ms-plan__day {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  min-width: 0; min-height: 84px; padding: 6px 5px 6px;
  border-radius: 12px; border: 1px solid var(--ms-line); background: #fff;
  text-align: left; color: var(--ms-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ms-plan__day.is-weekend { background: #f8faff; }
.ms-plan__day:hover { border-color: rgba(var(--ms-blue-rgb), 0.5); box-shadow: 0 6px 16px rgba(var(--ms-blue-rgb), 0.12); }
.ms-plan__day:active { transform: scale(0.96); }
.ms-plan__day.is-pop { animation: ms-day-pop 0.45s var(--ms-spring); }
@keyframes ms-day-pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.ms-plan__num { padding-left: 2px; font-size: 0.82rem; font-weight: 700; line-height: 1.1; }
.ms-plan__num small { margin-left: 3px; font-size: 0.62rem; font-weight: 600; color: var(--ms-ink-3); }
.ms-plan__slots { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ms-slot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 3px;
  min-width: 0; padding: 3px 5px; border-radius: 6px;
  font-style: normal; font-size: 0.62rem; font-weight: 700; line-height: 1.15;
  background: var(--c); color: #fff;
  animation: ms-slot-in 0.35s var(--ms-ease);
  transition: opacity 0.25s ease;
}
.ms-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-slot em { font-style: normal; font-weight: 600; opacity: 0.85; white-space: nowrap; }
.ms-slot--am, .ms-slot--pm { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.ms-slot--pm { box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.ms-slot--am { box-shadow: inset -3px 0 0 var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.ms-slot--split { background: repeating-linear-gradient(-45deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 78%, #fff) 5px 10px); }
.ms-slot:not(.is-mine) { opacity: 0.5; }
@keyframes ms-slot-in { from { opacity: 0; transform: translateY(-4px) scale(0.9); } }
.ms-plan__msg { min-height: 3em; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--ms-bg); font-size: 0.88rem; line-height: 1.45; color: var(--ms-ink-2); transition: background 0.25s ease, color 0.25s ease; }
.ms-plan.has-clash .ms-plan__msg { background: #fff6e5; color: #8a5200; box-shadow: inset 3px 0 0 var(--ms-amber); }
.ms-plan__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.ms-plan__totals { margin: 0; font-size: 0.88rem; color: var(--ms-ink-2); }
.ms-plan__totals b { color: var(--ms-ink); }
.ms-plan__reset { padding: 6px 2px; color: var(--ms-blue); font: 600 0.85rem var(--ms-text); text-decoration: underline; text-underline-offset: 3px; }

/* the invoice */
.ms-inv { --c: var(--ms-blue); min-width: 0; position: sticky; top: 96px; }
.ms-inv__paper {
  position: relative; overflow: hidden;
  padding: 26px 24px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-lg);
}
.ms-inv__paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); transition: background 0.3s ease; }
.ms-inv__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ms-line); }
.ms-inv__from { margin: 0; font-family: var(--ms-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.ms-inv__role { margin: 2px 0 0; font-size: 0.76rem; color: var(--ms-ink-3); }
.ms-inv__title { text-align: right; }
.ms-inv__title b { display: block; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ms-ink-3); }
.ms-inv__title span { font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-inv__meta { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
.ms-inv__meta dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-ink-3); }
.ms-inv__meta dd { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; min-width: 0; }
.ms-inv__meta dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-inv__meta dd i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ms-inv__lines { list-style: none; margin: 0; padding: 0; max-height: 236px; overflow-y: auto; scrollbar-width: thin; }
.ms-inv__lines li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 8px 2px; border-bottom: 1px dashed var(--ms-line-2); font-size: 0.84rem;
}
.ms-inv__lines li > span:first-child { color: var(--ms-ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-inv__lines li small { display: block; font-size: 0.72rem; color: var(--ms-ink-3); }
.ms-inv__lines li em { margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 0.64rem; font-weight: 700; color: var(--ms-violet); background: rgba(91, 71, 230, 0.1); }
.ms-inv__lines li b { font-variant-numeric: tabular-nums; }
.ms-inv__lines li.is-new { animation: ms-line-in 0.6s var(--ms-ease); }
@keyframes ms-line-in { 0% { opacity: 0; transform: translateX(-10px); background: rgba(var(--ms-blue-rgb), 0.12); } 60% { opacity: 1; transform: none; background: rgba(var(--ms-blue-rgb), 0.08); } 100% { background: transparent; } }
.ms-inv__empty { margin: 14px 0; font-size: 0.86rem; color: var(--ms-ink-3); }
.ms-inv__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 2px 4px; }
.ms-inv__total span { font-size: 0.85rem; font-weight: 700; color: var(--ms-ink-2); }
.ms-inv__total b { font-family: var(--ms-display); font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ms-inv__status { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.ms-inv__pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #a15c00; background: #fff1d6; transition: background 0.3s ease, color 0.3s ease; }
.ms-inv.is-paid .ms-inv__pill { color: #0b7a4b; background: #dcf6e9; }
.ms-inv__bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--ms-bg-2); overflow: hidden; }
.ms-inv__bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ms-green), #34d399); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ms-ease); }
.ms-inv__pay {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: var(--ms-blue); color: #fff; font: 700 0.92rem var(--ms-text);
  box-shadow: 0 10px 22px rgba(var(--ms-blue-rgb), 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.ms-inv__pay:hover:not(:disabled) { background: #2559d0; transform: translateY(-1px); }
.ms-inv__pay:active:not(:disabled) { transform: scale(0.98); }
.ms-inv__pay:disabled { background: var(--ms-bg-2); color: var(--ms-ink-3); box-shadow: none; cursor: default; }
.ms-inv__stamp {
  position: absolute; right: 22px; top: 92px;
  padding: 6px 14px; border: 3px solid var(--ms-green); border-radius: 10px;
  font-family: var(--ms-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.14em; color: var(--ms-green);
  opacity: 0; transform: rotate(-14deg) scale(1.6); pointer-events: none;
  mix-blend-mode: multiply;
}
.ms-inv.is-paid .ms-inv__stamp { opacity: 0.82; transform: rotate(-14deg); }
.ms-inv.is-paid .ms-inv__stamp.is-on { animation: ms-stamp 0.5s var(--ms-spring) both; }
@keyframes ms-stamp { from { opacity: 0; transform: rotate(-14deg) scale(2.2); } }
.ms-inv__note { margin: 12px 4px 0; font-size: 0.8rem; color: var(--ms-ink-3); }

/* ---------------------------------------------------- panorama (Play set) */
.ms-pano {
  position: relative; z-index: 1;
  padding: clamp(64px, 9vw, 110px) 0 32px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(var(--ms-blue-rgb), 0.35), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(14, 165, 233, 0.16), transparent 70%),
    linear-gradient(180deg, #0c1a3c 0%, #0a1530 100%);
}
.ms-pano::before {     /* a faint calendar grid on the night band */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
}
.ms-pano .ms-h2 { color: #fff; }
.ms-eyebrow--night { color: #9cc0ff; background: rgba(255, 255, 255, 0.06); border-color: rgba(156, 192, 255, 0.3); }
.ms-pano__head { position: relative; margin-bottom: 36px; }
.ms-pano__hint { margin: 4px 0 0; font-size: 0.9rem; color: #a9b8d8; }
.ms-pano__hint--pan { display: none; }
.ms-pano__viewport {
  position: relative;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 24px 24px;
  -webkit-overflow-scrolling: touch;
}
.ms-pano__viewport::-webkit-scrollbar { display: none; }
.ms-pano__track {
  display: flex; width: max-content;
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), 0 0 120px rgba(var(--ms-blue-rgb), 0.2);
}
.ms-pano__track img { display: block; height: min(70vh, 560px); width: auto; aspect-ratio: 720 / 1280; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.ms-pano__progress { display: none; }

.ms-pano--pan { padding: 0; }
.ms-pano--pan .ms-pano__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.ms-pano--pan .ms-pano__head { margin-bottom: 28px; }
.ms-pano--pan .ms-pano__hint--pan { display: inline; }
.ms-pano--pan .ms-pano__hint--swipe { display: none; }
.ms-pano--pan .ms-pano__viewport { overflow: visible; padding: 0 0 0 max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.ms-pano--pan .ms-pano__track { will-change: transform; }
.ms-pano--pan .ms-pano__track img { height: min(62vh, 640px); }
.ms-pano--pan .ms-pano__progress { display: block; position: relative; height: 3px; margin-top: 28px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ms-pano__progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ms-sky), var(--ms-blue), var(--ms-lime)); transform: scaleX(0); transform-origin: left; }

/* ---------------------------------------------------------- why it works */
.ms-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.ms-why__card {
  position: relative; overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: 22px;
  border: 1px solid var(--ms-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ms-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.3s ease, transform 0.4s var(--ms-ease), box-shadow 0.3s ease;
}
html.ms-js .ms-why__card[data-reveal]:not(.is-in) { transform: translateY(18px); }
.ms-why__card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--ms-blue-rgb), 0.09), transparent 60%);
}
.ms-why__card:hover { border-color: rgba(var(--ms-blue-rgb), 0.3); box-shadow: var(--ms-shadow-lg); }
.ms-why__card:hover::before { opacity: 1; }
.ms-why__card > svg { position: relative; display: block; box-sizing: content-box; padding: 11px; border-radius: 13px; color: var(--ms-blue); background: rgba(var(--ms-blue-rgb), 0.08); border: 1px solid rgba(var(--ms-blue-rgb), 0.16); }
.ms-why__card h3 { position: relative; margin: 20px 0 10px; font-family: var(--ms-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.ms-why__card p { position: relative; margin: 0; font-size: 0.98rem; line-height: 1.65; color: var(--ms-ink-2); }

/* ------------------------------------------------------------ small print */
.ms-print { padding-top: 0; }
.ms-note { max-width: 860px; padding: 30px 32px; border-radius: 22px; border: 1px solid var(--ms-line); background: rgba(255, 255, 255, 0.86); box-shadow: var(--ms-shadow); }
.ms-note p:last-child { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--ms-ink-2); }
.ms-note strong { color: var(--ms-ink); }
.ms-note a { color: var(--ms-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- final */
.ms-final { padding-top: 0; }
.ms-final__box {
  position: relative; overflow: hidden;
  padding: 72px 24px 76px;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(var(--ms-blue-rgb), 0.16);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(var(--ms-blue-rgb), 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(91, 71, 230, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff, #f1f5fe);
  box-shadow: var(--ms-shadow-lg);
}
.ms-final__mark { width: 96px; height: 96px; overflow: visible; filter: drop-shadow(0 14px 22px rgba(15, 26, 58, 0.25)); }
.ms-final__box.is-in .ms-fm--plate { animation: ms-plate 0.55s 0.15s var(--ms-spring) both; }
.ms-final__box.is-in .ms-fm--1 { animation: ms-pop 0.42s 0.5s var(--ms-spring) both; }
.ms-final__box.is-in .ms-fm--2 { animation: ms-pop 0.42s 0.6s var(--ms-spring) both; }
.ms-final__box.is-in .ms-fm--3 { animation: ms-pop 0.42s 0.7s var(--ms-spring) both; }
.ms-final__box.is-in .ms-fm--4 { animation: ms-pop 0.42s 0.8s var(--ms-spring) both; }
.ms-final__box.is-in .ms-fm--5 { animation: ms-drop 0.8s 1s linear both; }
.ms-final__box .ms-h2 { margin: 26px auto 14px; max-width: 16em; }
.ms-final__box .ms-sub { margin: 0 auto 32px; }
.ms-final__box .ms-cta-row { justify-content: center; }

/* ------------------------------------------------- mobile "get it" pill */
.ms-getbar { display: none; }
@media (max-width: 767px) {
  .ms-getbar {
    position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px;
    background: var(--ms-blue); color: #fff;
    font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 14px 36px rgba(var(--ms-blue-rgb), 0.4), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transform: translate(-50%, 160%); transition: transform 0.4s var(--ms-ease);
  }
  .ms-getbar svg { background: #fff; border-radius: 5px; padding: 2px 3px; box-sizing: content-box; }
  .ms-getbar.is-shown { transform: translate(-50%, 0); }
}

.ms-footer {
  position: relative; z-index: 1;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  text-align: center; font-size: 0.86rem; color: var(--ms-ink-3);
  border-top: 1px solid var(--ms-line);
  background: rgba(255, 255, 255, 0.7);
}
.ms-footer a { color: var(--ms-ink-2); font-weight: 600; }
.ms-footer a:hover { color: var(--ms-blue); }

/* ---------------------------------------------------------------- reveals */
/* the hero rises in on load with CSS alone, so the headline never waits on the 3D code */
.ms-rise { animation: ms-rise 0.9s var(--d, 0s) var(--ms-ease) both; }
@keyframes ms-rise { from { opacity: 0; transform: translateY(18px); } }
html.ms-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.75s var(--ms-ease), transform 0.75s var(--ms-ease); }
html.ms-js [data-reveal].is-in,
html.ms-reveal-all [data-reveal] { opacity: 1; transform: none; }
html.ms-js .ms-why__card[data-reveal].is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 0.75s var(--ms-ease), transform 0.4s var(--ms-ease), border-color 0.3s ease, box-shadow 0.3s ease; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .ms-hero { min-height: 0; padding-top: 104px; }
  .ms-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ms-hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .ms-lede { margin-left: auto; margin-right: auto; }
  .ms-cta-row, .ms-trust { justify-content: center; }
  .ms-stage { height: 540px; }
  .ms-stage__canvas { left: -12%; top: -10%; width: 124%; height: 120%; }
  .ms-specs__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ms-specs__stage { max-width: 440px; }
  .ms-numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-number:nth-child(3) { border-left: 0; }
  .ms-number:nth-child(n + 3) { border-top: 1px solid var(--ms-line); }
  .ms-desk__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ms-desk__scene { max-width: 720px; width: 100%; margin: 0 auto; }
  .ms-try__grid { grid-template-columns: minmax(0, 1fr); }
  .ms-inv { position: relative; top: 0; max-width: 560px; width: 100%; margin: 0 auto; }
  .ms-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ms-nav__links a:not(.ms-nav__get) { display: none; }
}
/* on phones the specialty chips become one swipeable row */
@media (max-width: 767px) {
  .ms-specs__chips {
    flex-wrap: nowrap; justify-content: flex-start;
    margin: 0 -24px 24px; padding: 6px 24px; border-radius: 0;
    border-left: 0; border-right: 0;
    overflow-x: auto; scrollbar-width: none; scroll-padding: 0 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .ms-specs__chips::-webkit-scrollbar { display: none; }
  .ms-specs__panel { padding: 22px 18px 20px; border-radius: 24px; }
  .ms-specs__lead { min-height: 0; }
}
@media (max-width: 680px) {
  .ms-why__grid { grid-template-columns: minmax(0, 1fr); }
  .ms-plan { padding: 16px 12px; border-radius: 22px; }
  .ms-plan__wd, .ms-plan__days { gap: 4px; }
  .ms-plan__day { min-height: 70px; padding: 5px 3px; border-radius: 10px; }
  .ms-slot { padding: 3px 3px; font-size: 0.56rem; justify-content: center; }
  .ms-slot em { display: none; }
  .ms-plan__group button { padding: 8px 11px; font-size: 0.8rem; }
  .ms-seg button { padding: 8px 10px; font-size: 0.78rem; }
  .ms-inv__meta { grid-template-columns: 1fr 1fr; }
  .ms-inv__meta > div:first-child { grid-column: 1 / -1; }
  .ms-inv__stamp { top: 132px; }
  .ms-desk__scene { padding: 2% 10% 12% 0; }
  .ms-desk__phone { width: 26%; }
  .ms-laptop__bar { padding: 5px 7px; }
  .ms-laptop__bar i { width: 6px; height: 6px; }
  .ms-laptop__bar span { font-size: 0.56rem; padding: 2px 8px; }
  .ms-laptop__lid { border-radius: 12px 12px 4px 4px; }
  .ms-laptop__base { height: 11px; }
}
@media (max-width: 560px) {
  .ms-wrap { padding: 0 16px; }
  .ms-hero { padding-top: 92px; }
  .ms-title { font-size: clamp(2.9rem, 14vw, 4.1rem); margin: 16px 0 18px; }
  .ms-roll { font-size: 0.85rem; margin-top: 20px; }
  .ms-lede { font-size: 1.04rem; }
  .ms-lockup__rule, .ms-lockup__tag { display: none; }
  .ms-stage { height: 480px; }
  .ms-stage__canvas { left: 0; width: 100%; }
  .ms-number { padding: 28px 16px 26px; }
  .ms-number b { font-size: 2.4rem; }
  .ms-number span { font-size: 0.84rem; }
  .ms-chip { padding: 9px 12px 10px; font-size: 0.82rem; }
  .ms-specs__chips { margin: 0 -16px 20px; padding: 6px 16px; scroll-padding: 0 16px; }
  .ms-rota { padding: 10px; border-radius: 16px; }
  .ms-rota__days { gap: 3px; }
  .ms-rota__day { min-height: 54px; padding: 5px 3px 4px; border-radius: 9px; }
  .ms-rota__date { font-size: 0.58rem; overflow: hidden; }
  .ms-rota__date b { font-size: 0.78rem; }
  .ms-rota__shift { font-size: 0.55rem; padding: 4px 1px 3px; min-height: 18px; }
  .ms-pano__viewport { padding: 0 16px 20px; }
  .ms-pano__track img { height: 480px; }
  .ms-note { padding: 24px 20px; }
  .ms-final__box { padding: 56px 18px 60px; border-radius: 26px; }
  .ms-nav__links .ms-nav__get { padding: 8px 12px; font-size: 0.82rem; }
  .ms-inv__paper { padding: 22px 16px 18px; }
  .ms-inv__lines li { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; }
}
@media (max-width: 380px) {
  .ms-plan__num small { display: none; }
  .ms-nav__back { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-dates { animation: none; opacity: 1; }
  .ms-rise, .ms-title__blue, .ms-roll__dot, .ms-stage::before, .ms-specs__stage::after { animation: none; }
  .ms-device, .ms-stage--static .ms-device { animation: none; }
  .ms-device__splash { display: none; }
  .ms-final__box.is-in .ms-fm { animation: none; }
  .ms-rota__day.is-pop .ms-rota__shift, .ms-plan__day.is-pop, .ms-slot, .ms-inv__lines li.is-new, .ms-inv.is-paid .ms-inv__stamp.is-on { animation: none; }
  html.ms-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ms-why__card, .ms-play, .ms-roll__words > span { transition: none; }
  .ms-desk__phone, .ms-laptop__lid { transition: none; }
}
