:root {
  --bg: #ffffff;
  --bg-2: #f4f6fb;
  --card: #ffffff;
  --line: #e3e7f2;
  --text: #1c2333;
  --muted: #5e6788;
  --brand: #6c5ce7;
  --brand-2: #00b894;
  --violet-2: #8b7bff;
  --danger: #e74c5c;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(28,35,51,.08);
  --shadow-lg: 0 18px 50px rgba(76,57,160,.16);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 100% -5%, #e8efff, transparent),
    radial-gradient(820px 520px at -5% 12%, #e6fbf3, transparent),
    radial-gradient(700px 600px at 50% 110%, #f3ecff, transparent),
    var(--bg);
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }

header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.bar { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; font-size: 18px; color: var(--text); text-decoration: none; }
.logo .dot { width: 26px; height: 26px; border-radius: 8px; box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%233b6cff'/%3E%3Cstop offset='1' stop-color='%2300b894'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='16' fill='url(%23g)'/%3E%3Cpath d='M19 19 L32 47 L45 19' fill='none' stroke='white' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover; background-position: center; }
nav.tabs { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
nav.tabs button, nav.tabs a {
  background: transparent; color: var(--muted); border: 1px solid transparent;
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
nav.tabs button:hover, nav.tabs a:hover { color: var(--text); background: var(--bg-2); }
nav.tabs button.active { color: var(--text); background: var(--card); border-color: var(--line); }

main { padding: 28px 0 64px; }
.hero { text-align: center; padding: 26px 0 8px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px; line-height: 1.15; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.pill { display:inline-flex; gap:8px; align-items:center; font-size:12px; color:var(--brand-2); background:rgba(0,184,148,.08); border:1px solid rgba(0,184,148,.25); padding:4px 10px; border-radius:999px; margin-bottom:14px;}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.cat-head { font-size:15px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); margin:30px 0 0; }
.grid-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
@media (max-width: 760px){ .grid-tools { grid-template-columns: 1fr; } nav.tabs{ margin-left:0; } .bar{ flex-wrap:wrap; height:auto; padding:10px 0;} }
.tool-card { cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.tool-card h3 { margin: 6px 0; font-size: 18px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.ico { font-size: 26px; }

.panel { display: none; }
.panel.active { display: block; }

.ad-slot {
  border: 1px dashed var(--line); border-radius: 12px; color: var(--muted);
  text-align: center; padding: 14px; margin: 22px 0; font-size: 13px; background: var(--bg-2);
}

label.field { display:block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight:600; }
input[type=range]{ width:100%; }
select, input[type=number], input[type=text], textarea {
  background: var(--bg-2); color: var(--text); border:1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; font-size: 14px; width: 100%;
  font-family: inherit;
}
.row { display:flex; gap:14px; flex-wrap:wrap; }
.row > div { flex: 1 1 160px; }

.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 34px 18px; text-align:center;
  color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(59,108,255,.06); color: var(--text); }
.dropzone strong { color: var(--text); }

button.btn, a.btn {
  background: linear-gradient(135deg, var(--brand), var(--violet-2)); color: white; border: 0;
  padding: 11px 18px; font-size: 15px; font-weight: 700; border-radius: 11px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(108,92,231,.30); text-decoration: none; display: inline-block;
}
button.btn:disabled { opacity:.5; cursor: not-allowed; }
button.ghost, a.ghost { background: var(--bg-2); color: var(--text); border:1px solid var(--line); }

video, canvas.preview { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); background:#000; }
.muted { color: var(--muted); font-size: 13px; }
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border:1px solid var(--line); margin-top: 10px; }
.progress > i { display:block; height:100%; width:0%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s; }
.result { margin-top:16px; padding:14px; border:1px solid var(--line); border-radius:12px; background: var(--bg-2); }
.badge { display:inline-block; font-size:12px; padding:2px 8px; border-radius:999px; background:rgba(59,108,255,.12); color:var(--brand); border:1px solid rgba(59,108,255,.3); }
.note { font-size:12.5px; color:var(--muted); border-left:3px solid var(--line); padding:6px 0 6px 12px; margin-top:14px; }

table.cues { width:100%; border-collapse: collapse; margin-top: 12px; }
table.cues th, table.cues td { text-align:left; padding:8px; border-bottom:1px solid var(--line); font-size:13px; vertical-align: top; }
table.cues input[type=text]{ width:100%; background:var(--bg-2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:6px 8px; font-size:13px;}
.time { width:110px; font-variant-numeric: tabular-nums; color:var(--muted); }

footer.site { border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
footer .wrap { padding: 22px 20px; display:flex; gap:14px; justify-content:space-between; flex-wrap:wrap; align-items:center; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 14px; }
footer.site a:hover { color: var(--brand); }
.hidden { display:none !important; }
.toolhead { display:flex; align-items:center; gap:12px; margin-bottom: 4px; }
.toolhead .ico { font-size: 28px; }
h2.tool-title { margin: 0; font-size: 22px; }

/* Content pages (about / privacy / contact) */
.content { max-width: 760px; margin: 0 auto; }
.content h1 { font-size: clamp(24px, 3.5vw, 34px); margin: 6px 0 4px; }
.content .lead { color: var(--muted); margin-top: 0; }
.content h2 { font-size: 19px; margin: 26px 0 8px; }
.content p, .content li { color: #34405e; }
.content ul { padding-left: 20px; }
.content li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 13px; }

/* ---- Trust bar (upgraded pills with icon badges) ---- */
.trust { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin:22px 0 6px; }
.trust .item { display:flex; align-items:center; gap:11px; font-size:14px; color:var(--text); background:var(--card); border:1px solid var(--line); padding:10px 18px 10px 12px; border-radius:999px; box-shadow:var(--shadow); }
.trust .item .tico { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:17px; flex:none; }
.trust .item .tico.green { background:rgba(0,184,148,.14); }
.trust .item .tico.violet { background:rgba(108,92,231,.14); }
.trust .item .tico.amber { background:rgba(245,166,35,.16); }
.trust .item small { display:block; color:var(--muted); font-size:11.5px; font-weight:500; }
.trust .item.legacy { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); background:var(--bg-2); border:1px solid var(--line); padding:8px 14px; border-radius:999px; box-shadow:none; }
.trust .item strong { color:var(--text); }

/* ---- Stats row ---- */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:26px 0; }
@media (max-width:680px){ .stats{ grid-template-columns:repeat(2,1fr); } }
.stat { text-align:center; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; box-shadow:var(--shadow); }
.stat .num { font-size:24px; font-weight:800; background:linear-gradient(135deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .cap { font-size:12.5px; color:var(--muted); margin-top:2px; }

/* ---- Section heading ---- */
.section-head { text-align:center; margin:44px 0 6px; }
.section-head h2 { font-size:26px; margin:0 0 6px; }
.section-head p { color:var(--muted); margin:0; }

/* ---- FAQ ---- */
.faq { max-width:760px; margin:14px auto 0; }
.faq details { border:1px solid var(--line); border-radius:12px; padding:4px 16px; margin-bottom:10px; background:var(--card); }
.faq summary { cursor:pointer; font-weight:700; padding:12px 0; list-style:none; font-size:15px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; float:right; color:var(--brand); font-weight:800; }
.faq details[open] summary::after { content:'–'; }
.faq p { color:#34405e; margin:0 0 14px; font-size:14px; }

/* ---- Blog cards ---- */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px; }
@media (max-width:820px){ .blog-grid{ grid-template-columns:1fr; } }
.post-card { display:block; text-decoration:none; color:inherit; background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow); transition:transform .12s, border-color .12s; }
.post-card:hover { transform:translateY(-3px); border-color:var(--brand); }
.post-card .thumb { height:150px; background:var(--bg-2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.post-card .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.post-cover { width:100%; border-radius:14px; border:1px solid var(--line); display:block; margin:8px 0 16px; }
.post-card .body { padding:14px 16px; }
.post-card h3 { margin:0 0 6px; font-size:16px; }
.post-card p { margin:0; color:var(--muted); font-size:13px; }
.post-card .tag { font-size:11px; color:var(--brand); font-weight:700; text-transform:uppercase; letter-spacing:.4px; }

/* ---- Article ---- */
.article { max-width:720px; margin:0 auto; }
.article h1 { font-size:clamp(26px,4vw,38px); margin:8px 0 6px; line-height:1.2; }
.article .meta { color:var(--muted); font-size:13px; margin-bottom:18px; }
.article h2 { font-size:21px; margin:28px 0 8px; }
.article p, .article li { color:#34405e; font-size:15.5px; line-height:1.7; }
.article ul, .article ol { padding-left:22px; }
.article .callout { background:var(--bg-2); border-left:3px solid var(--brand); border-radius:8px; padding:12px 16px; margin:16px 0; font-size:14.5px; }
.article a.cta { display:inline-block; margin-top:8px; }
.crumbs { font-size:13px; color:var(--muted); margin-bottom:6px; }
.crumbs a { color:var(--muted); text-decoration:none; }
.crumbs a:hover { color:var(--brand); }

/* ---- Footer columns ---- */
.foot-cols { display:grid; grid-template-columns:2fr 1fr 1fr; gap:24px; padding:30px 20px 10px; max-width:1040px; margin:0 auto; }
@media (max-width:680px){ .foot-cols{ grid-template-columns:1fr; gap:18px; } }
.foot-cols h4 { font-size:13px; margin:0 0 10px; color:var(--text); text-transform:uppercase; letter-spacing:.4px; }
.foot-cols a { display:block; color:var(--muted); text-decoration:none; font-size:13.5px; margin:5px 0; }
.foot-cols a:hover { color:var(--brand); }
.foot-cols .brand { font-weight:800; font-size:18px; display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.foot-cols .brand .dot { width:24px; height:24px; border-radius:8px; background-size:cover; background-position:center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%233b6cff'/%3E%3Cstop offset='1' stop-color='%2300b894'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='16' fill='url(%23g2)'/%3E%3Cpath d='M19 19 L32 47 L45 19' fill='none' stroke='white' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.foot-bottom { border-top:1px solid var(--line); text-align:center; color:var(--muted); font-size:12.5px; padding:14px 20px; }

/* ---- Mockup-style upgrades ---- */
/* Tool card icon tiles */
.tool-card { padding:18px; }
.tool-card .ico { width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:24px; background:linear-gradient(135deg, rgba(108,92,231,.14), rgba(0,184,148,.12)); margin-bottom:10px; }
.g-video .tool-card .ico { background:linear-gradient(135deg, rgba(108,92,231,.16), rgba(139,123,255,.12)); }
.g-image .tool-card .ico { background:linear-gradient(135deg, rgba(0,184,148,.16), rgba(59,196,255,.14)); }
.g-privacy .tool-card .ico { background:linear-gradient(135deg, rgba(245,166,35,.20), rgba(231,76,92,.12)); }

/* Dropdown nav */
.menu { position:relative; }
.menu > .menu-btn { background:transparent; border:1px solid transparent; color:var(--muted); font-weight:600; font-size:14px; padding:8px 12px; border-radius:10px; cursor:pointer; display:inline-flex; align-items:center; gap:5px; }
.menu:hover > .menu-btn, .menu:focus-within > .menu-btn { color:var(--text); background:var(--bg-2); }
.menu .menu-pop { position:absolute; top:100%; left:0; min-width:230px; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:8px; opacity:0; visibility:hidden; transform:translateY(6px); transition:.16s; z-index:60; }
.menu:hover .menu-pop, .menu:focus-within .menu-pop { opacity:1; visibility:visible; transform:translateY(4px); }
.menu .menu-pop a { display:flex; gap:10px; align-items:center; padding:9px 11px; border-radius:9px; text-decoration:none; color:var(--text); font-size:14px; font-weight:600; }
.menu .menu-pop a:hover { background:var(--bg-2); }
.menu .menu-pop a span.mi { width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:var(--bg-2); font-size:16px; }
.menu .menu-pop a small { display:block; color:var(--muted); font-size:11.5px; font-weight:500; }
.btn-cta { background:linear-gradient(135deg,#ff3d8b,#d6336c); color:#fff; border:0; padding:9px 16px; border-radius:10px; font-weight:700; font-size:14px; text-decoration:none; box-shadow:0 8px 20px rgba(214,51,108,.32); }
.btn-cta:hover { filter:brightness(1.05); }
@media (max-width:860px){ .menu .menu-pop{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding:0 0 0 10px; min-width:0; display:none;} .menu:focus-within .menu-pop{ display:block; } }

/* Section intro */
.hero .pill { box-shadow:var(--shadow); background:var(--card); border:1px solid var(--line); color:var(--brand); }

/* ---- Dark mode ---- */
html[data-theme="dark"] {
  --bg:#0f1220; --bg-2:#171b2e; --card:#1a1f38; --line:#2a3157;
  --text:#e8ebf7; --muted:#9aa3c7; --shadow:0 8px 24px rgba(0,0,0,.4); --shadow-lg:0 18px 50px rgba(0,0,0,.5);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(900px 520px at 100% -5%, #1b2350, transparent),
    radial-gradient(820px 520px at -5% 12%, #0f2e2a, transparent),
    radial-gradient(700px 600px at 50% 110%, #251c45, transparent),
    var(--bg);
}
html[data-theme="dark"] header.site { background:rgba(15,18,32,.85); }
html[data-theme="dark"] .content p, html[data-theme="dark"] .content li,
html[data-theme="dark"] .article p, html[data-theme="dark"] .article li { color:#c4cbe6; }
html[data-theme="dark"] .post-card .body p { color:var(--muted); }
html[data-theme="dark"] .tool-card .ico { filter:brightness(1.15); }

/* ---- Theme toggle ---- */
.theme-toggle { background:var(--bg-2); border:1px solid var(--line); color:var(--text); width:38px; height:38px; border-radius:10px; cursor:pointer; font-size:16px; display:inline-flex; align-items:center; justify-content:center; }
.theme-toggle:hover { border-color:var(--brand); }

/* ---- Ad zones (invisible until AdSense is activated) ---- */
.ad-zone { margin:22px 0; text-align:center; min-height:0; overflow:hidden; }
.ad-zone ins { display:block; }

/* ---- Cookie consent ---- */
#cookie-banner { position:fixed; left:16px; right:16px; bottom:16px; max-width:640px; margin:0 auto; z-index:200;
  background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:16px 18px;
  display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
#cookie-banner p { margin:0; font-size:13px; color:var(--muted); flex:1 1 280px; }
#cookie-banner a { color:var(--brand); }
#cookie-banner .cb-actions { display:flex; gap:8px; }
#cookie-banner button { border-radius:9px; padding:8px 14px; font-weight:700; font-size:13px; cursor:pointer; border:1px solid var(--line); }
#cookie-banner .cb-accept { background:linear-gradient(135deg,var(--brand),var(--violet-2)); color:#fff; border:0; }
#cookie-banner .cb-decline { background:var(--bg-2); color:var(--text); }

/* ---- Back to top ---- */
#to-top { position:fixed; right:18px; bottom:18px; z-index:150; width:44px; height:44px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--violet-2)); color:#fff; border:0; cursor:pointer; font-size:20px;
  box-shadow:0 8px 20px rgba(108,92,231,.4); opacity:0; visibility:hidden; transition:.2s; }
#to-top.show { opacity:1; visibility:visible; }

/* ---- Scroll reveal ---- */
.reveal { opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; } }

/* ---- Toasts ---- */
#toasts { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:300; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
.toast { background:var(--card); color:var(--text); border:1px solid var(--line); border-left:4px solid var(--brand-2);
  border-radius:12px; box-shadow:var(--shadow-lg); padding:12px 18px; font-size:14px; font-weight:600;
  display:flex; align-items:center; gap:10px; opacity:0; transform:translateY(12px); transition:.3s; }
.toast.in { opacity:1; transform:none; }
.toast .ti { width:26px; height:26px; border-radius:50%; background:rgba(0,184,148,.16); display:flex; align-items:center; justify-content:center; font-size:15px; }

/* ---- Tool search ---- */
.tool-search { max-width:560px; margin:8px auto 4px; position:relative; }
.tool-search input { width:100%; padding:14px 18px 14px 46px; font-size:15px; border-radius:14px; border:1px solid var(--line); background:var(--card); color:var(--text); box-shadow:var(--shadow); }
.tool-search input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(108,92,231,.18); }
.tool-search .si { position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:18px; opacity:.6; }
.no-results { text-align:center; color:var(--muted); padding:18px; display:none; }

/* ---- How it works ---- */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px; }
@media (max-width:720px){ .steps{ grid-template-columns:1fr; } }
.step-card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:22px; text-align:center; box-shadow:var(--shadow); }
.step-card .sn { width:42px; height:42px; margin:0 auto 10px; border-radius:50%; background:linear-gradient(135deg,var(--brand),var(--violet-2)); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:18px; }
.step-card h3 { margin:0 0 6px; font-size:17px; }
.step-card p { margin:0; color:var(--muted); font-size:14px; }

/* ---- Feature bar ---- */
.featurebar { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin:26px 0 6px; }
.featurebar span { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--text); background:var(--bg-2); border:1px solid var(--line); padding:10px 16px; border-radius:999px; }

/* ---- Error / 404 ---- */
.errwrap { text-align:center; padding:60px 20px; max-width:560px; margin:0 auto; }
.errwrap .big { font-size:clamp(70px,16vw,140px); font-weight:900; line-height:1; background:linear-gradient(135deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
