:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #25342d;
  background: #f3f5f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #e2ece2 0, transparent 38rem), #f3f5f1;
}

.shell {
  width: min(100% - 32px, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: #52745d;
  font-size: 24px;
  font-weight: 800;
}
.eyebrow { margin: 0 0 3px; color: #64806a; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(23px, 6vw, 30px); line-height: 1.15; }

.card {
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid #dce5dc;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 55px rgba(43, 67, 49, .09);
}
.badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #345c3d;
  background: #e9f1e7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
h2 { margin: 20px 0 10px; font-size: clamp(21px, 5.4vw, 27px); line-height: 1.2; }
.card > p:not(.result) { margin: 0; color: #5a6a60; font-size: 16px; line-height: 1.65; }
button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #52745d;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}
button:hover { background: #42634d; }
button:focus-visible { outline: 3px solid #9fc7a6; outline-offset: 3px; }
button:disabled { opacity: .65; cursor: wait; }
.result { min-height: 26px; margin: 16px 0 0; color: #58675d; font-size: 14px; line-height: 1.5; }
.result[data-state="ok"] { color: #246239; }
.result[data-state="error"] { color: #a23b35; }
footer { color: #718076; text-align: center; font-size: 13px; }

@media (max-width: 420px) {
  .shell { width: min(100% - 24px, 620px); gap: 20px; }
  .card { border-radius: 20px; }
}
