:root {
  color-scheme: light;
  --ink: #173036;
  --muted: #5f7076;
  --line: #d7e2e5;
  --paper: #ffffff;
  --wash: #eef5f3;
  --brand: #05515f;
  --brand-strong: #033f49;
  --accent: #c18a2d;
  --focus: #c18a2d;
  --shadow: 0 18px 44px rgba(5, 81, 95, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--wash);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(5, 81, 95, 0.11), rgba(255, 255, 255, 0.04) 38%, rgba(193, 138, 45, 0.08)),
    var(--wash);
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid rgba(5, 81, 95, 0.18);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.brand,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-shell {
  padding: 42px 0 72px;
}

.intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(5, 81, 95, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(5, 81, 95, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.app-card:focus-visible {
  outline: 3px solid rgba(193, 138, 45, 0.42);
  outline-offset: 3px;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.logo-box img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.schedule-logo {
  background: #f7fcfc;
}

.remediation-logo {
  background: var(--brand);
  border-color: var(--brand);
}

.remediation-logo img {
  width: 72px;
  height: 72px;
}

.room-logo img {
  width: 72px;
  height: 72px;
}

.vitalteam-logo img {
  width: 78px;
  height: 78px;
}

.maintenance-logo img {
  width: 72px;
  height: 72px;
}

.app-icon-logo img {
  width: 72px;
  height: 72px;
}

.card-copy {
  display: block;
  align-self: start;
  padding-top: 18px;
}

.card-copy strong,
.card-copy span {
  display: block;
}

.card-copy strong {
  font-size: 1.38rem;
  line-height: 1.12;
}

.card-copy span {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.45;
}

.pending {
  border-style: dashed;
  color: #4f6167;
}

.pending-logo {
  color: var(--brand);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 620px) {
  .brand,
  .page-shell {
    width: min(100% - 22px, 1120px);
  }

  .brand {
    min-height: 74px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .page-shell {
    padding: 30px 0 48px;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.04;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-card {
    grid-template-rows: auto auto;
    min-width: 0;
    min-height: 0;
    padding: 13px;
  }

  .logo-box {
    width: 68px;
    height: 68px;
  }

  .logo-box img {
    width: 54px;
    height: 54px;
  }

  .card-copy {
    align-self: start;
    padding-top: 10px;
  }

  .card-copy strong {
    overflow-wrap: anywhere;
    font-size: 1.02rem;
    line-height: 1.16;
  }

  .card-copy > span {
    display: none;
  }

}
