/* ====================================================================
   PDFTextFixer — Design System
   ====================================================================
   Typography: Bricolage Grotesque (headings) + Karla (body)
   Palette: warm paper, dark ink, warm red accent
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Typography */
  --font-heading: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-alt: #faf8f4;
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --border: #e7e5e4;
  --border-light: #f0eeea;

  /* Accent — Warm Red */
  --accent: #c44536;
  --accent-hover: #a93a2c;
  --accent-light: #fef2f0;

  /* Action — Blue (links) */
  --action: #1d4ed8;
  --action-hover: #1e40af;

  /* Success — Green */
  --success: #16a34a;
  --success-hover: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #86efac;

  /* Danger */
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  /* Layout */
  --container-width: 1080px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 2px 8px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08), 0 2px 6px rgba(28, 25, 23, 0.04);
}

/* ---- Top Accent Stripe ---- */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #d97706, var(--accent));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-top: 3px; /* offset for the fixed accent stripe */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img { max-width: 100%; display: block; }
strong { font-weight: 700; }

/* ---- Layout ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

section {
  margin-bottom: 2rem;
}

main {
  margin-bottom: 2rem;
}

/* ---- Navigation ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 0 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Header / Hero ---- */
header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---- Upload Widget ---- */
.upload-widget {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.upload-area {
  padding: 4rem 3rem;
  text-align: center;
  border: 2px dashed var(--border);
  margin: 1.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface-alt);
}

.upload-area:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  transform: scale(1.01);
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.upload-area h2 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.upload-area p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.browse-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 69, 54, 0.25);
}

