/* Shared palette, spacing and type. All assets stay on this site. */
:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --white: #ffffff;
  --ink: #182b25;
  --muted: #4f5e57;
  --accent: #245c45;
  --accent-hover: #173d2e;
  --tint: #e9eee7;
  --line: #c8cdc3;
  --control: #727e74;
  --error: #9b302c;
  --error-tint: #fff3ef;
  --focus: #245c45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.6rem); letter-spacing: -0.04em; }
h3 { font-size: 1.35rem; letter-spacing: -0.025em; }
p { max-width: 67ch; }
p + p { margin-top: 1rem; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
input, select, textarea { min-width: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
::selection { color: var(--white); background: var(--accent); }
.shell { width: min(100% - 6rem, 74rem); margin-inline: auto; }

/* The skip link stays first in keyboard order. */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6.25rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.brand::before { content: ""; width: 0.55rem; height: 1.5rem; margin-right: 0.75rem; border-block: 4px solid var(--accent); border-left: 4px solid var(--accent); }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 0.9375rem; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.5em; }
.nav-list a[aria-current="page"] { font-weight: 650; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--white);
  background: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.button::after { content: ""; width: 0.5rem; height: 0.5rem; flex: 0 0 0.5rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: underline; }
.button:disabled { opacity: 1; cursor: default; color: var(--white); background: var(--muted); border-color: var(--muted); }
.button:disabled::after { display: none; }

/* Home: clear text, a numbered process and a single pricing card. */
.home-intro { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 5rem; align-items: end; padding-block: 6rem; }
.home-intro h1 { max-width: 12ch; }
.home-summary { padding-bottom: 0.3rem; }
.intro { font-size: 1.125rem; color: var(--muted); }
.home-summary .button { margin-top: 2rem; }
.home-summary .hero-price { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }
.hero-price strong { color: var(--ink); white-space: nowrap; }
.process-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 5rem; padding-block: 4.5rem; border-top: 1px solid var(--ink); }
.steps { margin: 0; padding-left: 2.4rem; }
.steps li { padding-left: 1rem; padding-bottom: 2.25rem; }
.steps li + li { padding-top: 2rem; border-top: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { color: var(--accent); font-size: 1.1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 0.8rem; }
.steps p, .text-section > p { color: var(--muted); }
.text-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 5rem; padding-block: 3.25rem; border-top: 1px solid var(--line); }
.text-section h2 { max-width: 14ch; }
.pricing-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 5rem; padding-block: 4rem; border-top: 1px solid var(--line); }
.pricing-card { padding: 2.5rem; border: 1px solid var(--accent); background: var(--tint); }
.price-line { font-size: 1.125rem; }
.price-lead { display: block; }
.price-tax { display: inline; white-space: nowrap; }
.price { display: inline; font-size: clamp(2.75rem, 2rem + 2vw, 4rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.05em; padding-block: 0.4rem; }
.pricing-card > p + p { margin-top: 1.5rem; }
.pricing-card .button { margin-top: 1.75rem; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-block: 4rem 5rem; border-top: 1px solid var(--ink); }
.closing h2 { max-width: 19ch; }
.closing .button { flex-shrink: 0; }

/* Scoping: labels and related controls share a predictable reading order. */
.scoping-main { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); align-items: start; gap: 5rem; padding-block: 4rem 6rem; }
.scoping-intro h1 { font-size: clamp(2.5rem, 1.7rem + 2.2vw, 3.5rem); }
.scoping-intro .intro { margin-top: 1.5rem; }
.inquiry-form { padding: 2rem; border-top: 3px solid var(--accent); background: var(--white); }
.form-note { margin-bottom: 2rem; color: var(--muted); font-size: 0.9375rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { min-width: 0; }
.field > label, legend { display: block; margin-bottom: 0.5rem; color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 0.75rem; border: 1px solid var(--control); border-radius: 2px; color: var(--ink); background: var(--white); line-height: 1.45; }
.field select { padding-right: 0.5rem; }
.field textarea { resize: vertical; min-height: 10rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field-help { margin-top: 0.45rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.environment-fields { margin-block: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.interest-field { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.interest-field legend { padding: 0; }
.radio-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.radio-option { position: relative; min-width: 0; }
.radio-option input { position: absolute; top: 50%; left: 0.9rem; width: 1.15rem; height: 1.15rem; margin: 0; transform: translateY(-50%); accent-color: var(--accent); }
.radio-option label { display: flex; align-items: center; height: 100%; min-height: 54px; padding: 0.75rem 0.75rem 0.75rem 2.7rem; border: 1px solid var(--control); border-radius: 2px; font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.radio-option label:hover { background: var(--paper); border-color: var(--ink); }
.radio-option input:checked + label { border: 2px solid var(--accent); padding: calc(0.75rem - 1px) calc(0.75rem - 1px) calc(0.75rem - 1px) calc(2.7rem - 1px); background: var(--tint); font-weight: 600; }
.radio-option input:focus-visible { outline: none; }
.radio-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 4px; }
.field [aria-invalid="true"], .radio-option input[aria-invalid="true"] + label { border: 2px solid var(--error); background: var(--error-tint); }
[data-error-for] { display: block; color: var(--error); font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
[data-error-for]:not(:empty) { margin-top: 0.5rem; padding-left: 0.65rem; border-left: 3px solid var(--error); }
.form-submit { margin-top: 2rem; }
[data-form-status] p { margin-top: 1rem; padding: 1rem; border: 1px solid var(--accent); border-left-width: 4px; background: var(--tint); font-weight: 500; }
form[data-state="sending"] [data-form-status] p { border-color: var(--muted); background: var(--paper); }
form[data-state="sending"] button { cursor: progress; }
form[data-state="sent"] { border-top-color: var(--accent); }
form[data-state="sent"] [data-show-when="sent"] { border-left-width: 8px; }
form[data-state="error"] [data-form-status] p { border-color: var(--error); color: var(--error); background: var(--error-tint); }
[data-form-status] a { color: inherit; display: inline-block; min-height: 24px; max-width: 100%; overflow-wrap: anywhere; }

/* Documents and the missing-page view keep a short reading measure. */
.document-main { max-width: 54rem; padding-block: 4.5rem 6rem; }
.document-main h1 { margin-bottom: 2rem; }
.document-meta { color: var(--muted); margin-block: 1.5rem 2.5rem; }
.document-body { max-width: 67ch; }
.document-body section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.document-body h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.document-body p { color: var(--muted); }
.document-body a:not(.button) { display: inline-block; min-height: 24px; max-width: 100%; overflow-wrap: anywhere; }
.document-body .button { color: var(--white); margin-top: 2rem; }
.todo { border: 1px dashed currentColor; padding: 0.15em 0.3em; color: var(--ink); background: var(--tint); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-not-found .document-main { min-height: 58vh; }
.page-not-found .document-main > .button { margin-top: 2rem; }

.site-footer { background: var(--ink); color: var(--paper); --focus: #c9e3bd; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 3rem; padding-block: 3rem; }
.footer-name { max-width: 29ch; font-size: 1rem; }
.copyright { font-size: 0.875rem; color: #c4cec5; margin-top: 1.25rem; }
.footer-links { display: grid; gap: 1.25rem; }
.site-footer .nav-list { gap: 1.5rem; }
.site-footer .button-outline { color: var(--paper); background: transparent; border-color: #a5b4a8; }
.site-footer .button-outline:hover { background: #2b4137; }

@media (max-width: 62rem) {
  .shell { width: calc(100% - 4rem); }
  .home-intro, .process-section, .text-section, .pricing-section, .scoping-main { gap: 2.5rem; }
  .home-intro { padding-block: 4rem; }
  .scoping-main { grid-template-columns: minmax(0, 1fr); }
  .scoping-intro { max-width: 45rem; }
  .scoping-intro h1 { max-width: 16ch; }
  .inquiry-form { max-width: 48rem; width: 100%; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 0; padding-block: 1rem 0.65rem; align-items: start; flex-direction: column; gap: 0.25rem; }
  .nav-list { gap: 1.75rem; }
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 3rem; }
  .home-intro h1 { max-width: 15ch; }
  .intro { font-size: 1.0625rem; }
  .process-section, .text-section, .pricing-section { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2.5rem; }
  .text-section h2 { max-width: 23ch; }
  .steps { padding-left: 1.5rem; }
  .steps li { padding-left: 0.5rem; }
  .pricing-card { padding: 1.5rem; }
  .closing { align-items: start; flex-direction: column; gap: 1.5rem; padding-block: 2.75rem 3.5rem; }
  .scoping-main { padding-block: 3rem; gap: 2rem; }
  .inquiry-form { padding: 1.25rem; }
  .field-grid, .radio-options { grid-template-columns: minmax(0, 1fr); }
  .field-grid { gap: 1.25rem; }
  .form-submit > .button { width: 100%; }
  .document-main { padding-block: 3rem 4rem; }
  .footer-inner { flex-direction: column; gap: 2rem; padding-block: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; animation: none; transition: none; }
}

@media (forced-colors: active) {
  .button, .field input, .field select, .field textarea, .radio-option label { border-color: ButtonText; }
  .radio-option input:checked + label { outline: 2px solid Highlight; }
  :focus-visible, .radio-option input:focus-visible + label { outline-color: Highlight; }
}
