/* ============================================================
   EZBunny Marketing Site — Design Tokens & Styles
   Based on Brand Kit and UI Style Guide ("Refined Warmth")
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */

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

/* ── Design Tokens ─────────────────────────────────────────── */

:root {
  /* Colors */
  --color-bg: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-text: #1A1814;
  --color-text-secondary: #6B645A;
  --color-text-muted: #736B62;
  --color-border: #E8E3DB;
  --color-border-light: #F0ECE5;
  --color-accent: #AD4B1E;
  --color-accent-hover: #8E3C15;
  --color-accent-subtle: rgba(173, 75, 30, 0.08);
  --color-success: #2D6A4F;
  --color-success-subtle: rgba(45, 106, 79, 0.08);
  --color-error: #B83232;
  --color-error-subtle: rgba(184, 50, 50, 0.07);

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 24, 20, 0.06), 0 1px 4px rgba(26, 24, 20, 0.04);
  --shadow-lg: 0 12px 40px rgba(26, 24, 20, 0.08), 0 2px 8px rgba(26, 24, 20, 0.04);
  --shadow-focus: 0 0 0 3px rgba(173, 75, 30, 0.2);
}

/* ── Base ──────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Container ─────────────────────────────────────────────── */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  padding: 24px 0;
  text-align: center;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
}

.brand-dot {
  color: var(--color-accent);
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-surface);
  box-shadow: 0 2px 8px rgba(173, 75, 30, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(173, 75, 30, 0.3);
  color: var(--color-surface);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(173, 75, 30, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Features ──────────────────────────────────────────────── */

.features {
  padding: 48px 0;
}

.features h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 36px;
  color: var(--color-text);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── Pricing ───────────────────────────────────────────────── */

.pricing {
  padding: 48px 0;
  text-align: center;
}

.pricing h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--color-text);
}

.pricing-card {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-accent);
  line-height: 1;
}

.pricing-period {
  font-size: 18px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.pricing-details {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.pricing-details li {
  font-size: 16px;
  color: var(--color-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-details li:last-child {
  border-bottom: none;
}

.pricing-check {
  color: var(--color-success);
  margin-right: 8px;
  font-weight: 700;
}

.pricing-anchor {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Waitlist ──────────────────────────────────────────────── */

.waitlist {
  padding: 48px 0;
  text-align: center;
}

.waitlist h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--color-text);
}

.waitlist-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 8px;
}

.waitlist-form input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.waitlist-form input[type="email"]:hover {
  border-color: var(--color-text-muted);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
  background: #FFFDF9;
}

.waitlist-form .btn {
  width: 100%;
}

.waitlist-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  min-height: 24px;
}

.success-message {
  color: var(--color-success);
  background: var(--color-success-subtle);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.error-message {
  color: var(--color-error);
  background: var(--color-error-subtle);
  border: 1px solid rgba(184, 50, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

/* ── Disclaimer ────────────────────────────────────────────── */

.disclaimer {
  padding: 32px 0;
  text-align: center;
}

.disclaimer-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Legal/Prose Pages ─────────────────────────────────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.prose h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.prose .last-updated {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.prose ul,
.prose ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-accent-hover);
}

/* ── Accessibility ─────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Reduced Motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .pricing-amount {
    font-size: 40px;
  }

  .brand-mark {
    font-size: 24px;
  }
}
