:root {
  --bg: #fdf8f2;
  --surface: #ffffff;
  --ink: #2b2337;
  --muted: #6f6580;
  --primary: #7c3aed;
  --primary-dark: #6528d9;
  --accent: #f59e0b;
  --border: #e8e0d6;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(43, 35, 55, 0.08);
}

* {
  box-sizing: border-box;
}

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

h1, h2, h3 {
  line-height: 1.2;
}

a {
  color: var(--primary);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-email {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--muted);
}

.button-large {
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
}

.button-full {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* Flash messages */

.flash {
  max-width: 42rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.flash-alert {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c2;
}

.flash-notice {
  background: #e9f7ef;
  color: #1d7a46;
  border: 1px solid #bfe8d0;
}

/* Landing page */

.landing {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 4rem;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 0.75rem;
  max-width: 36rem;
}

.subtag {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.signed-in-note {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Features */

.features, .testimonials {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.features h2, .testimonials h2, .cta h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.testimonial-grid blockquote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.testimonial-grid p {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.testimonial-grid cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

/* CTA + footer */

.cta {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

/* Auth pages */

.auth-page {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 26rem;
}

.auth-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-field input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg);
}

.form-field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.form-errors {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius);
  color: #b3261e;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.25rem 0 0;
}
