:root {
  --ink: #0b2236;
  --ink-soft: #4d6070;
  --navy: #071b2b;
  --navy-2: #0c2a41;
  --sky: #dff4fb;
  --sky-strong: #98d8ee;
  --teal: #0d8892;
  --teal-dark: #06646c;
  --lime: #c8ef74;
  --gold: #f7c75a;
  --paper: #f5f7f8;
  --white: #ffffff;
  --line: #dbe2e7;
  --line-dark: #bfd0da;
  --positive: #087a55;
  --shadow: 0 18px 50px rgba(7, 27, 43, 0.09);
  --radius-lg: 26px;
  --radius-md: 17px;
  --radius-sm: 11px;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(13, 136, 146, 0.34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(20px, 4vw, 64px);
  color: var(--white);
  background: rgba(7, 27, 43, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.brand strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #aabac6;
  font-size: 11px;
}

.main-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.nav-button {
  padding: 10px 17px;
  color: #b8c6cf;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.nav-button:hover {
  color: var(--white);
}

.nav-button.is-active {
  color: var(--navy);
  background: var(--white);
}

.price-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d4db;
  font-size: 12px;
  font-weight: 700;
}

.price-badge i {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(200, 239, 116, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  min-height: 520px;
  padding: 72px max(5vw, calc((100vw - var(--max-width)) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 10% 95%, rgba(13, 136, 146, 0.45), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(152, 216, 238, 0.13), transparent 28%),
    linear-gradient(145deg, var(--navy), #0a2a40 62%, #0b3448);
}

.hero::before {
  position: absolute;
  top: -34%;
  right: 29%;
  width: 1px;
  height: 170%;
  content: "";
  background: rgba(255, 255, 255, 0.09);
  transform: rotate(26deg);
}

.hero::after {
  position: absolute;
  right: -110px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.025), 0 0 0 104px rgba(255, 255, 255, 0.018);
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-lede {
  max-width: 670px;
  margin: 28px 0 0;
  color: #c3d0d8;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.primary-button,
.text-button,
.icon-button,
.clear-button {
  border: 0;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 12px;
  font-weight: 850;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.17);
}

.primary-button:hover {
  background: #d4f68a;
  transform: translateY(-1px);
}

.text-button {
  padding: 10px 0;
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 750;
}

.hero-card {
  justify-self: end;
  width: min(100%, 440px);
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.live-pill {
  padding: 6px 9px;
  color: var(--positive);
  background: #e0f6ec;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card-number {
  margin: 27px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero-card-label {
  margin: 10px 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coverage-grid div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.coverage-grid strong,
.coverage-grid span {
  display: block;
}

.coverage-grid strong {
  font-size: 26px;
}

.coverage-grid span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

.source-note {
  margin: 16px 0 0;
  color: #7c8b96;
  font-size: 10px;
}

.workspace {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 76px 0 90px;
  scroll-margin-top: 70px;
}

.view-section:not(.is-active) {
  display: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.48fr);
  gap: 22px;
  align-items: start;
}

.control-panel,
.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.control-panel {
  position: sticky;
  top: 98px;
  padding: 27px;
}

.panel-kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.panel-kicker > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.panel-kicker h3,
.panel-kicker p {
  margin: 0;
}

.panel-kicker h3 {
  font-size: 17px;
}

.panel-kicker p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.field-group {
  margin-top: 22px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field-group small {
  display: block;
  margin-top: 7px;
  color: #7c8b96;
  font-size: 10px;
}

.select-shell {
  position: relative;
}

.select-shell select {
  width: 100%;
  min-height: 49px;
  padding: 0 42px 0 13px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  appearance: none;
  font-size: 14px;
  font-weight: 720;
}

.select-shell > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ink-soft);
  pointer-events: none;
  transform: translateY(-54%);
}

.range-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.range-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 49px;
  color: var(--teal);
}

.selection-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 13px;
  color: #456270;
  background: var(--sky);
  border-radius: var(--radius-sm);
}

.selection-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.note-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
}

.benefit-card {
  display: flex;
  gap: 13px;
  margin-top: 15px;
  padding: 16px;
  color: #69521c;
  background: #fff9e8;
  border: 1px dashed #dfc779;
  border-radius: var(--radius-sm);
}

.benefit-card.is-earned {
  color: #215a3e;
  background: #edfaef;
  border-color: #8bcda2;
}

.benefit-icon {
  flex: 0 0 auto;
  color: #c28a09;
  font-size: 22px;
}

.benefit-card.is-earned .benefit-icon {
  color: var(--positive);
}

.benefit-card small,
.benefit-card strong,
.benefit-card p {
  display: block;
  margin: 0;
}

.benefit-card small {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.benefit-card strong {
  font-size: 13px;
}

.benefit-card p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
}

.quote-panel {
  overflow: hidden;
}

.quote-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 27px 30px;
  border-bottom: 1px solid var(--line);
}

.quote-heading h3,
.quote-heading p {
  margin: 0;
}

.quote-heading h3 {
  font-size: 23px;
  line-height: 1.15;
}

.quote-heading #quoteSubtitle {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.quote-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 37px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--line-dark);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  padding: 22px 24px;
  background: #f8fafb;
}

