/* DigiVerse Computing — the site's only stylesheet. Hand-written, no framework, no build step.
   Edit this file directly; what you see here is what the browser gets. */

:root {
  /* The real DigiVerse brand colour, sampled from the eMR user-manual cover chevrons (#922948).
     The old website's teal and yellow matched nothing the product actually ships with. */
  --maroon-900: #3F111F;   /* deepest ground: header, footer */
  --maroon-800: #5C1A2D;   /* dark bands */
  --maroon-700: #922948;   /* the brand */
  --maroon-600: #A83354;   /* hover */
  --rose-300: #EBAEC0;     /* links and accents on dark */
  --rose-050: #FBF1F4;     /* tinted panels */

  --ink: #1A1218;          /* body text on light */
  --ink-muted: #5E4C54;    /* secondary text on light */
  --paper: #FFFFFF;
  --sand: #F8F5F6;         /* alternating light band */
  --line: #E7DDE1;
  --reverse: #FBF2F5;      /* body text on dark */
  --reverse-muted: #DCBDC8;

  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 10px 28px -18px rgba(63, 17, 31, .55);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 16px/1.65 "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon-700); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--maroon-700); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.lead { font-size: 1.1rem; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; padding: 12px 18px; border-radius: var(--radius); transition: top .2s; }
.skip:focus { top: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 48px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--maroon-700); color: #fff; }
.btn-primary:hover { background: var(--maroon-600); }
.btn-accent { background: var(--reverse); color: var(--maroon-800); }
.btn-accent:hover { background: #fff; }
.btn-outline { border-color: currentColor; color: var(--maroon-700); }
.hero .btn-outline, .band-dark .btn-outline { color: var(--rose-300); }
.hero .btn-outline:hover, .band-dark .btn-outline:hover { background: rgba(235, 174, 192, .14); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--maroon-900); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.wordmark .mark { width: 34px; height: 34px; border-radius: 7px; flex: none; }
.wordmark span { color: var(--rose-300); }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--reverse); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: var(--radius);
}
.nav a:hover { background: rgba(235, 174, 192, .16); }
.nav .btn { min-height: 40px; padding: 8px 18px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; color: #fff; border: 1.5px solid rgba(235, 174, 192, .45); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { pointer-events: none; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; inset: 68px 0 auto; background: var(--maroon-900); display: none; padding: 10px 20px 22px; border-top: 1px solid rgba(235, 174, 192, .2); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { min-height: 52px; font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(150deg, var(--maroon-900) 0%, var(--maroon-800) 48%, var(--maroon-700) 100%);
  color: var(--reverse); padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } }
/* The anatomical figure is the one piece of DigiVerse artwork that is genuinely its own, so it
   carries the hero rather than a stock photo of somebody in scrubs. */
.hero-figure { margin: 0; justify-self: center; }
.hero-figure img { width: min(100%, 300px); border-radius: 14px; padding: 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%);
  box-shadow: 0 24px 56px -26px rgba(0, 0, 0, .7); }
@media (max-width: 939px) { .hero-figure { display: none; } }
.hero h1 { color: #fff; }
.hero h1 span { display: block; color: var(--rose-300); }
.hero .lead { color: var(--reverse); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 56ch; }
/* Default to the dark maroon: most bands are light, and rose on white fails contrast badly.
   Only the dark grounds get the light tint. */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--maroon-700); margin: 0 0 .9em; }
.hero .eyebrow, .band-dark .eyebrow { color: var(--rose-300); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* six-up capability strip, carried over from the old site */
.strip { background: var(--maroon-800); }
.strip ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 18px; }
.strip li { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--reverse-muted); font-weight: 600; font-size: .92rem; text-align: center; }
.strip svg { color: var(--rose-300); }

/* ---------------------------------------------------------------- bands */
.band { padding: clamp(50px, 7vw, 88px) 0; }
.band-sand { background: var(--sand); }
.band-dark { background: var(--maroon-900); color: var(--reverse); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead, .band-dark p { color: var(--reverse); }
.band-dark .muted { color: var(--reverse-muted); }
.band-dark a:not(.btn) { color: var(--rose-300); }
.band-head { max-width: 68ch; margin-bottom: clamp(26px, 4vw, 42px); }

/* feature grid */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.band-dark .features li { background: rgba(255, 255, 255, .05); border-color: rgba(235, 174, 192, .22); }
.features svg { flex: none; color: var(--maroon-700); margin-top: 2px; }
.band-dark .features svg { color: var(--rose-300); }
.features strong { display: block; margin-bottom: 2px; }
.features span { color: var(--ink-muted); font-size: .95rem; }
.band-dark .features span { color: var(--reverse-muted); }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.steps .n { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon-700); margin-bottom: 6px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* two-column split */
.split { display: grid; gap: clamp(26px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.shots { display: grid; gap: 14px; }
.shots img { border-radius: var(--radius); border: 1px solid rgba(235, 174, 192, .25); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .8); }
.ticks { list-style: none; margin: 1.2em 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 4px; color: var(--rose-300); }

/* security partner */
.partner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 1.5em 0 2em; }
.partner img { width: 64px; height: auto; }
.partner-name { font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; font-size: .95rem; }
.pillars svg { color: var(--maroon-700); }

/* ---------------------------------------------------------------- forms */
.form { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { border-color: var(--maroon-700); }
.field textarea { min-height: 150px; resize: vertical; }
.cf-turnstile { margin: 4px 0 18px; }
.form-note { font-size: .9rem; color: var(--ink-muted); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E7F6EC; border: 1px solid #9ED5B0; color: #14502B; }
.form-status.bad { background: #FDECEC; border: 1px solid #F0B4B4; color: #7A1A1A; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--maroon-900); color: var(--reverse); padding: 44px 0 22px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-300); margin-bottom: .9em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid a { color: var(--reverse); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.foot-grid a:hover { color: var(--rose-300); text-decoration: underline; }
.foot-grid p { color: var(--reverse-muted); max-width: 42ch; }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(235, 174, 192, .2);
  font-size: .9rem; color: var(--reverse-muted);
}
.foot-bottom p { margin: 0; }
.foot-bottom nav { display: flex; gap: 18px; }

/* prose pages */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.9em; }
