:root {
  color-scheme: light;
  --color-ink: #1e2428;
  --color-muted: #59666f;
  --color-paper: #f7f3ea;
  --color-surface: #ffffff;
  --color-line: #d8d1c4;
  --color-accent: #0f766e;
  --color-accent-dark: #0b514c;
  --color-warn: #b45309;
  --color-soft: #edf5f3;
  --shadow-soft: 0 18px 48px rgba(30, 36, 40, 0.11);
  --radius: 8px;
  --section-y: clamp(64px, 8vw, 112px);
  --content-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: #fff;
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 209, 196, 0.75);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(16px);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--content-w));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  list-style: none;
}

.nav-links a,
.nav-cta {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent-dark);
}

.nav-cta {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent-dark);
  font-weight: 700;
  padding: 8px 14px;
}

.section {
  padding: var(--section-y) 0;
}

.section:nth-of-type(even) {
  background: var(--color-surface);
}

.section-inner {
  width: min(100% - 32px, var(--content-w));
  margin: 0 auto;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 7vw, 5.3rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 16px 0 0;
}

.section-lead,
.hero-lead {
  max-width: 760px;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  color: #fff;
  background: #17201f;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 18, 18, 0.84) 0%, rgba(10, 18, 18, 0.62) 48%, rgba(10, 18, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 18, 18, 0.72) 0%, rgba(10, 18, 18, 0) 34%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 12vw, 128px) 0 clamp(32px, 7vw, 72px);
}

.hero .eyebrow,
.hero-lead {
  color: rgba(255, 255, 255, 0.84);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-accent-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 940px);
  margin: clamp(48px, 9vw, 88px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(10, 18, 18, 0.38);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
  line-height: 1.35;
}

.two-column,
.contact-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.visual-column {
  align-items: stretch;
}

.impact-visual,
.price-visual,
.inline-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111817;
  box-shadow: var(--shadow-soft);
}

.impact-visual img,
.price-visual img,
.inline-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-visual {
  min-height: 360px;
}

.impact-visual::after,
.price-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(0deg, rgba(15, 21, 21, 0.88), rgba(15, 21, 21, 0));
}

.impact-visual figcaption,
.price-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  line-height: 1.45;
}

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

.check-list-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.check-list li {
  border-left: 4px solid var(--color-accent);
  background: var(--color-soft);
  padding: 14px 16px;
  font-weight: 700;
}

.industry-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.industry-card,
.value-grid article,
.profile-panel,
.contact-form {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(30, 36, 40, 0.04);
}

.industry-card,
.value-grid article,
.profile-panel {
  padding: 22px;
}

.industry-card {
  overflow: hidden;
  padding: 0 0 22px;
}

.industry-card img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.industry-card:nth-child(1) img {
  object-position: 32% 50%;
}

.industry-card:nth-child(2) img {
  object-position: 58% 52%;
}

.industry-card:nth-child(3) img {
  object-position: 48% 52%;
}

.industry-card:nth-child(4) img {
  object-position: 50% 50%;
}

.industry-card h3,
.industry-card p {
  padding-right: 22px;
  padding-left: 22px;
}

.industry-card h3 {
  margin-top: 20px;
}

.industry-card p,
.value-grid p {
  color: var(--color-muted);
  font-size: 0.96rem;
}

.severity {
  color: var(--color-warn) !important;
  font-weight: 800;
}

.price-section {
  background: #eef5f1 !important;
}

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.price-visual {
  height: clamp(260px, 44vw, 460px);
  margin-top: 32px;
}

.price-visual img {
  object-position: 50% 55%;
}

.price-caution {
  margin-top: 24px;
  border: 1px solid rgba(180, 83, 9, 0.26);
  border-left: 5px solid var(--color-warn);
  border-radius: var(--radius);
  background: #fff8ed;
  padding: 20px;
}

.price-caution h3,
.estimate-factors h3 {
  font-size: 1.08rem;
}

.price-caution p {
  color: #6b4b1f;
}

.range-chart {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 22px;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: center;
}

.range-row h3 {
  font-size: 1rem;
}

.range-row p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.range-bar {
  position: relative;
  min-height: 44px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e5db;
}

