/* vertoKit design system - Manrope geometric sans, clean conversion-tool layout. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #2c5bff;
  --brand-dark: #1540d8;
  --brand-ink: #081a52;
  --mint: #17c9a6;
  --coral: #ff6b3d;
  --amber: #ffb525;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #e9eef7;
  --line: #dde2ef;
  --text: #141a2e;
  --muted: #59617d;
  --footer: #0e1225;
  --footer-text: #a7aebf;
  --danger: #e63757;
  --ok: #12b886;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 22px rgba(14, 18, 37, 0.08);
  --shadow-lg: 0 18px 60px rgba(14, 18, 37, 0.14);
  --anchor-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: var(--anchor-h);
  transition: padding-bottom 0.25s ease;
}
body.anchor-off { --anchor-h: 0px; padding-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--mint)); }
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 20px; color: var(--text); font-weight: 600; font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface); color: var(--brand); text-decoration: none; }

.hamburger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: 0.2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cover { border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--surface); }
.hero-cover img { width: 100%; height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 26px; border: 0; font-weight: 700; font-size: 0.96rem;
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 8px 20px rgba(44, 91, 255, 0.28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(44, 91, 255, 0.38); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--danger); color: #fff; }

/* Section titles */
.section-title { font-size: 1.9rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 0 30px; }

/* Tool grid */
.tools-section { padding: 18px 0 54px; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); text-decoration: none; }
.tool-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); color: var(--brand);
}
.tool-card .icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.05rem; margin: 0; font-weight: 700; color: var(--text); }
.tool-card p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* Feature / content blocks */
.features-section { padding: 50px 0 64px; background: var(--surface); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature h3 { font-size: 1.1rem; margin: 0 0 8px; font-weight: 700; }
.feature p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* Ad slots */
.adbox { width: 100%; margin: 28px 0; text-align: center; }
.ad-label {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8c93a8; margin-bottom: 7px; font-weight: 700;
}
.ad-slot {
  width: 100%; min-height: 250px; height: auto; background: #f4f6f9;
  border: 1.5px dashed #c7cddc; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* Placeholder mode: hidden until the operator turns it on (or a real creative fills a slot). */
html[data-ad-placeholder="off"] .adbox { display: none; }
html[data-ad-placeholder="off"] .anchor-dock { display: none; }
html[data-ad-placeholder="off"] body { padding-bottom: 0; }

/* When a real creative lands, drop the placeholder chrome */
.ad-slot:has(iframe), .ad-slot:has(ins[data-ad-status="filled"]) { border: 0; background: transparent; min-height: 0; }
.adbox:has(iframe) .ad-label, .adbox:has(ins[data-ad-status="filled"]) .ad-label { display: none; }
/* In live mode unfilled slots are removed by JS idempotent classes; the :has rules never touch display. */

.anchor-slot, .inter-slot { width: 100%; height: 100%; min-height: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }

/* Anchor dock */
.anchor-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--anchor-h);
  background: var(--footer); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 -4px 20px rgba(14, 18, 37, 0.25);
}
body.anchor-off .anchor-dock { display: none; }
.anchor-dock .adbox { margin: 0; width: 100%; max-width: 720px; height: 50px; }
.anchor-dock .ad-slot { width: 100%; height: 50px; min-height: 0; border: 0; background: transparent; }
.anchor-dock .ad-label { color: var(--footer-text); margin-bottom: 3px; font-size: 0.6rem; }
.anchor-dock .ad-slot:has(iframe), .anchor-dock .ad-slot:has(ins[data-ad-status="filled"]) { background: transparent; }
.anchor-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12);
  color: var(--footer-text); cursor: pointer; display: grid; place-items: center;
}
.anchor-close:hover { background: rgba(255,255,255,0.22); }

/* Interstitial */
.inter-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(14, 18, 37, 0.82);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.inter-overlay.active { opacity: 1; pointer-events: auto; }
.inter-box {
  width: 100%; max-width: 540px; background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: center;
}
.inter-header { padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.inter-body { padding: 18px; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.inter-body .ad-slot { width: 100%; min-height: 300px; border: 0; background: transparent; }
.inter-continue { width: 100%; padding: 14px; border: 0; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.inter-continue:hover { background: var(--brand-dark); }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: calc(100px + var(--anchor-h, 0px)); z-index: 65;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.5rem;
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity 0.25s, transform 0.25s, bottom 0.25s;
  box-shadow: 0 6px 18px rgba(14,18,37,0.22);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Tool page */
.tool-hero { padding: 42px 0 34px; }
.tool-hero .tool-icon-lg { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface), var(--surface-2)); color: var(--brand); }
.tool-hero .tool-icon-lg svg { width: 32px; height: 32px; }
.tool-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 12px; font-weight: 800; line-height: 1.12; }
.tool-hero .date { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.tool-hero .lede { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0; }

.workspace { padding: 26px 0 36px; }
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center;
  background: var(--surface); transition: border-color 0.15s, background 0.15s; cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: #eef2ff; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--brand); }
.dropzone h3 { margin: 0 0 6px; font-size: 1.1rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.row.stretch { align-items: stretch; }
.col { flex: 1 1 280px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.96rem; color: var(--text); background: var(--bg);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 91, 255, 0.12); }
input[readonly] { background: var(--surface); }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.preview-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.thumb { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.thumb img { width: 100%; height: 120px; object-fit: cover; }
.thumb .meta { padding: 8px; font-size: 0.75rem; color: var(--muted); }

.output-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.status { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

/* Article body */
.article-body { padding: 18px 0 48px; }
.article-body h2 { font-size: 1.35rem; margin: 44px 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.15rem; margin: 32px 0 10px; color: var(--brand-ink); }
.article-body p { margin: 0 0 16px; color: #2c3146; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; color: #2c3146; }
.article-body li { margin-bottom: 8px; }
.article-body figure { margin: 22px 0; border-radius: var(--radius); overflow: hidden; }
.article-body figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.article-body strong { color: var(--text); }

/* Categories */
.category-section { padding: 28px 0 54px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-text); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 34px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--footer-text); font-size: 0.9rem; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: var(--footer-text); }
.cookie-disclosure { font-size: 0.78rem; color: #8d93a8; line-height: 1.45; margin-top: 12px; }

/* Legal pages */
.legal-page { padding: 36px 0 56px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 10px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 34px; }

/* Utility */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 12px 24px 22px; gap: 4px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: var(--radius-sm); }
  .tool-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 16px; font-size: 0.9rem; }
  .ad-slot { min-height: 220px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
