:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #64727a;
  --line: #d8e0df;
  --panel: #ffffff;
  --soft: #f4f7f5;
  --accent: #075b3b;
  --accent-dark: #003f29;
  --accent-soft: #e4f1ea;
  --gold: #c59b45;
  --steel: #52616a;
  --warning: #b85c00;
  --danger: #b43333;
  --good: #177449;
  --shadow: 0 18px 46px rgba(22, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #edf2ef;
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
}

body:has(.contact-gate:not(.hidden)) {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(216, 224, 223, 0.75);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 12px clamp(16px, 3vw, 42px);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  border-radius: 6px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-nav a {
  color: #324248;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

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

.hero {
  min-height: min(760px, calc(100vh - 68px));
  overflow: hidden;
  position: relative;
}

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

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 31, 20, 0.88) 0%, rgba(0, 63, 41, 0.72) 48%, rgba(0, 63, 41, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 42%);
}

.hero-content {
  color: #fff;
  max-width: 780px;
  padding: clamp(72px, 12vw, 150px) clamp(18px, 5vw, 72px) clamp(86px, 12vw, 130px);
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #d7f2e6;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.3vw, 5.2rem);
  line-height: 1;
  margin: 0;
  max-width: 920px;
}

.hero p:not(.eyebrow) {
  color: #edf6f1;
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  max-width: 710px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ghost-button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.site-section,
.simulator-section {
  padding: clamp(42px, 6vw, 82px) clamp(16px, 3vw, 42px);
}

.section-copy {
  max-width: 780px;
}

.section-copy h2,
.simulator-heading h2,
.contact-section h2,
.method-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
}

.intro-band {
  align-items: start;
  background: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.intro-grid,
.service-grid,
.article-grid,
.method-steps {
  display: grid;
  gap: 14px;
}

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

.intro-grid article,
.service-grid article,
.article-grid article,
.method-steps div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.intro-grid article {
  background: var(--accent-soft);
}

.intro-grid strong,
.service-grid h3,
.article-grid h3,
.method-steps strong {
  display: block;
  margin: 0 0 8px;
}

.intro-grid span,
.service-grid p,
.article-grid p,
.method-steps p,
.contact-section p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.service-grid article span,
.article-grid article span,
.method-steps span {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 14px;
}

.method-section {
  align-items: stretch;
  background: #10251f;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.method-panel {
  align-self: center;
  max-width: 680px;
}

.method-panel .eyebrow {
  color: #b7e5cf;
}

.method-panel p {
  color: #dbe8e3;
  line-height: 1.6;
}

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

.method-steps div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.method-steps p {
  color: #c7d8d1;
}

.articles-section {
  background: #f9fbfa;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.simulator-section {
  background: #edf2ef;
}

.simulator-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.simulator-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}

.contact-section {
  align-items: start;
  background: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
}

.contact-list {
  background: var(--accent-soft);
  border: 1px solid #c7dfd8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.contact-list a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  align-items: center;
  background: #071812;
  color: #dbe8e3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  padding: 20px clamp(16px, 3vw, 42px);
}

.site-footer img {
  border-radius: 6px;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.site-footer span {
  font-weight: 900;
  margin-right: auto;
}

.site-footer small {
  color: #adc3bb;
}

.topbar {
  align-items: center;
  background: linear-gradient(90deg, #ffffff 0%, #eef7f4 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px clamp(16px, 3vw, 42px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h1,
.report-header h2,
.section-heading h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.1;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  padding: 22px clamp(16px, 3vw, 42px) 42px;
}

.app-shell.is-locked {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.contact-gate {
  align-items: center;
  background: rgba(23, 33, 38, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 100;
}

.contact-gate.hidden {
  display: none;
}

.gate-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  max-height: calc(100vh - 36px);
  max-width: 560px;
  overflow: auto;
  padding: 26px;
  width: min(100%, 560px);
}

.gate-card h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
  margin: 0;
}

.gate-copy {
  color: #405158;
  line-height: 1.55;
  margin: 14px 0 18px;
}

.lead-form {
  display: grid;
  gap: 13px;
}

.gate-check {
  align-items: flex-start;
  color: #405158;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
}

.gate-check input {
  margin-top: 3px;
}

.form-status {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--good);
}

.full-button {
  width: 100%;
}

.workspace,
.report-card {
  min-width: 0;
}

.panel,
.report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  margin-bottom: 18px;
  padding: 22px;
}

