:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211d;
  background: #f4f7f5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7f5;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4vw;
  color: #eff9f5;
  background: #153f35;
  border-bottom: 1px solid #2e5a4f;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #153f35;
  background: #f2c861;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 850;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar nav a {
  color: #c7d8d2;
  font-size: 14px;
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: #ffffff;
}

main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.tool-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding-bottom: 34px;
}

.eyebrow,
.pane-heading p {
  margin: 0 0 8px;
  color: #397266;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 820px;
  margin-bottom: 0;
  color: #51605a;
  font-size: 18px;
  line-height: 1.55;
}

.privacy-strip {
  display: grid;
  gap: 8px;
  min-width: 260px;
  color: #34544b;
  font-size: 13px;
}

.privacy-strip span {
  padding-left: 18px;
  position: relative;
}

.privacy-strip span::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  left: 0;
  top: 6px;
  border-radius: 50%;
  background: #2c9a75;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  border: 1px solid #cbd7d2;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(23, 63, 53, .07);
}

.input-pane,
.output-pane {
  min-width: 0;
  padding: 30px;
}

.input-pane {
  border-right: 1px solid #d7e0dc;
}

.pane-heading h2,
.checkout-section h2,
.payment-heading h2,
.paid-heading h2,
.group-section h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.output-heading,
.payment-heading,
.paid-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.drop-zone {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  margin-top: 22px;
  padding: 24px;
  position: relative;
  text-align: center;
  background: #eef6f2;
  border: 1px dashed #6ea294;
}

.drop-zone input {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone label {
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.drop-zone label strong {
  color: #15594a;
  font-size: 16px;
}

.drop-zone label span,
.drop-zone p {
  color: #64726d;
  font-size: 13px;
}

.drop-zone p {
  margin: 10px 0 0;
}

.input-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #76827d;
  font-size: 12px;
}

.input-divider::before,
.input-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dbe3df;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #34433e;
  font-size: 13px;
  font-weight: 740;
}

textarea,
.confirm-row input {
  width: 100%;
  color: #17211d;
  background: #fbfcfb;
  border: 1px solid #bdcbc5;
  border-radius: 4px;
  outline: none;
}

textarea {
  min-height: 236px;
  padding: 14px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

textarea:focus,
.confirm-row input:focus {
  border-color: #16836b;
  box-shadow: 0 0 0 3px rgba(22, 131, 107, .13);
}

.input-boundary {
  margin: 10px 0 0;
  color: #6a7772;
  font-size: 12px;
  line-height: 1.45;
}

.form-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 750;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.primary-button {
  color: #ffffff;
  background: #14765f;
  border: 1px solid #14765f;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #0f624f;
}

.secondary-button,
.copy-button {
  color: #205d4f;
  background: #ffffff;
  border: 1px solid #94b1a7;
}

.quiet-button {
  color: #53615c;
  background: transparent;
  border: 1px solid transparent;
}

.error {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #8c2f2f;
  background: #fff3f1;
  border-left: 3px solid #cf4e49;
  font-size: 13px;
}

.empty-state {
  min-height: 490px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  text-align: center;
  color: #6b7974;
}

.empty-state strong {
  color: #31423c;
  font-size: 18px;
}

.empty-state p {
  max-width: 460px;
  margin: 8px 0 0;
  line-height: 1.55;
}

.finding-chip {
  padding: 6px 10px;
  color: #7d4b00;
  background: #fff1c8;
  border: 1px solid #e7c66d;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid #dce4e0;
  border-left: 1px solid #dce4e0;
}

.metric-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border-right: 1px solid #dce4e0;
  border-bottom: 1px solid #dce4e0;
}

.metric-grid span {
  color: #697670;
  font-size: 12px;
}

.metric-grid strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.finding-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dce4e0;
}

.finding-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #dce4e0;
}

.finding-list li div {
  display: grid;
  gap: 4px;
}

.finding-list li span:last-child {
  color: #707d78;
  font-size: 12px;
}

.severity {
  width: fit-content;
  height: fit-content;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.severity-critical,
.severity-high {
  color: #9b2c2c;
  background: #fde8e5;
}

.severity-medium {
  color: #855a00;
  background: #fff0c7;
}

.checkout-section,
.payment-panel,
.paid-report,
.group-section {
  margin-top: 28px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #cbd7d2;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 40px;
  border-left: 5px solid #d5a82b;
}

.checkout-section > div > p:not(.eyebrow) {
  max-width: 760px;
  color: #5d6b66;
  line-height: 1.55;
}

.checkout-section ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #4d5c56;
  font-size: 13px;
  line-height: 1.65;
}

