/* =============================================
   ConvertPDF Online — Design System
   Style: Ultra-minimal utility (Linear / Vercel)
   ============================================= */

/* --- Custom Properties --- */
:root {
  --white: #FFFFFF;
  --primary: #0066FF;
  --primary-light: #EFF6FF;
  --headline: #111827;
  --body: #374151;
  --secondary: #6B7280;
  --muted: #6B7280;  /* slate-500; contrast 4.5:1 on white (AA) */
  --surface: #F8F9FA;
  --surface-dark: #F3F4F6;
  --border: #E5E7EB;
  --success: #047857;       /* emerald-700; 4.5:1 contrast on light bg */
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --dark: #1F2937;
  --near-black: #1a1a1a;

  /* System font stack: instant rendering, no network request, native
     feel on each OS. Removing DM Sans eliminated a 500ms render-blocking
     stylesheet + 300ms font swap flash on every page load. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.2);

  --nav-height: 64px;
  --max-width: 1200px;
  --content-width: 800px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--headline);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 52px; letter-spacing: -0.02em; }
h2 { font-size: 36px; letter-spacing: -0.01em; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--secondary);
}

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

.container--narrow {
  max-width: var(--content-width);
}

.section {
  padding: 80px 0;
}

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--headline);
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  background: #D32F2F;  /* darker red; white text now 4.5:1 (AA) */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

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

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav__link .chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 110;
}

.dropdown.open .dropdown__menu {
  display: block;
}

