/* ============================================
   PDF Compress — Premium Design System
   Mobile-first · CWV-optimized · WCAG 2.1
   ============================================ */

:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #818cf8;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 50%, #faf5ff 100%);
  --gradient-cta: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --header-height: 64px;
  --sticky-cta-height: 56px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --content-width: 760px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus { top: var(--space-md); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(79, 70, 229, 0);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: #fff;
}

.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-bg-muted);
  border-color: var(--color-text-light);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 0.5rem 0.75rem;
}

.btn--ghost:hover { background: rgba(79, 70, 229, 0.06); }

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--block { width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== HERO ========== */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-xl) 0 var(--space-2xl);
  position: relative;
}

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.hero__breadcrumb a { color: var(--color-text-muted); }
.hero__breadcrumb a:hover { color: var(--color-primary); }

.hero__breadcrumb-sep { opacity: 0.4; }

.hero__content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  min-height: 260px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.hero__title-accent {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  line-height: 1.65;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== TOOL CARD ========== */
.tool-section { margin-top: calc(var(--space-xl) * -1); }

.tool-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.tool-card__header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.tool-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.tool-card__safety {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 500;
}

.tool-card__body {
  padding: var(--space-xl);
  min-height: 300px;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--color-bg-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.upload-zone:hover,
.upload-zone:focus-within,
.upload-zone--dragover {
  border-color: var(--color-primary);
  background: rgba(79, 70, 229, 0.04);
  box-shadow: var(--shadow-glow);
}

.upload-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.upload-zone__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.upload-zone__text {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.upload-zone__formats {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.upload-zone__cloud {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.cloud-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 0.875rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.cloud-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* File List */
.file-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.file-item__info { flex: 1; min-width: 0; }

.file-item__name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.file-item__remove {
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.file-item__remove:hover {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.08);
}

/* Compression Levels */
.compression-levels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.compression-level {
  position: relative;
  cursor: pointer;
}

.compression-level__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.compression-level__label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  background: var(--color-bg);
}

.compression-level__input:checked + .compression-level__label,
.compression-level__label:hover {
  border-color: var(--color-primary);
  background: rgba(79, 70, 229, 0.03);
}

.compression-level__input:focus-visible + .compression-level__label {
  box-shadow: var(--shadow-glow);
}

.compression-level__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition);
}

.compression-level__input:checked + .compression-level__label .compression-level__radio {
  border-color: var(--color-primary);
}

.compression-level__input:checked + .compression-level__label .compression-level__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--color-primary);
  border-radius: 50%;
}

.compression-level__content { flex: 1; }

.compression-level__name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.compression-level__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

.compression-level__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.compression-level__estimate {
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 500;
  margin-top: 4px;
}

/* Size Target */
.size-target {
  margin-bottom: var(--space-lg);
}

.size-target__label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

.size-target__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.size-target__btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  color: var(--color-text-muted);
}

.size-target__btn:hover,
.size-target__btn--active {
  border-color: var(--color-primary);
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary);
}

/* Estimate Preview */
.estimate-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(79, 70, 229, 0.06) 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.estimate-preview__item { text-align: center; flex: 1; }

.estimate-preview__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.estimate-preview__value {
  font-size: 0.9375rem;
  font-weight: 700;
}

.estimate-preview__arrow {
  color: var(--color-text-light);
  flex-shrink: 0;
}

/* Progress */
.progress-section { text-align: center; padding: var(--space-xl) 0; }

