:root {
  color-scheme: light;
  --canvas: #f5f7f4;
  --paper: #ffffff;
  --ink: #20352c;
  --muted: #64716a;
  --green: #285b45;
  --green-hover: #204b39;
  --soft-green: #edf4ed;
  --line: #e4eae4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid #8aaa95;
  outline-offset: 4px;
}
h1:focus { outline: none; }
[hidden] { display: none !important; }

.page {
  width: min(100% - 40px, 500px);
  margin: 0 auto;
  padding: clamp(32px, 8vh, 88px) 0 28px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.25px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--green);
}
.brand-mark svg { width: 27px; height: 27px; }
.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 32px #20352c04;
  overflow: hidden;
}
.sheet-top, .sheet-bottom { display: none; }
.view {
  padding: 44px 40px 40px;
  text-align: center;
  animation: appear .22s ease-out;
}
.illustration, .result-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: var(--soft-green);
  color: var(--green);
}
.illustration svg { width: 34px; height: 34px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
h1 {
  margin: 0 0 16px;
  font-size: 35px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -1.25px;
  text-wrap: balance;
}
.intro {
  max-width: 340px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .16s, background .16s, transform .16s;
}
.choice svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.choice .arrow { display: none; }
.good { color: var(--green); background: var(--soft-green); border-color: #dbe7dc; }
.good:hover { background: #e2eee2; border-color: #a4c3ae; }
.bad:hover { background: #f7f9f6; border-color: #b9c7bd; }
.choice:active, .primary:active { transform: translateY(1px); }
.small-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
#choice .small-note, #positive .small-note { display: none; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .16s, transform .16s;
}
.primary:hover { background: var(--green-hover); }
.primary span:last-child { font-size: 18px; font-weight: 400; line-height: 1; }
.back {
  display: block;
  width: fit-content;
  margin: -8px 0 24px -4px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  transition: color .16s;
}
.back:hover { color: var(--green); }
#positive, #negative { padding-top: 28px; }
body:has(#positive:not([hidden])) { background: #f8f5ef; }
.sheet:has(#positive:not([hidden])) {
  background: #fffdf8;
  border-color: #e9e3d8;
  box-shadow: 0 10px 40px #6b583407;
}
#positive .result-illustration {
  width: 40px;
  height: 40px;
  margin: 0 0 20px;
  background: transparent;
  transform: rotate(-5deg);
}
#positive .result-illustration svg { width: 36px; height: 36px; }
#positive { text-align: left; }
#positive h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
#positive .intro { max-width: none; margin-bottom: 28px; line-height: 1.85; font-size: 15px; }
#positive .primary { min-height: 54px; }
#negative .illustration { margin-bottom: 20px; background: #f4f2eb; }
#negative h1 { font-size: 32px; letter-spacing: -1px; }
#negative .intro { margin-bottom: 28px; }
#received { padding-top: 48px; padding-bottom: 44px; }
.result-mark.check { border-radius: 50%; font-size: 27px; font-weight: 400; }
#received .intro { margin-bottom: 0; }
#received .small-note { margin-top: 24px; }
form { text-align: left; }
label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; }
textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid #dbe2dc;
  border-radius: 12px;
  background: #fcfdfb;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  transition: border-color .16s, background .16s;
}
textarea::placeholder { color: #78847c; }
textarea:focus { border-color: #8aaa95; background: #fff; }
.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
#character-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.error {
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 10px;
  background: #fcf0ec;
  color: #a3422e;
  font-size: 12px;
  line-height: 1.6;
}
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
footer a { text-underline-offset: 3px; }
.demo-banner {
  width: fit-content;
  margin: 15px auto 0;
  padding: 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}
.noscript { text-align: center; font-size: 13px; }
#unavailable, #loading { padding-top: 64px; padding-bottom: 52px; }
#unavailable h1 { font-size: 32px; }

@keyframes appear {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .page { width: calc(100% - 32px); padding-top: 32px; }
  .brand { margin-bottom: 24px; font-size: 13px; }
  .sheet { border-radius: 20px; }
  .view { padding: 34px 24px 30px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  #negative h1, #unavailable h1 { font-size: 28px; letter-spacing: -.9px; }
  #positive, #negative { padding-top: 24px; }
  #positive h1 { font-size: 30px; }
  .back { margin-bottom: 18px; }
  .intro { font-size: 14px; margin-bottom: 26px; }
  .choice { min-height: 106px; }
  .field-meta { font-size: 9px; gap: 8px; }
  .small-note { font-size: 10px; }
  #received { padding: 40px 24px 36px; }
}
@media (max-width: 340px) {
  .view { padding-right: 20px; padding-left: 20px; }
  h1 { font-size: 27px; }
  #negative h1 { font-size: 25px; }
  #positive h1 { font-size: 27px; }
  .field-meta { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
