/* WelQu Landing — design tokens mirror src/constants/theme.ts */

:root {
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --surface-alt: #FAF8FF;
  --border: #E8E2F5;

  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --accent-dark: #7C3AED;

  --lavender: #EDE9FE;
  --lavender-deep: #DDD6FE;
  --teal: #4ECDC4;
  --teal-light: #80E5DF;

  --text: #2A1F3D;
  --text-secondary: #6B5F70;
  --text-muted: #9E93A5;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.16);

  --font-display: 'Pacifico', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ─── Layout containers ───────────────────────────────── */

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

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

/* ─── Navigation ──────────────────────────────────────── */

.nav {
  padding: 24px 0;
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-dark);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(139, 92, 246, 0.25);
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

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

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

.hero-wordmark {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  color: var(--accent-dark);
  margin: 0 0 24px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ─── Cards (ornate rounded) ──────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.card-feature {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--lavender);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-pricing {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.card-pricing-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.card-pricing-featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-full, 999px);
}

/* ─── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--lavender);
  color: var(--accent-dark);
}
.btn-secondary:hover {
  background: var(--lavender-deep);
  text-decoration: none;
}

.btn-block { display: block; width: 100%; text-align: center; }

/* ─── Forms ──────────────────────────────────────────── */

.signup-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-msg {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  margin-top: 4px;
}
.form-msg.error { color: #DC2626; }
.form-msg.success { color: var(--accent-dark); }

/* ─── Sections ───────────────────────────────────────── */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
}

/* ─── Grids ──────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-wordmark { font-size: 64px; }
  .hero-title { font-size: 30px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 48px 0; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
}

/* ─── Feature card content ───────────────────────────── */

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-body {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ─── Pricing tier styling ───────────────────────────── */

.tier-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.tier-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 4px;
}

.tier-price small {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tier-period {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.tier-features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: '✓ ';
  color: var(--teal);
  font-weight: 700;
  margin-right: 6px;
}

/* ─── Prose pages (privacy / terms) ──────────────────── */

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.prose h1 { font-size: 32px; margin: 0 0 24px; letter-spacing: -0.3px; }
.prose h2 { font-size: 22px; margin: 32px 0 12px; color: var(--accent-dark); }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-secondary); line-height: 1.7; font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose .last-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

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

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
