:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #183d35;
  background: #fafbf7;
  font-synthesis: none;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #24694f;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid #bdcfc2;
  border-radius: 9px;
  padding: 11px 17px;
  background: #edf3e8;
  color: #183d35;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #dce8d5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary,
.button.primary {
  background: #24694f;
  color: white;
  border-color: #24694f;
}
header {
  border-bottom: 1px solid #d9e2d7;
  background: #fff;
}
nav {
  max-width: 1160px;
  margin: auto;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
nav .links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  color: #183d35;
  font-size: 21px;
}
.brand span {
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-left: 10px;
  color: #607768;
}
main {
  max-width: 1100px;
  padding: 0 28px;
  margin: auto;
}
section {
  padding: 60px 0;
  scroll-margin-top: 24px;
  border-bottom: 1px solid #d9e2d7;
}
.hero {
  padding: 80px 0 60px;
  max-width: 900px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5b7767;
}
h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 18px 0 24px;
}
h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  margin-top: 0;
}
p {
  max-width: 780px;
}
.lead {
  font-size: 20px;
  color: #506c5f;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #cedbcd;
  border-radius: 14px;
  padding: 24px;
  min-width: 0;
}
.muted {
  color: #5d7368;
  font-size: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.step {
  border-top: 3px solid #6c9a79;
  padding: 16px;
  background: #edf3e8;
}
.number {
  color: #6d8073;
  font-size: 12px;
}
.demo-result,
.notice {
  padding: 18px 22px;
  border-radius: 10px;
  background: #edf3e8;
  border: 1px solid #ccdac9;
}
.warning {
  background: #fff1df;
  color: #784316;
  border-color: #e0c4a0;
}
.swap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: start;
}
.field {
  display: block;
  margin: 16px 0;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 7px;
  border: 1px solid #becfc2;
  background: #fff;
  border-radius: 8px;
  color: #183d35;
}
.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
.output {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.status {
  min-height: 32px;
  overflow-wrap: anywhere;
}
.error {
  color: #a43237;
}
.success {
  color: #24694f;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
dd {
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}
dt {
  color: #5d7368;
}
details {
  border-top: 1px solid #d9e2d7;
  padding-top: 16px;
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
pre {
  background: #142d28;
  color: #e4f0e5;
  padding: 24px;
  border-radius: 10px;
  overflow: auto;
  font-size: 13px;
  max-height: 360px;
}
code {
  font-family: ui-monospace, monospace;
}
footer {
  padding: 40px 28px;
  max-width: 1160px;
  margin: auto;
  font-size: 14px;
}
.pill {
  display: inline-block;
  background: #e7eedf;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
}
#activity a {
  overflow-wrap: anywhere;
}
#quote-area[hidden] {
  display: none;
}
.route {
  padding: 12px;
  background: #eff4eb;
  border-radius: 8px;
  margin: 14px 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #67957c;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .grid,
  .swap-layout {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  nav {
    align-items: flex-start;
    padding: 16px;
  }
  .links {
    font-size: 13px;
    gap: 12px !important;
  }
  main {
    padding: 0 18px;
  }
  .hero {
    padding: 48px 0;
  }
  section {
    padding: 40px 0;
  }
  .card {
    padding: 20px;
  }
  h2 {
    font-size: 26px;
  }
  .brand span {
    display: block;
    margin: 0;
  }
}

[hidden] {
  display: none !important;
}
