:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 12px 28px -12px rgba(15,23,42,.12);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand .brand-mark { width: 34px; height: 34px; flex: none; display: block; }
.brand .brand-mark svg { width: 34px; height: 34px; display: block; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand .brand-name { letter-spacing: -.01em; }
/* legacy text logo (kept harmless) */
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 700;
  background: var(--primary); box-shadow: var(--shadow-sm);
}
.foot-company { font-size: .82rem; color: var(--muted); margin: 10px 0 0; font-weight: 500; }
.header-note { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); font-weight: 500; }
.header-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.back-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.back-link:hover { color: var(--primary); }
@media (max-width: 560px) { .header-note { display: none; } }

/* Hero */
.hero { text-align: center; padding: 56px 24px 8px; max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .8rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border: 1px solid #dbeafe; padding: 6px 14px; border-radius: 999px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; }
.hero p { margin: 0 auto; max-width: 540px; color: var(--muted); font-size: 1.1rem; }
.hero.compact { padding: 40px 24px 4px; }
.hero.compact h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.wrap { max-width: 960px; margin: 0 auto; padding: 28px 24px 40px; }
.wrap.narrow { max-width: 780px; }

/* Card */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }

/* Tool grid (homepage) */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 820px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tool-grid { grid-template-columns: 1fr; } }
.tool {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.tool .t-ic {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--primary-soft); color: var(--primary); border: 1px solid #dbeafe;
}
.tool h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.tool p { margin: 0; font-size: .9rem; color: var(--muted); }
.tool .go { margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--primary); }

/* Steps */
.steps { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 6px 0 24px; }
.steps .step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.steps .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--line); color: var(--muted); font-size: .85rem; transition: .2s; }
.steps .step.active .num { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps .step.active { color: var(--ink); }
.steps .step.done .num { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.steps .divider { width: 44px; height: 2px; border-radius: 2px; background: var(--line); }

/* Drop zone */
.drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 46px 20px; text-align: center; cursor: pointer; transition: .18s; background: var(--bg); }
.drop:hover, .drop.hover { border-color: var(--primary); background: var(--primary-soft); }
.drop .up-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); color: var(--primary); border: 1px solid #dbeafe; }
.drop strong { color: var(--primary); }
.drop small { display: block; color: var(--muted); margin-top: 6px; font-size: .88rem; }

