:root {
  color-scheme: light;
  --bg: #faf6ed;
  --ink: #18352d;
  --muted: #5c6d66;
  --green: #1f5f4b;
  --teal: #5a9c8f;
  --gold: #d6a74a;
  --rose: #c65c69;
  --line: rgba(31, 95, 75, 0.18);
  --surface: #fffdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 32px rgba(31, 95, 75, 0.08);
}

.brand {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 167, 74, 0.22);
  color: #6a4c08;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 20px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.offer {
  margin: 18px 0;
  padding: 14px;
  border-left: 5px solid var(--gold);
  background: rgba(214, 167, 74, 0.12);
  border-radius: 6px;
}

.success {
  margin: 18px 0;
  padding: 16px;
  border-left: 5px solid var(--green);
  background: rgba(90, 156, 143, 0.16);
  border-radius: 6px;
}

.summary {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary strong {
  color: var(--green);
  text-align: right;
}

.funnel {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

.funnel th,
.funnel td {
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  text-align: left;
}

.funnel td:last-child,
.funnel th:last-child {
  text-align: right;
}

.feedback {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.choice-row,
.choice-list {
  display: grid;
  gap: 8px;
}

.choice-row {
  grid-template-columns: 1fr 1fr;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

button,
.button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
}

button.secondary,
.button.secondary {
  background: #e8f0ed;
  color: var(--green);
}

button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.75;
  cursor: wait;
}

button.warn {
  background: var(--rose);
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font-size: 16px;
}

textarea {
  min-height: 84px;
}

.qr {
  width: min(270px, 100%);
  aspect-ratio: 1;
  display: block;
  margin: 18px auto;
  border: 10px solid white;
  border-radius: 8px;
  background: white;
}

.code {
  padding: 12px;
  border: 1px dashed var(--teal);
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  background: #f5fbf8;
}

.small {
  font-size: 13px;
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}
