:root {
  --sage: #6f8f75;
  --sage-dark: #4d6b53;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #2b2d2a;
  --ink-soft: #5b5e58;
  --line: #e4e0d4;
  --accent: #c98a5e;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  text-align: center;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage-dark);
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--ink);
}

h2 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
  color: var(--sage-dark);
}

p { margin: 0 0 14px; color: var(--ink-soft); }

.lede { color: var(--ink); font-size: 1rem; margin-bottom: 20px; }

.progress {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 22px;
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  background: var(--sage);
  transition: width 0.25s ease;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  margin-bottom: 18px;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--paper);
}

textarea { min-height: 140px; }

.message-box {
  background: #f4f1e8;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--ink);
}

.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 12px;
}

button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

button.primary {
  background: var(--sage-dark);
  color: #fff;
}

button.primary:hover { opacity: 0.9; }

button.secondary {
  background: transparent;
  color: var(--ink-soft);
  padding: 12px 10px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.briefing-section { margin-bottom: 18px; }

.briefing-section ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); }
.briefing-section li { margin-bottom: 6px; }

.product {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.product h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ink);
}

.product a { font-size: 0.85rem; }

a { color: var(--sage-dark); text-decoration: underline; }

.callout {
  background: #eef2ea;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: var(--ink);
}

.thankyou {
  text-align: center;
  padding: 20px 0;
}

.thankyou .mark {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.error-banner {
  background: #fbeaea;
  border: 1px solid #e3a9a9;
  color: #7a2b2b;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.foot {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: -12px;
  margin-bottom: 18px;
}

@media (max-width: 480px) {
  .card { padding: 24px 18px; }
  .btn-row { flex-direction: column-reverse; align-items: stretch; }
  button { width: 100%; }
}
