:root {
  --maq-yellow: #ffdc26;
  --maq-yellow-deep: #796300;
  --maq-dark: #141712;
  --maq-ink: #24271f;
  --maq-muted: #62695c;
  --maq-line: #d8dacf;
  --maq-bg: #f1f1e9;
  --maq-surface: #fff;
}

.landing-page {
  margin: 0;
  font: 16px system-ui, sans-serif;
  min-height: 100vh;
  background: #f3f6f8;
  color: #172b40;
}
.landing-page * { box-sizing: border-box; }
.landing-page [hidden] { display: none !important; }
.landing-access {
  max-width: 520px;
  padding: 26px;
  margin-bottom: 42px;
  border: 1px solid #d8e1e8;
  border-radius: 9px;
  background: white;
  scroll-margin-top: 24px;
}
.personal-main { display: flex; justify-content: center; }
.personal-main .landing-access { width: min(100%, 520px); }
.landing-access h2 { margin-top: 0; }
.landing-access form { display: grid; gap: 10px; }
.landing-access input {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid #aab8c5;
  border-radius: 5px;
  font: inherit;
}
.landing-access button { margin-top: 8px; font: inherit; cursor: pointer; }
.landing-access button:disabled { opacity: .6; cursor: wait; }
.landing-access .error { color: #a01818; font-weight: 600; }
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px max(28px, calc((100vw - 1160px) / 2));
  background: #142d48;
}
.landing-brand,
.landing-header nav,
.landing-actions {
  display: flex;
  align-items: center;
}
.landing-brand {
  gap: 12px;
  color: white;
  text-decoration: none;
}
.landing-brand img {
  object-fit: cover;
  object-position: top;
  border: 1px solid #a7d5e9;
  border-radius: 9px;
}
.landing-brand strong,
.landing-brand small {
  display: block;
}
.landing-brand strong { font-size: 1.1rem; }
.landing-brand small { margin-top: 3px; color: #c6e6f5; }
.landing-header nav { gap: 24px; }
.landing-header nav a {
  color: #e9f2f8;
  text-decoration: none;
}
.landing-header nav a:hover,
.landing-header nav a:focus-visible { text-decoration: underline; }
.landing-header .landing-nav-cta {
  padding: 10px 15px;
  border: 1px solid #a7d5e9;
  border-radius: 6px;
}
.landing-main {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 54px;
}
.landing-hero {
  max-width: 760px;
  padding: 12px 0 64px;
}
.landing-eyebrow {
  color: #28719c;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.landing-hero h1 {
  max-width: 700px;
  margin: 18px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
}
.landing-lead {
  max-width: 630px;
  color: #526477;
  font-size: 1.15rem;
  line-height: 1.65;
}
.landing-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.landing-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: -34px 0 64px;
}
.landing-entry {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  background: white;
  color: #172b40;
  text-decoration: none;
  box-shadow: 0 8px 24px #142d4810;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.landing-entry:hover,
.landing-entry:focus-visible {
  transform: translateY(-3px);
  border-color: #91b9d4;
  box-shadow: 0 14px 30px #142d481c;
}
.landing-entry-staff { border-top: 4px solid #205c91; }
.landing-entry-visitor { border-top: 4px solid #32836f; }
.landing-entry-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e8f1f8;
  color: #205c91;
  font-size: .88rem;
  font-weight: 800;
}
.landing-entry-visitor .landing-entry-icon { background: #e6f4ef; color: #287663; }
.landing-entry-copy { display: grid; gap: 8px; }
.landing-entry-eyebrow {
  color: #28719c;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.landing-entry-visitor .landing-entry-eyebrow { color: #287663; }
.landing-entry-copy strong { font-size: 1.55rem; }
.landing-entry-copy > span:last-child { color: #526477; line-height: 1.5; }
.landing-entry-action {
  grid-column: 2;
  color: #205c91;
  font-size: .92rem;
  font-weight: 700;
}
.landing-entry-visitor .landing-entry-action { color: #287663; }
.landing-entry-action span { margin-left: 4px; }
.landing-button {
  display: inline-block;
  padding: 13px 19px;
  border: 1px solid #205c91;
  border-radius: 6px;
  font-weight: 650;
  text-decoration: none;
}
.landing-button-primary {
  background: #205c91;
  color: white;
}
.landing-button-secondary {
  background: white;
  color: #205c91;
}
.landing-button:hover,
.landing-button:focus-visible { filter: brightness(.94); }
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.landing-features article {
  padding: 23px;
  border: 1px solid #d8e1e8;
  border-radius: 9px;
  background: white;
}
.landing-feature-number {
  color: #28719c;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.landing-features h2 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}
.landing-features p {
  margin: 0;
  color: #526477;
  line-height: 1.55;
}
.landing-footer {
  padding: 20px 24px;
  border-top: 1px solid #d8e1e8;
  color: #526477;
  text-align: center;
}
.app-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.app-navigation a {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #e9f2f8;
  font-size: .84rem;
  line-height: 1.25;
  text-decoration: none;
}
.app-navigation a:hover,
.app-navigation a:focus-visible {
  border-color: #a7d5e9;
  background: #ffffff12;
  text-decoration: none;
}
.app-navigation a[aria-current="page"] {
  border-color: #a7d5e9;
  background: #205c91;
  color: #fff;
  font-weight: 650;
}
@media (max-width: 680px) {
  .landing-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }
  .landing-header nav { flex-wrap: wrap; gap: 14px; }
  .landing-main { width: min(100% - 40px, 560px); padding-top: 44px; }
  .landing-hero { padding-bottom: 42px; }
  .landing-entries { grid-template-columns: 1fr; gap: 12px; margin: -20px 0 42px; }
  .landing-entry { min-height: 170px; padding: 20px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-brand img.landing-brand-logo { width: 78px; height: 44px; }
  .landing-brand img.landing-brand-avatar { width: 40px; height: 40px; }
}

.landing-page {
  background: var(--maq-bg);
  color: var(--maq-ink);
}
.landing-header,
body:not(.landing-page):not(.dashboard-page) > header {
  background: var(--maq-dark);
  color: #f1f1e9;
}
.landing-brand img,
.dashboard-brand img,
.app-brand img {
  display: block;
  width: 104px;
  height: 56px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}
.landing-brand-assets { display: flex; align-items: center; gap: 8px; }
.landing-brand img.landing-brand-logo { width: 92px; height: 50px; }
.landing-brand img.landing-brand-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid var(--maq-yellow);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--maq-yellow);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-decoration: none;
}
.app-brand img { width: 92px; height: 50px; }
.app-brand:focus-visible { outline: 2px solid var(--maq-yellow); outline-offset: 4px; }
.landing-header nav a,
.app-navigation a { color: #f1f1e9; }
.landing-header nav a:hover,
.landing-header nav a:focus-visible,
.app-navigation a:hover,
.app-navigation a:focus-visible { border-color: var(--maq-yellow); }
.app-navigation a[aria-current="page"] {
  border-color: var(--maq-yellow);
  background: var(--maq-yellow);
  color: var(--maq-dark);
}
.landing-entry-staff,
.landing-entry-visitor { border-top-color: var(--maq-yellow); }
.landing-entry-icon { background: #fff5bf; color: var(--maq-dark); }
.landing-entry-visitor .landing-entry-icon { background: #e7e9df; color: var(--maq-dark); }
.landing-button-primary,
.landing-page button,
.landing-page .landing-nav-cta {
  border-color: var(--maq-yellow);
  background: var(--maq-yellow);
  color: var(--maq-dark);
}
.landing-button-secondary { color: var(--maq-dark); }
.landing-header .landing-nav-cta { color: var(--maq-dark); }
.landing-header .landing-nav-cta:hover,
.landing-header .landing-nav-cta:focus-visible { background: #ffe76a; color: var(--maq-dark); }
.landing-entry-action,
.landing-entry-visitor .landing-entry-action,
.landing-eyebrow,
.landing-entry-eyebrow,
.landing-feature-number { color: var(--maq-yellow-deep); }
.landing-page input:focus-visible,
.landing-page button:focus-visible,
.landing-page a:focus-visible {
  outline-color: var(--maq-yellow-deep);
}