.range-bar::before {
  position: absolute;
  inset: 8px calc(100% - var(--end)) 8px var(--start);
  border-radius: 999px;
  background: var(--color-accent);
  content: "";
}

.range-bar-wide::before {
  background: var(--color-warn);
}

.range-bar-variable::before {
  background: linear-gradient(90deg, #8aa5a1, var(--color-warn));
}

.range-bar span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--color-ink);
  font-weight: 900;
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.comparison-table caption {
  color: var(--color-muted);
  padding: 16px 18px;
  text-align: left;
}

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

.comparison-table thead th {
  border-top: 0;
  background: #17201f;
  color: #fff;
  font-size: 0.9rem;
}

.comparison-table tbody th {
  color: var(--color-accent-dark);
  font-weight: 800;
}

.source-note {
  max-width: 900px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.estimate-factors {
  margin-top: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
}

.estimate-factors ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding-left: 1.2em;
}

.estimate-factors li {
  padding-left: 2px;
}

.profile-panel ul {
  margin: 16px 0 0;
  padding-left: 1.2em;
}

.inline-visual {
  height: 240px;
  margin-top: 28px;
}

.inline-visual img {
  object-position: 50% 54%;
}

.profile-mark {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  margin-bottom: 20px;
  border-radius: var(--radius);
  object-fit: cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface);
  padding: 56px 20px 22px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--color-accent-dark);
  content: "0" counter(steps);
  font-weight: 900;
}

.steps p {
  color: var(--color-muted);
  font-size: 0.96rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-top: 32px;
}

details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

summary {
  cursor: pointer;
  font-weight: 800;
  padding: 18px 20px;
}

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

.contact-section {
  background: #17201f !important;
  color: #fff;
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--color-ink);
}

.contact-card h3 {
  font-size: 1.25rem;
}

.contact-card p {
  color: var(--color-muted);
}

.contact-card .button {
  width: 100%;
}

.contact-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--color-muted);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  border-color: var(--color-accent);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-status {
  min-height: 0;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.55;
}

.form-status:not(:empty) {
  border: 1px solid var(--color-line);
  padding: 12px 14px;
}

.form-status[data-type="success"] {
  border-color: rgba(15, 118, 110, 0.28);
  background: #e7f5f1;
  color: var(--color-accent-dark);
}

.form-status[data-type="error"] {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff1f0;
  color: #8f1d16;
}

.form-note {
  margin: 0;
  color: var(--color-muted) !important;
  font-size: 0.86rem;
}

.privacy-note {
  margin: -4px 0 0;
  color: var(--color-muted) !important;
  font-size: 0.82rem;
}

.privacy-note a,
.footer-links a {
  color: inherit;
  font-weight: 800;
}

.legal-section {
  min-height: calc(100vh - 72px);
}

.legal-layout {
  max-width: 900px;
}

.legal-layout h1 {
  max-width: 780px;
}

.legal-lead {
  max-width: 760px;
  color: var(--color-muted);
}

.legal-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 24px;
}

.legal-card + .legal-card {
  margin-top: 14px;
}

.legal-card h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.legal-card p {
  margin: 0;
  color: var(--color-muted);
}

.legal-updated {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.legal-back {
  margin-top: 8px;
}

.site-footer {
  background: #0f1515;
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 6px;
  text-align: right;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.42);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-cta {
    position: absolute;
    top: 14px;
    right: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 720px;
  }

  .hero-facts,
  .two-column,
  .contact-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

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

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

  .range-row,
  .estimate-factors ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .navbar {
    width: min(100% - 24px, var(--content-w));
  }

  .brand {
    max-width: calc(100% - 112px);
  }

  .nav-links {
    gap: 16px;
    font-size: 0.88rem;
  }

  .hero-inner {
    min-height: 680px;
    padding-top: 56px;
  }

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

  .hero-facts,
  .industry-grid,
  .value-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .check-list-row {
    grid-template-columns: 1fr;
  }

  .impact-visual {
    min-height: 280px;
  }

  .industry-card img {
    height: 168px;
  }

  .comparison-table {
    min-width: 720px;
  }

  .contact-form {
    padding: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    text-align: left;
  }
}