.progress-bar {
  height: 6px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-bar__fill {
  height: 100%;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Result */
.result-section { text-align: center; }

.result-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.result-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.result-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.result-comparison__value {
  font-size: 1.125rem;
  font-weight: 700;
}

.result-comparison__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.result-savings {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Error */
.error-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.error-message[hidden] { display: none; }

/* Tool States */
.tool-state[hidden] { display: none !important; }

/* Trust Badges */
.trust-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.trust-badge__icon {
  width: 40px;
  height: 40px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-badge__title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.trust-badge__text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Benefits */
.benefits-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-header__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  line-height: 1.2;
}

.section-header__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.benefit-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.benefit-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.benefit-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.benefit-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Comparison */
.comparison-section { padding: var(--space-3xl) 0; }

.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  background: var(--color-bg-subtle);
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table .highlight {
  background: rgba(79, 70, 229, 0.04);
  font-weight: 600;
}

.check-icon { color: var(--color-success); }
.cross-icon { color: var(--color-text-light); }

/* Use Cases */
.use-cases-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-subtle);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.use-case-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.use-case-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.use-case-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.use-case-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* SEO Content */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-article {
  max-width: var(--content-width);
  margin: 0 auto;
}

.content-article h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--space-2xl) 0 var(--space-md);
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.content-article h2:first-child { margin-top: 0; }

.content-article h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-sm);
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.content-article p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.content-article ul,
.content-article ol {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
  padding-left: var(--space-xl);
}

.content-article li { margin-bottom: var(--space-sm); }

.content-article strong { color: var(--color-text); }

.content-toc {
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.content-toc__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-md);
}

.content-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}

.content-toc__list li { margin-bottom: var(--space-xs); }

.content-toc__list a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

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

/* FAQ */
.faq-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-subtle);
}

.faq-list {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}

.faq-item__question:hover { background: var(--color-bg-subtle); }

.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-muted);
}

.faq-item[open] .faq-item__icon { transform: rotate(180deg); }

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.faq-item__answer p { margin: 0; }

/* Related Tools */
.related-tools-section { padding: var(--space-3xl) 0; }

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.related-tool-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
}

.related-tool-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--color-text);
}

.related-tool-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.related-tool-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.related-tool-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Final CTA */
.final-cta {
  padding: var(--space-3xl) 0;
  background: var(--gradient-hero);
  text-align: center;
}

.final-cta__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 var(--space-md);
}

.final-cta__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.site-footer__links a:hover { color: #fff; }

.site-footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Sticky Mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--space-sm) var(--space-lg);
  background: #fff;
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.sticky-cta--visible { transform: translateY(0); }

.sticky-cta[hidden] { display: none; }

/* Visually hidden for screen readers */
.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;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .related-tools-grid { grid-template-columns: repeat(4, 1fr); }
  .compression-levels { grid-template-columns: repeat(3, 1fr); }
  .compression-level__label { flex-direction: column; text-align: center; align-items: center; }
  .compression-level__radio { margin-top: 0; }
  .result-actions { flex-direction: row; justify-content: center; }
  .content-toc__list { columns: 2; }
}

@media (min-width: 768px) {
  .site-nav { display: block; }
  .trust-grid { grid-template-columns: repeat(6, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .use-cases-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== MOBILE PERFORMANCE ========== */
.defer-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (max-width: 767px) {
  .hero__stats { gap: var(--space-md); }
  .hero__stat-value { font-size: 1rem; }
  .tool-card__body { padding: var(--space-md); }
  .tool-card__header { padding: var(--space-md); }
  .upload-zone { padding: var(--space-lg) var(--space-md); }
  .benefits-section,
  .comparison-section,
  .use-cases-section,
  .content-section,
  .faq-section,
  .related-tools-section,
  .final-cta { padding: var(--space-2xl) 0; }
  .benefit-card,
  .use-case-card { padding: var(--space-md); }
  .benefit-card:hover,
  .related-tool-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .btn--primary:hover { transform: none; }
  .hero__badge-dot { animation: none; }
  .file-item { animation: none; }
  .result-success-icon { animation: none; }
  .site-header .btn--primary { display: none; }
  .container { padding: 0 var(--space-md); }
}

@media (hover: none) {
  .benefit-card:hover,
  .related-tool-card:hover,
  .btn--primary:hover { transform: none; }
}

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

@media print {
  .site-header, .sticky-cta, .tool-section, .site-footer { display: none; }
  .content-section { padding: 0; }
}
