:root {
  --bg: #f5f6f8;
  --text: #1a1b1f;
  --muted: #5b5f66;
  --accent: #0078d4;
  --accent-strong: #005a9e;
  --panel: #ffffff;
  --panel-alt: #f9fafb;
  --border: #d5d8dd;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.header-links {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

main {
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
  cursor: not-allowed;
}

.cta:focus,
.cta:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-header img {
  width: 40px;
  height: 40px;
}

.status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: #e6f2fb;
  color: #0a4b7a;
}

.status-muted {
  background: #ececec;
  color: #6b6f75;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
}

.card-link.muted {
  color: var(--muted);
}

.is-disabled {
  opacity: 0.6;
  filter: grayscale(100%);
}

.portal-note {
  background: #ffffff;
}

.portal-note h2 {
  margin-top: 0;
}

.portal-note p {
  margin: 0;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 22px;
  width: auto;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