.report-card {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 102px;
}

.section-heading,
.heading-inline,
.section-heading.with-action {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.with-action {
  justify-content: space-between;
}

.section-heading p {
  color: var(--muted);
  margin: 5px 0 0;
  max-width: 680px;
}

.step {
  align-items: center;
  background: #dff0eb;
  border: 1px solid #b9dcd2;
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

label {
  color: #34444a;
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 7px;
}

input,
select {
  background: #fbfdfc;
  border: 1px solid #cbd6d3;
  border-radius: 6px;
  color: var(--ink);
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 124, 111, 0.15);
  outline: none;
}

.check-row {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 14px;
}

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

.hidden {
  display: none !important;
}

.muted-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 14px;
}

.input-guide {
  align-items: flex-start;
  background: #eef7f4;
  border: 1px solid #c7dfd8;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.input-guide strong {
  color: var(--accent-dark);
}

.input-guide span {
  color: #405158;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.icon-button {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  text-decoration: none;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  background: #e3efeb;
  color: var(--accent-dark);
  padding: 0 14px;
}

.icon-button {
  background: #f6faf8;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
  height: 40px;
  width: 40px;
}

.remove-row {
  color: var(--danger);
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.data-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.data-table input {
  min-height: 36px;
}

.report-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.flow-visual {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  margin: 18px 0;
  padding: 12px;
}

.flow-node {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdcda;
  border-radius: 6px;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  text-align: center;
}

.flow-node.process {
  background: #dff0eb;
  border-color: #9fcfc4;
}

.flow-line {
  background: linear-gradient(90deg, #9bb2ae, var(--accent));
  height: 3px;
  position: relative;
}

.flow-line::after {
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--accent);
  border-top: 5px solid transparent;
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
}

.metrics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metrics-grid article {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 86px;
  padding: 13px;
}

.metrics-grid span,
.summary-list dt {
  color: var(--muted);
  display: block;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics-grid strong {
  display: block;
  font-size: 1.08rem;
  margin-top: 8px;
}

.report-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.report-section h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-list div {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.summary-list dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.purchase-plan {
  display: grid;
  gap: 10px;
}

.cost-breakdown {
  display: grid;
  gap: 8px;
}

.cost-line {
  align-items: baseline;
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 10px;
}

.cost-line span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cost-line strong {
  flex: 0 0 auto;
}

.cost-line.credit strong {
  color: var(--good);
}

.purchase-item {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 11px;
}

.purchase-item strong {
  display: block;
  margin-bottom: 6px;
}

.purchase-item p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.alerts-list {
  color: #45545a;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.alerts-list .danger {
  color: var(--danger);
  font-weight: 800;
}

.alerts-list .warning {
  color: var(--warning);
  font-weight: 800;
}

.alerts-list .good {
  color: var(--good);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .report-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .intro-band,
  .method-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .service-grid,
  .article-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .simulator-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.four,
  .grid.three,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.with-action {
    align-items: stretch;
    flex-direction: column;
  }

  .flow-visual {
    grid-template-columns: 1fr;
  }

  .flow-line {
    height: 24px;
    justify-self: center;
    width: 3px;
  }

  .flow-line::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent);
    border-bottom: 0;
    left: -3px;
    right: auto;
    top: 20px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .hero,
  .site-section,
  .simulator-heading,
  .contact-gate,
  .site-footer,
  .topbar,
  .workspace,
  .icon-button,
  .primary-button,
  .secondary-button {
    display: none !important;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .report-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
