:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --page: #f0f4f8;
  --white: #ffffff;
  --brand: #0ea5a3;
  --brand-dark: #0d9c97;
  --nav: #0f172a;
  --nav-hover: #1e293b;
  --warning: #b45309;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.site-nav {
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--nav);
  color: #e2e8f0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--brand);
  color: white;
  font-size: 15px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: var(--nav-hover);
  color: white;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.site-links a {
  padding: 8px 10px;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.88rem;
  text-decoration: none;
}
.site-links a:hover,
.site-links a.active {
  color: white;
  background: var(--nav-hover);
}
.container {
  width: 100%;
  flex: 1;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 24px;
}
.page-shell {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: center;
  min-height: 430px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(236, 254, 255, 0.84)),
    url("hero.png") right 34px center / 260px auto no-repeat;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3 {
  color: #1e293b;
  line-height: 1.18;
}
h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}
h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
}
h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
p { margin: 0 0 12px; }
.lead {
  max-width: 720px;
  color: #475569;
  font-size: 1.07rem;
}
.hero-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}
.metric-stack {
  display: grid;
  gap: 10px;
}
.metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
.metric label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 1.35rem;
}
.section {
  padding: 24px;
  border-top: 1px solid var(--line);
}
.section.tint {
  background: var(--panel);
  border-left: 4px solid var(--brand);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
.tool-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
}
.tool-card p {
  flex: 1;
}
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.card p,
.section p,
.list li {
  color: #475569;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--brand-dark); }
.button.secondary { background: #64748b; }
.button.secondary:hover { background: #475569; }
.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  background: #cbd5e1;
  color: #64748b;
}
.button:disabled:hover,
.button[disabled]:hover {
  background: #cbd5e1;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th {
  padding: 10px;
  background: #1e293b;
  color: white;
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: #475569;
  vertical-align: top;
}
.table tr:nth-child(even) { background: var(--panel); }
.notice {
  padding: 12px;
  border-left: 4px solid var(--warning);
  border-radius: 4px;
  background: #fff7ed;
  color: #7c2d12;
}
.notice.success {
  border-left-color: var(--brand);
  background: #ecfdf5;
  color: #065f46;
}
.form-shell {
  display: grid;
  max-width: 760px;
  gap: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.field {
  display: grid;
  gap: 5px;
}
.field label {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(14, 165, 163, 0.25);
  border-color: var(--brand);
}
.field input:disabled,
.field select:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
}
fieldset.form-grid {
  padding: 0;
  border: 0;
}
fieldset.form-grid:disabled {
  opacity: 0.65;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.auth-state {
  display: none;
}
.auth-state.visible {
  display: inline-flex;
}
.account-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.entitlement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.list {
  margin: 0;
  padding-left: 20px;
}
.list li { margin: 7px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.footer {
  margin-top: auto;
  padding: 24px;
  background: #0f172a;
  color: #cbd5e1;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 20px;
  align-items: start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.footer a {
  color: #e2e8f0;
  text-decoration: none;
}
.small {
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 820px) {
  .site-nav {
    padding: 9px 16px;
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .site-links {
    display: none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
  }
  .site-nav.open { flex-wrap: wrap; }
  .site-nav.open .site-links { display: flex; }
  .site-links a { width: 100%; }
  .container {
    margin: 0;
    padding: 0;
  }
  .page-shell { border-radius: 0; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 18px;
    background:
      linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(236, 254, 255, 0.88)),
      url("hero.png") right 12px top 18px / 130px auto no-repeat;
  }
  .section { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