/* File list */
ul.file-list { list-style: none; padding: 0; margin: 22px 0 0; }
ul.file-list li { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.file-ic { width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-size: .95rem; background: var(--primary-soft); color: var(--primary); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.file-size { color: var(--muted); font-size: .84rem; }

/* Page grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px; margin-top: 22px; }
.page-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 10px; text-align: center;
  position: relative; user-select: none; transition: transform .12s, box-shadow .18s, border-color .18s; box-shadow: var(--shadow-sm); }
.page-card.draggable { cursor: grab; }
.page-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.page-card.dragging { opacity: .35; }
.page-card.drop-target { border-color: var(--primary); outline: 2px solid rgba(37,99,235,.25); outline-offset: 2px; }
.page-card.selected { border-color: var(--primary); outline: 2px solid rgba(37,99,235,.35); outline-offset: 2px; }
.page-card .thumb { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; background: #fff; transition: transform .2s; }
.page-order { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: grid; place-items: center; font-size: .76rem; font-weight: 700; color: #fff; background: var(--primary); box-shadow: var(--shadow-sm); }
.page-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; }
.page-src { font-size: .72rem; color: var(--muted); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-tools { display: flex; justify-content: center; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.icon-btn { border: none; background: transparent; cursor: pointer; font-size: .9rem; padding: 4px 8px; border-radius: 7px; color: var(--muted); transition: .15s; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* Buttons */
.actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
button.primary { border: none; cursor: pointer; flex: 1; min-width: 200px; padding: 15px 28px; font-size: 1rem; font-weight: 600; color: #fff;
  border-radius: 11px; font-family: inherit; background: var(--primary);
  box-shadow: 0 1px 2px rgba(37,99,235,.4), 0 8px 20px -10px rgba(37,99,235,.6); transition: background .15s, transform .1s, box-shadow .2s; }
button.primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
button.primary:disabled { background: #cbd5e1; box-shadow: none; cursor: default; transform: none; }
button.ghost { background: var(--white); color: var(--body); border: 1px solid var(--line); padding: 14px 20px; border-radius: 11px;
  cursor: pointer; font-weight: 600; font-family: inherit; transition: .15s; }
button.ghost:hover { border-color: #cbd5e1; background: var(--line-soft); }

/* Toolbar (selection controls, mode toggles) */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.toolbar .spacer { flex: 1; }
.seg { display: inline-flex; background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: none; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; font-family: inherit; }
.seg button.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

.status { margin-top: 18px; text-align: center; color: var(--muted); min-height: 22px; font-weight: 500; }
.hint { color: var(--body); font-size: .93rem; margin: 0 0 4px; background: var(--primary-soft); border: 1px solid #dbeafe; padding: 12px 16px; border-radius: 10px; }

/* Features / trust */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px auto 0; max-width: 960px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .f-ic { width: 42px; height: 42px; margin-bottom: 14px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem;
  background: var(--primary-soft); color: var(--primary); border: 1px solid #dbeafe; }
.feature h3 { margin: 0 0 6px; font-size: .98rem; font-weight: 700; }
.feature p { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin: 30px auto 0; max-width: 960px; color: var(--muted); font-size: .86rem; font-weight: 500; }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip .chk { color: #16a34a; font-weight: 700; }

.hidden { display: none !important; }

/* ===================== Nav bar ===================== */
.site-header .inner { gap: 18px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a, .nav-drop-btn {
  text-decoration: none; color: var(--body); font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 9px; background: transparent; border: none; cursor: pointer; font-family: inherit; transition: .15s;
}
.main-nav > a:hover, .nav-drop-btn:hover { background: var(--line-soft); color: var(--primary); }
.main-nav > a.active { color: var(--primary); background: var(--primary-soft); }
.nav-drop-btn .caret { font-size: .7rem; }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .15s; z-index: 40;
}
.nav-dropdown:hover .dropdown-menu, .dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--body);
  font-weight: 600; font-size: .9rem; padding: 9px 11px; border-radius: 8px;
}
.dropdown-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.dropdown-menu a.active { background: var(--primary-soft); color: var(--primary); }
.dropdown-menu .dd-ic { font-size: 1rem; }
.nav-cta {
  text-decoration: none; background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 9px 16px; border-radius: 10px; box-shadow: 0 8px 20px -10px rgba(37,99,235,.6); transition: .15s;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); font-size: 1.1rem; border-radius: 9px; padding: 6px 11px; cursor: pointer; }
@media (max-width: 860px) {
  .header-note { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 10px 16px 16px; display: none;
  }
  .main-nav.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 12px; }
}

/* ===================== Section headings ===================== */
.section { padding: 46px 0 6px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 26px; }
.section-head .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.section-head h2 { margin: 8px 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.03rem; }

/* Decorative hero background */
.hero-wrap { position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; }
.hero-blob.b1 { width: 380px; height: 380px; background: #bfdbfe; top: -120px; left: -80px; }
.hero-blob.b2 { width: 320px; height: 320px; background: #ddd6fe; top: -60px; right: -60px; }
.hero-wrap .hero, .hero-wrap .stats-strip { position: relative; z-index: 1; }

/* ===================== Stats strip ===================== */
.stats-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 780px; margin: 22px auto 0; padding: 0 24px; }
.stat { flex: 1; min-width: 150px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 800; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ===================== How it works ===================== */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .steps-3 { grid-template-columns: 1fr; } }
.how-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.how-card .how-num { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--primary); box-shadow: 0 8px 18px -8px rgba(37,99,235,.7); }
.how-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.how-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ===================== FAQ ===================== */
.faq { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-q .plus { color: var(--primary); font-size: 1.3rem; transition: transform .2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 20px; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 260px; padding: 0 20px 18px; }

/* ===================== CTA band ===================== */
.cta-band { max-width: 960px; margin: 46px auto 0; padding: 0 24px; }
.cta-inner { background: linear-gradient(135deg, var(--primary), #1e40af); border-radius: 20px; padding: 44px 32px; text-align: center; color: #fff; box-shadow: 0 24px 50px -24px rgba(37,99,235,.7); }
.cta-inner h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-inner p { margin: 0 auto 22px; max-width: 460px; color: #dbeafe; }
.cta-inner .cta-btn { display: inline-block; background: #fff; color: var(--primary); font-weight: 700; text-decoration: none; padding: 14px 30px; border-radius: 12px; transition: .15s; }
.cta-inner .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.35); }

/* ===================== Legal / content pages ===================== */
.doc { max-width: 800px; margin: 0 auto; padding: 10px 24px 20px; }
.doc .card { padding: 34px; }
.doc h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.doc h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--body); font-size: .98rem; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--primary); }
.doc .note { background: var(--primary-soft); border: 1px solid #dbeafe; border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--body); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.contact-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; color: var(--primary); text-decoration: none; font-size: 1.1rem; }
.contact-email:hover { text-decoration: underline; }

/* ===================== Purchase panel / recovery ===================== */
.purchase-panel { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.purchase-panel .pp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.purchase-panel .pp-ic { font-size: 1.2rem; }
.purchase-panel .pp-text { flex: 1; min-width: 180px; color: #065f46; }
.pp-btn { border: none; cursor: pointer; background: var(--primary); color: #fff; font-weight: 600; font-family: inherit;
  padding: 10px 18px; border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(37,99,235,.6); transition: .15s; white-space: nowrap; }
.pp-btn:hover { background: var(--primary-dark); }
.purchase-panel .pp-note { font-size: .82rem; color: #047857; margin-top: 8px; }

.recover-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--primary-soft); border: 1px solid #dbeafe; border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; color: var(--body); font-size: .92rem; }
.recover-bar .recover-actions { display: flex; align-items: center; gap: 8px; }
.recover-x { border: none; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.recover-x:hover { background: #dbeafe; color: var(--ink); }

/* ===================== Blog ===================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.blog-cover { height: 150px; background-size: cover; background-position: center; background-color: var(--primary-soft); }
.blog-cover-fallback { display: grid; place-items: center; font-size: 2.4rem; color: var(--primary); }
.blog-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-date { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.blog-body h3 { margin: 8px 0 8px; font-size: 1.1rem; line-height: 1.35; }
.blog-body p { margin: 0 0 14px; font-size: .92rem; color: var(--muted); flex: 1; }
.blog-body .go { font-size: .88rem; font-weight: 600; color: var(--primary); }

/* Article */
.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-md); }
.article-date { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.article-title { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 10px 0 18px; letter-spacing: -.02em; }
.article-cover { width: 100%; border-radius: 12px; margin: 0 0 22px; border: 1px solid var(--line); }
.article-content { color: var(--body); font-size: 1.05rem; line-height: 1.75; }
.article-content h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.article-content h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 16px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--primary); }
.article-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; color: var(--ink); }
.article-content code { background: var(--line-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.article-content img { max-width: 100%; border-radius: 10px; }
.article-cta { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.cta-btn-inline { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 26px; border-radius: 11px; box-shadow: 0 8px 20px -10px rgba(37,99,235,.6); transition: .15s; }
.cta-btn-inline:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===================== Footer (rich) ===================== */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; background: var(--white); }
.foot-cols { max-width: 1080px; margin: 0 auto; padding: 44px 24px 22px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: .9rem; margin: 12px 0 12px; max-width: 300px; }
.foot-brand .brand { font-size: 1.05rem; }
.foot-trust { font-size: .85rem; color: var(--body); font-weight: 500; }
.foot-trust .chk { color: #16a34a; font-weight: 700; }
.foot-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }
.foot-col a { display: block; text-decoration: none; color: var(--body); font-size: .92rem; padding: 5px 0; }
.foot-col a:hover { color: var(--primary); }
.foot-mini { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.foot-bottom { border-top: 1px solid var(--line); max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .82rem; }

/* Legacy simple footer (kept for any leftover) */
footer:not(.site-footer) { text-align: center; padding: 40px 20px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 40px; background: var(--white); }
footer:not(.site-footer) a { color: var(--primary); text-decoration: none; }

/* =====================================================================
   ✨ Animations & visual polish (progressive enhancement)
   Reveal styles only apply when JS is on (html.js) AND the element has
   been tagged [data-reveal] by site.js — so content is never hidden
   if JS is disabled or fails.
   ===================================================================== */
html { scroll-behavior: smooth; }

@keyframes fmFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fmFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes fmFloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes fmShine  { to { left: 130%; } }
@keyframes fmSpin   { to { transform: rotate(360deg); } }
@keyframes fmPulse  { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.35); } 70% { box-shadow: 0 0 0 12px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }

/* Scroll reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
html.js [data-reveal].in-view { opacity: 1; transform: none; }

/* Hero entrance + floating blobs */
.hero .eyebrow { animation: fmFadeUp .6s ease both; }
.hero h1 { animation: fmFadeUp .7s .06s ease both; }
.hero p { animation: fmFadeUp .7s .14s ease both; }
.hero-blob.b1 { animation: fmFloat 9s ease-in-out infinite; }
.hero-blob.b2 { animation: fmFloat2 11s ease-in-out infinite; }

/* Nav: subtle shadow once scrolled */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(15,23,42,.35); }

/* Primary button: shine sweep on hover */
button.primary, .nav-cta, .cta-btn, .cta-btn-inline, .pp-btn { position: relative; overflow: hidden; }
button.primary::after, .cta-btn::after, .cta-btn-inline::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
button.primary:hover::after, .cta-btn:hover::after, .cta-btn-inline:hover::after { animation: fmShine .8s ease; }

/* Tool cards: animated icon + gradient top accent on hover */
.tool { position: relative; overflow: hidden; }
.tool::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #60a5fa, var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.tool:hover::before { transform: scaleX(1); }
.tool .t-ic { transition: transform .25s ease, box-shadow .25s ease; }
.tool:hover .t-ic { transform: scale(1.08) rotate(-4deg); box-shadow: 0 10px 22px -10px rgba(37,99,235,.6); }
.tool .go { transition: transform .2s ease; display: inline-block; }
.tool:hover .go { transform: translateX(4px); }

/* Feature + how-it-works icon lift */
.feature .f-ic, .how-card .how-num { transition: transform .25s ease; }
.feature:hover .f-ic { transform: translateY(-3px) scale(1.06); }
.how-card:hover .how-num { transform: scale(1.1); }

/* Drop zone: gently floating icon that reacts on hover */
.drop .up-ic { animation: fmFloat 3.6s ease-in-out infinite; transition: transform .2s ease; }
.drop:hover .up-ic { animation-play-state: paused; transform: scale(1.08); }

/* Blog cover subtle zoom */
.blog-cover { transition: transform .35s ease; }
.blog-card:hover .blog-cover { transform: scale(1.05); }

/* Page thumbnails (tools) hover polish */
.page-card .thumb { transition: transform .2s ease; }
.page-card:hover .thumb { transform: scale(1.02); }

/* Loading spinner utility */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: fmSpin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }

/* Attention pulse for the main download button when idle */
.actions .primary:not(:disabled) { animation: fmPulse 2.6s ease-out 1.5s 2; }

/* Respect reduced-motion preferences everywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero .eyebrow, .hero h1, .hero p, .hero-blob, .drop .up-ic, .actions .primary { animation: none !important; }
  button.primary::after, .cta-btn::after, .cta-btn-inline::after { display: none; }
}

/* =====================================================================
   Hero — split layout, gradient headline, chips & animated illustration
   ===================================================================== */
.hero.hero-split {
  max-width: 1080px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 44px; align-items: center; text-align: left; padding: 50px 24px 10px;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; }
.hero-copy h1 .grad {
  background: linear-gradient(120deg, var(--primary), #60a5fa 55%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { margin: 0 0 26px; max-width: 520px; color: var(--muted); font-size: 1.12rem; }
.hero-copy p strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-primary-lg {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 600;
  text-decoration: none; padding: 14px 26px; border-radius: 12px;
  box-shadow: 0 12px 26px -12px rgba(37,99,235,.7); transition: transform .12s, background .15s;
}
.btn-primary-lg:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost-lg {
  display: inline-block; background: #fff; color: var(--ink); border: 1px solid var(--line);
  font-weight: 600; text-decoration: none; padding: 14px 22px; border-radius: 12px; transition: .15s;
}
.btn-ghost-lg:hover { border-color: #cbd5e1; background: var(--line-soft); transform: translateY(-2px); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--body); }
.hero-chips .chk { color: #16a34a; font-weight: 800; }

.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-illustration { width: 100%; max-width: 470px; height: auto; }
.hero-illustration g[class*="art-"] { transform-box: fill-box; transform-origin: center; }
.hero-illustration .art-window { animation: fmFloat 7s ease-in-out infinite; }
.hero-illustration .art-file.f1 { animation: fmFloat 5s ease-in-out .2s infinite; }
.hero-illustration .art-file.f2 { animation: fmFloat2 6s ease-in-out infinite; }
.hero-illustration .art-shield { animation: fmShieldPulse 3.2s ease-in-out infinite; }
.hero-illustration .art-nocloud { animation: fmFloat2 5.5s ease-in-out .4s infinite; }
@keyframes fmShieldPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

#tools { scroll-margin-top: 84px; }

@media (max-width: 860px) {
  .hero.hero-split { grid-template-columns: 1fr; text-align: center; gap: 26px; padding-top: 40px; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-chips { justify-content: center; }
  .hero-art { max-width: 340px; margin: 0 auto; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration [class*="art-"] { animation: none !important; }
}

/* =====================================================================
   Gradient nav bar — one continuous gradient in the hero palette
   ===================================================================== */
.site-header {
  background: linear-gradient(100deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
  border-bottom: none;
  box-shadow: 0 6px 20px -12px rgba(79,70,229,.55);
  backdrop-filter: none;
}
.site-header.scrolled { box-shadow: 0 8px 26px -12px rgba(79,70,229,.6); }
.site-header .brand, .site-header .brand .brand-name { color: #fff; }
.main-nav > a, .nav-drop-btn { color: rgba(255,255,255,.9); }
.main-nav > a:hover, .nav-drop-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.main-nav > a.active { background: rgba(255,255,255,.22); color: #fff; }
.header-note { color: rgba(255,255,255,.85); }
.header-note .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.nav-cta { background: #fff; color: var(--primary); box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.nav-cta:hover { background: #eef2ff; }
.nav-toggle { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; }
.back-link { color: rgba(255,255,255,.9); }
.back-link:hover { color: #fff; }

/* Mobile: the menu opens as a white panel, so restore dark links inside it */
@media (max-width: 860px) {
  .main-nav { background: #fff; }
  .main-nav > a, .nav-drop-btn { color: var(--body); }
  .main-nav > a:hover, .nav-drop-btn:hover { background: var(--line-soft); color: var(--primary); }
  .main-nav > a.active { background: var(--primary-soft); color: var(--primary); }
}

/* ===================== Tool option controls ===================== */
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 6px 0 4px; }
.opt label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.opt select, .opt input[type=text], .opt input[type=number] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.opt select:focus, .opt input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.opt input[type=range] { width: 100%; accent-color: var(--primary); }
.opt input[type=color] { width: 100%; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.opt .val { font-weight: 700; color: var(--primary); }
.txt-output { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; max-height: 380px; overflow: auto; font-size: .9rem; color: var(--body); margin-top: 16px; }

/* ===================== Office conversion render area ===================== */
.render-area { position: fixed; left: -10000px; top: 0; width: 794px; background: #fff; color: #000;
  padding: 40px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.render-area h1, .render-area h2, .render-area h3, .render-area h4 { color: #000; margin: 12px 0 8px; }
.render-area p { margin: 0 0 10px; }
.render-area table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.render-area td, .render-area th { border: 1px solid #999; padding: 5px 8px; font-size: 12px; text-align: left; }
.render-area img { max-width: 100%; height: auto; }
.size-note { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--primary-soft); border: 1px solid #dbeafe; font-weight: 600; color: var(--ink); }
