/* MetaScrub Theme v3 — modern SaaS design.
   Inter font, glass header, gradient hero, soft cards, dark mode.
   Vanilla CSS, no frameworks. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-deep: #115e59;
  --teal-light: #ccfbf1;
  --emerald: #10b981;
  --blue: #3b82f6;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px -8px rgba(15,23,42,.08);
  --shadow-lg: 0 2px 6px rgba(15,23,42,.06), 0 20px 48px -12px rgba(15,23,42,.16);
  --glow: 0 8px 28px rgba(13,148,136,.38);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --grad: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  --grad-text: linear-gradient(120deg, #2dd4bf, #6ee7b7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }

/* ---------- Header: frosted glass ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand-text {
  font-size: 21px; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -.02em; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--glow);
}
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 500; border-radius: 10px;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(13,148,136,.08); color: var(--ink); }
.main-nav .current-menu-item a { background: rgba(13,148,136,.1); color: var(--teal-dark); font-weight: 600; }

.nav-icon { display: inline-flex; vertical-align: -3px; margin-right: 2px; }
.header-actions { margin-left: auto; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 34px; border-radius: 999px; font-weight: 600; font-size: 15px;
  font-family: var(--font); text-decoration: none; border: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, filter .18s;
}
.btn-teal {
  background: var(--grad); color: #fff; box-shadow: var(--glow);
}
.btn-teal:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: brightness(1.06); }
.btn-teal:active:not(:disabled) { transform: translateY(0) scale(.99); }
.btn-teal:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; box-shadow: 0 8px 28px rgba(59,130,246,.35);
}
.btn-outline {
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
}
.btn-outline:hover { border-color: var(--teal); }
.btn-sm { padding: 10px 24px; font-size: 13.5px; }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px;
  color: var(--teal-dark); font-weight: 700; margin-bottom: 18px;
  background: rgba(13,148,136,.1); border: 1px solid rgba(13,148,136,.2);
  padding: 7px 16px; border-radius: 999px;
}

.kicker::before, .kicker::after { display: none; }

/* ---------- Hero: dark gradient mesh ---------- */
.hero {
  text-align: center; padding: 88px 0 72px; position: relative; overflow: hidden;
  background: radial-gradient(1000px 480px at 15% -10%, rgba(13,148,136,.22), transparent 60%),
              radial-gradient(900px 440px at 85% 10%, rgba(16,185,129,.18), transparent 60%),
              radial-gradient(700px 380px at 50% 110%, rgba(59,130,246,.12), transparent 60%),
              #0a0f14;
  color: #f1f5f9;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08; margin: 0 0 20px; color: #fff;
}
.hero h1 .hl {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.hero .lede {
  font-size: 18px; color: #94a3b8;
  max-width: 680px; margin: 0 auto 10px; line-height: 1.7;
}
.ad-label {
  font-size: 10.5px; color: #475569; text-transform: uppercase;
  letter-spacing: .12em; margin: 20px 0;
}

/* ---------- Upload widget ---------- */
.tool-widget {
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 24px; box-shadow: 0 24px 64px -16px rgba(0,0,0,.45);
  max-width: 720px; margin: 0 auto; padding: 40px 36px; color: #0f172a;
  text-align: center;
}

.dropzone {
  border: 2px dashed #cbd5e1; border-radius: 16px;
  padding: 44px 24px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  background: #f8fafc;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--teal); background: var(--teal-light); transform: scale(1.01);
}
.dropzone .up-icon { color: var(--teal); display: flex; justify-content: center; }
.dropzone .up-icon svg { display: block; }
.dropzone h3 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }
.format-note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: right; }
.widget-action { text-align: center; margin-top: 22px; }
.privacy-line { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- File rows ---------- */
.file-list { margin-top: 20px; text-align: left; }
.file-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px; background: var(--card);
  box-shadow: var(--shadow);
}
.file-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-status { font-size: 12.5px; color: var(--muted); }
.file-status.ok { color: var(--teal-dark); font-weight: 600; }

.progress { height: 6px; background: #eef2f7; border-radius: 3px; margin-top: 6px; overflow: hidden; }

.progress > div { height: 100%; background: var(--grad); border-radius: 3px; transition: width .3s; }
.file-actions { display: flex; gap: 8px; flex-shrink: 0; }
.link-btn {
  background: none; border: none; color: var(--teal-dark); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 4px 8px; font-family: var(--font);
}

.link-btn:hover { text-decoration: underline; }

/* ---------- Trust badges ---------- */
.trust-badges {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 30px 0 8px; position: relative; z-index: 1;
}
.trust-badges .badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.06); color: #cbd5e1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.trust-badges .badge::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -.025em; text-align: center; margin: 0 0 14px; line-height: 1.2;
}
.section .sub {
  text-align: center; color: var(--muted);
  max-width: 640px; margin: 0 auto 48px; font-size: 17px;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 30px; text-align: center;
  box-shadow: var(--shadow); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-icon {
  width: 68px; height: 68px; border-radius: 20px;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; box-shadow: var(--glow);
}
.step-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(13,148,136,.3);
}
.feature-card .f-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(13,148,136,.1); color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