.metric-card {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

.metric-card span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-card strong {
  overflow: hidden;
  margin-top: 9px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  margin-top: 8px;
  color: #84919a;
  font-size: 9px;
}

.metric-primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.metric-primary span,
.metric-primary small {
  color: #b8c8d2;
}

.metric-savings {
  color: var(--positive);
  background: #effaf4;
  border-color: #b7dfc8;
}

.table-wrap {
  overflow-x: auto;
  padding: 6px 30px 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 14px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: #7b8b96;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td:first-child {
  min-width: 210px;
}

.visit-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--sky-strong);
  border-radius: 50%;
}

.positive {
  color: var(--positive);
  font-weight: 750;
}

.quote-remark {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 30px 0;
  padding: 13px 16px;
  color: #215a3e;
  background: #edfaef;
  border: 1px solid #b7dfc8;
  border-radius: 11px;
}

.quote-remark p {
  margin: 0;
  font-size: 11px;
}

.quote-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px 24px;
  color: #86949c;
  font-size: 9px;
}

.quote-footer p {
  margin: 0;
}

.catalogue-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(230px, 0.35fr);
  gap: 12px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(7, 27, 43, 0.05);
}

.search-field {
  position: relative;
}

.search-field > span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--ink-soft);
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 44px;
  color: var(--ink);
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.search-field input::placeholder {
  color: #89969f;
}

.source-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f0f3f5;
  border-radius: 10px;
}

