:root {
  color-scheme: light;
  --bg-top: #f0fdf4;
  --bg-bottom: #eff6ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --accent: #16a34a;
  --accent-deep: #15803d;
  --accent-soft: #dcfce7;
  --secondary: #e2e8f0;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.85)),
    linear-gradient(135deg, var(--bg-top) 0%, #ffffff 45%, var(--bg-bottom) 100%);
}

body {
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  padding: 40px 16px 56px;
}

.page-shell {
  width: min(100%, 680px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.brand-block,
.purchase-panel,
.result-panel,
.mock-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand-block {
  padding: 28px 28px 24px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.brand-kicker,
.result-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

.brand-copy {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.pill-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(21, 128, 61, 0.12);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.purchase-panel,
.result-panel,
.mock-panel {
  padding: 28px;
}

.purchase-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.form-field span {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
button,
.link-button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

input,
textarea {
  padding: 14px 16px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

input {
  min-height: 54px;
  text-align: center;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(34, 197, 94, 0.18);
  border-color: rgba(22, 163, 74, 0.4);
}

button,
.link-button {
  min-height: 54px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, #22c55e 0%, #0ea5e9 100%);
  border: none;
  color: #ffffff;
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
}

.message {
  min-height: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.message.success {
  color: var(--accent-deep);
}

.message.error {
  color: #dc2626;
}

.hidden {
  display: none;
}

.result-header {
  text-align: center;
}

.result-summary {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.summary-row span {
  color: var(--muted);
  font-size: 14px;
}

.summary-row strong {
  max-width: 65%;
  text-align: right;
  font-size: 15px;
  word-break: break-word;
}

.result-actions,
.mock-actions {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.mock-page {
  width: 100%;
  padding: 56px 16px;
}

.mock-shell {
  width: min(100%, 680px);
  margin: 0 auto;
}

.mock-panel {
  display: grid;
  gap: 18px;
  text-align: center;
}

.mock-copy,
.field-label {
  color: var(--muted);
}

.mock-order-grid {
  display: grid;
  gap: 12px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.mock-row strong {
  max-width: 65%;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 640px) {
  .page {
    padding-top: 24px;
  }

  .brand-block,
  .purchase-panel,
  .result-panel,
  .mock-panel {
    padding: 22px 18px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .summary-row,
  .mock-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-row strong,
  .mock-row strong {
    max-width: 100%;
    text-align: left;
  }
}
