:root {
  --bg: #fafaf7;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #e85d3a;
  --border: #e5e5e0;
  --success-bg: #e8f5e9;
  --success-text: #1b5e20;
  --error-bg: #ffebee;
  --error-text: #b71c1c;
}

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

header,
main,
footer {
  max-width: 36rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.bg-pods {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pod {
  position: absolute;
  width: 56px;
  animation: float var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform: rotate(var(--rot, 0deg));
  opacity: 0.55;
  will-change: transform;
}

.pod svg {
  width: 100%;
  height: auto;
  display: block;
}

.pod-small {
  width: 38px;
  opacity: 0.45;
}

@keyframes float {
  0%, 100% {
    transform: rotate(var(--rot, 0deg)) translateY(0);
  }
  50% {
    transform: rotate(calc(var(--rot, 0deg) + 6deg)) translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pod {
    animation: none;
  }
}

header {
  padding-top: 1.25rem;
  padding-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero {
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.subhead {
  font-size: 1.125rem;
  color: var(--muted);
}

section {
  margin-bottom: 1.75rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.benefits ul,
.how ol {
  list-style: none;
  padding-left: 0;
}

.benefits li,
.how li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.benefits li:last-child,
.how li:last-child {
  border-bottom: none;
}

.how ol {
  counter-reset: step;
}

.how li {
  counter-increment: step;
  padding-left: 2rem;
  position: relative;
}

.how li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-weight: 600;
  color: var(--accent);
}

.signup form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: white;
  font-family: inherit;
  color: inherit;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

input[aria-invalid="true"] {
  border-color: var(--error-text);
}

button {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease;
}

button:hover {
  background: var(--accent);
}

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

.note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-message:empty {
  display: none;
}

.form-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.form-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.field-error {
  display: block;
  font-size: 0.875rem;
  color: var(--error-text);
  margin-top: 0.5rem;
}

.field-error:empty {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.legal {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.legal .back-link:hover {
  color: var(--accent);
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0 0 1rem 1.25rem;
  padding-left: 0.5rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-word;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }
  .subhead {
    font-size: 1rem;
  }
  .signup form {
    flex-direction: column;
  }
  button {
    width: 100%;
  }
  .pod {
    width: 44px;
  }
  .pod-small {
    display: none;
  }
}
