:root {
  --bg: #f6f5f2;
  --bg-elevated: #ffffff;
  --text: #2a2824;
  --text-secondary: #5c5852;
  --text-muted: #8a857c;
  --accent: #5f7268;
  --accent-hover: #4d5f56;
  --border: rgba(42, 40, 36, 0.1);
  --shadow: 0 12px 40px rgba(42, 40, 36, 0.06);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-width: 420px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.signup-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 0;
  gap: 2.5rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: 0.25rem;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.scripture-rotator {
  display: grid;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.scripture {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.scripture.active {
  opacity: 1;
}

.scripture-ref {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.signup-card,
.thank-you-card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.signup-card h1,
.thank-you-card h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.signup-card .lead,
.thank-you-card .lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-form label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.signup-form input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 114, 104, 0.15);
}

.signup-form input.invalid {
  border-color: #c45c5c;
}

.form-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #b54a4a;
  min-height: 1.25rem;
}

.submit-btn {
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

a.store-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
}

.hidden {
  display: none !important;
}

.thank-you-card .check {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(95, 114, 104, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.thank-you-card .note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

.thank-you-card .note a {
  color: var(--accent);
  font-weight: 500;
}

.spam-callout {
  margin: 0;
  padding: 1rem 1.125rem;
  background: #fdf6e8;
  border: 1.5px solid #d4a84b;
  border-radius: 12px;
  text-align: center;
}

.spam-callout__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: #9a6b12;
  letter-spacing: -0.01em;
}

.spam-callout__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: #6b4f0f;
}

.spam-callout__text strong {
  font-weight: 800;
  color: #9a6b12;
}

.legal-note {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.legal-note--centered {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.legal-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 114, 104, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.legal-note a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Privacy policy page */
.legal-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  padding: 1rem 1.25rem 0;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

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

.legal-card {
  width: 100%;
  max-width: 640px;
  margin: 1rem auto 2rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.legal-lead {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-meta {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-section p {
  margin: 0 0 0.75rem;
}

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

.legal-section li + li {
  margin-top: 0.35rem;
}

.legal-email {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-email:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .signup-page {
    gap: 2.75rem;
    padding: 3rem 1.5rem;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .scripture {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scripture {
    transition: none;
  }
}