.offer {
  display: grid;
  align-content: center;
  gap: 8px;
  padding-left: 28px;
  border-left: 1px solid #d8e0dc;
}

.offer > span {
  color: #7b6841;
  font-size: 11px;
  font-weight: 850;
}

.offer > strong {
  font-size: 34px;
}

.offer > small {
  color: #6d7975;
}

.offer button {
  margin-top: 10px;
}

.payment-heading > span {
  padding: 6px 10px;
  color: #15594a;
  background: #e9f5f0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.payment-grid {
  display: grid;
  grid-template-columns: 180px 220px minmax(0, 1fr);
  margin-top: 24px;
  border: 1px solid #d6e0dc;
}

.payment-grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid #d6e0dc;
}

.payment-grid > div:last-child {
  border-right: 0;
}

.payment-grid span {
  color: #6c7974;
  font-size: 12px;
}

.payment-grid strong {
  font-size: 18px;
}

.payment-grid code {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.copy-button {
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.payment-warning {
  margin: 14px 0 20px;
  padding: 10px 12px;
  color: #77551c;
  background: #fff6d8;
  border-left: 3px solid #d8aa37;
  font-size: 13px;
}

.wallet-button {
  width: 100%;
  min-height: 48px;
  color: #102f29;
  background: #f4c85e;
  border: 1px solid #d5a82b;
}

.wallet-button:hover,
.wallet-button:focus-visible {
  background: #e9b947;
}

.wallet-note {
  margin: 8px 0 0;
  color: #62706b;
  font-size: 12px;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #73807b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-divider::before,
.payment-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: #d6e0dc;
}

.confirm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.confirm-row input {
  min-height: 44px;
  padding: 0 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.payment-status {
  margin: 12px 0 0;
  color: #315c51;
  font-size: 13px;
}

.paid-summary {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.paid-summary span {
  font-size: 24px;
  font-weight: 850;
}

.paid-summary small {
  color: #68756f;
}

.paid-findings {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid #d6e0dc;
}

.paid-findings article {
  padding: 20px 0;
  border-bottom: 1px solid #d6e0dc;
}

.paid-findings article > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paid-findings h3 {
  margin: 0;
  font-size: 17px;
}

.paid-findings p {
  margin: 10px 0 0;
  color: #53615c;
  line-height: 1.55;
}

.group-section > div:first-child {
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #dce4e0;
}

th {
  color: #66736e;
  background: #f5f8f6;
  font-size: 11px;
  text-transform: uppercase;
}

td {
  font-variant-numeric: tabular-nums;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4vw;
  color: #66736e;
  background: #e8eeeb;
  border-top: 1px solid #ced9d4;
  font-size: 12px;
}

footer a {
  color: #1d6555;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .tool-heading,
  .workbench,
  .checkout-section {
    grid-template-columns: 1fr;
  }

  .tool-heading {
    align-items: start;
  }

  .privacy-strip {
    min-width: 0;
  }

  .input-pane {
    border-right: 0;
    border-bottom: 1px solid #d7e0dc;
  }

  .empty-state {
    min-height: 260px;
  }

  .offer {
    padding: 22px 0 0;
    border-top: 1px solid #d8e0dc;
    border-left: 0;
  }

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

  .address-field {
    grid-column: 1 / -1;
    border-top: 1px solid #d6e0dc;
  }

  .payment-grid > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar nav {
    display: none;
  }

  main {
    width: min(100% - 24px, 1320px);
    padding-top: 30px;
  }

  h1 {
    font-size: 42px;
  }

  .lede {
    font-size: 16px;
  }

  .input-pane,
  .output-pane,
  .checkout-section,
  .payment-panel,
  .paid-report,
  .group-section {
    padding: 20px;
  }

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

  .payment-grid,
  .confirm-row {
    grid-template-columns: 1fr;
  }

  .payment-grid > div {
    border-right: 0;
    border-bottom: 1px solid #d6e0dc;
  }

  .payment-grid > div:last-child {
    border-bottom: 0;
  }

  .address-field {
    grid-column: auto;
    border-top: 0;
  }

  .output-heading,
  .payment-heading,
  .paid-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .paid-summary {
    justify-items: start;
  }
}