/* ---- Upload Progress ---- */
.upload-progress {
  padding: 2rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #d97706);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* ---- Pricing ---- */
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.pricing-card h3 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.file-info {
  background: var(--surface-alt);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.file-info p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.file-info p:last-child { margin-bottom: 0; }

.pricing-breakdown {
  margin-bottom: 1.5rem;
}

.pricing-breakdown h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.price-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.price-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 2px solid var(--border);
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.checkout-btn {
  width: 100%;
  background: var(--success);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.25rem;
}

.checkout-btn:hover {
  background: var(--success-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.checkout-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.guarantee {
  text-align: center;
  background: var(--success-bg);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--success);
}

.guarantee p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

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

.guarantee a {
  color: var(--accent);
  font-weight: 600;
}

/* ---- Error Card ---- */
.error-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border-left: 3px solid var(--danger);
}

.error-card h3 {
  color: var(--danger);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.retry-btn {
  background: var(--text);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.15s ease;
}

.retry-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

/* ---- Benefits Section ---- */
.benefits-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.benefits-section h2 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.benefits-section > p {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: left;
}

.benefits-section > p:first-of-type {
  text-align: center;
}

.benefits {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.benefit h3 {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit.primary h3 { color: var(--success); }
.benefit.secondary h3 { color: var(--accent); }

.benefit.primary {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.benefit.secondary {
  border-color: #fecaca;
  background: var(--accent-light);
}

.benefit p {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.use-cases {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.use-cases h3 {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.use-cases ul {
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 2rem;
}

.use-cases li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  break-inside: avoid;
}

/* ---- Internal Links (homepage) ---- */
.internal-links {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
}

.internal-links h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

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

.link-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.link-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ---- Footer ---- */
footer {
  padding: 2rem 0 0;
  text-align: center;
}

/* When footer contains the features grid (homepage / landing pages) */
.features {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.legal-links a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ---- Success Page ---- */
.success-section {
  margin-bottom: 2rem;
}

.success-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
  margin-bottom: 2rem;
}

.status-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.success-card h2 {
  font-family: var(--font-heading);
  color: var(--success);
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.success-message {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.processing-status {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.status-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner { margin-bottom: 1rem; }

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

#statusTitle {
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

#statusMessage {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.download-section {
  background: var(--success-bg);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.download-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.download-section h3 {
  font-family: var(--font-heading);
  color: var(--success);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.download-btn {
  display: inline-block;
  background: var(--success);
  color: white;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1rem 0;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background: var(--success-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.download-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

/* Success page error */
.error-section {
  background: var(--danger-bg);
  border: 2px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.error-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.error-section h3 {
  font-family: var(--font-heading);
  color: var(--danger);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.support-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.support-message a {
  color: var(--accent);
  font-weight: 600;
}

/* Job info */
.job-info {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  margin-top: 1.5rem;
}

.job-info h4 {
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.info-item .label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-item .value {
  color: var(--text);
  font-size: 0.9rem;
}

.status-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.status-awaiting_payment { background: #fef3c7; color: #92400e; }
.status-badge.status-paid { background: #dbeafe; color: #1e40af; }
.status-badge.status-processing { background: #fef3c7; color: #92400e; }
.status-badge.status-processed { background: #dcfce7; color: #166534; }
.status-badge.status-failed { background: #fecaca; color: var(--danger); }

/* Explanation card (success page) */
.explanation-section { margin-bottom: 2rem; }

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

.explanation-card h3 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.problem, .solution {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.problem {
  background: var(--danger-bg);
  border-left: 3px solid var(--danger);
}

.solution {
  background: var(--success-bg);
  border-left: 3px solid var(--success);
}

.problem h4, .solution h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.problem h4 { color: var(--danger); }
.solution h4 { color: var(--success); }

.problem ul, .solution ul {
  margin: 0;
  padding-left: 1.25rem;
}

.problem li, .solution li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tech-note {
  background: var(--surface-alt);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--action);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- Blog Index ---- */
.blog-list {
  max-width: 740px;
  margin: 0 auto;
}

.blog-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.blog-list-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.blog-list-item:last-child {
  margin-bottom: 0;
}

.blog-list-item h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.blog-list-item h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-list-item h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.blog-list-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

/* ---- Blog Post ---- */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.blog-post h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-post h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-post p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.blog-post ul,
.blog-post ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.blog-post li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.blog-post a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(196, 69, 54, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.blog-post a:hover {
  text-decoration-color: var(--accent);
}

/* Blog CTA */
.blog-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.blog-cta h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.blog-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ---- FAQ Section ---- */
.faq-section {
  margin: 2.5rem auto;
  max-width: 720px;
}

.faq-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Related Posts ---- */
.related-posts {
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.related-posts h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

.related-posts li::before {
  content: '\2192';
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.related-posts a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.related-posts a:hover {
  text-decoration: underline;
}

/* ---- Legal Pages ---- */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.75;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--accent);
}

/* ---- Feedback ---- */
.feedback-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.feedback-prompt {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.feedback-btn {
  font-size: 1.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}

.feedback-btn:hover {
  transform: scale(1.1);
  border-color: var(--text-muted);
}

.feedback-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.feedback-comment {
  margin-top: 0.75rem;
}

.feedback-comment textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  resize: vertical;
  box-sizing: border-box;
  background: var(--surface);
}

.feedback-comment textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.1);
}

.feedback-submit-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

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

.feedback-thanks p {
  color: var(--success);
  font-weight: 600;
}

/* ---- Utilities ---- */
.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---- Page Load Animation ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > header,
.container > main,
.container > .blog-list,
.container > article {
  animation: fadeUp 0.5s ease-out both;
}

.container > main { animation-delay: 0.05s; }
.container > .benefits-section { animation: fadeUp 0.5s ease-out 0.1s both; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1.25rem 2rem;
  }

  header {
    padding-top: 1rem;
    margin-bottom: 2rem;
  }

  header h1 {
    font-size: 2.25rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .upload-area {
    padding: 2.5rem 1.5rem;
    margin: 1rem;
  }

  .pricing-card {
    padding: 1.75rem 1.25rem;
  }

  .benefits-section {
    padding: 2rem 1.25rem;
  }

  .benefits-section h2 {
    font-size: 1.5rem;
  }

  .use-cases ul {
    columns: 1;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  footer {
    padding: 1.5rem 0 0;
  }

  /* Success page */
  .success-card {
    padding: 1.75rem 1.25rem;
  }

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

  .problem-solution {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .explanation-card {
    padding: 1.5rem 1.25rem;
  }

  /* Blog */
  .blog-post h1 {
    font-size: 1.75rem;
  }

  .blog-list-item {
    padding: 1.25rem;
  }

  .site-nav {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.85rem;
  }

  .upload-area h2 {
    font-size: 1.25rem;
  }

  .blog-post h1 {
    font-size: 1.5rem;
  }
}