.dropdown__item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--body);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.dropdown__item:hover {
  background: var(--surface);
  color: var(--primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  font-size: 16px;
}

.btn--primary:hover {
  background: #0052CC;
}

.btn--primary-lg {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  max-width: 600px;
  height: 56px;
  font-size: 18px;
  border-radius: var(--radius-md);
}

.btn--primary-lg:hover {
  background: #0052CC;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 20px;
  font-size: 14px;
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--black {
  background: var(--headline);
  color: var(--white);
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--black:hover {
  background: #000;
}

.btn--dark {
  background: var(--near-black);
  color: var(--white);
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn--dark:hover {
  background: #333;
}

.btn--gray {
  background: var(--surface-dark);
  color: var(--headline);
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn--gray:hover {
  background: var(--border);
}

.btn--success {
  background: var(--success);
  color: var(--white);
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--radius-md);
}

.btn--success:hover {
  background: #059669;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.badge--success {
  background: var(--success-light);
  color: var(--success);
}

.badge--blue {
  background: var(--primary-light);
  color: #0052CC;  /* darker primary; 4.5:1 on primary-light (AA) */
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 80px 0 48px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 16px 0;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
}

/* --- Drop Zone --- */
.dropzone {
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 48px 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone__icon {
  font-size: 48px;
  color: var(--muted);
  margin-bottom: 16px;
}

.dropzone__text {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 4px;
}

.dropzone__or {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}

.dropzone__formats {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* Drop zone states */
.dropzone[data-state="selected"] {
  border-style: solid;
  border-color: var(--border);
}

.dropzone[data-state="converting"] {
  border-style: solid;
  border-color: var(--primary);
  pointer-events: none;
}

.dropzone[data-state="done"] {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-light);
}

/* File preview */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 4px;
  max-height: 420px;
  overflow-y: auto;
}

.file-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

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

.file-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.file-card.drag-over {
  border-color: var(--primary);
  border-width: 2px;
}

.file-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-card__thumb-icon {
  font-size: 40px;
  color: var(--muted);
}

.file-card__info {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}

.file-card__name {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--headline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease;
}

.file-card__name:hover {
  border-bottom-color: var(--primary);
}

.file-card__size {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.file-card__order {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-card__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: none;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s ease;
}

.file-card__remove:hover {
  background: #FF4444;
}

.file-preview {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.file-preview.show {
  display: flex;
}

.file-preview__thumb {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-preview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview__info {
  flex: 1;
  text-align: left;
}

.file-preview__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
}

.file-preview__size {
  font-size: 13px;
  color: var(--muted);
}

.file-preview__check {
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Progress bar */
.progress-bar {
  display: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar.show {
  display: block;
}

.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-anim 1.5s ease-in-out infinite;
}

@keyframes progress-anim {
  0% { width: 10%; }
  50% { width: 80%; }
  100% { width: 95%; }
}

/* Done state */
.done-state {
  display: none;
  text-align: center;
}

.done-state.show {
  display: block;
}

.done-state__check {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: 50%;
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.done-state__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--headline);
  margin-bottom: 20px;
}

.done-state__again {
  font-size: 14px;
  color: var(--primary);
  margin-top: 16px;
  display: inline-block;
}

.done-state__again:hover {
  text-decoration: underline;
}

/* Settings row */
.settings-row {
  max-width: 600px;
  margin: 16px auto 0;
}

.settings-toggle {
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-toggle:hover {
  background: var(--surface-dark);
  border-color: var(--muted);
}

.settings-options {
  display: none;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1fr;
}

.settings-options.open {
  display: grid;
}

.settings-options select {
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--body);
  cursor: pointer;
}

/* Convert button */
.convert-btn-wrap {
  max-width: 600px;
  margin: 24px auto 0;
}

/* Sticky variant: shown when the user has selected files but not yet converted.
   Pins the Convert button to the bottom of the viewport so it stays visible
   even when the file grid is long. */
.convert-btn-wrap--sticky {
  position: sticky;
  bottom: 16px;
  z-index: 50;
  margin-top: 24px;
  padding: 12px 0;
  background: linear-gradient(to top, var(--white) 70%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .convert-btn-wrap--sticky {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0;
    padding: 0;
    max-width: none;
    background: none;
    backdrop-filter: none;
  }
  .convert-btn-wrap--sticky .btn--primary-lg {
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  }
}

/* --- How It Works --- */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.how-it-works__step {
  padding: 24px;
}

.how-it-works__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}

.how-it-works__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
}

/* --- Trust Badges --- */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.trust-badge__icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-badge__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--headline);
}

/* --- Post-Conversion App CTA --- */
.post-conversion-cta {
  max-width: 600px;
  margin: 0 auto;
}

.post-conversion-cta__divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.post-conversion-cta__content {
  text-align: center;
}

.post-conversion-cta__heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--headline);
  margin-bottom: 20px;
}

.post-conversion-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-conversion-cta__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

.post-conversion-cta__btn--apple {
  background: var(--headline);
  color: var(--white);
  height: 52px;
  font-size: 16px;
}

.post-conversion-cta__btn--apple:hover {
  background: #000;
}

.post-conversion-cta__btn--android {
  background: var(--headline);
  color: var(--white);
  height: 52px;
  font-size: 16px;
}

.post-conversion-cta__btn--android:hover {
  background: #333;
}

.post-conversion-cta__btn--chrome {
  background: var(--surface-dark);
  color: var(--headline);
  height: 44px;
  font-size: 14px;
}

.post-conversion-cta__btn--chrome:hover {
  background: var(--border);
}

.post-conversion-cta__btn--primary {
  background: var(--primary);
  color: var(--white);
  height: 56px;
  font-size: 17px;
}

.post-conversion-cta__btn--primary:hover {
  background: #0052CC;
}

.post-conversion-cta__tagline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* --- App Download CTA --- */
.app-download {
  text-align: center;
  padding: 60px 0;
}

.app-download h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.app-download__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-download__buttons .btn {
  min-width: 220px;
  height: 52px;
  font-size: 16px;
  padding: 0 28px;
}

/* --- Related Tools --- */
.related-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-tool {
  display: block;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.related-tool:hover {
  border-color: var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.related-tool__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.related-tool__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
}

/* --- Format Grid (Home) --- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.format-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.format-card__ext {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.format-card__name {
  font-size: 13px;
  color: var(--secondary);
}

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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--headline);
}

.footer__link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

/* =============================================
   PAGE 3: Blog Article
   ============================================= */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-main {
  max-width: 680px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.breadcrumb a {
  color: var(--muted);
}

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

.breadcrumb__sep {
  color: var(--border);
}

/* Blog meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

/* Blog content */
.blog-content h2 {
  font-size: 28px;
  margin: 48px 0 16px;
}

.blog-content h3 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.blog-content a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
}

.blog-content a:not(.btn):hover {
  color: #0052CC;
}

/* Buttons inside article content keep their own colors, not the link color.
   Forces the button text to stay readable against its background. */
.blog-content .btn {
  text-decoration: none;
}
.blog-content .btn--primary,
.blog-content .btn--primary-lg,
.blog-content .btn--black,
.blog-content .btn--dark {
  color: var(--white);
}
.blog-content .btn--outline {
  color: var(--primary);
}
.blog-content .cta-block--dark .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.blog-content .cta-block--dark .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.blog-content blockquote {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.blog-content blockquote a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ol,
.blog-content ul {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-content li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
}

/* CTA blocks */
.cta-block {
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.cta-block--blue {
  background: var(--primary-light);
}

.cta-block--white {
  background: var(--white);
  border: 1px solid var(--border);
}

.cta-block--dark {
  background: var(--dark);
  color: var(--white);
}

.cta-block__text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.cta-block--dark .cta-block__text {
  color: var(--white);
}

.cta-block__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-block--dark .cta-block__title {
  color: var(--white);
}

.cta-block__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-block__buttons .btn {
  min-width: 220px;
  height: 52px;
  font-size: 16px;
}

.cta-block__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* FAQ */
.faq {
  margin: 48px 0;
}

.faq h2 {
  margin-bottom: 24px;
}

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

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--headline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item__chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.faq-item.open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--secondary);
}

.faq-item.open .faq-item__answer {
  display: block;
}

.faq-item__answer a {
  color: var(--primary);
  text-decoration: underline;
}

.faq-item__answer a:hover {
  color: #0052CC;
}

/* Related articles */
.related-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
}

.article-card__thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, #4D90FF 50%, #7FB3FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.10), transparent 55%);
}

