/* Mutima website. Same colours as the Mutima system: red, navy, clean greys.
   No external fonts or scripts. */
:root {
  --red: #e61e1e;
  --red-dark: #c41818;
  --navy: #00092d;
  --navy-2: #0d1a45;
  --ink: #0b0f1e;
  --text: #2a2d37;
  --muted: #646a78;
  --grey: #f5f6f8;
  --line: #e4e6eb;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size: 18px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
       font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn:focus-visible, .site-nav a:focus-visible, .screens a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Top: navigation and hero on navy, with the red circle from the sign-in page */
.top { background: radial-gradient(circle at 78% 45%, rgba(230, 30, 30, .22), transparent 42%), var(--navy);
       color: #fff; position: relative; overflow: hidden; }
.top::after { content: ""; position: absolute; right: -170px; bottom: -170px; width: 420px; height: 420px; border-radius: 50%;
              background: var(--red); opacity: .95; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px;
            position: relative; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 26px; font-weight: 800;
        letter-spacing: -.03em; }
.logo img { width: 44px; height: 44px; }
.site-nav nav { display: flex; align-items: center; gap: 26px; }
.site-nav nav a:not(.btn) { color: #d7dae4; text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav nav a:not(.btn):hover { color: #fff; }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 88px;
        position: relative; z-index: 1; }
.eyebrow { color: #ff8f8f; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(44px, 6vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 span { color: var(--red); display: block; }
.lead { color: #c9cddb; font-size: clamp(17px, 1.5vw, 20px); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #aeb3c4; font-size: 15px; }
.ticks li::before { content: "♥"; color: var(--red); margin-right: 8px; }

/* The extra-large spinning heart */
.hero-heart { display: flex; justify-content: center; }
.heart-xl { width: clamp(300px, 42vw, 600px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }

/* Bands */
.band { padding: 88px 0; }
.band-grey { background: var(--grey); }
.band-navy { background: var(--navy); color: #c9cddb; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-red { background: var(--red); color: #fff; padding: 64px 0; }
.band-red h2 { color: #fff; }

/* The patient's journey: numbered steps joined by a line */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: step; }
.journey li { counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: center;
              text-align: center; padding: 0 6px; font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.3; }
.journey li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px;
                      border-radius: 50%; background: var(--red); color: #fff; font-size: 17px; position: relative; z-index: 1; }
.journey li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: calc(50% + 30px); right: calc(-50% + 30px);
                                      height: 2px; background: var(--line); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.features article { background: #fff; border-radius: var(--radius); padding: 26px 24px 18px; border-top: 4px solid var(--red);
                    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05); }
.features p { color: var(--muted); font-size: 16px; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.screens figure { margin: 0; }
.screens a { display: block; cursor: zoom-in; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff;
             box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 40px rgba(0, 9, 45, .12); transition: transform .2s; }
.screens a:hover { transform: translateY(-3px); }
.screens a::before { content: ""; display: block; height: 22px; background: #eef0f3 radial-gradient(circle, #ff5f57 4px, transparent 5px) 10px 50% / 16px 22px no-repeat; }
.screens figcaption { margin-top: 14px; color: var(--muted); font-size: 16px; }
.screens figcaption strong { color: var(--ink); }

/* It runs in your hospital */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.three article { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; background: var(--navy-2); }
.three em { color: #fff; font-style: normal; font-weight: 600; }

/* Getting started */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
         counter-reset: step; }
.steps li { counter-increment: step; padding: 28px; border-radius: var(--radius); background: var(--grey); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
                    background: var(--navy); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }
.built { margin: 44px 0 0; font-weight: 700; color: var(--ink); font-size: 19px; }

/* Request a demo */
.demo { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.demo p { max-width: 620px; margin: 0; font-size: 18px; color: #ffe3e3; }

/* Footer */
.site-footer { background: var(--ink); color: #aeb3c4; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.logo-small { font-size: 20px; }
.logo-small img { width: 28px; height: 28px; }

/* Smaller screens */
@media (max-width: 960px) {
  .site-nav nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 0; padding-bottom: 64px; gap: 8px; }
  .hero-heart { order: -1; }
  .heart-xl { width: min(84vw, 440px); }
  .lead { margin-left: auto; margin-right: auto; }
  .actions, .ticks { justify-content: center; }
  .screens, .three, .steps { grid-template-columns: 1fr; }
  .demo { flex-direction: column; text-align: center; }
  .journey { display: flex; flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; margin: 0 auto; gap: 14px; }
  .journey li { flex-direction: row; text-align: left; padding: 0; }
  .journey li::before { margin: 0 12px 0 0; width: 36px; height: 36px; font-size: 15px; }
  .journey li:not(:last-child)::after { display: none; }
  .band { padding: 64px 0; }
  .top::after { width: 240px; height: 240px; right: -120px; top: 110px; bottom: auto; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-nav { padding-top: 14px; padding-bottom: 14px; }
  .logo { font-size: 22px; }
  .logo img { width: 36px; height: 36px; }
  .btn { width: 100%; }
  .site-nav .btn { width: auto; }
}

/* Screens viewer (js/gallery.js): each screen as large as the screen allows, with the
   controls floating over it. They fade out after a few seconds; a move, tap or key brings them back. */
[hidden] { display: none !important; }
button.btn { font-family: inherit; cursor: pointer; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-navy:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.slides-row { margin: -16px 0 36px; }
body:has(.viewer[open]) { overflow: hidden; }

.viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
          margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.viewer::backdrop { background: #000; }
.viewer-stage { position: absolute; inset: 0; margin: 0; }
.viewer-stage img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain;
                    opacity: 0; transition: opacity .3s ease; }
.viewer-stage img.ready { opacity: 1; }

/* Floating controls */
.viewer-bar, .viewer-caption, .viewer-nav { transition: opacity .4s ease; }
.viewer-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center;
              justify-content: space-between; gap: 16px; padding: 16px 20px 48px;
              background: linear-gradient(rgba(0, 9, 45, .78), rgba(0, 9, 45, 0)); pointer-events: none; }
.viewer-bar > * { pointer-events: auto; }
.viewer-count { font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.viewer-tools { display: flex; gap: 10px; }
.viewer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; cursor: pointer;
              font: 700 15px var(--font); color: #fff; background: rgba(0, 9, 45, .72); border: 1px solid rgba(255, 255, 255, .35);
              box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.viewer-btn:hover { background: rgba(13, 26, 69, .95); }
.viewer-icon { padding: 11px; }
.viewer-play { background: var(--red); border-color: var(--red); }
.viewer-play:hover { background: var(--red-dark); }
.viewer-btn svg { width: 18px; height: 18px; }
.viewer .i-pause, .viewer.playing .i-play, .viewer .i-compress, .viewer.fullscreen .i-expand { display: none; }
.viewer.playing .i-pause, .viewer.fullscreen .i-compress { display: block; }

.viewer-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 56px 24px 26px; text-align: center;
                  font-size: 18px; color: #e3e6ee; background: linear-gradient(rgba(0, 9, 45, 0), rgba(0, 9, 45, .85));
                  pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.viewer-caption strong { color: #fff; }
.viewer-hint { display: none; margin-top: 4px; font-size: 14px; color: #aeb3c4; }

.viewer-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: grid; place-items: center;
              width: 58px; height: 58px; border-radius: 50%; cursor: pointer; color: #fff;
              background: rgba(0, 9, 45, .72); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.viewer-nav:hover { background: rgba(13, 26, 69, .95); }
.viewer-nav svg { width: 26px; height: 26px; }
.viewer-prev { left: 18px; }
.viewer-next { right: 18px; }
.viewer-btn:focus-visible, .viewer-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.viewer.idle { cursor: none; }
.viewer.idle .viewer-bar, .viewer.idle .viewer-caption, .viewer.idle .viewer-nav { opacity: 0; pointer-events: none; }
.viewer.idle .viewer-bar > * { pointer-events: none; }

.viewer-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 4px; background: rgba(255, 255, 255, .15);
                   visibility: hidden; }
.viewer.playing .viewer-progress { visibility: visible; }
.viewer-progress span { display: block; width: 0; height: 100%; background: var(--red); }
.viewer-progress span.run { animation: slide-progress 5s linear forwards; }
@keyframes slide-progress { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .viewer-stage img, .viewer-bar, .viewer-caption, .viewer-nav { transition: none; }
}
@media (max-width: 700px) {
  .viewer-bar { padding: 10px 12px 36px; }
  .viewer-btn { padding: 10px; }
  .viewer-btn span { display: none; }
  .viewer-caption { font-size: 15px; padding: 40px 14px 18px; }
  .viewer-nav { width: 46px; height: 46px; }
  .viewer-prev { left: 8px; }
  .viewer-next { right: 8px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .viewer-hint { display: block; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .viewer-bar { padding: 8px 12px 30px; }
  .viewer-btn { padding: 9px; }
  .viewer-btn span { display: none; }
  .viewer-caption { font-size: 14px; padding: 30px 14px 12px; }
  .viewer-nav { width: 44px; height: 44px; }
}
