:root {
  --ink: #183229;
  --muted: #60746a;
  --line: #d9e6df;
  --soft: #f4f8f5;
  --surface: #ffffff;
  --green: #16734b;
  --green-dark: #0f5638;
  --green-soft: #e3f3e9;
  --amber-soft: #fff6df;
  --amber-ink: #815e09;
  --shadow: 0 18px 50px rgba(24, 50, 41, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--green-dark); }

.site-header.page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 12px;
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.site-nav a, .footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible, .footer-nav a:hover, .footer-nav a:focus-visible { color: var(--green-dark); }

button, input, select { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.tool-card, .content-section {
  background: var(--surface);
  border: 1px solid rgba(217, 230, 223, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.tool-card { padding: clamp(20px, 4vw, 42px); }

.tool-heading, .section-bar, .results-header, .cost-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; letter-spacing: -0.045em; }
h2 { margin-bottom: 5px; font-size: 1.18rem; line-height: 1.2; }
h3 { margin-bottom: 6px; font-size: 0.96rem; }
.heading-copy, .section-bar p, .cost-panel p, .content-section > p { color: var(--muted); }
.heading-copy { max-width: 520px; margin-bottom: 0; }

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #25a263; }

.form-grid { display: grid; gap: 14px; }
.top-controls { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }

.field { display: grid; gap: 7px; min-width: 0; color: var(--ink); font-size: 0.82rem; font-weight: 750; }
.field small { color: var(--muted); font-size: 0.72rem; font-weight: 500; line-height: 1.35; }
.muted { color: var(--muted); font-weight: 500; }

input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbdcd3;
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus, select:focus, button:focus-visible, summary:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(22, 115, 75, 0.16);
  outline-offset: 1px;
}

.input-with-unit { display: flex; align-items: center; min-width: 0; border: 1px solid #cbdcd3; border-radius: 11px; background: #fff; overflow: hidden; }
.input-with-unit input { min-width: 0; border: 0; border-radius: 0; }
.input-with-unit > span { padding-right: 12px; color: var(--muted); font-size: 0.78rem; font-weight: 650; white-space: nowrap; }
.currency-symbol { padding: 0 0 0 12px !important; }

.section-bar { align-items: center; margin-top: 34px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.section-bar p, .cost-panel p { margin: 0; font-size: 0.83rem; }

.button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: var(--green-soft); }
.button-danger { color: #8c3939; background: #fff0f0; }
.button-small { min-height: 34px; padding: 6px 10px; font-size: 0.76rem; }

.areas-list { display: grid; gap: 12px; padding-top: 16px; }
.area-row { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.area-row-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.area-number { font-size: 0.84rem; font-weight: 850; }
.area-row-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.area-row .field span { font-size: 0.76rem; }
.depth-note { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--amber-ink); font-size: 0.72rem; font-weight: 700; }
.depth-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9a72d; }

.cost-panel { align-items: center; margin-top: 25px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfb; }
.cost-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: min(100%, 440px); }

.results-header { align-items: center; margin-top: 32px; }
.results-header h2 { margin-bottom: 0; font-size: 1.35rem; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 13px; }
.result-card { min-height: 115px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.result-card.emphasis { border-color: #a9d8bd; background: var(--green-soft); }
.result-label { margin-bottom: 10px; color: var(--muted); font-size: 0.76rem; font-weight: 750; }
.result-value { font-size: clamp(1.32rem, 3vw, 1.8rem); font-weight: 850; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.result-subtext { margin-top: 5px; color: var(--muted); font-size: 0.72rem; }
.copy-status { min-height: 20px; margin: 10px 0 0; color: var(--green); font-size: 0.8rem; font-weight: 700; text-align: right; }

.content-section { margin-top: 22px; padding: clamp(20px, 4vw, 36px); box-shadow: none; }
.content-section > p:not(.eyebrow) { max-width: 840px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.info-grid article { padding: 16px; border-radius: 14px; background: var(--soft); }
.info-grid p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 15px 0; cursor: pointer; font-weight: 800; }
.faq-section details p { max-width: 800px; margin: -3px 0 15px; color: var(--muted); font-size: 0.88rem; }

.simple-page { padding-top: 8px; }
.prose { max-width: 820px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin-top: 30px; margin-bottom: 10px; }
.prose p, .prose li { font-size: 1rem; }
.prose p, .prose ul { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose .contact-address {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 12px 15px;
  border: 1px solid #b9dcc7;
  border-radius: 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
}
.site-footer.page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .top-controls, .results-grid { grid-template-columns: repeat(2, 1fr); }
  .area-row-grid { grid-template-columns: repeat(2, 1fr); }
  .depth-note { grid-column: span 2; min-height: 30px; }
  .area-row-grid > .button { justify-self: start; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header.page-shell { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-nav, .footer-nav { gap: 12px; }
  .site-footer.page-shell { align-items: flex-start; flex-direction: column; }
  .page-shell { width: min(100% - 16px, 1120px); padding-top: 8px; }
  .tool-card, .content-section { border-radius: 18px; }
  .tool-card { padding: 17px; }
  .tool-heading, .section-bar, .results-header, .cost-panel { align-items: stretch; flex-direction: column; }
  .status-pill { align-self: flex-start; }
  .top-controls, .results-grid, .cost-fields { grid-template-columns: 1fr; }
  .area-row { padding: 12px; }
  .area-row-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .area-row-grid .field:first-child { grid-column: span 2; }
  .depth-note { grid-column: span 2; }
  .area-row-grid > .button { grid-column: span 2; width: 100%; }
  .results-header .button { width: 100%; }
  .copy-status { text-align: left; }
  h1 { font-size: 2.2rem; }
}
