:root {
  --ink: #172121;
  --muted: #5c6868;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #d8ded8;
  --green: #1d6b55;
  --green-dark: #124838;
  --blue: #315b8f;
  --coral: #d85b3f;
  --shadow: 0 18px 50px rgba(23, 33, 33, 0.09);
}

* {
  box-sizing: border-box;
}

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

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.privacy-note,
.eyebrow,
.lede,
.guide p,
.status,
.summary dt,
footer {
  color: var(--muted);
}

main {
  margin: 0 auto;
  max-width: 1380px;
  padding: 34px clamp(18px, 4vw, 56px) 42px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  margin-bottom: 18px;
  max-width: 950px;
}

.lede {
  font-size: 1.12rem;
  max-width: 780px;
}

.tool {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 300px) minmax(260px, 1fr);
  margin-top: 30px;
}

.panel,
.guide,
.cards article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

textarea {
  background: #fbfcfa;
  border: 1px solid #cbd4ce;
  border-radius: 8px;
  color: var(--ink);
  display: block;
  min-height: 300px;
  outline: none;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 107, 85, 0.16);
}

.options label {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  padding: 14px 0;
}

.options input {
  accent-color: var(--green);
  margin-top: 4px;
}

.primary-button,
.text-button {
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
}

.primary-button {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
  font-weight: 800;
  width: 100%;
}

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

.text-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.status {
  min-height: 24px;
  margin: 10px 0 0;
}

.summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0;
}

.summary div {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.summary dd {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2px 0 0;
}

.guide,
.utilityshelf-note {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 18px;
  padding: 24px;
}

.guide h2,
.utilityshelf-note h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.utilityshelf-note {
  background: #f0f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  grid-template-columns: 1fr;
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards article {
  box-shadow: none;
  padding: 18px;
}

.cards h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.legal-page {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-page a,
footer a {
  color: var(--blue);
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 56px);
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1380px;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

footer a {
  text-decoration: none;
}

@media (max-width: 1020px) {
  .tool,
  .guide,
  .utilityshelf-note,
  .cards {
    grid-template-columns: 1fr;
  }
}

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

  h1 {
    font-size: 2.25rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
