/* ============================================
   VWA Libre — Design System v2
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* brand */
  --brand: #2563eb;
  --brand-light: #60a5fa;
  --brand-dark: #1d4ed8;
  --accent: #0d9488;
  --accent-light: #5eead4;

  /* surfaces — light (solid, no transparency) */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* text */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* status */
  --green: #16a34a;
  --red: #dc2626;

  /* misc */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .10);
  --shadow-glow: none;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
  --transition-fast: .16s ease;

  /* sizing */
  --header-h: 68px;
  --container: 1200px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --surface-solid: #1e293b;
  --surface-hover: #334155;
  --border: #334155;
  --border-strong: #475569;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  --shadow-glow: none;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Animated Background (disabled — solid bg) ---------- */
.bg-orbs {
  display: none;
}
.bg-orbs span {
  display: none;
}
.bg-orbs span:nth-child(1) {
  display: none;
}
.bg-orbs span:nth-child(2) {
  display: none;
  bottom: -15%; right: -10%; animation-duration: 26s; animation-delay: -6s;
}
.bg-orbs span:nth-child(3) {
  display: none;
}

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo svg { width: 36px; height: 36px; }
.logo span { color: var(--brand); }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 500; font-size: .9rem;
  transition: var(--transition-fast); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--brand); color: var(--text-inverse); text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Theme Toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  color: var(--text-secondary); font-size: 1.1rem;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* Mobile Menu */
.mobile-menu-btn {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: #dbeafe;
  border: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: #1e3a8a;
  margin-bottom: 24px;
}
[data-theme="dark"] .hero-badge { background: #1e3a5f; color: #e2e8f0; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .gradient-text {
  color: var(--brand);
}

.hero .typed-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary); height: 3em; overflow: hidden;
  margin-bottom: 8px;
}
.typed-cursor { animation: blink .7s step-end infinite; color: var(--brand); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero p.subtitle {
  max-width: 680px; margin: 0 auto 36px;
  font-size: 1.08rem; color: var(--text-muted);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-weight: 650; font-size: .95rem;
  border: none; cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
  text-decoration: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0; transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--brand);
  color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }

.btn-secondary {
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: #dbeafe; text-decoration: none; }
[data-theme="dark"] .btn-secondary:hover { background: #1e3a5f; }

.btn-sm { padding: 8px 18px; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 5px 12px; font-size: .78rem; border-radius: 6px; }

/* ---------- Tool Section ---------- */
.tool-section {
  padding: 0 0 80px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px; margin: 0 auto;
}

/* Tabs */
.tool-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  padding: 6px; gap: 4px; background: var(--bg-alt);
}
.tool-tab {
  flex: 1; padding: 12px 20px;
  border: none; background: none; border-radius: var(--radius);
  cursor: pointer; font-weight: 600; font-size: .9rem;
  color: var(--text-muted); transition: var(--transition);
}
.tool-tab:hover { color: var(--text); }
.tool-tab.active {
  background: var(--surface-solid); color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* Tab Content */
.tab-content { display: none; padding: 32px; }
.tab-content.active { display: block; }

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center;
  transition: var(--transition); cursor: pointer;
  background: var(--bg-alt);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--brand);
  background: #dbeafe;
}
[data-theme="dark"] .drop-zone:hover, [data-theme="dark"] .drop-zone.drag-over { background: #1e3a5f; }
.drop-zone .icon { font-size: 2.8rem; margin-bottom: 12px; }
.drop-zone .label { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.drop-zone .hint { color: var(--text-muted); font-size: .85rem; }
.drop-zone input[type="file"] { display: none; }

/* Preview Grid */
.preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px; margin-top: 20px;
}
.preview-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1; border: 1px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  cursor: pointer; font-size: .75rem; display: flex;
  align-items: center; justify-content: center;
}

/* Options */
.options-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 24px;
}
.option-group label {
  display: block; font-weight: 600; font-size: .85rem;
  margin-bottom: 6px; color: var(--text-secondary);
}
.option-group select, .option-group input[type="number"] {
  width: 100%; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-solid); transition: var(--transition);
}
.option-group select:focus, .option-group input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px #dbeafe;
}
[data-theme="dark"] .option-group select:focus, [data-theme="dark"] .option-group input:focus { box-shadow: 0 0 0 3px #1e3a5f; }
.quality-slider {
  width: 100%; margin-top: 6px; accent-color: var(--brand);
}
.quality-value {
  display: inline-block; font-weight: 700; font-size: .85rem;
  color: var(--brand); min-width: 36px; text-align: right;
}
.option-toggle {
  display: flex; align-items: center;
}
.toggle-label {
  display: flex !important; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; font-weight: 500; font-size: .85rem;
  color: var(--text-secondary);
}
.toggle-label input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer;
}

