:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --text: #171916;
  --muted: #60675d;
  --line: #dfe3da;
  --accent: #1f7a5a;
  --accent-dark: #15543f;
  --accent-soft: #dff1e8;
  --focus: #b45309;
  --shadow: 0 18px 50px rgba(23, 25, 22, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
}

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

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-nav,
.site-footer nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
  padding: 54px 0 40px;
}

.hero-copy {
  padding-top: 28px;
}

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

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

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 164px;
  padding: 12px;
}

select {
  min-height: 42px;
  padding: 0 10px;
}

textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(180, 83, 9, 0.28);
  outline-offset: 2px;
}

.form-row {
  margin: 16px 0;
}

.primary-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.result-box {
  display: block;
  min-height: 96px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  padding: 14px;
  color: var(--muted);
  white-space: pre-wrap;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.details p,
.faq p {
  color: var(--muted);
}

.faq {
  max-width: 760px;
  padding: 40px 0 54px;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

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

.site-footer {
  min-height: 82px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 26px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .details {
    grid-template-columns: 1fr;
  }
}

