/* MediaMint — Shared Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F8FAFC; --white: #FFFFFF;
  --slate-50: #F8FAFC; --slate-100: #F1F5F9; --slate-200: #E2E8F0;
  --slate-300: #CBD5E1; --slate-400: #94A3B8; --slate-500: #64748B;
  --slate-600: #475569; --slate-700: #334155; --slate-800: #1E293B; --slate-900: #0F172A;
  --blue: #3B82F6; --blue-dark: #2563EB; --blue-light: #EFF6FF; --blue-border: #DBEAFE;
  --indigo: #6366F1; --red: #EF4444; --pink: #EC4899; --green: #22C55E;
  --green-bg: #F0FDF4; --green-border: #BBF7D0;
  --err-bg: #FFF1F2; --err-border: #FECDD3; --err-text: #BE123C;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 12px; --radius-md: 16px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--slate-800); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; }
::placeholder { color: var(--slate-300); }
svg { display: inline-block; vertical-align: middle; }

/* ── NAV ── */
nav { background: rgba(255,255,255,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--slate-100); position: sticky; top: 0; z-index: 100; padding: 0 24px; }
.nav-inner { max-width: 1100px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--blue), var(--indigo)); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.nav-logo-text { font-weight: 800; font-size: 17px; color: var(--slate-900); letter-spacing: -0.02em; }
/* Tool links in nav */
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { font-size: 13px; font-weight: 600; color: var(--slate-500); padding: 6px 12px; border-radius: var(--radius-pill); transition: all 0.15s ease; white-space: nowrap; }
.nav-link:hover { color: var(--blue); background: var(--blue-light); }
.nav-link.active { color: var(--blue); background: var(--blue-light); }
/* Hamburger for mobile */
.nav-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: 8px; background: none; border: none; }
.nav-menu-btn span { display: block; width: 20px; height: 2px; background: var(--slate-600); border-radius: 2px; transition: all 0.2s; }
/* Mobile nav drawer */
.nav-drawer { display: none; position: fixed; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--slate-100); padding: 16px 24px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08); flex-direction: column; gap: 4px; }
.nav-drawer.open { display: flex; }
.nav-drawer a { font-size: 14px; font-weight: 600; color: var(--slate-600); padding: 10px 14px; border-radius: 10px; display: block; }
.nav-drawer a:hover { color: var(--blue); background: var(--blue-light); }
.nav-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-badge { font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: var(--radius-pill); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-menu-btn { display: flex; } }
@media (max-width: 600px) { .nav-badges { display: none; } }

