:root {
  --ink: #17313a;
  --muted: #5f7278;
  --paper: #f8f4ea;
  --surface: #ffffff;
  --teal: #006b68;
  --teal-dark: #064b4c;
  --gold: #c88928;
  --coral: #bd4b3d;
  --line: #d7ddd8;
  --shadow: 0 18px 45px rgba(23, 49, 58, 0.14);
  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, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--teal);
  border-radius: 6px;
  font-weight: 800;
}

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

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #27474f;
  font-weight: 650;
}

.primary-nav a { padding: 10px 2px; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav a:focus-visible { border-color: var(--gold); }

.header-actions, .hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.solid-button, .outline-button, .ghost-button, .product-card button, .business-list button, .filter, .document-list button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 750;
}

.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.solid-button:hover { background: var(--teal-dark); }
.outline-button { color: white; border-color: rgba(255,255,255,0.82); background: rgba(0,0,0,0.12); }
.ghost-button { background: transparent; border-color: var(--line); color: var(--ink); }

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.icon-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero img, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img { object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(8, 33, 39, 0.86), rgba(8, 33, 39, 0.52) 42%, rgba(8,33,39,0.05)); }

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  color: white;
  padding-bottom: 52px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 18px;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.55;
}

.app-view {
  scroll-margin-top: 132px;
}

.portal-section {
  display: block;
  background: #ffffff;
}

.portal-section[hidden] { display: none; }

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 24px;
}

.portal-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.portal-hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.portal-summary {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: white;
  background: var(--teal-dark);
  border-radius: 8px;
}

.portal-summary span, .portal-summary small { color: rgba(255, 255, 255, 0.78); }
.portal-summary strong { font-size: 40px; }

.toast-row {
  min-height: 28px;
  margin-bottom: 16px;
  color: var(--teal-dark);
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 330px;
  padding: 22px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-card h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.status-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-badge.active { color: #0f5132; background: #d9f4e6; }
.status-badge.review { color: #744707; background: #f9e4bd; }
.status-badge.neutral { color: #294550; background: #e6edf0; }

.portal-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.portal-card dl div {
  display: grid;
  gap: 3px;
}

.portal-card dt, .document-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-card dd {
  margin: 0;
  font-weight: 750;
}

.claim-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.claim-steps li { color: var(--muted); }
.claim-steps .complete { color: var(--teal-dark); font-weight: 800; }
.claim-steps .current { color: var(--coral); font-weight: 900; }

.document-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.document-list button {
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.portal-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.portal-detail > div {
  padding: 22px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-detail h2 {
  margin-bottom: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
}

.state-list {
  display: grid;
  gap: 10px;
}

.state-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.state-item small, .state-item span {
  color: var(--muted);
}

.buttonlike {
  font: inherit;
}

.empty-state {
  padding: 14px;
  color: var(--muted);
  background: white;
  border: 1px dashed #b8c4c1;
  border-radius: 8px;
}

.quick-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -70px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-actions a {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.quick-actions a:last-child { border-right: 0; }
.quick-actions strong { font-size: 20px; }
.quick-actions span { color: var(--muted); line-height: 1.45; }
.quick-actions a:hover { background: #eef6f2; }

.section {
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 { margin: 0; font-size: 22px; }
p { line-height: 1.6; }

.quote-section { background: #ffffff; }
.quote-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1080px;
}

.tabs {
  display: grid;
  gap: 8px;
}

.tab {
  min-height: 54px;
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 6px;
  background: #f8fbf9;
  text-align: left;
  padding: 0 18px;
  font-weight: 800;
}

.tab.active {
  border-left-color: var(--coral);
  background: #fff7f3;
}

.wizard-card, .form-card, .workflow-grid, .mini-form, .agent-search {
  display: grid;
  gap: 18px;
  padding: 26px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wizard-card {
  max-width: 1080px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-steps li {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.wizard-steps li.active {
  color: var(--ink);
  border-color: var(--coral);
  background: #fff7f3;
}

.wizard-steps li.complete {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.wizard-panel {
  display: grid;
  gap: 18px;
}

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

.choice-grid label, .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice-grid input, .check-row input {
  width: auto;
  min-height: auto;
}

.form-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card.compact {
  padding: 0;
  background: transparent;
  border: 0;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.validation-box {
  display: grid;
  gap: 6px;
  color: var(--coral);
  font-weight: 800;
}

.validation-box p { margin: 0; }

.review-box {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.review-box dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-box dd {
  margin: 0;
  font-weight: 750;
}

label {
  display: grid;
  gap: 7px;
  color: #27474f;
  font-weight: 750;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b8c4c1;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

textarea { resize: vertical; }
.form-result { margin: 0; color: var(--teal-dark); font-weight: 800; }
.full { grid-column: 1 / -1; }
.error-text { color: var(--coral); }

.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 3px solid #bdd5cf;
  border-top-color: var(--teal);
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.product-band { background: #eef2ec; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card span {
  color: var(--coral);
  font-weight: 900;
}

.product-card p { color: var(--muted); margin: 0; }
.product-card button, .business-list button, .filter { background: white; border-color: var(--line); color: var(--ink); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: center;
  background: var(--teal-dark);
  color: white;
}

.split-section p { color: rgba(255,255,255,0.84); }
.business-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.business-list button {
  min-height: 88px;
  text-align: left;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: white;
}

.claims-section { background: white; }
.claims-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.workflow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.tracker-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.claim-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.claim-detail p { margin: 0; color: var(--muted); }

.billing-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
  gap: 44px;
  align-items: start;
  background: #f2eadb;
}

.mini-form { background: white; }

.agent-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
  background: #ffffff;
}

.agent-search { background: #f8fbf9; }
.agent-results {
  grid-column: 2;
  display: grid;
  gap: 12px;
}

.agent-result {
  padding: 16px;
  background: #eef6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resources-section { background: #f7f8f4; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter.active { background: var(--teal); color: white; border-color: var(--teal); }
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-list article {
  min-height: 150px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  color: white;
  background: #17313a;
}

.site-footer p { margin-bottom: 0; color: rgba(255,255,255,0.74); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.modal {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(520px, calc(100% - 32px));
  box-shadow: var(--shadow);
}

.modal::backdrop { background: rgba(10, 31, 38, 0.55); }
.modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.search-results {
  display: grid;
  gap: 10px;
  min-height: 90px;
}

.search-results a {
  padding: 12px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (max-width: 1320px) {
  .site-header { grid-template-columns: auto auto; }
  .icon-button { display: block; justify-self: end; }
  .primary-nav, .header-actions {
    display: none;
    grid-column: 1 / -1;
  }
  .primary-nav.open, .header-actions.open { display: grid; justify-content: stretch; }
  .primary-nav.open { gap: 4px; }
  .header-actions.open { grid-template-columns: 1fr; }
  .quick-actions, .product-grid, .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-shell, .split-section, .billing-panel, .agent-section, .portal-hero, .claims-layout, .portal-detail { grid-template-columns: 1fr; }
  .agent-results { grid-column: 1; }
}

@media (max-width: 640px) {
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero { min-height: 620px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8, 33, 39, 0.9), rgba(8, 33, 39, 0.58)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .quick-actions, .form-card, .workflow-grid, .product-grid, .business-list, .faq-list, .portal-grid, .wizard-steps, .choice-grid, .review-box dl { grid-template-columns: 1fr; }
  .quick-actions a { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { display: grid; }
}