.article-card__thumb-label {
  position: relative;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  padding: 0 16px;
  text-align: center;
  white-space: nowrap;
}

/* Blog index list (layouts/blog/list.html) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 80px;
}

.blog-list__card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  align-items: stretch;
}

.blog-list__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.blog-list__thumb {
  height: 140px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #4D90FF 50%, #7FB3FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-list__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.10), transparent 55%);
}

.blog-list__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.blog-list__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.blog-list__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--headline);
  margin: 0;
  line-height: 1.3;
}

.blog-list__desc {
  font-size: 15px;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .blog-list__card {
    grid-template-columns: 1fr;
  }
  .blog-list__thumb {
    height: 120px;
  }
  .blog-list__title {
    font-size: 18px;
  }
}

.article-card__body {
  padding: 16px;
}

.article-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--headline);
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card__meta {
  font-size: 12px;
  color: var(--muted);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--headline);
}

/* TOC */
.toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc__link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--secondary);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all 0.15s ease;
}

.toc__link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.toc__link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 500;
}

/* Sidebar related tools */
.sidebar-tools__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-tools__link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--body);
  border-radius: var(--radius-md);
}

.sidebar-tools__link:hover {
  background: var(--surface);
  color: var(--primary);
}

/* =============================================
   PAGE 4: App Landing
   ============================================= */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.app-hero__text h1 {
  font-size: 48px;
}

.app-hero__subtitle {
  font-size: 20px;
  color: var(--secondary);
  margin: 16px 0 32px;
}

.app-hero__rating {
  margin-top: 16px;
  font-size: 14px;
  color: var(--secondary);
}

.app-hero__rating .stars {
  color: #FACC15;
  margin-right: 4px;
}

.app-hero__mockup {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--headline);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

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

.feature-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--headline);
  margin-bottom: 4px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--secondary);
}

/* Screenshot carousel */
.screenshots {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 40px 0;
  overflow-x: auto;
}

.screenshot {
  width: 220px;
  height: 440px;
  background: var(--headline);
  border-radius: 28px;
  padding: 8px;
  flex-shrink: 0;
}

.screenshot__inner {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-card__user {
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
}

.review-card__stars {
  font-size: 14px;
  color: #FACC15;
}

.review-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 8px;
}

.review-card__date {
  font-size: 12px;
  color: var(--muted);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 80px 24px;
}

.final-cta h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.final-cta__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--primary);
}

.final-cta__link:hover {
  text-decoration: underline;
}

/* =============================================
   PAGE 5: Paywall Modal
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--white);
  max-width: 420px;
  width: 90%;
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  border-radius: var(--radius-md);
}

.modal__close:hover {
  background: var(--surface);
  color: var(--headline);
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--headline);
  text-align: center;
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 15px;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 28px;
}

.modal__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  cursor: pointer;
  border: none;
}

.modal__btn--apple {
  background: var(--headline);
  color: var(--white);
  height: 52px;
  font-size: 16px;
}

.modal__btn--google {
  background: var(--headline);
  color: var(--white);
  height: 52px;
  font-size: 16px;
}

.modal__btn--chrome {
  background: var(--surface-dark);
  color: var(--headline);
  height: 44px;
  font-size: 14px;
}

.modal__btn:hover {
  opacity: 0.9;
}

.modal__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.modal__divider::before,
.modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal__divider span {
  font-size: 13px;
  color: var(--muted);
}

.modal__premium {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--secondary);
}

.modal__premium:hover {
  text-decoration: underline;
}

.modal__caption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

/* Bottom banner */
.paywall-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--near-black);
  z-index: 150;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
}

.paywall-banner.show {
  display: flex;
}

.paywall-banner__text {
  font-size: 14px;
  color: var(--white);
}

.paywall-banner__btn {
  background: var(--white);
  color: var(--headline);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  cursor: pointer;
}

.paywall-banner__btn:hover {
  background: var(--surface-dark);
}

.paywall-banner__close {
  color: var(--white);
  font-size: 18px;
  opacity: 0.6;
  position: absolute;
  right: 16px;
}

.paywall-banner__close:hover {
  opacity: 1;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }

  .nav__links { display: none; }

  .how-it-works,
  .trust-badges { grid-template-columns: 1fr; }

  .related-tools { grid-template-columns: repeat(2, 1fr); }

  .format-grid { grid-template-columns: repeat(2, 1fr); }

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

  .blog-sidebar {
    position: static;
  }

  /* Mobile: ToC is useless at page bottom after scrolling.
     CTA and Related tools are still valuable as end-of-article prompts. */
  .sidebar-card--toc {
    display: none;
  }
  /* Primary CTA moves to the very top so mobile readers see it immediately. */
  .sidebar-card--cta {
    order: -1;
  }

  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-hero__text h1 { font-size: 36px; }

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

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

  .related-articles { grid-template-columns: 1fr; }

  .screenshots { gap: 16px; }
  .screenshot { width: 180px; height: 360px; }
}

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

  .dropzone { padding: 32px 16px; }

  .app-download__buttons { flex-direction: column; }

  .cta-block__buttons { flex-direction: column; }
}
