.am-tool {
  --am-bg: #f7f4ee;
  --am-paper: #fffdf8;
  --am-ink: #111111;
  --am-muted: #5d5951;
  --am-line: #ded8cc;
  --am-soft: #ebe5d9;
  --am-focus: #111111;
  background: var(--am-bg);
  color: var(--am-ink);
  font-family: inherit;
  padding: clamp(28px, 5vw, 72px) 18px;
}

.am-tool * {
  box-sizing: border-box;
}

.am-tool__inner {
  margin: 0 auto;
  max-width: 1120px;
}

.am-tool__hero {
  border-bottom: 1px solid var(--am-line);
  display: grid;
  gap: 20px;
  padding-bottom: 28px;
}

.am-tool__eyebrow {
  color: var(--am-muted);
  font-size: 13px;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

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

.am-tool h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 18px;
}

.am-tool h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.12;
}

.am-tool h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.am-tool__lead {
  color: var(--am-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 780px;
}

.am-tool__grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.am-tool__panel,
.am-calculator,
.am-checklist {
  background: var(--am-paper);
  border: 1px solid var(--am-line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.am-tool__panel--accent {
  background: var(--am-soft);
}

.am-tool__section {
  margin-top: clamp(34px, 6vw, 72px);
}

.am-tool__two {
  display: grid;
  gap: 18px;
}

.am-tool__list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.am-tool__list li {
  border-top: 1px solid var(--am-line);
  color: var(--am-muted);
  line-height: 1.55;
  padding-top: 12px;
}

.am-tool__cta {
  align-items: start;
  background: #111111;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 16px;
  margin-top: clamp(34px, 6vw, 72px);
  padding: clamp(22px, 4vw, 36px);
}

.am-tool__cta p {
  color: #e8e2d8;
  line-height: 1.6;
}

.am-tool__button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #111111;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
  width: fit-content;
}

.am-tool__button:focus-visible,
.am-calculator input:focus-visible,
.am-checklist input:focus-visible {
  outline: 3px solid var(--am-focus);
  outline-offset: 3px;
}

.am-calculator__fields,
.am-checklist__items,
.am-loss-map {
  display: grid;
  gap: 14px;
}

.am-calculator label,
.am-checklist label,
.am-loss-map label {
  color: var(--am-muted);
  display: grid;
  font-size: 15px;
  gap: 7px;
  line-height: 1.45;
}

.am-calculator input[type="number"] {
  background: #ffffff;
  border: 1px solid var(--am-line);
  border-radius: 8px;
  color: var(--am-ink);
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.am-checklist label,
.am-loss-map label {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--am-line);
  border-radius: 8px;
  color: var(--am-ink);
  cursor: pointer;
  grid-template-columns: 22px 1fr;
  padding: 13px;
}

.am-checklist input,
.am-loss-map input {
  margin-top: 2px;
}

.am-tool__result {
  background: #111111;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 20px;
}

.am-tool__result strong {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.am-tool__result span {
  color: #e8e2d8;
  line-height: 1.5;
}

.am-loss-zone {
  display: grid;
  gap: 12px;
}

.am-loss-zone + .am-loss-zone {
  border-top: 1px solid var(--am-line);
  padding-top: 18px;
}

.am-tool__faq details {
  border-top: 1px solid var(--am-line);
  padding: 18px 0;
}

.am-tool__faq summary {
  cursor: pointer;
  font-weight: 600;
}

.am-tool__faq p {
  color: var(--am-muted);
  line-height: 1.6;
  margin: 10px 0 0;
}

@media (min-width: 760px) {
  .am-tool__hero {
    grid-template-columns: 1.2fr .8fr;
  }

  .am-tool__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .am-tool__two {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  }

  .am-tool__cta {
    grid-template-columns: 1fr auto;
  }
}