.filter-button {
  min-width: 64px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.filter-button.is-active {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(7, 27, 43, 0.17);
}

.category-shell select {
  min-height: 48px;
}

.catalogue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 2px 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.catalogue-meta p {
  margin: 0;
}

.clear-button {
  padding: 6px 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(7, 27, 43, 0.04);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: var(--sky-strong);
  box-shadow: 0 16px 36px rgba(7, 27, 43, 0.09);
  transform: translateY(-2px);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.source-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-internal {
  color: var(--teal-dark);
  background: var(--sky);
}

.source-3m {
  color: #8b4c00;
  background: #fff1c8;
}

.category-label {
  overflow: hidden;
  color: #7b8993;
  font-size: 9px;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card h3 {
  margin: 18px 0 22px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.service-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

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

.service-card-bottom small {
  color: #83919a;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-card-bottom strong {
  margin-top: 5px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.incentive {
  text-align: right;
}

.incentive span {
  margin-top: 5px;
  color: var(--positive);
  font-size: 12px;
  font-weight: 750;
}

.empty-state {
  padding: 80px 20px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-lg);
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: var(--teal);
  background: var(--sky);
  border-radius: 50%;
  font-size: 25px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.updater-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.updater-card,
.active-price-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.updater-card {
  padding: 27px;
}

.drop-zone {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 24px;
  padding: 42px 22px;
  text-align: center;
  background: #f8fbfc;
  border: 2px dashed var(--line-dark);
  border-radius: 17px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  background: var(--sky);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.file-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 17px;
  color: var(--white);
  background: var(--positive);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 25px rgba(8, 122, 85, 0.2);
}

.drop-zone strong,
.drop-zone span,
.drop-zone em {
  display: block;
}

.drop-zone strong {
  font-size: 15px;
}

.drop-zone > span:not(.file-mark) {
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
}

.drop-zone em {
  margin-top: 12px;
  color: #86949c;
  font-size: 10px;
  font-style: normal;
}

.selected-file {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  color: #215a3e;
  background: #edfaef;
  border: 1px solid #b7dfc8;
  border-radius: 11px;
}

.selected-file > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--positive);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

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

.selected-file strong {
  overflow: hidden;
  max-width: 280px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file small {
  margin-top: 2px;
  color: #54816a;
  font-size: 9px;
}

.required-sheets {
  margin-top: 22px;
}

.required-sheets > small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.required-sheets > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.required-sheets span {
  padding: 6px 9px;
  color: #526975;
  background: #f0f4f6;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 13px;
  background: #fff9e8;
  border-radius: 11px;
}

.privacy-note > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--white);
  background: #b58414;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
}

.privacy-note p {
  margin: 0;
  color: #69521c;
  font-size: 10px;
  line-height: 1.5;
}

.review-panel {
  min-height: 540px;
}

.updater-empty {
  display: grid;
  place-items: center;
  min-height: 350px;
  padding: 40px 20px;
  text-align: center;
}

.updater-empty > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: var(--teal);
  background: var(--sky);
  border-radius: 50%;
  font-size: 24px;
}

.updater-empty h3,
.updater-empty p {
  margin: 0;
}

.updater-empty h3 {
  font-size: 16px;
}

.updater-empty p {
  max-width: 360px;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.processing-state {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 350px;
  justify-content: center;
  text-align: left;
}

.processing-state strong,
.processing-state p {
  display: block;
  margin: 0;
}

.processing-state p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.processing-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--sky);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: updater-spin 800ms linear infinite;
}

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

.update-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 22px;
}

.update-summary > div {
  padding: 14px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.update-summary span,
.update-summary strong {
  display: block;
}

.update-summary span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.update-summary strong {
  margin-top: 7px;
  font-size: 23px;
}

.update-summary .summary-highlight {
  color: var(--positive);
  background: #edfaef;
  border-color: #b7dfc8;
}

.validation-banner,
.validation-error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
}

.validation-banner {
  color: #215a3e;
  background: #edfaef;
  border: 1px solid #b7dfc8;
}

.validation-banner.has-warnings {
  color: #69521c;
  background: #fff9e8;
  border-color: #dfc779;
}

.validation-banner > span,
.validation-error > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.validation-banner > span {
  background: var(--positive);
}

.validation-banner.has-warnings > span {
  background: #b58414;
}

.validation-banner strong,
.validation-banner p,
.validation-error strong,
.validation-error p {
  display: block;
  margin: 0;
}

.validation-banner strong,
.validation-error strong {
  font-size: 12px;
}

.validation-banner p,
.validation-error p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.5;
}

.validation-error {
  color: #7a2830;
  background: #fff0f1;
  border: 1px solid #efbdc1;
}

.validation-error > span {
  background: #bd3d49;
}

.change-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-top: 24px;
}

.change-list-heading h3,
.change-list-heading p {
  margin: 0;
}

.change-list-heading h3 {
  font-size: 15px;
}

.change-list-heading p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.change-list-heading > span {
  color: #71818c;
  font-size: 9px;
  font-weight: 750;
}

