* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fffbf5;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-primary: #e07b39;
  --color-primary-hover: #c66a2f;
  --color-border: #ddd;
  --color-input-bg: #fff;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.tagline {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.price-value {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
}

.signup-form {
  background: var(--color-input-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-input-bg);
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading[hidden] {
  display: none;
}

.terms {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.value-prop {
  margin-bottom: 2.5rem;
}

.value-prop h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-prop > p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.benefits {
  list-style: none;
}

.benefits li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.how-it-works {
  margin-bottom: 2.5rem;
}

.how-it-works h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.how-it-works ol {
  list-style: none;
  counter-reset: steps;
}

.how-it-works li {
  counter-increment: steps;
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
}

.how-it-works li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

footer a {
  color: var(--color-primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin-bottom: 0.25rem;
}

/* Success page */
.success-page {
  text-align: center;
  padding-top: 4rem;
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-page p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.checkmark {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.checkmark svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  stroke-width: 3;
}

/* Unsubscribe page */
.unsubscribe-page {
  text-align: center;
  padding-top: 4rem;
}

.unsubscribe-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.unsubscribe-page p {
  color: var(--color-text-muted);
}

/* Error state */
.error-message {
  background: #fee;
  color: #c00;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.error-message[hidden] {
  display: none;
}

/* Responsive */
@media (min-width: 600px) {
  .container {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .signup-form {
    padding: 2rem;
  }
}