/* Social Preset Chips */
.preset-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.preset-chip {
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 500; font-size: .82rem; cursor: pointer;
  transition: var(--transition); color: var(--text-secondary);
}
.preset-chip:hover, .preset-chip.active {
  border-color: var(--brand); color: var(--brand);
  background: #dbeafe;
}
[data-theme="dark"] .preset-chip:hover, [data-theme="dark"] .preset-chip.active { background: #1e3a5f; }

/* Preset Cards */
.preset-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.preset-card {
  padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: var(--transition);
}
.preset-card:hover {
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.preset-card .name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.preset-card .size { color: var(--text-muted); font-size: .82rem; }
.preset-card .platform-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-right: 6px; vertical-align: middle;
}

/* Process Button */
.process-row {
  margin-top: 24px; display: flex;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.process-row .file-count {
  font-size: .85rem; color: var(--text-muted);
}

/* Progress Bar */
.progress-wrap {
  width: 100%; margin-top: 16px; display: none;
}
.progress-bar {
  height: 6px; border-radius: 3px; background: var(--bg-alt); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: var(--brand);
  transition: width .3s ease; width: 0;
}
.progress-text {
  font-size: .82rem; color: var(--text-muted); margin-top: 6px; text-align: center;
}

/* Results */
.results-area { margin-top: 24px; }
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.result-card {
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.result-card:hover { box-shadow: var(--shadow-md); }
.result-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-alt); }
.result-card .info { padding: 12px; }
.result-card .filename { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-card .meta { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.result-card .actions { padding: 0 12px 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-share {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 6px; border: none; cursor: pointer;
  font-size: .78rem; font-weight: 650;
  background: var(--accent); color: #fff;
  transition: var(--transition);
}
.btn-share:hover { background: var(--brand-dark); }
.batch-download { margin-top: 16px; }
[data-theme="dark"] .feature-card .icon-wrap { background: #1e3a5f; }

/* ---------- Social Platforms Section ---------- */
.social-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .overline {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--brand); margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.platform-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; transition: var(--transition);
}
.platform-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.platform-card .platform-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.platform-card .platform-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.platform-card .platform-name { font-weight: 700; font-size: 1.1rem; }
.platform-card .platform-count {
  font-size: .78rem; color: var(--text-muted);
}
.platform-card .size-list { display: flex; flex-direction: column; gap: 8px; }
.platform-card .size-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg-alt); font-size: .85rem;
}
.platform-card .size-item .dim { font-weight: 600; color: var(--text-secondary); font-size: .8rem; }
.platform-card .size-item .resize-btn {
  padding: 4px 10px; border-radius: 6px; border: none;
  background: var(--brand); color: #fff; font-size: .75rem;
  font-weight: 600; cursor: pointer; opacity: 0;
  transition: var(--transition);
}
.platform-card .size-item:hover .resize-btn { opacity: 1; }

/* ---------- Features ---------- */
.features-section { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: #dbeafe;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.feature-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
  background: var(--surface);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; padding: 18px 22px; border: none;
  background: none; cursor: pointer; font-weight: 650;
  font-size: .95rem; text-align: left; color: var(--text);
  transition: var(--transition);
}
.faq-question:hover { color: var(--brand); }
.faq-question .arrow {
  transition: var(--transition); font-size: .85rem; color: var(--text-muted);
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 18px; color: var(--text-secondary); font-size: .9rem; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-section {
  padding: 100px 0; text-align: center;
}
.cta-card {
  background: var(--brand);
  border-radius: var(--radius-xl); padding: 64px 40px;
  max-width: 800px; margin: 0 auto;
  position: relative; overflow: hidden;
  color: #ffffff;
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; }
.cta-card p { color: #ffffff; margin-bottom: 28px; position: relative; }
.cta-card .btn { position: relative; background: #fff; color: var(--brand); font-weight: 700; }
.cta-card .btn:hover { box-shadow: 0 8px 30px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 30px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .footer-logo { font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand .footer-logo span { color: var(--brand); }
.footer-brand p { color: var(--text-muted); font-size: .88rem; }
.footer-col h4 { font-weight: 700; font-size: .9rem; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); font-size: .88rem; padding: 4px 0; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--brand); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--text-muted);
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column-reverse; gap: 8px;
}
.toast {
  padding: 14px 22px; border-radius: var(--radius);
  background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500;
  animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid var(--brand); }
@keyframes toastIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ---------- SEO Content Section ---------- */
.seo-content { padding: 60px 0; }
.seo-content article {
  max-width: 840px; margin: 0 auto;
}
.seo-content h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; margin: 32px 0 12px; color: var(--text); }
.seo-content h3 { font-size: clamp(1.05rem, 2.5vw, 1.2rem); font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.seo-content p { font-size: clamp(.88rem, 2vw, .95rem); color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.seo-content ul, .seo-content ol { margin: 12px 0 20px 20px; color: var(--text-secondary); font-size: clamp(.86rem, 2vw, .93rem); line-height: 1.75; }
.seo-content li { margin-bottom: 6px; }
.seo-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.seo-content a:hover { color: var(--brand-light); }

/* SEO tables responsive */
.seo-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: clamp(.82rem, 1.8vw, .9rem); }
.seo-content th { text-align: left; padding: 10px 12px; font-weight: 700; font-size: .82rem; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.seo-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.seo-content tr:hover td { background: var(--bg-alt); }
.seo-content .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border-radius: var(--radius-sm); }

/* SEO CTA buttons responsive */
.seo-content .btn { display: inline-block; }

/* FAQ responsive */
.faq-list { margin: 16px 0; }
.faq-item { border-radius: var(--radius-sm); overflow: hidden; }

/* SEO hero section on landing pages */
.hero .subtitle { max-width: 640px; margin: 0 auto; }

/* ---------- Social Sizes Page Specific ---------- */
.search-box {
  max-width: 500px; margin: 0 auto 40px;
  position: relative;
}
.search-box input {
  width: 100%; padding: 14px 20px 14px 48px;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface); font-size: 1rem;
  transition: var(--transition);
}
.search-box input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px #dbeafe;
}
.search-box .search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem;
}

.sizes-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
}
.sizes-table th {
  text-align: left; padding: 10px 14px;
  font-weight: 700; font-size: .82rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; border-bottom: 2px solid var(--border);
}
.sizes-table td {
  padding: 12px 14px; font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.sizes-table tr:hover td { background: var(--bg-alt); }

/* ---------- Scroll Reveal (disabled — no movement) ---------- */
.reveal {
  opacity: 1; transform: none;
}
.reveal.visible { opacity: 1; transform: none; }

/* Render below-the-fold sections lazily to reduce initial paint cost */
.social-section,
.features-section,
.faq-section,
.cta-section,
.seo-content,
.platform-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* Accessibility + performance: disable non-essential motion when requested */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .typed-cursor { animation: none; }
  .btn, .feature-card, .platform-card, .faq-question, .footer-col a { transition: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .seo-content table { font-size: .84rem; }
  .seo-content th, .seo-content td { padding: 8px 10px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: fixed; inset: var(--header-h) 0 0;
    background: var(--surface-solid); flex-direction: column;
    padding: 24px; gap: 4px; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .tool-card { border-radius: var(--radius-lg); }
  .tab-content { padding: 20px; }
  .platforms-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .preset-cards { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 40px 24px; }
  /* SEO landing responsive */
  .seo-content { padding: 30px 0; }
  .seo-content article { padding: 0 4px; }
  .seo-content table { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; white-space: nowrap; margin: 16px -4px !important; width: calc(100% + 8px) !important; }
  .seo-content thead, .seo-content tbody { display: table; width: 100%; }
  .seo-content thead { white-space: nowrap; }
  .seo-content th, .seo-content td { padding: 8px 10px !important; font-size: .84rem !important; }
  .faq-question { font-size: .9rem; padding: 14px 16px; }
  .faq-answer { padding: 0 16px; }
  .faq-answer p { font-size: .86rem; }
  .seo-content .btn { font-size: 1rem !important; padding: 14px 24px !important; width: 100%; text-align: center; }
  .sizes-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sizes-table thead, .sizes-table tbody { display: table; width: 100%; }
}
@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .tool-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .preset-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .seo-content h2 { font-size: 1.15rem; margin-top: 24px; }
  .seo-content h3 { font-size: 1rem; }
  .seo-content p, .seo-content li { font-size: .86rem; }
  .seo-content td, .seo-content th { padding: 6px 8px !important; font-size: .78rem !important; }
  .seo-content .btn { font-size: .95rem !important; padding: 12px 20px !important; }
}
