:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #60706b;
  --line: #d9e1de;
  --surface: #f7f9f6;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #e0f2ef;
  --warn-soft: #fff7df;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
  background: rgba(247, 249, 246, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
footer a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 520px;
  padding: 56px 0 36px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow,
.result-label {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-directory {
  display: grid;
  gap: 12px;
}

.quick-directory a,
.tool-panel,
.result-panel,
.info-band,
.faq details,
.ops-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(23, 33, 31, 0.06);
}

.quick-directory a {
  display: grid;
  gap: 5px;
  padding: 18px;
  text-decoration: none;
}

.quick-directory span,
.section-heading p,
.info-band p,
.faq p,
.ops-card p,
.ops-card li {
  color: var(--muted);
}

.calculator-section,
.faq,
.ops-main {
  padding: 34px 0;
}

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

.section-heading h2,
.info-band h3,
.ops-card h2 {
  margin: 0;
  line-height: 1.1;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.tool-panel,
.result-panel,
.ops-card {
  padding: clamp(18px, 3vw, 26px);
}

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

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

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

input:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.preset-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.button-row {
  margin: 18px 0 0;
}

button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font: inherit;
  font-weight: 750;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.preset-row button,
button.secondary {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.preset-row button:hover,
button.secondary:hover {
  background: #c8e9e4;
}

button.ghost {
  border-color: var(--line);
  color: var(--muted);
  background: white;
}

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

.check-row input {
  width: 18px;
  height: 18px;
}

.result-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 190px;
}

.result-panel strong {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.result-panel span:last-child {
  color: var(--muted);
}

.info-band {
  margin-top: 16px;
  padding: 18px 20px;
}

.faq {
  padding-bottom: 64px;
}

.faq details {
  margin-top: 10px;
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 760;
}

footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.ops-hero {
  padding: 56px 0 20px;
}

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

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #315b19;
  font-weight: 750;
  background: #e7f7db;
}

.ad-placeholder {
  margin-top: 16px;
  border: 1px dashed #b9c5c1;
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: var(--warn-soft);
  text-align: center;
}

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

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

  .hero,
  .tool-layout,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  .field-grid.two,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .brand span:last-child {
    white-space: normal;
  }

  button {
    flex: 1 1 auto;
  }
}
