:root {
  --ink: #1d2724;
  --muted: #5f6f6a;
  --paper: #fbfcf9;
  --surface: #ffffff;
  --line: #dce4df;
  --green: #173f3a;
  --green-soft: #dff2e8;
  --gold: #f5c76b;
  --coral: #e86f55;
  --plum: #513d63;
  --sky: #5ab8c8;
  --shadow: 0 18px 50px rgba(29, 39, 36, 0.13);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(calc(-100% - 24px));
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

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

.skip-link[data-audit-hidden="true"] {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(220, 228, 223, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--gold);
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: #31403c;
  font-weight: 650;
  font-size: 0.94rem;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.section,
.section-tight,
.page-hero,
.legal-page {
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.section > *,
.section-tight > *,
.page-hero > *,
.legal-page > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-tight {
  padding-top: 70px;
  padding-bottom: 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.hero > * {
  max-width: none;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.panel-label,
.card-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 0.98;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-subhead,
.page-hero p,
.section-heading p,
.contact-copy p {
  color: #485954;
  font-size: 1.08rem;
  max-width: 760px;
}

.hero-subhead {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.34;
  margin-bottom: 28px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 63, 58, 0.18);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button-light {
  background: #fff;
  color: var(--green);
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  outline: 3px solid rgba(90, 184, 200, 0.35);
}

.signal-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #394a45;
}

.signal-list li,
.check-list span {
  position: relative;
  padding-left: 28px;
}

.signal-list li::before,
.check-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  transform: rotate(-45deg);
}

.hero-visual {
  min-width: 0;
}

.product-frame {
  border: 1px solid rgba(23, 63, 58, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(223, 242, 232, 0.78)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.frame-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.frame-top span:nth-child(2) {
  background: var(--gold);
}

.frame-top span:nth-child(3) {
  background: var(--sky);
}

.screen-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  grid-auto-rows: minmax(150px, auto);
  gap: 14px;
  padding: clamp(16px, 3vw, 26px);
}

.score-panel,
.mini-chart,
.risk-map,
.explain-panel {
  border: 1px solid rgba(220, 228, 223, 0.92);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 18px;
  min-height: 154px;
}

.score-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-panel strong {
  color: var(--green);
  font-size: 4rem;
  line-height: 1;
}

.score-panel small,
.metric-card span,
.price span {
  color: var(--muted);
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
}

.mini-chart span {
  min-height: 34px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--sky), var(--green));
}

.risk-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.risk-map span {
  min-height: 32px;
  border-radius: 5px;
  background: var(--green-soft);
}

.risk-map span:nth-child(3n) {
  background: rgba(245, 199, 107, 0.8);
}

.risk-map span:nth-child(4n) {
  background: rgba(232, 111, 85, 0.72);
}

.explain-panel {
  background: var(--green);
  color: #fff;
}

.explain-panel .panel-label {
  color: var(--gold);
}

.explain-panel p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.metrics-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics-strip div {
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 4px;
}

.metrics-strip strong {
  color: var(--green);
}

.metrics-strip span {
  color: var(--muted);
  font-size: 0.93rem;
}

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

.section-heading h2 {
  max-width: 880px;
}

.band-neutral {
  background: #eef5ef;
}

.band-deep {
  background:
    linear-gradient(135deg, rgba(23, 63, 58, 0.96), rgba(81, 61, 99, 0.94)),
    var(--green);
  color: #fff;
}

.band-deep .eyebrow,
.band-deep .section-heading p,
.band-deep .card p,
.band-deep .card-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.analysis-lab {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

.lab-controls,
.lab-results,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(29, 39, 36, 0.08);
}

.lab-controls,
.lab-results {
  padding: clamp(18px, 3vw, 28px);
}

.lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.lab-header h3 {
  margin: 4px 0 0;
}

.lab-header.compact {
  margin-bottom: 12px;
}

.icon-button {
  width: 48px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 850;
}

.holding-controls {
  display: grid;
  gap: 18px;
}

.holding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
}

.holding-row label {
  display: grid;
  gap: 6px;
}

.holding-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #344640;
  font-size: 0.93rem;
  font-weight: 720;
}

.holding-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.holding-row input[type="number"] {
  width: 76px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: right;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 22px 0 0;
}

.result-topline {
  display: grid;
  grid-template-columns: 1fr 156px;
  align-items: center;
  gap: 20px;
}

.result-topline strong {
  display: block;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--green);
}

.result-topline small {
  color: var(--muted);
  font-weight: 740;
}

