:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #14161a;
  --muted: #6b7280;
  --border: #e3e6ea;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #b42318;
  --success: #067647;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 460px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: inherit;
  background: #fff;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  padding-top: 10px;
}

.btn-secondary:hover {
  background: transparent;
  color: var(--text);
}

.error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.875rem;
}

.meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  word-break: break-all;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 600;
}

.summary {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.summary span {
  color: var(--muted);
  flex-shrink: 0;
}

.summary strong {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price strong {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.features {
  margin: 20px 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.features li {
  margin-bottom: 6px;
}
