/* SundayBulletin.com - Design System CSS
   Google Fonts loaded via HTML <link> in each page */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Primary - warm navy blue (trust, tradition) */
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a8e;
  --color-primary-dark: #0f1f33;

  /* Accent - warm gold (church/spiritual warmth) */
  --color-accent: #c5943a;
  --color-accent-light: #dbb366;
  --color-accent-dark: #9a7420;

  /* Neutrals */
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e2dd;

  /* Feedback */
  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  --color-error: #b91c1c;
  --color-error-bg: #fef2f2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Typography */
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Spacing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Layout */
  --container-max: 1200px;
  --section-padding: 80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: var(--text-xl);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.06);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-cta {
  text-decoration: none;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-md);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile .nav-link {
  padding: 12px 14px;
  font-size: var(--text-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo-text {
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(30, 58, 95, 0.05);
  color: var(--color-primary);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover:not(:disabled) {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 32px;
  font-size: var(--text-lg);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: var(--text-sm);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.card-hover {
  transition: box-shadow 0.2s, transform 0.2s;
}

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

.form-helper {
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--color-error);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pro {
  background: var(--color-accent);
  color: #fff;
}

.badge-free {
  background: var(--color-border);
  color: var(--color-text-secondary);
}

/* ============================================================
   TEMPLATE PREVIEW CARD
   ============================================================ */
.template-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.template-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.template-card.selected {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.template-thumb {
  width: 100%;
  aspect-ratio: 400 / 520;
  background: var(--color-bg);
  overflow: hidden;
  position: relative;
}

.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card-body {
  padding: 12px 16px;
}

.template-card-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.template-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 2px 0 0;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

.toast-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.toast-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.toast-info {
  background: #eff6ff;
  color: var(--color-primary);
  border: 1px solid #bfdbfe;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   SPINNER / LOADING
   ============================================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(197,148,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-cta {
  margin-bottom: 16px;
}

.hero-note {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.step-number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 8px;
}

.step-card p {
  font-size: var(--text-base);
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 2px solid var(--color-border);
  position: relative;
}

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

.pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.pricing-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 28px;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

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

.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

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

.testimonial-card {
  padding: 28px;
}

.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--color-accent-light);
  line-height: 0;
  position: absolute;
  top: 16px;
  left: -8px;
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-church {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s, background 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #fff;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================================
   BEFORE/AFTER DEMO
   ============================================================ */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.demo-arrow {
  display: flex;
  align-items: center;
  padding-top: 40px;
  font-size: 2rem;
  color: var(--color-accent);
}

.demo-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.demo-panel-label {
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-border);
}

.demo-panel-label.before {
  background: #fef3c7;
  color: #92400e;
}

.demo-panel-label.after {
  background: #f0fdf4;
  color: #15803d;
}

.demo-panel-content {
  padding: 20px;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.demo-raw {
  font-family: monospace;
  color: var(--color-text-muted);
  white-space: pre-wrap;
}

.demo-bulletin {
  color: var(--color-text);
}

.demo-bulletin h4 {
  font-size: var(--text-base);
  text-align: center;
  margin-bottom: 4px;
}

.demo-bulletin .demo-date {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.demo-section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
  margin-bottom: 8px;
  margin-top: 12px;
}

.demo-section-title:first-of-type {
  margin-top: 0;
}

/* ============================================================
   PAGE HEADER (Inner pages)
   ============================================================ */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: var(--text-3xl);
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-inner {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover .blog-card-inner {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: var(--text-xl);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Blog post page */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.blog-post-meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 40px;
}

.blog-post h1 {
  font-size: clamp(1.8rem, 4vw, var(--text-3xl));
  margin-bottom: 16px;
  line-height: 1.25;
}

.blog-post h2 {
  font-size: var(--text-2xl);
  margin: 40px 0 16px;
}

.blog-post h3 {
  font-size: var(--text-xl);
  margin: 28px 0 12px;
}

.blog-post p {
  font-size: var(--text-lg);
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.blog-post ul, .blog-post ol {
  list-style: initial;
  padding-left: 28px;
  margin-bottom: 20px;
}

.blog-post ol {
  list-style: decimal;
}

.blog-post li {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

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

.blog-post .cta-box {
  background: rgba(30, 58, 95, 0.05);
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.blog-post .cta-box h3 {
  margin: 0 0 8px;
  font-size: var(--text-xl);
}

.blog-post .cta-box p {
  margin-bottom: 20px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin: 40px 0 16px;
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin: 28px 0 10px;
}

.legal-content p {
  font-size: var(--text-lg);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 28px;
  margin-bottom: 20px;
}

.legal-content li {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.legal-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* ============================================================
   CREATE PAGE
   ============================================================ */
.create-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}

.create-panel {
  padding: 36px;
  overflow-y: auto;
}

.create-panel-input {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

.create-panel-preview {
  background: var(--color-bg);
}

.create-panel h2 {
  font-size: var(--text-2xl);
  margin-bottom: 24px;
}

.create-textarea {
  min-height: 300px;
  font-size: var(--text-base);
  line-height: 1.7;
}

.create-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Preview panel */
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: var(--color-text-muted);
  gap: 16px;
}

.preview-placeholder-icon {
  font-size: 48px;
  opacity: 0.4;
}

.template-selector {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.template-thumb-mini {
  flex-shrink: 0;
  width: 80px;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.template-thumb-mini.selected {
  border-color: var(--color-accent);
}

.template-thumb-mini-img {
  width: 80px;
  height: 104px;
  background: var(--color-bg);
}

.template-thumb-mini-name {
  font-size: var(--text-xs);
  text-align: center;
  padding: 4px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.bulletin-preview {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Loading overlay */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 58, 95, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
}

.loading-box .spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
  color: var(--color-primary);
  margin: 0 auto 20px;
}

.loading-box h3 {
  font-size: var(--text-xl);
  margin-bottom: 8px;
}

.loading-box p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 96px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.account-nav-item:hover,
.account-nav-item.active {
  background: rgba(30, 58, 95, 0.08);
  color: var(--color-primary);
}

/* ============================================================
   USAGE METER
   ============================================================ */
.usage-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.usage-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.usage-bar-fill.near-limit {
  background: #d97706;
}

.usage-bar-fill.at-limit {
  background: var(--color-error);
}

/* ============================================================
   RESPONSIVE - Tablet (768px)
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --section-padding: 60px;
  }

  .create-layout {
    grid-template-columns: 1fr;
  }

  .create-panel-input {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }
}

/* ============================================================
   RESPONSIVE - Mobile (768px)
   ============================================================ */
@media (max-width: 767px) {
  html {
    font-size: 16px;
  }

  :root {
    --section-padding: 48px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .demo-arrow {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .create-panel {
    padding: 24px 16px;
  }

  .create-meta-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.bg-primary { background: var(--color-primary); }
.bg-accent { background: var(--color-accent); }
.bg-surface { background: var(--color-surface); }

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

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

.highlight-section {
  background: rgba(30, 58, 95, 0.04);
  border-radius: var(--radius-xl);
  padding: 48px;
}
