:root {
  --ink: #132029;
  --muted: #63717c;
  --paper: #f4f7f6;
  --panel: #ffffff;
  --line: #dce5e1;
  --blue: #1466a3;
  --cyan: #19a7b8;
  --green: #15845a;
  --amber: #ad6b00;
  --navy: #102c40;
  --shadow: 0 20px 60px rgba(19, 32, 41, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(244, 247, 246, 0.9);
  border-bottom: 1px solid rgba(19, 32, 41, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, var(--blue), var(--cyan));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.icon-button::before {
  content: "";
  position: absolute;
  inset: 11px 9px;
  border: 2px solid var(--blue);
  border-radius: 6px;
}

.icon-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--amber);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.portal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 71px);
  border-bottom: 1px solid var(--line);
}

.sidebar {
  padding: 28px 18px;
  background: #0f2535;
  color: #dceef4;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #07303a;
  background: #bfeef4;
  border-radius: 8px;
  font-weight: 900;
}

.profile strong,
.profile span {
  display: block;
}

.profile span {
  color: rgba(220, 238, 244, 0.7);
  font-size: 13px;
}

.side-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(220, 238, 244, 0.78);
  font-weight: 750;
}

.side-link.active,
.side-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard {
  padding: clamp(22px, 4vw, 48px);
}

.dashboard-head,
.section-head,
.panel-head,
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.trust-chip,
.pill,
.small-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.trust-chip {
  gap: 8px;
  padding: 0 12px;
  color: #0e533c;
  background: #e2f6ef;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.status-card,
.panel,
.service-grid article,
.quote-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-card {
  min-height: 250px;
  padding: 22px;
}

.primary-card {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 102, 163, 0.95), rgba(16, 44, 64, 0.96)),
    var(--navy);
  border-color: transparent;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-card .label,
.primary-card p {
  color: rgba(255, 255, 255, 0.74);
}

.pill {
  padding: 0 10px;
}

.good {
  color: #0f6848;
  background: #dff5ec;
}

.warn {
  color: #7a4b00;
  background: #fff1d6;
}

.neutral {
  color: #205778;
  background: #e6f2fb;
}

.status-card h2 {
  margin: 34px 0 10px;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.05;
}

.status-card p,
.section p,
.service-grid p,
.contact p {
  color: var(--muted);
  line-height: 1.55;
}

.primary-card p {
  color: rgba(255, 255, 255, 0.76);
}

.status-card button,
.quote-form button {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.primary-card button {
  color: var(--ink);
  background: #ffffff;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 22px;
  box-shadow: none;
}

.panel h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.small-button {
  padding: 0 14px;
  color: var(--blue);
  background: #eef7fb;
  border: 1px solid #cce7f2;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.file-list a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-icon,
.service-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

.file-icon {
  width: 50px;
  height: 50px;
  color: #115476;
  background: #e7f5fa;
  font-size: 12px;
}

.file-list strong,
.file-list small {
  display: block;
}

.file-list small {
  margin-top: 3px;
  color: var(--muted);
}

.file-list em {
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.payment-card {
  margin-top: 20px;
  padding: 20px;
  color: #fff;
  background: #132029;
  border-radius: 8px;
}

.payment-card span,
.payment-card small,
.payment-card strong {
  display: block;
}

.payment-card strong {
  margin: 10px 0 4px;
  font-size: 42px;
  line-height: 1;
}

.payment-card small {
  color: rgba(255, 255, 255, 0.7);
}

.pay-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.pay-options button {
  min-height: 44px;
  color: var(--ink);
  background: #f5faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.section,
.contact {
  padding: clamp(54px, 8vw, 104px) clamp(16px, 4vw, 48px);
}

.signature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  background: #ffffff;
}

.section h2,
.contact h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

.signature-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signature-flow article {
  min-height: 210px;
  padding: 18px;
  background: #f4f7f6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signature-flow span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 42px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.signature-flow strong,
.signature-flow small {
  display: block;
}

.signature-flow small {
  margin-top: 8px;
  color: var(--muted);
}

.coverage {
  background: #eef3f1;
}

.coverage-table {
  max-width: 980px;
  margin-top: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coverage-table > div {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1fr;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.coverage-table > div:first-child {
  border-top: 0;
}

.table-header {
  color: var(--muted);
  background: #f8fbfa;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

mark {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 850;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #fff;
}

.service-grid article {
  padding: 24px;
  box-shadow: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
}

.service-grid h3 {
  margin: 24px 0 8px;
  font-size: 24px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 37, 53, 0.96), rgba(20, 102, 163, 0.9)),
    var(--navy);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.75);
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .portal-shell,
  .signature-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
  }

  .profile {
    min-width: 210px;
    margin: 0 10px 0 0;
    padding: 0 14px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .side-link {
    min-width: max-content;
    margin: 0;
  }

  .action-grid,
  .workspace-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .dashboard-head,
  .section-head,
  .panel-head,
  .card-top {
    display: block;
  }

  .trust-chip,
  .pill {
    margin-top: 12px;
  }

  .signature-flow,
  .coverage-table > div {
    grid-template-columns: 1fr;
  }

  .file-list a {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .file-list em {
    grid-column: 2;
  }

  .payment-card strong {
    font-size: 34px;
  }
}