/* ── HERO ── */
.hero { text-align: center; padding: 64px 24px 48px; max-width: 840px; margin: 0 auto; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-light); border: 1px solid var(--blue-border); border-radius: var(--radius-pill); padding: 6px 14px; margin-bottom: 22px; font-size: 12px; font-weight: 700; color: var(--blue); }
h1 { font-size: clamp(30px, 5.5vw, 52px); font-weight: 800; color: var(--slate-900); letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 18px; }
.gradient-text { background: linear-gradient(135deg, var(--blue), var(--indigo)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 17px; color: var(--slate-500); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── MAIN CARD ── */
main { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--white); border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04); padding: 40px; }
.input-label { display: block; font-size: 12px; font-weight: 700; color: var(--slate-400); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.input-wrap { position: relative; margin-bottom: 28px; }
.input-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--slate-300); transition: color 0.2s; pointer-events: none; display: flex; align-items: center; }
.url-input { width: 100%; padding: 18px 18px 18px 52px; font-size: 15px; color: var(--slate-800); background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: var(--radius-md); outline: none; font-family: var(--font); transition: all 0.2s; box-shadow: inset 1px 1px 4px rgba(0,0,0,0.04); }
.url-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.08), inset 1px 1px 4px rgba(0,0,0,0.04); }
.options-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.option-group > .option-label { font-size: 12px; font-weight: 700; color: var(--slate-400); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.format-toggle { display: inline-flex; background: var(--slate-100); border-radius: var(--radius-pill); padding: 4px; gap: 2px; box-shadow: inset 2px 2px 6px #D1D5DB, inset -2px -2px 6px #FFFFFF; }
.format-btn { padding: 10px 32px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); background: transparent; color: var(--slate-400); display: flex; align-items: center; gap: 6px; }
.format-btn.active { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,0.35); }
.quality-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.quality-btn { padding: 7px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 12px; cursor: pointer; transition: all 0.18s ease; font-family: var(--font); border: 1.5px solid var(--slate-200); background: var(--white); color: var(--slate-400); box-shadow: 0 1px 3px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 4px; }
.quality-btn.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); box-shadow: 0 2px 8px rgba(59,130,246,0.15); }
.dl-btn { width: 100%; padding: 18px; border-radius: var(--radius-md); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,0.35); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font); }
.dl-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59,130,246,0.4); }
.dl-btn:active { transform: translateY(0); }
.dl-btn:disabled { background: #93C5FD; box-shadow: none; cursor: not-allowed; transform: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.result-box { margin-top: 20px; padding: 16px 20px; border-radius: 14px; display: flex; align-items: center; gap: 12px; background: var(--green-bg); border: 1.5px solid var(--green-border); }
.result-title { font-weight: 700; color: #166534; font-size: 14px; }
.result-sub { color: #4ADE80; font-size: 13px; margin-top: 2px; }
.error-box { margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: var(--err-bg); border: 1.5px solid var(--err-border); color: var(--err-text); font-size: 14px; font-weight: 600; }
.trust-row { margin-top: 24px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; color: var(--slate-400); font-size: 12px; font-weight: 600; }

/* ── CONTENT SECTIONS (sub-pages) ── */
.content-section { max-width: 840px; margin: 48px auto 0; padding: 0 24px; }
.content-section h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; margin-bottom: 12px; }
.content-section h3 { font-size: 17px; font-weight: 700; color: var(--slate-800); margin: 24px 0 8px; }
.content-section p { font-size: 15px; color: var(--slate-500); line-height: 1.8; margin-bottom: 14px; }
.content-section ul { list-style: none; margin-bottom: 14px; }
.content-section ul li { font-size: 15px; color: var(--slate-500); line-height: 1.8; padding-left: 20px; position: relative; margin-bottom: 6px; }
.content-section ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.step-card { background: var(--white); border: 1.5px solid var(--slate-100); border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.step-num { width: 36px; height: 36px; background: linear-gradient(135deg, var(--blue), var(--indigo)); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 800; font-size: 16px; color: #fff; }
.step-title { font-weight: 700; font-size: 14px; color: var(--slate-800); margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--slate-400); line-height: 1.6; }

/* ── INTERNAL LINKS BOX ── */
.related-links { background: var(--white); border: 1.5px solid var(--slate-100); border-radius: var(--radius-lg); padding: 24px 28px; margin: 40px 0; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.related-links-title { font-size: 12px; font-weight: 700; color: var(--slate-400); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.related-links-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-light); border: 1px solid var(--blue-border); padding: 6px 14px; border-radius: var(--radius-pill); transition: all 0.15s; }
.related-link:hover { background: var(--blue); color: #fff; }

/* ── PLATFORM CARDS ── */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 40px 0; }
.platform-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid var(--slate-100); text-align: center; }
.platform-icon { margin-bottom: 12px; }
.platform-title { font-weight: 700; font-size: 15px; color: var(--slate-800); margin-bottom: 6px; }
.platform-desc { font-size: 12px; color: var(--slate-400); line-height: 1.6; }

/* ── FAQ ── */
.faq-section { margin-bottom: 60px; }
.faq-heading { text-align: center; margin-bottom: 32px; }
.faq-heading h2 { font-size: 28px; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; margin-bottom: 8px; }
.faq-heading p { color: var(--slate-400); font-size: 15px; }
.faq-item { background: var(--white); border-radius: var(--radius-md); padding: 20px 24px; cursor: pointer; margin-bottom: 10px; transition: all 0.2s ease; border: 1.5px solid var(--slate-100); box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.faq-item.open { box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-color: var(--blue-border); }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.faq-q-text { font-weight: 600; font-size: 15px; color: var(--slate-800); line-height: 1.5; }
.faq-chevron { color: var(--blue); flex-shrink: 0; margin-top: 2px; transition: transform 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; margin-top: 14px; font-size: 14px; color: var(--slate-500); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ── KEYWORD PILLS ── */
.kw-box { background: var(--white); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 48px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid var(--slate-100); }
.kw-label { font-size: 12px; font-weight: 700; color: var(--slate-400); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-pill { font-size: 11px; color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-pill); padding: 5px 12px; }

/* ── FOOTER ── */
footer { background: var(--slate-900); color: var(--slate-400); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 60px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #1E293B; }
.footer-brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-brand-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--blue), var(--indigo)); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-brand-name { font-weight: 800; font-size: 17px; color: #F8FAFC; }
.footer-brand-desc { font-size: 14px; line-height: 1.8; max-width: 260px; margin-bottom: 20px; }
.footer-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-badge { font-size: 10px; font-weight: 600; color: var(--blue); background: rgba(59,130,246,0.1); padding: 3px 8px; border-radius: var(--radius-pill); }
.footer-col-title { font-size: 12px; font-weight: 700; color: #F1F5F9; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--slate-600); font-size: 13px; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--slate-600); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--slate-600); font-size: 13px; }
.footer-links a:hover { color: var(--slate-400); }
.footer-seo { border-top: 1px solid #1E293B; padding: 24px 0 40px; font-size: 12px; color: var(--slate-700); line-height: 1.9; }
.footer-seo strong { color: var(--slate-600); }

/* ── LEGAL SECTIONS ── */
.legal-sections { border-top: 1px solid #1E293B; margin-top: 8px; }
.legal-section { padding: 40px 0 32px; border-bottom: 1px solid #1E293B; display: none; }
.legal-section:target { display: block; }
.legal-section h2 { font-size: 20px; font-weight: 800; color: #F1F5F9; margin-bottom: 16px; letter-spacing: -0.02em; }
.legal-section h3 { font-size: 14px; font-weight: 700; color: #CBD5E1; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.legal-section p { font-size: 14px; color: var(--slate-500); line-height: 1.85; margin-bottom: 10px; }
.legal-section strong { color: var(--blue); }

/* ── DOWNLOAD OVERLAY ── */
#dl-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,0.72); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
#dl-overlay.visible { display: flex; }
.dl-modal { background: #fff; border-radius: 20px; padding: 36px 40px; text-align: center; max-width: 340px; width: 90%; box-shadow: 0 30px 80px rgba(0,0,0,0.25); animation: fadeIn 0.25s ease; }
.dl-modal-icon { margin-bottom: 16px; }
.dl-modal-title { font-weight: 800; font-size: 20px; color: var(--slate-900); margin-bottom: 8px; letter-spacing: -0.02em; }
.dl-modal-sub { font-size: 14px; color: var(--slate-500); margin-bottom: 24px; line-height: 1.6; }
.dl-modal-counter { font-size: 48px; font-weight: 800; color: var(--blue); letter-spacing: -0.04em; margin-bottom: 8px; }
.dl-progress { height: 6px; background: var(--slate-100); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.dl-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--indigo)); border-radius: 99px; transition: width 1s linear; }

/* ── PAGE LOADER ── */
#page-loader { position: fixed; inset: 0; z-index: 99999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; transition: opacity 0.5s ease, visibility 0.5s ease; }
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-square { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--indigo)); box-shadow: 0 8px 32px rgba(99,102,241,0.35); animation: squareSpin 1s cubic-bezier(0.6,0.1,0.4,0.9) infinite; }
.loader-text { font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--slate-400); }
.loader-text span { background: linear-gradient(135deg, var(--blue), var(--indigo)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── ANIMATIONS ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes squareSpin { 0% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(90deg) scale(0.92); } 50% { transform: rotate(180deg) scale(1); } 75% { transform: rotate(270deg) scale(0.92); } 100% { transform: rotate(360deg) scale(1); } }
.fade-in { animation: fadeIn 0.3s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-badges { display: none; }
  .card { padding: 24px 20px; }
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .options-row { flex-direction: column; }
  h1 { font-size: 30px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── AD SLOTS ──────────────────────────────────────────────
   Safe, non-intrusive ad placements.
   - Never above the fold
   - Never inside or near the downloader card
   - Max 2 per page on monetized pages
   - Responsive, no layout shift
   ──────────────────────────────────────────────────────── */
.ad-slot {
  width: 100%;
  max-width: 840px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px; /* Reserve space to prevent layout shift (CLS) */
  box-sizing: border-box;
}

/* Label above ad — required by most ad networks and good for UX */
.ad-slot-inner {
  width: 100%;
  background: transparent;
  text-align: center;
}

.ad-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

/* Responsive ad sizing */
@media (max-width: 700px) {
  .ad-slot {
    min-height: 60px;
    padding: 0 16px;
  }
}
