/* Pulse HMS Cloud (cloud.getpulsehms.com): the hosted service's landing page, central sign-in and subscription request, served by the control plane.
   The Pulse palette of getpulsehms.com (navy #16314c, teal #1db1a3); system fonts only, so the pages make no third-party request and need no font-src. */
:root {
  --navy-950: #081726; --navy-900: #0d2236; --navy-800: #16314c; --navy-700: #22466a; --navy-100: #e6edf4;
  --teal-500: #1db1a3; --teal-600: #14998c; --teal-700: #0b7d72; --teal-50: #e8f7f5;
  --sand-50: #f7f5f1; --amber-500: #e3a33b;
  --ink: #142233; --ink-2: #33475b; --muted: #5a6b7d; --line: #dfe5ec; --bg-alt: #f5f7fa; --white: #ffffff;
  --focus: #2563eb; --ok: #1d7a46; --danger: #b3261e; --danger-bg: #fdf0ef;
  --radius: 14px; --radius-sm: 8px; --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(8, 23, 38, .06), 0 8px 24px rgba(8, 23, 38, .08);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--teal-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy-800); color: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--white); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(16, 24, 40, .18); flex: none; }
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 6px; }
.brand-tag { font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--white); background: var(--teal-700); border-radius: 5px; padding: 2px 5px; }
.brand-cloud { font-weight: 600; color: var(--teal-700); border-left: 1px solid var(--line); padding-left: 10px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.site-nav a:hover { color: var(--navy-800); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--teal-600); color: var(--navy-950); }
.btn-outline { background: var(--white); color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy-800); }
.btn-ghost:hover, .btn-ghost.is-current { background: var(--navy-100); color: var(--navy-900); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-light:hover { background: var(--white); color: var(--navy-900); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.cta-center { justify-content: center; }
.hero-note { font-size: .92rem; color: var(--muted); }

.window { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(8, 23, 38, .16); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd7e0; }
.address { margin-left: 10px; flex: 1; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-body { display: grid; grid-template-columns: 70px 1fr; min-height: 300px; }
.mock-side { background: var(--navy-800); display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; }
.mock-side span { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.mock-side span:first-child { background: var(--teal-500); }
.mock-main { padding: 18px; display: grid; gap: 16px; align-content: start; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; display: grid; gap: 8px; }
.mock-tile b { font-size: .72rem; color: var(--muted); font-weight: 600; }
.mock-tile i { height: 14px; width: 60%; border-radius: 4px; background: var(--navy-100); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--teal-500); opacity: .85; }
.mock-chart .b1 { height: 45%; } .mock-chart .b2 { height: 62%; } .mock-chart .b3 { height: 54%; } .mock-chart .b4 { height: 78%; }
.mock-chart .b5 { height: 70%; } .mock-chart .b6 { height: 88%; } .mock-chart .b7 { height: 82%; background: var(--navy-700); }
.mock-rows { display: grid; gap: 8px; }
.mock-rows span { height: 12px; border-radius: 4px; background: var(--bg-alt); }

/* ---------- sections ---------- */
.band { padding: 72px 0; }
.band-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.015em; }
.section-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 46em; margin-bottom: 32px; }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--ink-2); margin: 0; }
.chips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 550; color: var(--navy-800); }
.more { font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-800); color: var(--white);
  font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-2); margin: 0; }
.edition { display: flex; flex-direction: column; }
.edition .who { color: var(--teal-700); font-weight: 600; margin-bottom: 12px; }
.edition ul { padding-left: 18px; margin: 0 0 16px; color: var(--ink-2); }
.edition .price { font-weight: 700; color: var(--navy-900); margin-top: auto; margin-bottom: 14px; }
.note { margin-top: 20px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50); border: 2px solid var(--teal-500); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 6px; height: 10px; border: solid var(--teal-700); border-width: 0 2px 2px 0; transform: rotate(45deg); }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; color: var(--navy-900); }
details p { color: var(--ink-2); }
.cta-band { background: var(--navy-800); color: var(--white); padding: 56px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band .cta-row { margin: 0; }

/* ---------- pages (sign-in, subscribe, messages) ---------- */
.page { background: var(--bg-alt); padding: 56px 0 72px; min-height: calc(100vh - 68px - 200px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 360px); gap: 32px; justify-content: center; align-items: start; }
.page-grid-wide { grid-template-columns: minmax(0, 680px) minmax(0, 340px); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.panel h1 { font-size: 1.7rem; }
.aside { padding: 8px 4px; }
.aside h2 { font-size: 1.1rem; }
.aside .checks + p, .panel .form + p { margin-top: 18px; }
.alert { background: var(--danger-bg); border: 1px solid #f1c4c0; color: #7a1c16; border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 18px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert a { color: #7a1c16; }
.badge-ok { display: inline-block; background: #e7f4ec; color: var(--ok); font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 4px 12px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--navy-900); }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #c7d0db; border-radius: var(--radius-sm); padding: 11px 14px; min-height: 46px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--focus); outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; font-weight: 550; }
.help { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.suffixed { display: flex; align-items: stretch; }
.suffixed input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; min-width: 0; }
.suffix { display: flex; align-items: center; padding: 0 12px; background: var(--bg-alt); border: 1.5px solid #c7d0db; border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--mono); font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.check, .choice { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-weight: 500; color: var(--ink-2); }
.choice { margin-bottom: 8px; }
.check input, .choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal-700); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mini-steps { padding-left: 20px; color: var(--ink-2); }
.mini-steps li { margin-bottom: 8px; }
.status table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.status td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.status .overall { font-size: 1.15rem; font-weight: 700; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); }
.status .operational { color: var(--ok); }
.status .degraded, .status .maintenance { color: #9a6200; }
.status .major { color: var(--danger); }
.status .notice { border-left: 4px solid #9a6200; padding: 8px 14px; margin: 10px 0; background: var(--sand-50); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.brand-footer, .brand-footer:hover { color: var(--white); }
.brand-footer .brand-cloud { color: var(--teal-500); border-color: rgba(255, 255, 255, .2); }
.footer-note { margin-top: 12px; font-size: .92rem; }
.footer-head { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding: 18px 0 26px; font-size: .85rem; }
.footer-base p { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-grid, .two-col, .page-grid, .page-grid-wide { grid-template-columns: minmax(0, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 56px 0; }
}
@media (max-width: 560px) {
  .brand-cloud { display: none; }
  .header-actions .btn { padding: 0 14px; min-height: 40px; }
  .steps, .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .window-body { grid-template-columns: 44px 1fr; }
  .mock-side { padding: 14px 10px; }
  .suffix { font-size: .75rem; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .hero-visual, .cta-band { display: none; }
}