.update-table-wrap {
  max-height: 310px;
  margin-top: 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.update-table-wrap thead {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f6f8f9;
}

.update-table-wrap th,
.update-table-wrap td {
  padding: 11px 9px;
  font-size: 10px;
}

.update-table-wrap td:first-child {
  min-width: 90px;
}

.update-table-wrap td:nth-child(2) {
  min-width: 180px;
  white-space: normal;
}

.change-type {
  display: inline-flex;
  padding: 4px 7px;
  color: var(--teal-dark);
  background: var(--sky);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}

.change-new {
  color: var(--positive);
  font-weight: 800;
}

.change-removed {
  color: #a33b45;
  font-weight: 800;
}

.no-changes {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
  padding: 15px;
  color: #215a3e;
  background: #edfaef;
  border-radius: 11px;
}

.no-changes p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
}

.update-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.secondary-button {
  padding: 13px 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}

.secondary-button:hover {
  background: #f4f7f8;
}

.deployment-note {
  margin: 12px 0 0;
  color: #7c8b96;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.active-price-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding: 23px 27px;
}

.active-price-panel h3,
.active-price-panel p {
  margin: 0;
}

.active-price-panel h3 {
  font-size: 17px;
}

.active-price-panel > div > p:last-child {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px max(5vw, calc((100vw - var(--max-width)) / 2));
  color: #aebfc9;
  background: var(--navy);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  padding: 13px 17px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  box-shadow: 0 14px 36px rgba(7, 27, 43, 0.25);
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
    gap: 44px;
  }

  .calculator-layout {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .catalogue-toolbar {
    grid-template-columns: 1fr auto;
  }

  .update-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-shell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    z-index: 60;
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: center;
    background: rgba(7, 27, 43, 0.96);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 15px 40px rgba(7, 27, 43, 0.28);
    backdrop-filter: blur(16px);
  }

  .nav-button {
    flex: 1;
  }

  .price-badge {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-card {
    justify-self: stretch;
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .updater-layout {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

  .site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-button {
    align-self: flex-start;
  }

  .hero-card {
    padding: 22px;
  }

  .workspace {
    width: min(calc(100% - 24px), var(--max-width));
    padding: 58px 0 76px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .control-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .updater-card {
    padding: 20px;
    border-radius: 20px;
  }

  .drop-zone {
    padding: 32px 16px;
  }

  .update-summary {
    grid-template-columns: 1fr 1fr;
  }

  .update-actions,
  .active-price-panel {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .update-actions button {
    justify-content: center;
    width: 100%;
  }

  .deployment-note {
    text-align: left;
  }

  .range-fields {
    grid-template-columns: 1fr;
  }

  .range-arrow {
    display: none;
  }

  .quote-panel {
    border-radius: 20px;
  }

  .quote-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 20px;
  }

  .quote-actions {
    width: 100%;
  }

  .icon-button {
    flex: 1;
    justify-content: center;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    padding: 15px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-card strong {
    font-size: 20px;
  }

  .table-wrap {
    padding: 6px 16px 8px;
  }

  .quote-remark {
    margin-inline: 16px;
  }

  .quote-footer {
    flex-direction: column;
    padding: 18px 20px 22px;
  }

  .catalogue-toolbar {
    grid-template-columns: 1fr;
  }

  .category-shell {
    grid-column: auto;
  }

  .source-tabs {
    min-height: 48px;
  }

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

  .service-card {
    min-height: 168px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .toast {
    right: 16px;
    bottom: 82px;
    left: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: var(--white);
  }

  .site-header,
  .hero,
  .section-heading,
  .control-panel,
  .no-print,
  .site-footer,
  .toast {
    display: none !important;
  }

  .workspace {
    width: 100%;
    padding: 0;
  }

  #catalogueView {
    display: none !important;
  }

  #calculatorView,
  .calculator-layout,
  .quote-panel {
    display: block !important;
  }

  .quote-panel {
    border: 0;
    box-shadow: none;
  }

  .quote-heading {
    padding-inline: 0;
  }

  .metric-grid {
    padding-inline: 0;
    print-color-adjust: exact;
  }

  .table-wrap {
    overflow: visible;
    padding-inline: 0;
  }

  .quote-remark,
  .metric-primary,
  .metric-savings {
    print-color-adjust: exact;
  }

  .quote-footer {
    padding-inline: 0;
  }
}
