@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Base palette */
  --vip-blue: #1D51A4;
  --vip-blue-dark: #16407F;
  --vip-blue-tint: #EAF0F9;
  --vip-navy: #041E42;
  --vip-gray: #898D8C;
  --vip-gray-light: #D6D8D8;
  --vip-gray-faint: #F4F5F5;
  --vip-white: #FFFFFF;
  --vip-amber: #C98A1D;

  /* Semantic aliases */
  --text-heading: var(--vip-blue);
  --text-body: #1A1D21;
  --text-muted: #4A4E4D;
  --text-faint: var(--vip-gray);

  /* Typography */
  --font-display: 'Merriweather', Georgia, 'Georgia Pro', serif;
  --font-body: 'Carlito', Calibri, 'Segoe UI', sans-serif;
  --fs-hero: 44px;
  --fs-h1: 34px;
  --fs-h2: 26px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;
  --lh-tight: 1.15;
  --lh-heading: 1.3;
  --lh-body: 1.55;

  /* Spacing */
  --container-max: 1060px;
  --radius-sm: 3px;
  --radius-md: 4px;

  /* Effects */
  --shadow-card-hover: 0 3px 12px rgba(4, 30, 66, .10);
  --focus-ring: 0 0 0 3px rgba(29, 81, 164, .35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--vip-white);
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  margin: 0;
}

a { color: var(--vip-blue); }

a:focus-visible,
button:focus-visible,
.card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Header */
.site-header {
  background: var(--vip-blue);
  flex: 0 0 auto;
}

.site-header .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-left img {
  height: 46px;
  display: block;
}

.header-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .35);
}

.header-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--vip-white);
  line-height: 1.1;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

[hidden] { display: none !important; }

.auth-area {
  display: flex;
  align-items: center;
}

.auth-signin-form,
.auth-signed-in {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-status-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
}

.auth-button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.auth-signin-button {
  background: var(--vip-white);
  color: var(--vip-blue);
  border: 1px solid var(--vip-white);
}

.auth-signin-button:hover {
  background: var(--vip-blue-tint);
}

.auth-signout-button {
  background: transparent;
  color: var(--vip-white);
  border: 1px solid rgba(255, 255, 255, .45);
}

.auth-signout-button:hover {
  background: rgba(255, 255, 255, .15);
}

.tab-row {
  display: flex;
  gap: 8px;
}

.tab-button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  background: transparent;
  color: var(--vip-white);
  border: 1px solid rgba(255, 255, 255, .45);
}

.tab-button.is-active {
  background: var(--vip-white);
  color: var(--vip-blue);
  border: 1px solid var(--vip-white);
}

.header-link {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.header-link:hover {
  color: var(--vip-white);
  border-color: var(--vip-white);
}

/* Main */
main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 44px 32px 56px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.view { display: none; }
.view.is-active { display: flex; }

/* Section heading */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading .bar {
  width: 34px;
  height: 15px;
  background: var(--vip-blue);
  flex: 0 0 auto;
}

.section-heading h1 { font-size: var(--fs-h2); }

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 0 46px;
}

/* Apps view */
.apps-view {
  flex-direction: column;
  gap: 26px;
  flex: 1;
  min-height: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--vip-white);
  border: 1px solid var(--vip-gray-light);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  color: var(--text-body);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

button.card {
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.card:hover {
  border-color: var(--vip-blue);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--vip-blue-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--vip-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h2 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--vip-gray-light);
  font-weight: 700;
  font-size: 14px;
  color: var(--vip-blue);
}

/* Idea CTA band */
.idea-cta {
  margin-top: auto;
  background: var(--vip-gray-faint);
  border: 1px solid var(--vip-gray-light);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.idea-cta h2 {
  font-size: var(--fs-h3);
  color: var(--vip-navy);
}

.idea-cta .button-primary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--vip-blue);
  color: var(--vip-white);
  border: 2px solid var(--vip-blue);
  text-decoration: none;
  transition: background 150ms ease;
}

.idea-cta .button-primary:hover {
  background: var(--vip-blue-dark);
}

/* Status view */
.status-view {
  flex-direction: column;
  gap: 24px;
}

.status-panel {
  border: 1px solid var(--vip-gray-light);
}

.status-summary {
  background: var(--vip-blue-tint);
  border-bottom: 1px solid var(--vip-gray-light);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-summary .summary-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--vip-navy);
}

.status-summary .summary-checked {
  font-size: 13px;
  color: var(--text-muted);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--vip-gray-light);
  flex-wrap: wrap;
}

.status-row:last-of-type { border-bottom: none; }

.status-name-col {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.status-name-col .status-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--vip-navy);
}

.status-name-col .status-note {
  font-size: 13px;
  color: var(--vip-gray);
}

.uptime-strip {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 26px;
}

.uptime-strip .bar {
  width: 6px;
  height: 24px;
  background: var(--vip-blue);
  opacity: .75;
}

.uptime-strip .bar.is-down {
  background: var(--vip-amber);
  opacity: 1;
}

.uptime-figure {
  width: 92px;
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  color: var(--vip-blue);
}

.status-footer {
  padding: 14px 22px;
  font-size: 13px;
  color: var(--vip-gray);
}

.status-footer a {
  color: var(--vip-blue);
  text-decoration: underline;
  transition: color 150ms ease;
}

.status-footer a:hover { color: var(--vip-blue-dark); }

/* Footer */
.site-footer {
  background: var(--vip-navy);
  margin-top: auto;
  flex: 0 0 auto;
}

.site-footer .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

.site-footer a {
  color: var(--vip-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  transition: border-color 150ms ease;
}

.site-footer a:hover { border-color: var(--vip-white); }
