/* AI PDF Guru — marketing + tool pages */
:root {
  --brand: #eb1000;
  --brand-2: #ff4d2e;
  --brand-dark: #c40c00;
  --brand-soft: #ffeeeb;
  --ink: #16161a;
  --ink-2: #3f3f46;
  --muted: #6e6e78;
  --line: #e7e7ea;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --night: #0f0f12;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .06), 0 1px 3px rgba(16, 16, 20, .08);
  --shadow: 0 12px 32px rgba(16, 16, 20, .10);
  --shadow-lg: 0 24px 60px rgba(16, 16, 20, .18);
  --c-edit: #e34850;      --c-edit-bg: #fdecee;
  --c-organize: #7e3ff2;  --c-organize-bg: #f1eafe;
  --c-optimize: #e07a00;  --c-optimize-bg: #fff2e2;
  --c-from: #0d66d0;      --c-from-bg: #e6f0fc;
  --c-to: #12805c;        --c-to-bg: #e4f4ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(1200px, 100% - 32px); margin: 0 auto; }
:focus-visible { outline: 3px solid rgba(235, 16, 0, .35); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn svg.i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(235, 16, 0, .28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; padding: 9px 18px; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-ghost:hover { background: #ececef; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f3; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 5px 12px rgba(235, 16, 0, .35)); transition: transform .2s; }
.logo:hover svg { transform: rotate(-6deg) scale(1.05); }
.logo .wm { display: flex; align-items: baseline; gap: 5px; font-size: 22px; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.logo .wm-pdf { font-weight: 800; }
.logo .wm-guru {
  font-weight: 800; font-style: italic; padding-right: 2px;
  background: linear-gradient(100deg, #ff6a3d 0%, #eb1000 55%, #b80b00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-brand .logo .wm-guru { background: linear-gradient(100deg, #ffb199, #ff5a36 50%, #ff2a1a); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 560px) { .logo .wm { font-size: 19px; } .logo svg { width: 34px; height: 34px; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 26px; height: 70px; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 9px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.nav-link:hover { background: var(--bg-alt); color: var(--ink); }
.caret { font-size: 10px; opacity: .7; }
.nav-item { position: relative; }
.mega-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: -12px;
  width: 980px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 24px; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.mega-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mega:hover .mega-panel, .mega:focus-within .mega-panel { display: grid; }
.mega-panel h4 { margin: 0 0 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mega-panel a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.mega-panel a:hover { background: var(--bg-alt); color: var(--ink); }
.mega-panel .mi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.mega-panel .mi svg.i { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; background: none; border: 1px solid var(--line); cursor: pointer; place-items: center; }

/* category tiles */
.cat-edit .ico, .mi.cat-edit { color: var(--c-edit); background: var(--c-edit-bg); }
.cat-organize .ico, .mi.cat-organize { color: var(--c-organize); background: var(--c-organize-bg); }
.cat-optimize .ico, .mi.cat-optimize { color: var(--c-optimize); background: var(--c-optimize-bg); }
.cat-convertFrom .ico, .mi.cat-convertFrom { color: var(--c-from); background: var(--c-from-bg); }
.cat-convertTo .ico, .mi.cat-convertTo { color: var(--c-to); background: var(--c-to-bg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 72px 0 84px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(235, 16, 0, .55), transparent 60%),
    radial-gradient(800px 420px at 95% 10%, rgba(255, 90, 40, .35), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(120, 20, 60, .45), transparent 60%),
    var(--night);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #f4f4f5; margin-bottom: 22px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 auto 18px; font-weight: 800; max-width: 920px; }
.hero h1 .grad { background: linear-gradient(90deg, #ff6a4d, #ff2a1a 45%, #ffb199); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: #d4d4d8; margin: 0 auto 36px; max-width: 660px; }
.hero .dropzone { box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: #d4d4d8; font-weight: 600; font-size: 14px; }
.trust-row span { display: inline-flex; gap: 8px; align-items: center; }
.trust-row svg.i { width: 18px; height: 18px; color: #ff7a63; }

.dropzone {
  max-width: 780px; margin: 0 auto; text-align: center; border-radius: 26px; background: #fff; color: var(--ink);
  padding: 10px; cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; box-shadow: var(--shadow);
}
.dropzone .dz-inner { border: 2px dashed #f3b4ab; border-radius: 20px; padding: 44px 24px 34px; transition: .15s; background: linear-gradient(180deg, #fff, #fff8f7); }
.dropzone:hover .dz-inner, .dropzone.over .dz-inner { border-color: var(--brand); background: #fff3f1; }
.dropzone.over { transform: scale(1.01); }
.dropzone .dz-icon {
  width: 74px; height: 74px; border-radius: 22px; color: #fff; display: grid; place-items: center; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); box-shadow: 0 12px 28px rgba(235,16,0,.35);
}
.dropzone .dz-icon svg.i { width: 34px; height: 34px; stroke-width: 2; }
.dropzone h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.01em; }
.dropzone .dz-sub { color: var(--muted); margin: 0 0 22px; }
.dropzone .dz-note { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.dropzone .dz-note svg.i { width: 15px; height: 15px; }

/* ---------- sections ---------- */
section.block { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.12; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 auto 30px; padding: 5px; background: var(--bg-alt); border-radius: 999px; width: fit-content; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tool-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.tool-card h3 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: -.01em; }
.tool-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.tool-card .go { position: absolute; top: 22px; right: 20px; color: #c4c4cc; transition: .18s; }
.tool-card:hover .go { color: var(--brand); transform: translateX(3px); }
.tool-card .go svg.i { width: 18px; height: 18px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature { background: #fff; border-radius: 20px; padding: 30px; border: 1px solid var(--line); transition: .18s; }
.feature:hover { box-shadow: var(--shadow); }
.feature .f-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: var(--brand); background: var(--brand-soft); }
.feature h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 16px; }
.split p.sub { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.checks li svg.i { color: #fff; background: var(--brand); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 2.6; }

/* editor mock-up illustration */
.mock { border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; }
.mock-bar i:first-child { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-tools { margin-left: auto; display: flex; gap: 6px; }
.mock-tools span { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-alt); display: grid; place-items: center; color: var(--ink-2); }
.mock-tools span.on { background: #e3effd; color: #2680eb; }
.mock-tools svg.i { width: 15px; height: 15px; }
.mock-body { display: grid; grid-template-columns: 82px 1fr; background: #eef0f3; min-height: 300px; }
.mock-side { padding: 12px; display: grid; gap: 10px; align-content: start; background: #f7f8f9; border-right: 1px solid var(--line); }
.mock-side b { display: block; height: 70px; background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); }
.mock-side b:first-child { outline: 2px solid #2680eb; }
.mock-page { margin: 18px auto; width: 78%; background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); padding: 22px; display: grid; gap: 9px; align-content: start; }
.mock-page .h { height: 14px; width: 55%; background: #1f2937; border-radius: 3px; }
.mock-page .l { height: 8px; background: #d4d4d8; border-radius: 3px; }
.mock-page .l.s { width: 70%; }
.mock-page .edit { height: 24px; width: 66%; border: 1.5px solid #2680eb; border-radius: 3px; display: flex; align-items: center; padding: 0 6px; font-size: 11.5px; font-weight: 700; color: #111; background: #fff; }
.mock-page .edit::after { content: ''; width: 1.5px; height: 13px; background: #111; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.mock-page .hl { height: 10px; width: 48%; background: rgba(255, 212, 0, .55); border-radius: 2px; }
.mock-page .sig { font: 26px "Snell Roundhand", "Segoe Script", cursive; color: #0b3d91; margin-top: 8px; }
@keyframes blink { 50% { opacity: 0; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 17px;
}
.step h3 { margin: 0 0 6px; } .step p { margin: 0; color: var(--muted); }

.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; margin-bottom: 10px; transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 60px 32px; text-align: center;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255,90,40,.55), transparent 60%), radial-gradient(600px 300px at 90% 100%, rgba(235,16,0,.6), transparent 60%), var(--night);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; }
.cta-band p { margin: 0 0 28px; color: #d4d4d8; font-size: 17px; }

/* ---------- tool page ---------- */
.tool-hero { padding: 40px 0 28px; text-align: center; background: linear-gradient(180deg, #fff6f4, #fff); border-bottom: 1px solid #fbe3df; }
.tool-hero .ico { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.tool-hero .ico svg.i { width: 32px; height: 32px; }
.tool-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.03em; }
.tool-hero p { margin: 0 auto; color: var(--ink-2); max-width: 620px; font-size: 18px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; } .breadcrumb a:hover { color: var(--brand); }

.stepper { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 26px 0 0; flex-wrap: wrap; }
.stepper .st { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.stepper .st b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: #ececef; color: var(--muted); }
.stepper .st.on { color: var(--ink); } .stepper .st.on b { background: var(--brand); color: #fff; }
.stepper .st.done { color: var(--ink-2); } .stepper .st.done b { background: var(--ink); color: #fff; }
.stepper .bar { width: 36px; height: 2px; background: #e4e4e7; border-radius: 2px; }

.stage { padding: 34px 0 10px; }
.workspace { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin: 0 0 60px; align-items: start; }
.ws-main { background: var(--bg-alt); border-radius: 20px; padding: 22px; min-height: 340px; border: 1px solid var(--line); }
.ws-side { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.ws-side h3 { margin: 0 0 16px; font-size: 18px; }
.ws-side .btn-primary { width: 100%; margin-top: 18px; }
.ws-side .hint { font-size: 13px; color: var(--muted); margin-top: 12px; }

.field { margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; color: var(--ink-2); }
.field input[type=text], .field input[type=number], .field select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .row { display: flex; gap: 8px; }
.field > label.choice, .choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; transition: .12s; }
.choice:hover { border-color: #d4d4d8; }
.choice:has(input:checked) { border-color: var(--brand); background: #fff6f4; }
.choice input { margin-top: 3px; accent-color: var(--brand); }
.choice b { display: block; font-size: 14px; } .choice small { color: var(--muted); }

.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.file-row .thumb { width: 44px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; flex: none; }
.file-row .meta { flex: 1; min-width: 0; }
.file-row .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-row .meta small { color: var(--muted); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { background: var(--bg-alt); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.add-more { margin-top: 12px; }

.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 16px; }
.pg { position: relative; background: #fff; border: 2px solid transparent; border-radius: 14px; padding: 10px; cursor: pointer; text-align: center; transition: .12s; user-select: none; box-shadow: var(--shadow-sm); }
.pg:hover { border-color: #d4d4d8; }
.pg.sel { border-color: var(--c-from); background: var(--c-from-bg); }
.pg.sel.del { border-color: var(--brand); background: #fff1ef; }
.pg.sel.del .pg-img { opacity: .35; }
.pg-img { height: 150px; display: grid; place-items: center; }
.pg-img img, .pg-img canvas { max-width: 100%; max-height: 150px; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s; background: #fff; }
.pg .n { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.pg .badge { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-from); color: #fff; font-size: 13px; display: none; place-items: center; margin: 0; padding: 0; border: 0; }
.pg.sel .badge { display: grid; }
.pg.sel.del .badge { background: var(--brand); }
.grid-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.grid-tools .btn { padding: 8px 14px; font-size: 13.5px; }
.ws-main .btn-ghost { background: #fff; border-color: var(--line); }
.ws-main .btn-ghost:hover { border-color: #d4d4d8; }

.preview-one { display: grid; place-items: center; padding: 14px; }
.preview-one canvas, .preview-one img { max-height: 460px; max-width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.14); background: #fff; border-radius: 4px; }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .2s; }

.result { max-width: 660px; margin: 0 auto 70px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 44px 28px; box-shadow: var(--shadow); }
.result .ok { width: 76px; height: 76px; border-radius: 50%; background: #e7f6ee; color: #12805c; display: grid; place-items: center; margin: 0 auto 18px; }
.result .ok svg.i { width: 38px; height: 38px; stroke-width: 2.4; }
.result h2 { margin: 0 0 6px; letter-spacing: -.02em; }
.result p { color: var(--muted); margin: 0 0 24px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.related { margin: 0 0 70px; }
.related h3 { text-align: center; margin-bottom: 20px; font-size: 22px; letter-spacing: -.02em; }

.tool-info { max-width: 840px; margin: 0 auto 64px; }
.tool-info h2 { font-size: 26px; text-align: center; letter-spacing: -.02em; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: how; }
.how div { background: var(--bg-alt); border-radius: 16px; padding: 18px; color: var(--ink-2); font-size: 14.5px; }
.how div::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 10px; }

.tool-info .about { margin: 46px 0 10px; }
.tool-info .about h2, .tool-info > h2 { margin-top: 46px; }
.tool-info .about p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.tool-info .about code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #a1a1aa; padding: 64px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 4fr; gap: 40px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; max-width: 260px; }
.footer-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer-grid a { display: block; text-decoration: none; padding: 3px 0; font-size: 13.5px; color: #a1a1aa; }
.footer-grid a:hover { color: #fff; }
.footer-bottom a.src-link { color: #a1a1aa; } .footer-bottom a.src-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #26262c; margin-top: 40px; padding-top: 22px; font-size: 13px; color: #71717a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: 90vw; box-shadow: var(--shadow-lg); }
.toast[hidden] { display: none; }

/* ---------- legal ---------- */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #a1a1aa; text-decoration: none; } .footer-legal a:hover { color: #fff; }
.legal-hero { padding: 44px 0 34px; text-align: center; background: linear-gradient(180deg, #fff6f4, #fff); border-bottom: 1px solid #fbe3df; }
.legal-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.03em; }
.legal-hero p { margin: 0 auto 16px; color: var(--ink-2); max-width: 640px; font-size: 17px; }
.legal-date { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 44px 0 80px; align-items: start; }
.legal-nav { position: sticky; top: 94px; display: grid; gap: 4px; }
.legal-nav h4 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); border-left: 3px solid transparent; }
.legal-nav a small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.legal-nav a:hover { background: var(--bg-alt); }
.legal-nav a.on { background: var(--brand-soft); color: var(--brand-dark); border-left-color: var(--brand); }
.legal-body { max-width: 760px; font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.legal-body h2 { font-size: 21px; color: var(--ink); letter-spacing: -.015em; margin: 36px 0 10px; }
.legal-body h2:first-child, .legal-body .legal-note + h2 { margin-top: 0; }
.legal-body .legal-note + h2 { margin-top: 28px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; } .legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--brand); font-weight: 600; }
.legal-note { background: #fff6f4; border: 1px solid #fbd5ce; border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14.5px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-alt); color: var(--ink); }
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-nav h4 { grid-column: 1 / -1; }
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .mega-panel { width: 760px; grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .ws-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: grid; }
  .header-actions { display: none; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .mega-panel { position: static; width: auto; grid-template-columns: 1fr 1fr; box-shadow: none; border: 0; padding: 8px 0; }
  .how { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-panel { grid-template-columns: 1fr; }
  .dropzone .dz-inner { padding: 32px 16px 26px; }
  .hero { padding: 48px 0 60px; }
  .tabs { border-radius: 16px; }
  .stepper .bar { width: 16px; }
  .logo .wm { font-size: 18px; }
}

/* ---------- guides */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin: 40px auto 70px; }
.related .guide-list { margin: 0; }
.guide-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.guide-card h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.guide-card span { color: var(--brand); font-weight: 700; font-size: 14px; }
.guide-meta { font-size: 14px !important; color: var(--muted) !important; margin-top: 14px !important; }
.guide-body { max-width: 760px; margin: 40px auto 60px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.guide-body h2 { color: var(--ink); font-size: 26px; letter-spacing: -.02em; line-height: 1.25; margin: 42px 0 12px; }
.guide-body p { margin: 0 0 16px; }
.guide-body ol, .guide-body ul { padding-left: 22px; margin: 0 0 18px; }
.guide-body li { margin-bottom: 10px; }
.guide-body a:not(.btn) { color: var(--brand); font-weight: 600; }
.guide-body b { color: var(--ink); }
.guide-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--brand-50, #fff1ef); border: 1px solid rgba(235,16,0,.15); border-radius: 16px; padding: 16px 20px; font-size: 15.5px; }
.guide-cta.end { justify-content: space-between; margin-top: 44px; padding: 22px 24px; }
.tool-guides { max-width: 840px; margin: 0 auto 40px; }
.tool-guides a { display: block; padding: 14px 18px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tool-guides a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) { .guide-body { font-size: 16px; } .guide-body h2 { font-size: 22px; } .guide-cta.end .btn { width: 100%; justify-content: center; } }

/* ---------- language menu (footer) */
.lang-switch { margin-top: 16px; position: relative; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e4e4e7; font-size: 14px; font-weight: 600; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary .i { width: 16px; height: 16px; }
.lang-switch summary:hover { border-color: rgba(255,255,255,.45); }
.lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-top: 12px; max-width: 340px; }
.lang-list a { color: #a1a1aa; text-decoration: none; font-size: 13.5px; padding: 3px 0; }
.lang-list a:hover, .lang-list a[aria-current] { color: #fff; }
/* ---------- right-to-left languages */
[dir="rtl"] .tool-card .go { right: auto; left: 20px; transform: scaleX(-1); }
[dir="rtl"] .tool-card:hover .go { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .checks li, [dir="rtl"] .faq summary { text-align: right; }
[dir="rtl"] .logo { direction: ltr; }