.feature-card h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Metadata report ---------- */
.ai-banner {
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 20px 0;
  display: flex; align-items: center; gap: 14px; font-size: 15px;
}
.ai-banner.found { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; }
.ai-banner.clean { background: var(--teal-light); border: 1px solid var(--teal); }
.ai-banner strong { font-size: 16px; }

.meta-summary {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 14px;
  font-size: 14px; box-shadow: var(--shadow);
}
.meta-summary .lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.meta-summary .big { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.meta-summary .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.meta-summary .count { font-weight: 700; font-size: 16px; }
.meta-summary .sec-chips { margin-left: auto; text-align: right; }
.meta-summary .sec-chips > div { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.ai-banner .ai-model { margin-left: auto; text-align: right; padding-left: 18px; border-left: 1px solid var(--border); }
.ai-banner .ai-model span { display: block; font-size: 12px; color: var(--muted); }
.ai-banner .ai-model strong { font-size: 16px; }
.ai-footnote { color: #dc2626; font-size: 13.5px; font-weight: 600; margin: 10px 0 4px; }
.absent-line { color: var(--muted); font-size: 13.5px; margin: 8px 0 14px; }
.meta-accordion summary .sec-count {
  font-size: 12.5px; font-weight: 600; color: #92400e; background: #fef3c7;
  border-radius: 999px; padding: 3px 12px; white-space: nowrap; margin-left: 12px;
}
.section-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip {
  border: 1.5px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 7px 18px; font-size: 13px; cursor: pointer; font-family: var(--font);
  color: var(--ink-soft); font-weight: 500; transition: all .15s;
}
.filter-chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.meta-accordion {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow);
}
.meta-accordion summary {
  padding: 15px 20px; cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.meta-accordion summary::-webkit-details-marker { display: none; }
.meta-accordion summary::after {
  content: '+'; color: var(--teal-dark); font-size: 20px; font-weight: 300;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(13,148,136,.1);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.meta-accordion[open] summary::after { content: '−'; }
.meta-rows { border-top: 1px solid var(--border); }
.meta-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 12px;
  padding: 10px 20px; font-size: 13.5px; border-bottom: 1px solid var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-row .k { color: var(--muted); word-break: break-word; }
.meta-row .v { word-break: break-all; font-family: ui-monospace, 'SF Mono', monospace; font-size: 12.5px; }
.ai-tag {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: 11px; font-weight: 700; border-radius: 6px;
  padding: 2px 9px; margin-left: 8px; vertical-align: middle; font-family: var(--font);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(13,148,136,.3); }
.faq-item summary {
  padding: 19px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--teal-dark); font-size: 20px; font-weight: 300; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(13,148,136,.1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- Note callout ---------- */
.note-box {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 20px 0; font-size: 14.5px;
  box-shadow: var(--shadow);
}

/* ---------- Language pill ---------- */
.lang-pill { text-align: center; padding: 40px 0; }
.lang-pill .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lang-pill-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.lang-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.lang-pill-item { display: inline-block; color: var(--muted); text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 13.5px; font-weight: 500; transition: all .15s; white-space: nowrap; }
.lang-pill-item:hover { color: var(--ink); border-color: var(--teal); transform: translateY(-1px); }
.lang-pill-item.is-current { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0f14; color: #cbd5e1; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 64px 0 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { margin: 0 0 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #64748b; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 10px 0; }
.footer-col a { color: #cbd5e1; text-decoration: none; font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: #2dd4bf; }
.footer-about .brand { font-size: 20px; font-weight: 800; margin-bottom: 14px; color: #fff; letter-spacing: -.01em; }
.footer-about p { font-size: 14px; color: #64748b; line-height: 1.75; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13px; color: #64748b;
}

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card-body { padding: 24px; }
.post-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal-dark); }
.post-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* ---------- Pagination ---------- */
.pagination { margin: 48px 0 0; text-align: center; }
.nav-links { display: inline-flex; gap: 8px; align-items: center; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  background: var(--card); transition: all .15s;
}
.page-numbers:hover { border-color: var(--teal); color: var(--teal-dark); }
.page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.page-numbers.dots { border: none; background: none; box-shadow: none; }

/* ---------- Tool page layout ---------- */
.tool-page { padding: 48px 0 72px; }
.tool-page h1 { text-align: center; font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 10px; letter-spacing: -.025em; font-weight: 800; }
.tool-page .tool-lede { text-align: center; color: var(--muted); max-width: 660px; margin: 0 auto 36px; font-size: 17px; }

/* ---------- Text tool two-panel ---------- */
.text-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .text-panels { grid-template-columns: 1fr; } }
.text-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
}
.text-panel header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14px;
}
.text-panel textarea {
  width: 100%; min-height: 280px; border: none; padding: 20px;
  font-size: 15px; font-family: var(--font); resize: vertical;
  background: var(--card); color: var(--ink);
}
.text-panel textarea:focus { outline: 2px solid rgba(13,148,136,.3); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-pill {
  border: 1.5px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 6px 15px; font-size: 12.5px; cursor: pointer; font-weight: 500;
  font-family: var(--font); color: var(--ink-soft); transition: all .15s;
}
.mini-pill.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.preset-tabs { display: flex; gap: 0; background: #eef2f7; border-radius: 999px; padding: 4px; }

.preset-tabs button {
  flex: 1; border: none; background: none; border-radius: 999px;
  padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted);
  font-family: var(--font); transition: all .2s;
}
.preset-tabs button.active {
  background: var(--grad); color: #fff; box-shadow: var(--glow);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle {
    display: block; background: none; border: none; cursor: pointer; margin-left: auto;
    padding: 8px; z-index: 1001; position: relative;
  }
  .menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .header-inner { gap: 14px; }
  .hero { padding: 64px 0 52px; }
  .tool-widget { padding: 28px 20px; border-radius: 20px; }
  .section { padding: 60px 0; }
  .meta-row { grid-template-columns: 1fr; gap: 2px; }
  .lang-switcher { display: none; }
  /* Mobile menu panel */
  .mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--card); z-index: 1000; padding: 80px 24px 24px;
    overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .mobile-menu:not([hidden]) { transform: translateX(0); display: block; }
  .mobile-menu[hidden] { display: block !important; visibility: hidden; }
  .mobile-menu nav ul, .mobile-menu nav ul.menu {
    display: flex !important; flex-direction: column !important;
    list-style: none; margin: 0; padding: 0; gap: 0;
  }
  .mobile-menu nav li { border-bottom: 1px solid var(--border); width: 100%; }
  .mobile-menu nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 4px; color: var(--ink); text-decoration: none;
    font-size: 16px; font-weight: 500;
  }
  .mobile-menu nav a:hover { color: var(--teal-dark); }
  .mobile-menu nav a .fa, .mobile-menu nav a svg { width: 20px; text-align: center; color: var(--teal); }
  .mobile-lang { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
  .mobile-lang-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
  .mobile-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-lang-list a {
    padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 20px;
    font-size: 13px; color: var(--ink-soft); text-decoration: none;
  }
  .mobile-lang-list a.active { border-color: var(--teal); color: var(--teal-dark); font-weight: 600; background: rgba(13,148,136,0.08); }
  body.menu-open { overflow: hidden; }
}

/* Desktop: hide mobile menu */
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

/* MetaScrub tool page Gutenberg blocks */
.metascrub-hero{background:linear-gradient(135deg,#0f172a 0%,#1e1b4b 50%,#0d9488 130%);border-radius:20px;padding:56px 32px;margin-bottom:36px;color:#fff}
.metascrub-hero h1{color:#fff;font-size:2.4rem;margin-bottom:12px}
.metascrub-hero .hero-tagline{font-size:1.25rem;color:#5eead4;font-weight:600;margin-bottom:14px}
.metascrub-hero p{color:#cbd5e1;max-width:640px;margin-left:auto;margin-right:auto}
.wp-block-details{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:18px 22px;margin-bottom:12px}
.wp-block-details summary{font-weight:600;cursor:pointer;font-size:16px;list-style:none;display:flex;justify-content:space-between;align-items:center}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"+";font-size:20px;color:var(--teal);font-weight:700}
.wp-block-details[open] summary::after{content:"−"}
.wp-block-details p{margin-top:12px;color:var(--muted);line-height:1.7}

/* ===== Premium Tool Pages ===== */
.tool-hero{position:relative;overflow:hidden;text-align:center;padding:100px 24px 80px;
  background:radial-gradient(1000px 500px at 20% 0%,rgba(13,148,136,.25),transparent 60%),
             radial-gradient(900px 450px at 80% 20%,rgba(99,102,241,.18),transparent 60%),
             radial-gradient(700px 400px at 50% 120%,rgba(16,185,129,.12),transparent 60%),#0a0f14;color:#f1f5f9}
.tool-hero::before{content:'';position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:32px 32px;
  -webkit-mask-image:radial-gradient(ellipse 75% 65% at 50% 35%,black,transparent);
  mask-image:radial-gradient(ellipse 75% 65% at 50% 35%,black,transparent)}
.tool-hero-inner{position:relative;z-index:1;max-width:820px;margin:0 auto}
.tool-kicker{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:#5eead4;background:rgba(13,148,136,.12);border:1px solid rgba(13,148,136,.3);
  padding:8px 20px;border-radius:100px;margin-bottom:24px}
.tool-hero h1{font-size:clamp(38px,5.5vw,64px);font-weight:800;letter-spacing:-.03em;line-height:1.1;margin:0 0 20px;color:#fff}
.tool-hero h1 .hl{background:linear-gradient(135deg,#5eead4,#34d399);-webkit-background-clip:text;background-clip:text;color:transparent}
.tool-hero .lede{font-size:19px;color:#94a3b8;max-width:640px;margin:0 auto 32px;line-height:1.7}
.tool-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:28px}
.tool-badge{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#cbd5e1;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);padding:9px 18px;border-radius:100px;backdrop-filter:blur(8px)}
.tool-badge svg{width:14px;height:14px;color:#5eead4}
.tool-section{padding:80px 24px;max-width:1200px;margin:0 auto}
.tool-section.alt{background:#f8fafc}
.tool-section-title{text-align:center;font-size:clamp(28px,3.5vw,40px);font-weight:800;letter-spacing:-.02em;margin:0 0 16px;color:var(--ink)}
.tool-section-sub{text-align:center;color:var(--muted);font-size:17px;max-width:600px;margin:0 auto 48px;line-height:1.6}
.tool-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.tool-feature{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:32px 28px;
  transition:transform .25s,box-shadow .25s;position:relative;overflow:hidden}
.tool-feature::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,#0d9488,#34d399);opacity:0;transition:opacity .25s}
.tool-feature:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(0,0,0,.08)}
.tool-feature:hover::before{opacity:1}
.tool-feature-icon{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(13,148,136,.12),rgba(52,211,153,.08));color:#0d9488;margin-bottom:20px}
.tool-feature-icon svg{width:26px;height:26px}
.tool-feature h3{font-size:19px;font-weight:700;margin:0 0 12px;letter-spacing:-.01em}
.tool-feature p{color:var(--muted);font-size:15px;line-height:1.7;margin:0}
.tool-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:32px;position:relative}
.tool-step{text-align:center;position:relative;padding:0 16px}
.tool-step-num{width:64px;height:64px;border-radius:50%;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:800;color:#fff;background:linear-gradient(135deg,#0d9488,#14b8a6);
  box-shadow:0 8px 24px rgba(13,148,136,.3)}
.tool-step h3{font-size:20px;font-weight:700;margin:0 0 10px}
.tool-step p{color:var(--muted);font-size:15px;line-height:1.6;margin:0}
.tool-faq{max-width:760px;margin:0 auto}
.tool-faq-item{background:#fff;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:14px;overflow:hidden;transition:box-shadow .2s}
.tool-faq-item:hover{box-shadow:0 4px 16px rgba(0,0,0,.05)}
.tool-faq-item summary{padding:22px 26px;font-weight:600;font-size:16px;cursor:pointer;list-style:none;
  display:flex;justify-content:space-between;align-items:center;gap:16px}
.tool-faq-item summary::-webkit-details-marker{display:none}
.tool-faq-icon{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:rgba(13,148,136,.1);color:#0d9488;
  display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;transition:transform .2s,background .2s}
.tool-faq-item[open] .tool-faq-icon{transform:rotate(45deg);background:#0d9488;color:#fff}
.tool-faq-answer{padding:0 26px 24px;color:var(--muted);line-height:1.7;font-size:15px}
.tool-cta{text-align:center;padding:80px 24px;background:linear-gradient(135deg,#0f172a,#1e1b4b);border-radius:24px;margin:0 24px 80px;color:#fff}
.tool-cta h2{font-size:clamp(28px,4vw,42px);font-weight:800;margin:0 0 16px;letter-spacing:-.02em}
.tool-cta p{color:#94a3b8;font-size:17px;max-width:520px;margin:0 auto 32px;line-height:1.6}
@media(max-width:640px){.tool-hero{padding:70px 20px 60px}.tool-section{padding:56px 20px}.tool-features{grid-template-columns:1fr}}
