/* The app's layout and pieces. Colors and the font come only from brand.css. Phone first; a laptop gets a wider grid. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--off);
  color: var(--navy);
  font: 600 17px/1.5 var(--font);
  overflow-x: clip;
}
h1, p, ul { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}

/* Top bar: the logo large, the language button at the right. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  margin-bottom: 8px;
}
.logo { display: block; height: 52px; width: auto; max-width: calc(100% - 120px); }
.lang {
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  background: var(--white);
  border: 1.5px solid var(--hair);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.lang:hover:not(:disabled) { border-color: var(--navy); }
.lang:disabled { color: var(--slate); cursor: default; }

/* Sections: white cards with room between them; the one navy panel. */
.grid { display: grid; gap: 14px; }
.card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 24px 20px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.eyebrow.on-navy { color: var(--blue); }
h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
/* The headline's one accent word (words files mark it *like this*). */
h1 em { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: 0; }
.lead { margin-top: 14px; font-size: 19px; color: var(--slate); text-wrap: pretty; }
.panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 24px 20px;
}
.panel-text { font-size: 19px; line-height: 1.5; text-wrap: pretty; }

.co-list { list-style: none; padding: 0; display: grid; }
.co-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.co-list li + li { border-top: 1px solid var(--hair); }
.co-list li:last-child { padding-bottom: 0; }
.co-dot { flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--blue); }

/* Status line: icon and words, never color alone. */
.foot { margin-top: 20px; }
.status { display: flex; align-items: flex-start; gap: 8px; color: var(--slate); font-size: 17px; }
.status b { color: var(--navy); font-weight: 800; }
.st-icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status[data-state="ok"] .st-icon { stroke: var(--ok); }
.status[data-state="down"] .st-icon, .status[data-state="offline"] .st-icon { stroke: var(--late); }

/* Loading shapes. */
.bones { display: grid; gap: 14px; padding-top: 84px; }
.bone { display: block; border-radius: 20px; background: var(--ice); animation: pulse 1.4s ease-in-out infinite; }
.bone.bar { height: 28px; width: 40%; }
.bone.big { height: 180px; }
@keyframes pulse { 50% { opacity: .55; } }
.boot-fail { max-width: 560px; margin: 40px auto; padding: 0 16px; color: var(--navy); }

@media (min-width: 900px) {
  .page { padding: 28px 40px 40px; }
  .top { min-height: 96px; margin-bottom: 20px; }
  .logo { height: 72px; }
  .grid { grid-template-columns: 7fr 5fr; gap: 20px; }
  .card, .panel { padding: 40px; border-radius: 24px; }
  .companies { grid-column: 1 / -1; }
  h1 { font-size: 64px; }
  .lead { font-size: 21px; max-width: 34em; }
  .panel { display: flex; flex-direction: column; justify-content: flex-end; }
  .panel-text { font-size: 22px; }
  .co-list { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .co-list li + li { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