.donut-wrap {
  display: grid;
  place-items: center;
}

.allocation-donut {
  width: 146px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 45%, var(--gold) 45% 66%, var(--sky) 66% 88%, var(--coral) 88% 100%);
  position: relative;
}

.allocation-donut::after {
  content: "100%";
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-weight: 850;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 8px;
  min-height: 108px;
}

.metric-card strong {
  font-size: 1.55rem;
  color: var(--plum);
}

.scenario-bars {
  display: grid;
  gap: 10px;
}

.scenario-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 12px;
  color: #344640;
  font-size: 0.94rem;
}

.bar-track {
  height: 14px;
  background: #edf3ef;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  width: var(--bar-width);
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: inherit;
}

.ai-findings {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid var(--line);
}

.ai-findings ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.ai-findings li + li {
  margin-top: 8px;
}

.cards {
  display: grid;
  gap: 16px;
}

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

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

.card,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.card p,
.price-card p,
.timeline-item p,
.process-step span {
  color: var(--muted);
}

.contrast .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.contrast .card h3,
.contrast .budget {
  color: #fff;
}

.budget {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.process-list,
.check-list {
  display: grid;
  gap: 12px;
}

.workflow-panel {
  display: grid;
  gap: 20px;
}

.process-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.process-step strong {
  color: var(--coral);
}

.snapshot-figure {
  margin: 6px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 36, 0.08);
}

.snapshot-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 850;
}

.snapshot-figure figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.check-list span {
  min-height: 34px;
  color: #394a45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card.featured {
  border-color: rgba(23, 63, 58, 0.45);
  box-shadow: var(--shadow);
}

.price {
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--green);
  font-weight: 850;
  margin-bottom: 12px;
}

.price span {
  font-size: 0.95rem;
  font-weight: 650;
}

.price-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.price-card li + li {
  margin-top: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline-item {
  border-left: 4px solid var(--coral);
  padding: 6px 0 0 18px;
}

.timeline-item span {
  display: inline-block;
  color: var(--green);
  font-weight: 850;
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-section > * {
  max-width: none;
}

.contact-form {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #31403c;
  font-weight: 760;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(90, 184, 200, 0.35);
  border-color: var(--sky);
}

.form-status {
  min-height: 24px;
  color: var(--green);
  margin: 0;
}

.page-hero {
  padding-top: 82px;
  padding-bottom: 62px;
  background:
    linear-gradient(135deg, rgba(223, 242, 232, 0.74), rgba(255, 255, 255, 0.62)),
    var(--paper);
}

.page-hero h1 {
  max-width: 940px;
}

.architecture-map {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  align-items: stretch;
  gap: 10px;
}

.arch-column {
  min-height: 220px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.arch-column strong {
  color: var(--green);
  margin-bottom: 8px;
}

.arch-column span {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.arch-arrow {
  position: relative;
  min-height: 36px;
}

.arch-arrow::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  border-top: 2px solid var(--coral);
}

.arch-arrow::after {
  content: "";
  position: absolute;
  right: 3px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--coral);
  border-top: 2px solid var(--coral);
  transform: rotate(45deg);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  background: #f3f8f4;
  color: var(--green);
}

tr:last-child td {
  border-bottom: 0;
}

.legal-page {
  max-width: 930px;
  padding-top: 82px;
  padding-bottom: 88px;
}

.legal-page h1 {
  max-width: none;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 34px;
}

.legal-page p {
  color: #485954;
}

.site-footer {
  padding: 42px clamp(20px, 5vw, 64px);
  background: #17231f;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.site-footer > * {
  max-width: 1180px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 12px 0 0;
}

.footer-brand .brand-mark {
  background: #fff;
  color: var(--green);
}

.footer-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  max-width: 520px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
  text-decoration: underline;
}

.fine-print {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .analysis-lab,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .cards.three,
  .cards.four,
  .pricing-grid,
  .timeline,
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .arch-arrow {
    min-height: 34px;
  }

  .arch-arrow::before {
    left: 50%;
    right: auto;
    top: 2px;
    bottom: 2px;
    border-top: 0;
    border-left: 2px solid var(--coral);
  }

  .arch-arrow::after {
    top: auto;
    bottom: 4px;
    right: calc(50% - 7px);
    transform: rotate(135deg);
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-tight,
  .page-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .screen-grid,
  .cards.three,
  .cards.four,
  .pricing-grid,
  .timeline,
  .metrics-strip,
  .result-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .result-topline {
    grid-template-columns: 1fr;
  }

  .scenario-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
