/* PDFTool4U – site styles
   Layout: warm white pages, an orange brand accent, bold sans headings.
   Tool pages: hero with the tool, then a workspace (pages on a light table + settings rail), then help content. */
:root{
  --bg:#FFFAF9; --surface:#FFFFFF; --soft:#FFF1EF; --soft-2:#FFF7F6; --line:#F6D7D2; --line-2:#EEE4E2;
  --ink:#1E1915; --ink-2:#3B332E; --muted:#6F635B;
  --brand:#D92D20; --brand-2:#B42318; --brand-soft:#FEE4E2; --brand-ink:#FFFFFF;
  --ok:#1C8752; --danger:#C93A2A; --danger-soft:#FDE6E2; --sel:#D92D20;
  --table:#F7F1EC; --dot:#E9DCD3; --foot:#1D1714; --foot-ink:#E8DFD9; --foot-muted:#A7988E;
  --shadow:0 1px 2px rgba(60,30,10,.06), 0 10px 30px -14px rgba(60,30,10,.22);
  --sheet-shadow:0 1px 2px rgba(40,20,10,.14), 0 10px 22px -12px rgba(40,20,10,.35);
  --head:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --body:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --r:14px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#15110F; --surface:#1D1815; --soft:#28201B; --soft-2:#211B17; --line:#3B2F28; --line-2:#332A24;
    --ink:#F4EEEA; --ink-2:#DDD3CC; --muted:#AA9D94;
    --brand:#F97066; --brand-2:#FDA29B; --brand-soft:#3B1A17; --brand-ink:#1A0605;
    --ok:#5FCB8F; --danger:#FF8574; --danger-soft:#3B1F1A; --sel:#F97066;
    --table:#191412; --dot:#2E2520; --foot:#0F0C0A; --foot-ink:#E8DFD9; --foot-muted:#9B8E85;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7);
    --sheet-shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 26px -12px rgba(0,0,0,.8);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#15110F; --surface:#1D1815; --soft:#28201B; --soft-2:#211B17; --line:#3B2F28; --line-2:#332A24;
  --ink:#F4EEEA; --ink-2:#DDD3CC; --muted:#AA9D94;
  --brand:#F97066; --brand-2:#FDA29B; --brand-soft:#3B1A17; --brand-ink:#1A0605;
  --ok:#5FCB8F; --danger:#FF8574; --danger-soft:#3B1F1A; --sel:#F97066;
  --table:#191412; --dot:#2E2520; --foot:#0F0C0A; --foot-ink:#E8DFD9; --foot-muted:#9B8E85;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7);
  --sheet-shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 26px -12px rgba(0,0,0,.8);
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%; scroll-padding-top:84px}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--body); font-size:15.5px; line-height:1.6; -webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
a{color:inherit}
button,input,select,textarea{font:inherit; color:inherit}
:focus-visible{outline:2.5px solid var(--brand); outline-offset:2px; border-radius:6px}
h1,h2,h3{font-family:var(--head); letter-spacing:-.02em; line-height:1.15; text-wrap:balance}
.wrap{max-width:1240px; margin:0 auto; padding-left:max(20px, env(safe-area-inset-left, 0px)); padding-right:max(20px, env(safe-area-inset-right, 0px))}
.wrap.narrow{max-width:860px}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.skip{position:absolute; left:-9999px; top:8px; z-index:100; background:var(--ink); color:var(--bg); padding:8px 14px; border-radius:8px}
.skip:focus{left:12px}
svg.i{width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.badge{flex:none; display:block}
kbd{font-family:var(--mono); font-size:11px; padding:2px 6px; border-radius:6px; border:1px solid var(--line-2); background:var(--soft-2); color:var(--muted)}

/* buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 20px; border-radius:10px; border:1.5px solid transparent; font-weight:700; font-size:15px; text-decoration:none; cursor:pointer; white-space:nowrap; transition:background .15s, border-color .15s, color .15s, transform .08s; background:var(--soft); color:var(--ink)}
.btn:active{transform:translateY(1px)}
.btn svg.i{width:18px; height:18px}
.btn-brand{background:var(--brand); color:var(--brand-ink)}
.btn-brand:hover{background:var(--brand-2)}
.btn-line{background:var(--surface); border-color:var(--line); color:var(--ink)}
.btn-line:hover{border-color:var(--brand); color:var(--brand)}
.btn-white{background:#fff; color:#C9470A}
.btn-white:hover{background:#FFF1E8}
.btn-ghost-w{border-color:rgba(255,255,255,.65); color:#fff; background:transparent}
.btn-ghost-w:hover{background:rgba(255,255,255,.12)}
.btn-quiet{background:transparent; color:var(--muted)}
.btn-quiet:hover{color:var(--ink); background:var(--soft)}
.btn-sm{padding:7px 13px; font-size:13.5px; border-radius:9px}
.btn-lg{padding:14px 26px; font-size:16px; border-radius:12px}
.btn-block{width:100%}
.btn[disabled]{opacity:.5; cursor:not-allowed}

/* ---------- header ---------- */
.site-head{position:sticky; top:0; z-index:40; background:color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line-2); padding-top:env(safe-area-inset-top, 0px)}
.head-row{display:flex; align-items:center; gap:18px; height:68px}
.logo{display:flex; align-items:center; gap:9px; text-decoration:none; flex:none}
.logo svg{width:32px; height:32px}
.logo span{font-family:var(--head); font-weight:800; font-size:21px; letter-spacing:-.03em}
.logo small{font-family:var(--mono); font-size:10px; letter-spacing:.12em; color:var(--brand); border:1.5px solid currentColor; border-radius:5px; padding:0 5px; font-weight:500}
.nav{flex:1}
.nav-list{list-style:none; margin:0; padding:0; display:flex; gap:2px}
.nav-item{position:relative}
.nav-btn{display:flex; align-items:center; gap:6px; padding:9px 13px; border-radius:9px; border:0; background:transparent; font-weight:600; font-size:14.5px; cursor:pointer; color:var(--ink-2)}
.nav-btn svg{width:12px; height:12px; transition:transform .15s}
.nav-btn:hover, .nav-item.open .nav-btn{background:var(--soft); color:var(--brand)}
.nav-item.open .nav-btn svg{transform:rotate(180deg)}
.mega{position:absolute; top:calc(100% + 8px); left:0; display:none; gap:26px; padding:20px 22px; background:var(--surface); border:1px solid var(--line-2); border-radius:16px; box-shadow:0 24px 60px -20px rgba(60,30,10,.35); min-width:280px; z-index:50}
.mega.wide{min-width:560px}
.nav-item.open .mega{display:flex}
.mega-col{min-width:240px}
.mega-h{margin:0 0 8px; font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}
.mega ul{list-style:none; margin:0; padding:0; display:grid; gap:1px}
.mega a{display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:8px; text-decoration:none; font-weight:600; font-size:14px}
.mega a:hover{background:var(--soft); color:var(--brand)}
.head-actions{display:flex; align-items:center; gap:10px; margin-left:auto}
.search-btn{display:flex; align-items:center; gap:8px; padding:8px 10px 8px 12px; border-radius:10px; border:1px solid var(--line-2); background:var(--soft-2); color:var(--muted); cursor:pointer; min-width:210px}
.search-btn span{flex:1; text-align:left; font-size:14px}
.search-btn:hover{border-color:var(--brand)}
.search-btn svg.i{width:17px; height:17px}
.menu-btn{display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--line-2); background:var(--surface); place-items:center; cursor:pointer; padding:0}
.mobile-menu{border-top:1px solid var(--line-2); background:var(--surface); max-height:calc(100vh - 68px); overflow:auto; padding-block:12px 20px}
.mobile-menu details{border-bottom:1px solid var(--line-2)}
.mobile-menu summary{padding:14px 2px; font-weight:700; cursor:pointer; list-style:none; display:flex; justify-content:space-between}
.mobile-menu summary::after{content:"+"; color:var(--brand); font-weight:800}
.mobile-menu details[open] summary::after{content:"–"}
.mobile-menu ul{list-style:none; margin:0 0 12px; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:4px}
.mobile-menu li a{display:flex; gap:8px; align-items:center; padding:8px; border-radius:8px; text-decoration:none; font-size:14px; font-weight:600}
.mobile-menu .btn{margin-top:16px; width:100%}

/* ---------- landing ---------- */
.hero{position:relative; overflow:hidden; background:
  radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%), var(--bg); padding-block:64px 72px}
.hero-grid{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:56px; align-items:center}
.eyebrow{display:inline-flex; align-items:center; gap:10px; margin:0 0 18px; padding:5px 14px 5px 5px; border-radius:99px; background:var(--surface); border:1px solid var(--line); font-size:13.5px; font-weight:600; color:var(--ink-2)}
.eyebrow span{background:var(--brand); color:var(--brand-ink); border-radius:99px; padding:2px 10px; font-size:12px; font-weight:800}
.hero h1{font-size:clamp(2.4rem, 5.2vw, 4.1rem); font-weight:800; line-height:1.04; letter-spacing:-.04em; margin:0 0 20px}
.hero h1 em{font-style:normal; color:var(--brand); display:block}
.lede{font-size:clamp(1.02rem,1.5vw,1.18rem); color:var(--muted); max-width:56ch; margin:0 0 28px}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap}
.hero-quick{list-style:none; margin:26px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.hero-quick a{display:flex; align-items:center; gap:8px; padding:6px 12px 6px 7px; border-radius:99px; background:var(--surface); border:1px solid var(--line-2); text-decoration:none; font-weight:600; font-size:13.5px}
.hero-quick a:hover{border-color:var(--brand); color:var(--brand)}
.hero-visual{position:relative}
.app-mock{background:#18120F; border-radius:18px; box-shadow:0 40px 80px -30px rgba(80,30,5,.55), 0 0 0 1px rgba(255,255,255,.06) inset; overflow:hidden; transform:perspective(1400px) rotateY(-6deg) rotateX(2deg)}
.am-bar{display:flex; gap:6px; align-items:center; padding:12px 14px; background:#211915}
.am-bar i{width:10px; height:10px; border-radius:50%; background:#4B3B33}
.am-bar i:first-child{background:#FF6B57} .am-bar i:nth-child(2){background:#FFBD4A} .am-bar i:nth-child(3){background:#46C46B}
.am-bar span{margin-left:12px; font-family:var(--mono); font-size:11px; color:#9C8B80; background:#2C221D; padding:3px 12px; border-radius:6px}
.am-body{display:grid; grid-template-columns:46px 1fr 132px; min-height:290px}
.am-side{display:flex; flex-direction:column; gap:6px; padding:12px 8px; border-right:1px solid #2C221D}
.am-side span{width:30px; height:30px; border-radius:8px; display:grid; place-items:center; color:#9C8B80}
.am-side span.on{background:var(--brand); color:#fff}
.am-side svg.i{width:16px; height:16px}
.am-table{position:relative; background:#120D0B; background-image:radial-gradient(#2A201B 1px, transparent 1.3px); background-size:14px 14px; display:flex; align-items:center; justify-content:center; gap:16px; padding:22px}
.am-sheet{position:relative; width:30%; max-width:100px; aspect-ratio:3/4; background:#fff; border-radius:3px; padding:14% 10%; display:flex; flex-direction:column; gap:7%; box-shadow:0 10px 24px -8px rgba(0,0,0,.7)}
.am-sheet i{display:block; height:5px; border-radius:2px; background:#E6E1DD}
.am-sheet i.s{width:60%; background:#FFC9AC}
.am-sheet b{position:absolute; top:-9px; left:-9px; width:22px; height:22px; border-radius:50%; background:var(--brand); color:#fff; font-size:11px; display:grid; place-items:center; font-family:var(--mono)}
.am-sheet.s2{transform:translateY(-8px)}
.am-panel{border-left:1px solid #2C221D; padding:14px 12px; display:flex; flex-direction:column; gap:10px}
.am-panel p{margin:0; font-family:var(--mono); font-size:9px; letter-spacing:.14em; text-transform:uppercase; color:#9C8B80}
.am-seg{display:flex; gap:3px; background:#2C221D; border-radius:7px; padding:3px}
.am-seg i{flex:1; height:14px; border-radius:5px}
.am-seg i.on{background:#4B3B33}
.am-line{height:8px; border-radius:4px; background:#2C221D}
.am-line.short{width:60%}
.am-run{margin-top:auto; background:var(--brand); color:#fff; border-radius:8px; font-size:11px; font-weight:700; text-align:center; padding:8px 4px}
.float{position:absolute; display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; background:var(--surface); box-shadow:var(--shadow); font-weight:700; font-size:13.5px; border:1px solid var(--line-2)}
.float svg.i{width:18px; height:18px; color:var(--brand)}
.f1{left:-24px; bottom:34px}
.f2{right:-12px; top:-20px}
.f2 svg.i{color:var(--ok)}
@media (prefers-reduced-motion: no-preference){
  .float{animation:bob 5s ease-in-out infinite}
  .f2{animation-delay:-2.5s}
  @keyframes bob{50%{transform:translateY(-8px)}}
}

.promo{background:var(--soft); border-block:1px solid var(--line)}
.promo-row{display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; padding-block:14px; text-align:center}
.promo p{margin:0; font-weight:600}
.promo b{display:inline-block; margin-right:10px; background:var(--ink); color:var(--bg); border-radius:6px; padding:1px 8px; font-size:12px; letter-spacing:.06em; text-transform:uppercase}
.promo a{display:inline-flex; align-items:center; gap:6px; color:var(--brand); font-weight:700; text-decoration:none}
.promo a svg.i{width:16px; height:16px}

.formats{padding-block:34px 10px}
.formats-h{text-align:center; color:var(--muted); font-weight:600; margin:0 0 16px}
.marquee{overflow:hidden; mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)}
.marquee-track{display:flex; gap:12px; width:max-content}
.marquee span{font-family:var(--mono); font-size:13px; font-weight:500; padding:8px 16px; border-radius:10px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2)}
@media (prefers-reduced-motion: no-preference){ .marquee-track{animation:slide 40s linear infinite} @keyframes slide{to{transform:translateX(-50%)}} }

.sec-h{font-size:clamp(1.7rem, 3.4vw, 2.5rem); font-weight:800; text-align:center; margin:0 0 10px; letter-spacing:-.03em}
.sec-h.left{text-align:left}
.sec-sub{color:var(--muted); text-align:center; margin:0 auto 26px; max-width:62ch}
.sec-sub.left{text-align:left; margin-left:0}
.tools-sec{padding-block:64px; background:linear-gradient(var(--bg), var(--soft-2))}
.tools-sec.tight{padding-top:20px}
.chips{display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:34px}
.chip{border:0; border-radius:10px; padding:10px 16px; font-weight:700; font-size:13.5px; cursor:pointer; background:color-mix(in srgb, var(--ink) 6%, var(--surface)); color:var(--muted)}
.chip:hover{color:var(--ink)}
.chip[aria-selected="true"]{background:var(--brand); color:var(--brand-ink)}
.tgrid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(205px, 1fr)); gap:18px}
.tcard{height:100%; display:flex; flex-direction:column; gap:10px; padding:24px 22px; border-radius:14px; border:1px solid var(--line); background:color-mix(in srgb, var(--surface) 75%, var(--soft-2)); text-decoration:none; transition:border-color .15s, box-shadow .15s, transform .15s}
.tcard:hover{border-color:var(--brand); box-shadow:var(--shadow); transform:translateY(-2px)}
.tcard b{font-size:17px; font-weight:600; letter-spacing:-.01em}
.tcard span{font-size:13.5px; color:var(--muted); line-height:1.45}

.feat{padding-block:72px}
.feat-tabs{display:flex; justify-content:center; gap:4px; margin:26px auto 40px; padding:5px; border-radius:14px; background:var(--soft); width:max-content; max-width:100%; overflow-x:auto}
.feat-tabs button{border:0; background:transparent; padding:10px 18px; border-radius:10px; font-weight:700; cursor:pointer; color:var(--muted); white-space:nowrap}
.feat-tabs button[aria-selected="true"]{background:var(--surface); color:var(--brand); box-shadow:var(--shadow)}
.feat-panel{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center}
.feat-panel h3{font-size:clamp(1.5rem,2.6vw,2rem); margin:0 0 14px; font-weight:800}
.feat-panel > div > p{color:var(--muted); margin:0 0 22px}
.ticks{list-style:none; margin:0 0 28px; padding:0; display:grid; gap:12px}
.ticks li{display:flex; gap:12px; align-items:center; font-weight:600}
.ticks svg.i{width:34px; height:34px; padding:7px; border-radius:10px; background:var(--brand-soft); color:var(--brand)}
.feat-vis{background:linear-gradient(140deg, var(--soft), var(--soft-2)); border:1px solid var(--line); border-radius:22px; padding:34px; min-height:330px; display:grid; place-items:center}
.mock{position:relative; width:100%; max-width:430px}
.mock .msheet{background:#fff; border-radius:4px; box-shadow:var(--sheet-shadow); padding:22px 20px; display:flex; flex-direction:column; gap:10px; position:relative; width:150px; aspect-ratio:3/4}
.mock .msheet i{display:block; height:7px; border-radius:3px; background:#ECE6E1}
.mock .msheet i.s{width:60%; background:#FFC9AC}
.mock .msheet em{position:absolute; right:-12px; bottom:14px; background:var(--brand); color:#fff; font-style:normal; font-weight:800; font-size:12px; padding:4px 9px; border-radius:6px}
.mock-convert{display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap}
.mfile{width:110px; aspect-ratio:3/4; border-radius:10px; background:var(--surface); border:2px solid var(--c); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; box-shadow:var(--shadow)}
.mfile b{width:44px; height:44px; border-radius:9px; background:var(--c); color:#fff; display:grid; place-items:center; font-size:22px}
.mfile span{font-size:11px; font-weight:700; color:var(--muted)}
.marrow{width:42px; height:42px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center}
.mchips{flex-basis:100%; display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-top:10px}
.mchips span{font-size:12px; font-weight:700; padding:5px 11px; border-radius:99px; background:var(--surface); border:1px solid var(--line)}
.mock-sign{display:grid; place-items:center}
.mock-sign .msheet.tall{width:220px}
.msig{position:absolute; left:24px; bottom:46px; width:150px}
.mdate{position:absolute; left:24px; bottom:22px; font-size:10px; color:#333; font-family:Helvetica,Arial,sans-serif}
.mpill{position:absolute; display:flex; align-items:center; gap:6px; padding:8px 12px; border-radius:10px; background:var(--surface); box-shadow:var(--shadow); font-weight:700; font-size:12.5px; right:0; top:20px; border:1px solid var(--line-2)}
.mpill svg.i{width:16px; height:16px; color:var(--brand)}
.mpill.b{left:0; right:auto; top:auto; bottom:30px}
.mpill.b svg.i{color:var(--ok)}
.mock-ai{display:flex; flex-direction:column; gap:12px}
.mbubble{display:flex; gap:12px; align-items:flex-start; background:var(--surface); border:1px solid var(--line-2); border-radius:14px; padding:14px; box-shadow:var(--shadow); max-width:88%}
.mbubble b{flex:none; font-size:11px; font-weight:800; padding:4px 7px; border-radius:6px; background:var(--brand-soft); color:var(--brand)}
.mbubble p{margin:0; font-size:13.5px}
.mbubble.out{align-self:flex-end}
.mbubble.out b{background:var(--brand); color:#fff}
.mbubble.ai{align-self:center; max-width:100%; border-color:var(--brand)}
.mbubble.ai svg.i{color:var(--brand)}

.steps-sec{padding-block:64px; background:var(--soft-2); border-block:1px solid var(--line-2)}
.steps{list-style:none; margin:34px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; counter-reset:s}
.steps li{background:var(--surface); border:1px solid var(--line-2); border-radius:16px; padding:26px}
.steps li > span{display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:var(--brand); color:var(--brand-ink); font-weight:800; font-size:18px; margin-bottom:14px}
.steps h3{margin:0 0 6px; font-size:19px}
.steps p{margin:0; color:var(--muted)}

.trust{padding-block:72px}
.trust-grid{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:48px; align-items:center}
.trust-badges{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:14px}
.trust-badges li{display:grid; grid-template-columns:auto 1fr; gap:4px 14px; padding:20px; border-radius:16px; background:var(--surface); border:1px solid var(--line-2)}
.trust-badges svg.i{grid-row:span 2; width:42px; height:42px; padding:9px; border-radius:12px; background:var(--brand-soft); color:var(--brand)}
.trust-badges b{font-size:15.5px}
.trust-badges span{font-size:13.5px; color:var(--muted)}

.faq-sec{padding-block:64px}
.faq{margin-top:30px; display:grid; gap:10px}
.faq details{background:var(--surface); border:1px solid var(--line-2); border-radius:14px; padding:0 20px}
.faq details[open]{border-color:var(--line)}
.faq summary{list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; font-weight:700; font-size:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary i{flex:none; width:26px; height:26px; border-radius:50%; background:var(--soft); position:relative}
.faq summary i::before, .faq summary i::after{content:""; position:absolute; left:8px; right:8px; top:12px; height:2px; background:var(--brand); border-radius:1px}
.faq summary i::after{transform:rotate(90deg); transition:transform .2s}
.faq details[open] summary i::after{transform:rotate(0)}
.faq details p{margin:0 0 18px; color:var(--muted); max-width:70ch}

.cta-band{background:linear-gradient(120deg, var(--brand), #C8102E 60%, #9E0C24); color:#fff; padding-block:56px}
.cta-row{display:flex; gap:24px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.cta-band h2{margin:0 0 6px; font-size:clamp(1.6rem,3vw,2.3rem); font-weight:800}
.cta-band p{margin:0; opacity:.9}
.cta-acts{display:flex; gap:12px; flex-wrap:wrap}

/* ---------- footer ---------- */
.site-foot{background:var(--foot); color:var(--foot-ink); padding-block:56px 24px; padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px))}
.foot-grid{display:grid; grid-template-columns:1.4fr repeat(4, 1fr); gap:32px}
.foot-brand p{color:var(--foot-muted); font-size:14px; max-width:34ch}
.foot-brand .logo span{color:#fff}
.foot-note{display:inline-flex; align-items:center; gap:8px; color:#FDA29B!important; font-weight:600}
.foot-note svg.i{width:16px; height:16px}
.foot-h{font-weight:800; margin:6px 0 12px; color:#fff; font-size:14.5px}
.site-foot ul{list-style:none; margin:0; padding:0; display:grid; gap:7px}
.site-foot li a{text-decoration:none; color:var(--foot-muted); font-size:14px}
.site-foot li a:hover{color:#FDA29B}
.foot-base{margin-top:40px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--foot-muted); font-size:13.5px}
.foot-base p{margin:0}
.foot-base ul{display:flex; gap:18px; flex-wrap:wrap}

/* ---------- tool page ---------- */
.tool-hero{background:radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 70%), var(--bg); padding-block:26px 18px}
.crumbs{display:flex; gap:8px; flex-wrap:wrap; font-size:13.5px; color:var(--muted); margin-bottom:16px}
.crumbs a{text-decoration:none} .crumbs a:hover{color:var(--brand)}
.tool-title{display:flex; gap:18px; align-items:center}
.tool-title h1{margin:0 0 6px; font-size:clamp(1.8rem,3.6vw,2.6rem); font-weight:800; letter-spacing:-.035em}
.tool-title p{margin:0; color:var(--muted); max-width:70ch; font-size:16px}
.notice{display:flex; gap:10px; align-items:flex-start; margin:16px 0 0; padding:12px 14px; border-radius:12px; background:var(--soft); border:1px solid var(--line); font-size:13.5px; max-width:80ch}
.notice svg.i{color:var(--brand); margin-top:1px}
.tool-app{padding-block:10px 40px}
.app{min-height:360px}
.app-loading{display:flex; align-items:center; justify-content:center; gap:12px; min-height:300px; color:var(--muted); border:2px dashed var(--line); border-radius:20px; background:var(--surface)}
.spin{width:20px; height:20px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--brand); animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* big drop area */
.dropzone{position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:8px; min-height:340px; padding:40px 24px; border-radius:22px; border:2px dashed var(--line); background:var(--surface); transition:border-color .15s, background .15s}
.dropzone.over{border-color:var(--brand); background:var(--soft)}
.dropzone .btn-brand{padding:18px 34px; font-size:18px; border-radius:14px; box-shadow:0 14px 30px -12px color-mix(in srgb, var(--brand) 75%, transparent)}
.dropzone p{margin:0; color:var(--muted)}
.dropzone .types{font-family:var(--mono); font-size:12px; letter-spacing:.04em}
.dz-alt{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:6px}
.paste{width:100%; max-width:680px; margin-top:10px; display:flex; flex-direction:column; gap:10px; text-align:left}
.paste textarea{width:100%; min-height:200px; padding:12px; border-radius:12px; border:1.5px solid var(--line); background:var(--soft-2); font-family:var(--mono); font-size:13px; resize:vertical}

/* workspace */
.work{display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:18px; align-items:start}
.table{background-color:var(--table); background-image:radial-gradient(var(--dot) 1px, transparent 1.3px); background-size:18px 18px; border:1px solid var(--line-2); border-radius:18px; min-height:420px; overflow:hidden; display:flex; flex-direction:column}
.table.over{outline:2.5px solid var(--brand); outline-offset:-2px}
.tbar{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 14px; background:color-mix(in srgb, var(--surface) 92%, transparent); border-bottom:1px solid var(--line-2)}
.tbar .sum{flex:1; min-width:0; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap}
.tbar .sum b{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%}
.tbar .sum .mono{color:var(--muted)}
.mono{font-family:var(--mono); font-size:12px; font-variant-numeric:tabular-nums}
.zoom{display:flex; align-items:center; gap:6px; color:var(--muted)}
.zoom input{width:100px; accent-color:var(--brand)}
.tbody{padding:26px 22px 30px; flex:1}
.side{position:sticky; top:84px; background:var(--surface); border:1px solid var(--line-2); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; max-height:calc(100vh - 100px)}
.side-scroll{overflow:auto; flex:1}
.isec{padding:18px; border-bottom:1px solid var(--line-2); display:flex; flex-direction:column; gap:14px}
.isec:last-child{border-bottom:0}
.isec h2{margin:0; font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}
.runbox{padding:16px 18px 18px; border-top:1px solid var(--line-2); display:flex; flex-direction:column; gap:10px; background:var(--surface)}
.runbox .btn{padding:15px; font-size:16px; border-radius:12px}
.prog{height:5px; border-radius:3px; background:var(--soft); overflow:hidden}
.prog i{display:block; height:100%; width:0; background:var(--brand); transition:width .25s}
.status{font-size:13px; color:var(--muted); margin:0; min-height:1.3em; font-variant-numeric:tabular-nums}
.status.err{color:var(--danger); font-weight:600}

/* fields */
.field{display:flex; flex-direction:column; gap:6px; border:0; padding:0; margin:0; min-width:0}
.field > label, .field legend{font-weight:700; font-size:13.5px; display:flex; justify-content:space-between; gap:8px; padding:0; width:100%}
.field legend{margin-bottom:6px}
.field output{font-family:var(--mono); font-size:12px; color:var(--brand); font-weight:500}
.inp{width:100%; padding:10px 12px; border-radius:10px; border:1.5px solid var(--line-2); background:var(--soft-2); font-size:14.5px}
.inp:focus{border-color:var(--brand); outline:none; background:var(--surface)}
textarea.inp{min-height:110px; resize:vertical; font-size:14px}
input[type="range"]{width:100%; accent-color:var(--brand)}
.hint{font-size:12.5px; color:var(--muted); margin:0}
.hint.err{color:var(--danger)}
.seg{display:flex; flex-wrap:wrap; gap:4px; padding:4px; border-radius:11px; background:var(--soft); border:1px solid var(--line-2)}
.seg label{flex:1 1 auto; position:relative}
.seg input{position:absolute; opacity:0; inset:0; margin:0; cursor:pointer}
.seg span{display:block; text-align:center; padding:7px 9px; border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; white-space:nowrap; color:var(--muted)}
.seg input:checked + span{background:var(--surface); color:var(--brand); box-shadow:0 1px 3px rgba(60,30,10,.18)}
.seg input:focus-visible + span{outline:2px solid var(--brand)}
.two{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.check{display:flex; gap:9px; align-items:center; font-size:14px; cursor:pointer; font-weight:600}
.check input{accent-color:var(--brand); width:17px; height:17px; flex:none}
.facts{margin:0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 12px; font-size:13.5px}
.facts dt{color:var(--muted)} .facts dd{margin:0; overflow-wrap:anywhere}
.row{display:flex; gap:8px; flex-wrap:wrap}
.row > .btn{flex:1}
.pad{width:100%; aspect-ratio:14/5; background:#fff; border-radius:10px; border:1.5px dashed var(--line); touch-action:none; cursor:crosshair; display:block}
.thumbimg{max-width:100%; max-height:80px; background:#fff; border-radius:8px; padding:6px; border:1px solid var(--line-2)}

/* sheets */
.sheets{display:grid; grid-template-columns:repeat(auto-fill, minmax(var(--thumb,150px), 1fr)); gap:28px 18px; justify-items:center; align-items:end}
.pg{margin:0; display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; width:var(--thumb,150px)}
.sheet{position:relative; width:100%; background:#fff; box-shadow:var(--sheet-shadow); border-radius:3px; container-type:inline-size; transition:transform .2s, outline-color .15s, opacity .15s; outline:3px solid transparent; outline-offset:3px}
.sheet > img{display:block; width:100%; height:100%; border-radius:3px}
.sheet .ph{position:absolute; inset:12% 14%; background:repeating-linear-gradient(#ebe7e4 0 5px, transparent 5px 14px)}
.sheet.doc{display:grid; place-items:center; aspect-ratio:3/4; background:var(--surface); border:1px solid var(--line-2)}
.sheet.doc .badge{width:46%; height:auto}
.ov{position:absolute; inset:0; overflow:hidden; pointer-events:none; font-family:Helvetica,Arial,sans-serif; color:#222}
.pg figcaption{font-family:var(--mono); font-size:11.5px; color:var(--muted); display:flex; gap:6px; align-items:center; max-width:100%}
.pg figcaption b{color:var(--ink); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pg .acts{display:flex; gap:4px}
.mini{width:30px; height:30px; display:inline-grid; place-items:center; border-radius:8px; border:1px solid var(--line-2); background:var(--surface); cursor:pointer; font-size:13px; line-height:1; padding:0}
.mini:hover{border-color:var(--brand); color:var(--brand)}
.mini.del:hover{border-color:var(--danger); color:var(--danger); background:var(--danger-soft)}
.mini[disabled]{opacity:.3; cursor:default}
.mini svg.i{width:16px; height:16px}
.tag{position:absolute; top:-10px; left:50%; transform:translateX(-50%); font-family:var(--mono); font-size:10px; padding:2px 8px; border-radius:99px; background:var(--brand); color:#fff; white-space:nowrap; z-index:2}
.tag.warn{background:var(--danger)}
.order{position:absolute; top:-11px; left:-11px; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:var(--brand); color:#fff; font-family:var(--mono); font-size:11.5px; z-index:2}
.pickable .pg{cursor:pointer}
.pg.on .sheet{outline-color:var(--brand)}
.pickable .pg:not(.on) .sheet{opacity:.45}
.pg.drop-me .sheet{outline-color:var(--danger); opacity:.5}
.pg[draggable="true"]{cursor:grab}
.pg.dragging{opacity:.3}
.pg.target .sheet{outline-color:var(--brand)}
.locked{display:grid; place-items:center; aspect-ratio:3/4; background:var(--soft); color:var(--muted); box-shadow:none; border:1.5px dashed var(--line)}
.locked svg.i{width:34px; height:34px}
.wm{position:absolute; left:50%; top:50%; font-weight:700; white-space:nowrap; line-height:1}
.wm-tile{position:absolute; inset:-60%; display:flex; flex-wrap:wrap; align-content:center; justify-content:center; font-weight:700; line-height:1}
.wm-img{position:absolute; left:50%; top:50%}
.stamp{position:absolute; white-space:nowrap; line-height:1}
.cropshade{position:absolute; background:rgba(30,20,15,.5)}

/* editor */
.ed{display:grid; grid-template-columns:96px minmax(0,1fr); gap:18px; align-items:start}
.strip{display:flex; flex-direction:column; gap:14px; max-height:76vh; overflow:auto; padding:8px 6px}
.strip button{all:unset; cursor:pointer; position:relative; display:block}
.strip .sheet{width:74px}
.strip button[aria-current="true"] .sheet{outline-color:var(--brand)}
.strip .cnt{position:absolute; top:-7px; right:-4px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:var(--brand); color:#fff; font-family:var(--mono); font-size:10px; display:grid; place-items:center; z-index:2}
.strip span.n{display:block; text-align:center; font-family:var(--mono); font-size:10.5px; color:var(--muted); margin-top:4px}
.ed-main{min-width:0; display:flex; flex-direction:column; align-items:center; gap:12px}
.ed-nav{display:flex; align-items:center; gap:10px}
.ed-page{position:relative; width:min(100%, 740px); background:#fff; box-shadow:var(--sheet-shadow)}
.ed-page canvas{display:block; width:100%; height:100%}
.ed-ov{position:absolute; inset:0; container-type:size; touch-action:none}
.ed-ov.drawable{cursor:crosshair}
.mk{position:absolute; border:1.5px dashed transparent; cursor:move; touch-action:none; user-select:none}
.mk:hover, .mk.active{border-color:var(--brand)}
.mk img{width:100%; height:100%; object-fit:contain; pointer-events:none; display:block}
.mk-t{font-family:Helvetica,Arial,sans-serif; line-height:1; white-space:nowrap; color:#111; outline:none; height:100%; display:flex; align-items:center}
.mk-t[contenteditable="true"]{cursor:text; background:rgba(217,45,32,.12)}
.mk-box{background:#000}
.mk-box.white{background:#fff; box-shadow:inset 0 0 0 1px #bbb}
.mk-x{position:absolute; top:-12px; right:-12px; width:23px; height:23px; border-radius:50%; border:0; background:var(--danger); color:#fff; font-size:13px; line-height:1; cursor:pointer; display:none; padding:0}
.mk:hover .mk-x, .mk.active .mk-x{display:block}
.mk-r{position:absolute; right:-6px; bottom:-6px; width:13px; height:13px; border-radius:3px; background:var(--brand); cursor:nwse-resize; display:none}
.mk:hover .mk-r, .mk.active .mk-r{display:block}
.drawing{position:absolute; border:1.5px solid var(--brand); background:rgba(0,0,0,.6); pointer-events:none}

/* compare */
.cmp{display:grid; grid-template-columns:1fr 1fr; gap:22px}
.slot{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; min-width:0}
.slot h3{margin:0; font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:500}
.slot .empty{width:100%; max-width:230px; aspect-ratio:3/4; display:grid; place-items:center; border:2px dashed var(--line); border-radius:10px; background:var(--surface); padding:16px}
.slot .sheet{width:min(200px, 100%)}
.slot .meta{max-width:100%}
.diffs{margin-top:30px}
.diffs h3{font-size:17px; margin:0 0 12px}
.legend{display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--muted); margin-bottom:16px}
.legend i{display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:6px}

/* output */
.output{margin-top:18px; padding:22px; border-radius:18px; background:var(--surface); border:1.5px solid var(--brand); box-shadow:0 20px 50px -30px color-mix(in srgb, var(--brand) 70%, transparent)}
.out-head{display:flex; gap:14px; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; margin-bottom:16px}
.out-head h2{margin:0; font-size:22px; font-weight:800}
.out-head p{margin:4px 0 0; color:var(--muted)}
.outs{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(290px,1fr)); gap:10px}
.outs li{display:grid; grid-template-columns:50px minmax(0,1fr) auto; gap:12px; align-items:center; padding:10px; border:1px solid var(--line-2); border-radius:12px; background:var(--soft-2)}
.outs .th{width:50px; height:62px; background:#fff; border-radius:4px; object-fit:contain; display:grid; place-items:center; color:#6A5E57; font-family:var(--mono); font-size:10px; box-shadow:var(--sheet-shadow)}
.meta{min-width:0; display:flex; flex-direction:column}
.meta b{font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.meta .mono{color:var(--muted)}
.answer{margin-top:16px; padding:20px 22px; border-radius:14px; background:var(--soft-2); border:1px solid var(--line-2); max-width:none}
.answer h3, .answer h4{margin:14px 0 6px}
.answer p{margin:0 0 10px}
.answer ul{margin:0 0 10px; padding-left:20px}

/* modal: viewer & palette */
.pal-scrim,.v-scrim{position:fixed; inset:0; background:rgba(20,12,8,.5); z-index:60; backdrop-filter:blur(2px)}
.pal{position:fixed; z-index:61; top:calc(80px + env(safe-area-inset-top, 0px)); left:50%; transform:translateX(-50%); width:min(620px, calc(100vw - 32px)); max-height:min(580px, calc(100vh - 120px)); display:flex; flex-direction:column; overflow:hidden; background:var(--surface); border-radius:18px; border:1px solid var(--line-2); box-shadow:0 40px 90px -30px rgba(40,15,0,.55)}
.pal-top{display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--line-2)}
.pal-top svg.i{color:var(--muted)}
.pal-top input{flex:1; border:0; background:transparent; font-size:16.5px; outline:none; min-width:0}
.pal-title{margin:0; padding:10px 18px 0; font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--brand)}
.pal ul{list-style:none; margin:0; padding:8px; overflow:auto}
.pal li a, .pal li button{all:unset; box-sizing:border-box; width:100%; display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:12px; align-items:center; padding:9px 10px; border-radius:11px; cursor:pointer}
.pal li [aria-selected="true"]{background:var(--soft)}
.pal li b{display:block; font-weight:700}
.pal li small{color:var(--muted); display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pal li em{font-style:normal; font-family:var(--mono); font-size:10.5px; color:var(--muted)}
.pal .none{padding:22px; text-align:center; color:var(--muted)}
.viewer{position:fixed; z-index:61; inset:max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display:flex; flex-direction:column; background:var(--surface); border-radius:18px; overflow:hidden; border:1px solid var(--line-2)}
.viewer header{display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--line-2); flex-wrap:wrap}
.viewer header b{flex:1; min-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.vbody{flex:1; overflow:auto; background-color:var(--table); background-image:radial-gradient(var(--dot) 1px, transparent 1.3px); background-size:18px 18px; display:flex; justify-content:center; align-items:flex-start; padding:24px}
.vbody canvas, .vbody img{max-width:100%; height:auto; box-shadow:var(--sheet-shadow); background:#fff}
.vbody pre{margin:0; max-width:860px; width:100%; white-space:pre-wrap; background:var(--surface); padding:22px; border-radius:12px; border:1px solid var(--line-2); font-family:var(--mono); font-size:12.5px; line-height:1.6}
.toast{position:fixed; left:50%; bottom:calc(22px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); background:var(--ink); color:var(--bg); padding:12px 18px; border-radius:12px; font-size:14px; font-weight:600; z-index:80; max-width:calc(100vw - 32px); box-shadow:0 12px 30px -10px rgba(0,0,0,.5)}

/* info sections on tool pages */
.info-sec{padding-block:40px; background:var(--soft-2); border-block:1px solid var(--line-2)}
.info-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px}
.info-sec h2{font-size:clamp(1.4rem,2.4vw,1.9rem); margin:0 0 18px; font-weight:800}
.howto{margin:0; padding:0; list-style:none; counter-reset:h; display:grid; gap:14px}
.howto li{counter-increment:h; display:grid; grid-template-columns:36px 1fr; gap:14px; align-items:start; font-size:15.5px}
.howto li::before{content:counter(h); width:36px; height:36px; border-radius:11px; display:grid; place-items:center; background:var(--brand); color:var(--brand-ink); font-weight:800}
.whys{list-style:none; margin:0; padding:0; display:grid; gap:14px}
.whys li{display:flex; gap:14px; padding:18px; border-radius:14px; background:var(--surface); border:1px solid var(--line-2)}
.whys svg.i{width:40px; height:40px; padding:9px; border-radius:11px; background:var(--brand-soft); color:var(--brand)}
.whys b{display:block; margin-bottom:2px}
.whys p{margin:0; color:var(--muted); font-size:14px}
.related{padding-block:20px 72px}
.related .sec-h{margin-bottom:28px}

/* hubs & text pages */
.hub-h{font-size:clamp(2rem,4vw,3rem); font-weight:800; margin:0 0 8px; letter-spacing:-.035em}
.hub-p{color:var(--muted); margin:0 0 18px; max-width:62ch}
.hub-search{display:flex; align-items:center; gap:10px; max-width:520px; padding:12px 16px; border-radius:14px; border:1.5px solid var(--line); background:var(--surface)}
.hub-search input{border:0; outline:0; background:transparent; flex:1; min-width:0; font-size:16px}
.hub-search svg.i{color:var(--muted)}
.hub-group{margin-bottom:40px}
.hub-cat{display:flex; align-items:baseline; gap:10px; font-size:22px; margin:0 0 16px}
.hub-cat a{text-decoration:none} .hub-cat a:hover{color:var(--brand)}
.hub-cat span{font-family:var(--mono); font-size:12px; color:var(--muted); font-weight:500}
.hub-empty{text-align:center; color:var(--muted)}
.prose{padding-block:10px 64px}
.prose h2{font-size:22px; margin:30px 0 8px}
.prose p{color:var(--ink-2); max-width:70ch}
.nf{padding-block:90px}

/* ---------- responsive ---------- */
@media (max-width: 1100px){
  .nav{display:none}
  .menu-btn{display:inline-grid}
  .foot-grid{grid-template-columns:1fr 1fr 1fr}
  .foot-brand{grid-column:1 / -1}
}
@media (max-width: 940px){
  .hero-grid,.feat-panel,.trust-grid,.info-grid{grid-template-columns:minmax(0,1fr)}
  .hero{padding-block:44px 54px}
  .hero-visual{max-width:560px}
  .work{grid-template-columns:minmax(0,1fr)}
  .side{position:static; max-height:none}
  .steps{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 640px){
  body{font-size:15px}
  .search-btn{min-width:0; padding:9px}
  .search-btn span, .search-btn kbd, .hide-sm{display:none}
  .head-row{height:62px; gap:10px}
  .trust-badges{grid-template-columns:minmax(0,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .tgrid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px}
  .tcard{padding:16px 14px}
  .tcard b{font-size:15px}
  .tcard span{display:none}
  .f1{left:0} .f2{right:0}
  .am-body{grid-template-columns:40px 1fr}
  .am-panel{display:none}
  .tool-title{align-items:flex-start}
  .tool-title .badge{width:44px; height:44px}
  .tbody{padding:18px 12px}
  .ed{grid-template-columns:minmax(0,1fr)}
  .strip{flex-direction:row; max-height:none; overflow-x:auto}
  .strip .sheet{width:56px}
  .dropzone{min-height:280px}
  .tbar .sum{flex-basis:100%}
  .zoom{display:none}
  .mobile-menu ul{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){ *{transition:none!important; animation:none!important; scroll-behavior:auto!important} }

/* ---------- blog ---------- */
.post-meta{color:var(--muted); font-size:14px; margin:0}
.post-body{padding-block:24px 56px}
.prose h3{font-size:18px; margin:24px 0 6px}
.prose h2{scroll-margin-top:90px}
.prose ul,.prose ol{color:var(--ink-2); max-width:70ch; padding-left:1.3em; margin:0 0 16px}
.prose li{margin:6px 0; line-height:1.6}
.prose p{line-height:1.7; margin:0 0 16px}
.prose a{color:var(--brand); text-underline-offset:3px}
/* buttons inside text areas keep their own colours */
.prose a.btn{text-decoration:none}.prose a.btn-brand{color:var(--brand-ink)}.prose a.btn-line{color:var(--ink)}.prose a.btn-line:hover{color:var(--brand)}.prose a.btn-quiet{color:var(--muted)}.prose a.btn-quiet:hover{color:var(--ink)}.prose a.btn-pro{color:#2A1A00}
.prose code{font-family:'JetBrains Mono',monospace; font-size:.92em; background:color-mix(in srgb, var(--surface) 70%, var(--soft-2)); padding:1px 6px; border-radius:6px}
.prose blockquote{margin:18px 0; padding:4px 18px; border-left:3px solid var(--brand); color:var(--ink-2)}
.prose hr{border:0; border-top:1px solid var(--line); margin:28px 0}
.prose .tbl{overflow-x:auto; margin:0 0 18px}
.prose table{border-collapse:collapse; width:100%; font-size:15px}
.prose th,.prose td{border:1px solid var(--line); padding:9px 12px; text-align:left; vertical-align:top}
.prose th{background:color-mix(in srgb, var(--surface) 70%, var(--soft-2))}
.toc{border:1px solid var(--line); border-radius:14px; padding:16px 20px; margin:0 0 26px; background:color-mix(in srgb, var(--surface) 75%, var(--soft-2))}
.toc b{display:block; margin-bottom:6px}
.toc ol{margin:0; padding-left:1.2em}
.toc a{text-decoration:none; color:var(--ink-2)} .toc a:hover{color:var(--brand)}
.post-cta{display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; margin:30px 0; padding:20px 24px; border-radius:16px; border:1px solid var(--brand); background:color-mix(in srgb, var(--brand) 7%, var(--surface))}
.post-cta p{margin:4px 0 0; color:var(--muted)}
.bgrid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:18px}
.bcard{height:100%; display:flex; flex-direction:column; gap:8px; padding:22px; border-radius:14px; border:1px solid var(--line); background:color-mix(in srgb, var(--surface) 75%, var(--soft-2)); text-decoration:none; transition:border-color .15s, box-shadow .15s, transform .15s}
.bcard:hover{border-color:var(--brand); box-shadow:var(--shadow); transform:translateY(-2px)}
.bcard time{font-size:12.5px; color:var(--muted)}
.bcard b{font-size:18px; line-height:1.3; letter-spacing:-.01em}
.bcard span{font-size:14px; color:var(--muted); line-height:1.5}
.guides-sec{padding-block:40px}
.guide-list{list-style:none; margin:20px 0 0; padding:0; display:grid; gap:14px}
.guide-list a{font-weight:600; text-decoration:none} .guide-list a:hover{color:var(--brand)}
.guide-list span{display:block; font-size:14px; color:var(--muted); margin-top:2px}
.pager{display:flex; align-items:center; justify-content:center; gap:16px; margin-top:32px; color:var(--muted)}

/* ---- menu like the big PDF sites: direct links plus two mega menus ---- */
.nav-link{display:flex; align-items:center; padding:9px 13px; border-radius:9px; font-weight:700; font-size:13.5px; letter-spacing:.02em; text-transform:uppercase; color:var(--ink-2); text-decoration:none}
.nav-link:hover{background:var(--soft); color:var(--brand)}
.nav-btn{font-weight:700; font-size:13.5px; letter-spacing:.02em; text-transform:uppercase}
.mega.x5{position:fixed; top:66px; left:50%; right:auto; transform:translateX(-50%); gap:22px; min-width:0; max-width:calc(100vw - 24px)}
.mega.x5 .mega-col{min-width:178px}
@media (max-width:1180px){.mega.x5 .mega-col{min-width:140px}}

/* ---- trending tools ---- */
.trend-sec{padding-block:42px 8px}
.bgrid-t{list-style:none; margin:26px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px}
.bcard-t{position:relative; display:flex; flex-direction:column; gap:8px; height:100%; padding:22px 20px 20px; border:1px solid var(--line-2); border-radius:18px; background:var(--surface); text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s, border-color .15s}
.bcard-t:hover{transform:translateY(-3px); border-color:var(--brand); box-shadow:0 18px 40px -22px rgba(60,30,10,.4)}
.bcard-t b{font-size:18px; margin-top:6px}
.bcard-t span{color:var(--muted); font-size:14px; line-height:1.5}
.bcard-t .rank{position:absolute; top:14px; right:16px; font-style:normal; font-family:var(--mono); font-size:12px; color:var(--muted); background:var(--soft); border-radius:99px; padding:2px 9px}

/* ---- long text blocks ---- */
.long-sec{padding-block:44px 8px}
.long-sec p{margin:0 0 14px; line-height:1.75; font-size:16.5px; color:var(--ink-2)}
.long-sec h3{margin:26px 0 8px; font-size:19px}
.long-sec ul.plain{margin:0 0 14px; padding-left:22px; display:grid; gap:7px; line-height:1.65; color:var(--ink-2)}
.long-sec .muted{color:var(--muted); font-size:15px}
.sec-h.left{text-align:left}

/* ---- Google Drive / Dropbox buttons ---- */
.dz-main{display:flex; align-items:center; gap:12px; justify-content:center}
.cloud{display:flex; flex-direction:column; gap:8px}
.cloud button{width:42px; height:42px; border-radius:50%; border:0; display:grid; place-items:center; background:var(--brand); color:#fff; cursor:pointer; box-shadow:0 8px 18px -10px color-mix(in srgb, var(--brand) 80%, transparent)}
.cloud button:hover{filter:brightness(1.08)}
.cloud svg{width:21px; height:21px}
@media (max-width:560px){.dz-main{flex-direction:column}.cloud{flex-direction:row}}

/* ---- PDF Converter page ---- */
.conv-hero{padding:30px 0 28px; text-align:center}
.conv-hero h1{margin:6px 0 8px; font-size:clamp(32px,5vw,48px); letter-spacing:-.02em}
.conv-sub{max-width:660px; margin:0 auto 24px; color:var(--muted); font-size:17px; line-height:1.6}
.conv-app{max-width:980px; margin:0 auto; text-align:left}
.conv-drop{min-height:360px}
.conv-drop .up-ico{width:68px; height:52px; color:var(--ink); margin-bottom:6px}
.conv-types{font-size:16px; color:var(--ink-2)}
.fmt-badges{display:flex; flex-wrap:wrap; gap:6px; justify-content:center; font-size:12px; font-weight:700}
.fmt-badges span{padding:3px 10px; border-radius:99px; background:var(--soft); color:var(--ink-2)}
.fmt-badges .f-pdf{background:#fde2e2; color:#b42318}.fmt-badges .f-doc{background:#dbeafe; color:#1d4ed8}.fmt-badges .f-xls{background:#dcfce7; color:#15803d}.fmt-badges .f-ppt{background:#ffedd5; color:#c2410c}.fmt-badges .f-png{background:#fef3c7; color:#a16207}.fmt-badges .f-jpg{background:#fef9c3; color:#a16207}
.fmt-badges .f-more{font-weight:500; background:transparent; color:var(--muted)}
.conv-pick{display:grid; grid-template-columns:minmax(220px,300px) 1fr; gap:28px; padding:28px; background:var(--surface); border:1px solid var(--line-2); border-radius:22px; box-shadow:0 20px 50px -30px rgba(60,30,10,.35)}
.conv-pick h2{margin:0 0 14px; font-size:19px}
.conv-pick h3{margin:22px 0 10px; font-size:14px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.06em}
.conv-files ul{list-style:none; margin:0 0 16px; padding:0; display:grid; gap:8px}
.conv-files li{display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:12px; background:var(--soft)}
.conv-files li b{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px}
.conv-files li span{font-size:12px; color:var(--muted)}
.opt-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px}
.opt{display:flex; flex-direction:column; align-items:center; gap:4px; padding:16px 10px; border:1px solid var(--line-2); border-radius:16px; background:var(--surface); cursor:pointer; font:inherit; color:inherit; transition:transform .15s, border-color .15s, box-shadow .15s}
.opt:hover,.opt:focus-visible{border-color:var(--brand); transform:translateY(-2px); box-shadow:0 14px 30px -20px rgba(60,30,10,.45)}
.opt b{font-size:16px; margin-top:6px}.opt em{font-style:normal; font-size:12px; color:var(--muted)}
.more-row{display:flex; flex-wrap:wrap; gap:8px}
.chip-btn{padding:8px 14px; border-radius:99px; border:1px solid var(--line-2); background:var(--surface); font:inherit; font-size:14px; font-weight:600; cursor:pointer}
.chip-btn:hover{border-color:var(--brand); color:var(--brand)}
@media (max-width:720px){.conv-pick{grid-template-columns:1fr; padding:20px}}

/* ---- Tools mega menu (Smallpdf style) ---- */
.tools-btn{display:inline-flex; align-items:center; gap:8px; background:#e8f0ff; color:#1d4ed8; border-radius:12px; padding:9px 14px; font-weight:700}
.tools-btn svg:last-child{width:11px;height:11px}
.nav-item.open .tools-btn{background:#dbe7ff}
.mega.tools-mega{position:fixed; top:66px; left:50%; right:auto; transform:translateX(-50%); width:min(1240px,calc(100vw - 24px)); max-height:calc(100vh - 84px); overflow:auto; display:none; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px 18px; padding:22px 24px}
.nav-item.open .mega.tools-mega{display:grid}
.tools-mega .mega-col{min-width:0}
.tools-mega .mega-h{margin:14px 0 6px; font-family:inherit; font-size:13px; letter-spacing:0; text-transform:none; font-weight:600; color:var(--muted)}
.tools-mega .mega-h:first-child{margin-top:0}
.tools-mega a{padding:5px 6px; font-size:14px}
@media (max-width:1100px){.mega.tools-mega{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.nav-list{display:none}}

/* ---------- accounts: header, log in, pricing, account ---------- */
.btn-pro{background:linear-gradient(135deg,#FFC94D,#F5A524); color:#2A1A00; border-color:transparent}
.btn-pro:hover{filter:brightness(1.05)}
.btn-pro .crown, .pro-pill .crown{width:16px; height:16px}
.acc-chip{display:inline-flex; align-items:center; gap:6px; text-decoration:none; padding:3px 9px 3px 3px; border-radius:99px; border:1px solid var(--line-2); background:var(--surface)}
.acc-chip span{width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--brand); color:#fff; font-weight:800}
.acc-chip b{font-size:10.5px; letter-spacing:.06em; color:#8A5A00; background:#FFE7A8; padding:2px 6px; border-radius:6px}
.pro-pill{display:inline-flex; align-items:center; gap:5px; background:#FFC94D; color:#2A1A00; font-weight:800; font-size:12.5px; padding:4px 10px; border-radius:99px}

.page-login{background:var(--surface)}
.login-wrap{display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,30%); min-height:100vh}
.login-main{display:flex; flex-direction:column; padding:22px max(20px, env(safe-area-inset-left, 0px)) 40px}
.login-top{display:flex; justify-content:space-between; align-items:center}
.login-x{width:40px; height:40px; display:grid; place-items:center; border-radius:10px; color:var(--muted)}
.login-x:hover{background:var(--soft); color:var(--ink)}
.login-box{width:100%; max-width:420px; margin:auto; padding-block:30px; text-align:center}
.login-box h1{font-size:clamp(1.7rem,3vw,2.2rem); font-weight:800; margin:0 0 6px}
.login-sub{margin:0 0 22px; color:var(--ink-2)}
.login-sub a, .login-link a, .login-terms a, .login-already a{color:#1F5FE0; font-weight:600; text-decoration:none}
.login-already{background:var(--soft); border-radius:10px; padding:10px; font-size:14px}
.oauth{display:grid; gap:10px}
.g-wrap{min-height:44px; display:flex; justify-content:center}
.g-btn{width:100%; display:flex; justify-content:center}
.sso{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px 16px; border-radius:8px; border:0; font-weight:700; font-size:16px; cursor:pointer}
.sso svg{width:22px; height:22px; flex:none}
.sso-google{background:#4285F4; color:#fff}
.sso-ms{background:#111; color:#fff}
.sso-ms:hover{background:#2a2a2a}
.login-or{display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; margin:20px 0}
.login-or::before, .login-or::after{content:""; flex:1; height:1px; background:var(--line-2)}
#lForm{display:grid; gap:12px; text-align:left}
.lf{display:flex; align-items:center; gap:10px; border:1.5px solid var(--line-2); border-radius:10px; padding:0 12px; background:var(--surface)}
.lf:focus-within{border-color:#1F5FE0}
.lf svg.i{color:var(--muted); width:19px; height:19px}
.lf input{flex:1; min-width:0; border:0; outline:0; background:transparent; padding:14px 0; font-size:16px}
.lf-eye{border:0; background:transparent; color:var(--muted); cursor:pointer; padding:6px; display:grid}
.lf-eye[aria-pressed="true"]{color:#1F5FE0}
.login-go{background:#1F5FE0; color:#fff; padding:14px; font-size:16px; margin-top:6px}
.login-go:hover{background:#174BB5}
.l-msg{margin:0; min-height:1.3em; font-size:14px; color:var(--danger); text-align:center}
.l-msg.ok{color:var(--ok)}
.login-link{text-align:center; margin:0}
.login-terms{font-size:13.5px; color:var(--muted); text-align:center; margin:0}
.login-side{background:radial-gradient(120% 80% at 100% 100%, #2B4FD8 0%, transparent 60%), linear-gradient(160deg,#0B1A5C,#13299A); color:#fff; display:flex; align-items:center; padding:40px 34px}
.login-side h2{font-size:22px; margin:14px 0 18px; color:#fff}
.perks{list-style:none; margin:0; padding:0; display:grid; gap:14px}
.perks li{display:flex; gap:12px; align-items:center; font-size:16.5px; font-weight:500}
.perks svg, .plan li svg{width:22px; height:22px; flex:none}
.side-note{margin:26px 0 0; color:#C9D3FF; font-size:14px}

.price-h{text-align:center}
.page-pricing .hub-p{text-align:center; margin-inline:auto}
.cur-toggle{display:flex; justify-content:center; gap:4px; margin:6px auto 0; padding:4px; width:max-content; border-radius:12px; background:var(--soft)}
.cur-toggle button{border:0; background:transparent; padding:8px 16px; border-radius:9px; font-weight:700; cursor:pointer; color:var(--muted)}
.cur-toggle button[aria-pressed="true"]{background:var(--surface); color:var(--brand); box-shadow:var(--shadow)}
.plans-sec{padding-block:20px 50px}
.plans{display:grid; grid-template-columns:repeat(2, minmax(0, 380px)); justify-content:center; gap:22px; align-items:start}
.plan{background:var(--surface); border:1px solid var(--line-2); border-radius:20px; padding:28px; display:flex; flex-direction:column; gap:14px; position:relative}
.plan h2{margin:0; font-size:22px}
.plan-price{margin:0; display:flex; align-items:baseline; gap:8px}
.plan-price b{font-size:40px; font-weight:800; letter-spacing:-.03em}
.plan-price span{color:var(--muted)}
.plan ul{list-style:none; margin:0; padding:0; display:grid; gap:11px}
.plan li{display:flex; gap:10px; align-items:flex-start}
.plan-pro{border:2px solid #F5A524; box-shadow:0 30px 60px -36px rgba(180,110,0,.55)}
.plan-pro .pro-pill{position:absolute; top:-14px; left:24px}
.pro-state{margin:0; padding:10px 12px; border-radius:10px; background:#FFF5D6; color:#5A3A00; font-size:14px}
.pay-how{margin:0; font-size:13px; color:var(--muted); text-align:center}
.pay-msg{margin:0; min-height:1.2em; font-size:14px; text-align:center; color:var(--danger); font-weight:600}
.pay-msg.ok{color:var(--ok)}

.acc-card{background:var(--surface); border:1px solid var(--line-2); border-radius:18px; padding:24px; display:grid; gap:20px}
.acc-head{display:flex; gap:14px; align-items:center}
.acc-head h2{margin:0; font-size:20px}
.acc-head p{margin:2px 0 0; color:var(--muted); font-size:14px}
.acc-av{width:52px; height:52px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center; font-size:22px; font-weight:800; flex:none}
.acc-plan{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:18px; border-radius:14px; background:var(--soft-2); border:1px solid var(--line-2)}
.acc-plan.on{background:#FFF8E1; border-color:#F5D27A}
.acc-plan h3{margin:6px 0 2px}
.acc-plan p{margin:0; color:var(--muted)}
.plan-badge{font-size:11px; font-weight:800; letter-spacing:.08em; padding:3px 8px; border-radius:6px; background:var(--soft); color:var(--muted)}
.acc-plan.on .plan-badge{background:#FFC94D; color:#2A1A00}
.acc-use{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.acc-use > div{display:flex; flex-direction:column; gap:4px; padding:14px; border-radius:12px; border:1px solid var(--line-2)}
.acc-use b{font-size:24px}
.acc-use span{color:var(--muted); font-size:13.5px}
.acc-use i, .tr-meter i{display:block; height:6px; border-radius:3px; background:var(--soft); overflow:hidden; position:relative}
.acc-use i::after, .tr-meter i::after{content:""; position:absolute; inset:0 auto 0 0; width:var(--p); background:var(--brand); border-radius:3px}

/* ---------- side-by-side translator ---------- */
.tr{--trw:calc(min(540px, 44vw) * var(--trz, 1)); --trf:calc(var(--trw) / 46); border:1px solid var(--line-2); border-radius:18px; background:var(--table); overflow:clip; position:relative}
.tr-bar{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 14px; background:var(--surface); border-bottom:1px solid var(--line-2); position:sticky; top:68px; z-index:5}
.tr-name{flex:1 1 160px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tr-meter{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--muted)}
.tr-meter i{width:90px}
.tr-meter b{color:var(--ink)}
.pro-tag{font-size:11px; font-weight:800; padding:3px 8px; border-radius:6px; background:#FFC94D; color:#2A1A00}
.tr-lang{display:flex; align-items:center; gap:6px; padding:6px 10px; border-radius:10px; background:var(--soft-2); border:1px solid var(--line-2)}
.tr-lang svg.i{width:17px; height:17px; color:var(--muted)}
.tr-lang select{border:0; background:transparent; font-weight:700; font-size:14.5px; cursor:pointer; max-width:240px}
.tr-dl{display:flex; gap:6px; flex-wrap:wrap}
.tr-switch{display:none}
.tr-status{margin:0; padding:8px 16px; font-size:13.5px; color:var(--muted); min-height:1.2em}
.tr-status.err{color:var(--danger); font-weight:600}
.tr-sum{margin:0 16px 12px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px}
.tr-sum-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.tr-rows{display:flex; flex-direction:column; gap:22px; padding:6px 16px 90px; max-height:calc(100vh - 150px); overflow:auto; align-items:center}
.tr-row{display:grid; grid-template-columns:var(--trw) var(--trw); gap:20px; justify-content:center}
.tr-page{background:#fff; box-shadow:var(--sheet-shadow); border-radius:2px; position:relative; width:var(--trw); overflow:hidden}
.tr-in canvas{display:block; width:100%; height:100%}
.tr-out{padding:calc(var(--trw) * .075) calc(var(--trw) * .08); color:#1b1b1b; font-family:"Noto Sans","Segoe UI",Arial,sans-serif; font-size:var(--trf); line-height:1.5; overflow-wrap:anywhere}
.tr-out h2{font-size:calc(var(--trf) * 1.6); margin:0 0 .5em; line-height:1.25; color:#111}
.tr-out h3{font-size:calc(var(--trf) * 1.25); margin:.9em 0 .4em; line-height:1.3; color:#111}
.tr-out p{margin:0 0 .75em}
.tr-note{color:#6b6b6b; font-size:14px; margin:0}
.tr-ghost{display:grid; gap:12px}
.tr-ghost i{display:block; height:10px; border-radius:5px; background:#ece7e3}
.tr-ghost i:nth-child(3n){width:70%} .tr-ghost i:nth-child(4n){width:85%} .tr-ghost i:first-child{height:18px; width:55%; margin-bottom:8px}
.tr-out.loading .tr-ghost i{background:linear-gradient(90deg,#efe9e5 25%,#f8f4f1 50%,#efe9e5 75%); background-size:200% 100%; animation:shim 1.2s linear infinite}
@keyframes shim{to{background-position:-200% 0}}
.tr-out.locked .tr-ghost{filter:blur(3px); opacity:.7}
.tr-lock{position:absolute; inset:12% 8% auto; background:#fff; border:1.5px solid #F5D27A; border-radius:16px; padding:22px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; box-shadow:0 24px 50px -24px rgba(120,80,0,.45); font-family:var(--body)}
.tr-lock h3{margin:4px 0 0; font-size:20px; color:#1b1b1b}
.tr-lock p{margin:0; color:#555; font-size:14.5px}
.tr-nav{position:sticky; bottom:14px; margin:-70px auto 14px; width:max-content; display:flex; align-items:center; gap:8px; padding:8px 12px; background:var(--surface); border:1px solid var(--line-2); border-radius:14px; box-shadow:var(--shadow); z-index:4}
.tr-nav i{width:1px; height:22px; background:var(--line-2); margin:0 4px}
@media (max-width: 820px){
  .tr{--trw:calc((100vw - 74px) * var(--trz, 1))}
  .tr-bar{top:62px}
  .tr-switch{display:flex; gap:4px; margin:10px 16px 0; padding:4px; border-radius:12px; background:var(--surface); border:1px solid var(--line-2); width:max-content}
  .tr-switch button{border:0; background:transparent; padding:7px 14px; border-radius:9px; font-weight:700; cursor:pointer; color:var(--muted)}
  .tr-switch button[aria-pressed="true"]{background:var(--brand); color:var(--brand-ink)}
  .tr-row{grid-template-columns:var(--trw)}
  .tr[data-view="orig"] .tr-out, .tr:not([data-view="orig"]) .tr-in{display:none}
  .tr-rows{max-height:none}
  .tr-meter i{display:none}
  .login-wrap{grid-template-columns:minmax(0,1fr)}
  .login-side{order:2; padding:30px 22px}
  .plans{grid-template-columns:minmax(0,1fr)}
  .acc-use{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 520px){ .head-actions .btn-pro span{display:none} }
.nav-link{white-space:nowrap}
@media (max-width: 1340px){ .head-actions .hide-md{display:none} }

/* ---- translate: choose screen + summary mode ---- */
.trc{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); min-height:520px; border:1px solid var(--line-2); border-radius:20px; overflow:hidden; background:var(--surface)}
.trc-left{background:linear-gradient(160deg,var(--soft-2),var(--table)); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:40px 24px}
.trc-thumb{width:min(260px,60%); background:#fff; box-shadow:0 18px 40px -18px rgba(30,20,10,.35),0 0 0 1px rgba(0,0,0,.05); border-radius:4px; overflow:hidden}
.trc-thumb canvas{display:block; width:100%; height:100%}
.trc-file{margin:0; color:var(--muted); font-size:13.5px; max-width:90%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.trc-cancel{color:var(--brand)}
.trc-right{padding:40px 36px; display:flex; flex-direction:column; gap:16px; justify-content:center; border-left:1px solid var(--line-2)}
.trc-right h2{margin:0; font-size:22px}
.trc-right .tr-lang{align-self:flex-start}
.trc-opts{display:grid; gap:10px}
.trc-opt{display:flex; gap:14px; align-items:flex-start; padding:16px 18px; border:1.5px solid var(--line-2); border-radius:14px; cursor:pointer; transition:border-color .15s, background .15s, box-shadow .15s}
.trc-opt:hover{border-color:var(--brand)}
.trc-opt input{position:absolute; opacity:0; pointer-events:none}
.trc-dot{flex:none; width:20px; height:20px; border-radius:50%; border:2px solid var(--line); margin-top:2px; position:relative}
.trc-opt b{display:block; font-size:16.5px}
.trc-opt small{display:block; color:var(--muted); font-size:14px; margin-top:3px}
.trc-opt:has(input:checked){border-color:var(--brand); background:color-mix(in srgb, var(--brand) 7%, transparent); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent)}
.trc-opt:has(input:checked) .trc-dot{border-color:var(--brand)}
.trc-opt:has(input:checked) .trc-dot::after{content:""; position:absolute; inset:3px; border-radius:50%; background:var(--brand)}
.trc-opt:has(input:focus-visible){outline:2px solid var(--brand); outline-offset:2px}
.trc-meter{justify-content:center; flex-wrap:wrap}
.tr-modes{display:flex; gap:3px; padding:3px; border-radius:11px; background:var(--soft-2); border:1px solid var(--line-2)}
.tr-modes button{border:0; background:transparent; padding:6px 12px; border-radius:8px; font-weight:700; font-size:13.5px; cursor:pointer; color:var(--muted); white-space:nowrap}
.tr-modes button[aria-pressed="true"]{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.12)}
.trs-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:560px}
.trs-pages{display:flex; flex-direction:column; align-items:center; gap:18px; padding:22px; max-height:calc(100vh - 150px); overflow:auto; --trw:min(460px,38vw)}
.trs-pages .tr-row{display:block}
.trs-panel{padding:22px; border-left:1px solid var(--line-2); background:var(--surface); max-height:calc(100vh - 150px); overflow:auto}
.trs-card{display:flex; flex-direction:column; gap:14px}
.trs-head{display:flex; justify-content:space-between; align-items:center; gap:10px}
.trs-badge{display:inline-flex; align-items:center; gap:6px; font-weight:800; font-size:13px; padding:6px 12px; border-radius:99px; background:color-mix(in srgb, var(--brand) 12%, transparent); color:var(--brand)}
.trs-badge svg.i{width:15px; height:15px}
.trs-text{font-size:15.5px; line-height:1.65}
.trs-actions{display:flex; gap:8px; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--line-2)}
.trs-full{align-self:flex-start; border:0; background:none; color:var(--brand); font-weight:700; cursor:pointer; padding:4px 0; display:inline-flex; align-items:center; gap:6px}
.trs-full svg.i{width:16px; height:16px}
.trs-loading{display:flex; flex-direction:column; align-items:center; gap:8px; padding:40px 0 20px; text-align:center}
.trs-loading .spin{width:34px; height:34px}
.trs-loading b{font-size:19px}
.trs-loading small{color:var(--muted)}
.trs-pro{align-items:center; text-align:center; padding:50px 10px}
.trs-pro h3{margin:0; font-size:22px}
.trs-pro p{margin:0; color:var(--muted); max-width:380px}
.trs-art{width:96px; height:96px; border-radius:24px; display:grid; place-items:center; background:linear-gradient(135deg,#FFF3D1,#FFE2A8); color:#B07800}
.trs-art svg.i{width:44px; height:44px}
.trs-login{font-size:14px; color:var(--muted)}
.trs-sheet{position:fixed; left:-10000px; top:0; width:595px; padding:56px 60px; background:#fff; color:#1b1b1b; font:13px/1.6 "Noto Sans","Segoe UI",Arial,sans-serif}
.trs-sheet h1{font-size:22px; margin:0 0 4px}
.trs-sheet .trs-sub{color:#777; margin:0 0 18px; font-size:12px}
@media (max-width: 860px){
  .trc{grid-template-columns:1fr}
  .trc-left{padding:28px 18px}
  .trc-right{border-left:0; border-top:1px solid var(--line-2); padding:24px 18px}
  .trs-grid{grid-template-columns:1fr}
  .trs-pages{display:none}
  .trs-panel{border-left:0; max-height:none}
  .tr-modes{order:5}
}

.logo em{font-style:normal; color:#C8102E}
:root[data-theme="dark"] .logo em{color:#F97066}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .logo em{color:#F97066}}
.site-foot .logo em{color:#F97066}

/* ---- pricing: free, monthly, yearly ---- */
.plans.plans-3{grid-template-columns:repeat(3, minmax(0, 360px))}
.plan-sub{margin:-8px 0 0; color:var(--muted); font-size:14px; min-height:1.3em}
.plan-best{border-color:var(--brand); box-shadow:0 30px 60px -34px color-mix(in srgb, var(--brand) 60%, transparent); transform:translateY(-6px)}
.plan-best .pro-pill{background:var(--brand); color:#fff}
.save-li b{color:var(--ok)}
#proState, #payHow, #payMsg{text-align:center}
@media (max-width: 1100px){ .plans.plans-3{grid-template-columns:repeat(auto-fit, minmax(280px, 380px))} .plan-best{transform:none} }

/* ---- managed from the admin panel ---- */
.ad-slot{display:flex; justify-content:center; align-items:center; margin:18px auto; max-width:100%; overflow:hidden; text-align:center}
.ad-slot .ad-lab{display:block; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:4px}
.ad-slot > div{max-width:100%}
.ad-top{margin-top:10px}
.ad-sticky{position:fixed; left:0; right:0; bottom:0; z-index:60; margin:0; background:var(--surface); border-top:1px solid var(--line-2); padding:4px 0; box-shadow:0 -8px 24px -12px rgba(0,0,0,.25)}
.ad-sticky .ad-x{position:absolute; top:-26px; right:8px; width:26px; height:26px; border-radius:50% 50% 0 0; border:1px solid var(--line-2); border-bottom:0; background:var(--surface); cursor:pointer; color:var(--muted)}
@media (min-width: 761px){ .ad-mobile{display:none!important} }
@media (max-width: 760px){ .ad-desktop{display:none!important} }
.ann-bar{display:block; padding:9px 16px; text-align:center; font-weight:600; font-size:14px; color:#fff; text-decoration:none; background:var(--brand)}
.ann-bar.dark{background:#151A2D} .ann-bar.green{background:#16A36A} .ann-bar.blue{background:#2F6FE4}
a.ann-bar:hover{filter:brightness(1.07)}
.social-row{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.social-row a{width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.08); color:inherit; transition:background .15s}
.social-row a:hover{background:var(--brand); color:#fff}
.social-row svg{width:17px; height:17px; fill:currentColor}
.head-actions .social-row{margin:0; gap:2px; flex-wrap:nowrap}
.head-actions .social-row a{width:30px; height:30px; background:transparent; color:var(--muted)}
.head-actions .social-row a:hover{background:var(--soft); color:var(--brand)}
@media (max-width: 1560px){ .head-actions .social-row{display:none} }
@media (max-width: 1700px){ .has-nav-extra .search-btn span, .has-nav-extra .search-btn kbd{display:none} .has-nav-extra .head-actions a[href$="blog/"]{display:none} }
@media (max-width: 1340px){ .nav-item.nav-extra{display:none} }
.logo img{height:34px; width:auto; display:block}
.tool-off{padding:40px 24px; text-align:center; border:1px dashed var(--line); border-radius:18px; background:var(--surface)}
.tool-off h2{margin:0 0 6px}
.tcard .tc-emoji{font-size:30px; line-height:40px; width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:var(--soft)}
.tcard .tc-badge{position:absolute; top:10px; right:10px; font-size:11px; font-weight:800; padding:3px 8px; border-radius:99px; background:var(--brand); color:#fff}
.tcard{position:relative}
.page-body{font-size:16.5px; line-height:1.7}
.page-body img{max-width:100%; height:auto; border-radius:10px}
.contact-form{display:grid; gap:14px; margin-top:26px; padding:24px; border:1px solid var(--line-2); border-radius:18px; background:var(--surface)}
.contact-form label{display:grid; gap:6px; font-weight:700; font-size:14px}
.contact-form .two{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.contact-form .hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}
.contact-form .btn{justify-self:start}
.contact-msg{margin:0; font-weight:600}
.contact-msg.ok{color:var(--ok)} .contact-msg.err{color:var(--danger)}
@media (max-width: 640px){ .contact-form .two{grid-template-columns:1fr} }

/* ---- pricing v3: free + plans + custom ---- */
.price-toggles{display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:6px}
.price-toggles .cur-toggle{margin:0}
.save-tag{font-style:normal; font-size:11.5px; font-weight:800; color:var(--ok); margin-left:4px}
.plans.plans-4{grid-template-columns:repeat(4, minmax(0, 300px))}
.plans.plans-3{grid-template-columns:repeat(3, minmax(0, 340px))}
.plans.plans-2{grid-template-columns:repeat(2, minmax(0, 360px))}
.plans .plan ul{flex:1}
.plan-custom{max-width:1272px; margin:26px auto 0; display:grid; grid-template-columns:1.4fr 1fr; gap:28px; align-items:center; border:1.5px dashed var(--line)}
.plan-custom h2{margin:0 0 4px}
.cust-range{display:grid; gap:10px; margin:18px 0 8px; font-weight:600}
.cust-range b{color:var(--brand); font-size:20px}
.cust-range input{width:100%; accent-color:var(--brand)}
.cust-perks{display:flex; flex-wrap:wrap; gap:6px 18px; margin:0; padding:0}
.cust-r{display:flex; flex-direction:column; gap:12px}
@media (max-width: 1280px){ .plans.plans-4{grid-template-columns:repeat(2, minmax(0, 360px))} }
@media (max-width: 760px){ .plans.plans-4, .plans.plans-3, .plans.plans-2{grid-template-columns:minmax(0,1fr)} .plan-custom{grid-template-columns:1fr} }
.plans.plans-4, .plans.plans-3{align-items:stretch}

/* ---------- language switcher + localized pages ---------- */
.lang-sw{position:relative}
.lang-sw>summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;padding:7px 10px;border-radius:10px;font-size:14px;font-weight:600;color:var(--ink-2,#3f3f46);white-space:nowrap}
.lang-sw>summary::-webkit-details-marker{display:none}
.lang-sw>summary:hover{background:var(--bg-2,#f4f4f5)}
.lang-sw>summary .i{width:18px;height:18px}
.lang-sw ul{position:absolute;right:0;top:calc(100% + 6px);z-index:60;list-style:none;margin:0;padding:6px;min-width:170px;background:#fff;border:1px solid var(--line,#e4e4e7);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.12)}
.lang-sw li a{display:block;padding:8px 12px;border-radius:8px;color:inherit;text-decoration:none;font-size:14px}
.lang-sw li a:hover{background:var(--bg-2,#f4f4f5)}
.lang-sw li a[aria-current]{color:var(--brand);font-weight:700}
@media (max-width:1440px){.lang-sw>summary span{display:none}}
.lang-sw ul{max-height:70vh;overflow:auto}
.loc-menu{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.loc-menu a{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;color:inherit;text-decoration:none;font-weight:600;font-size:14px}
.loc-menu a:hover{background:var(--bg-2,#f4f4f5)}
.loc-foot{grid-template-columns:2fr 1fr 1fr}
.page-loc .nav-link{white-space:nowrap}
@media (max-width:1180px){.page-loc .nav{display:none}}

/* ---------- PDF editor + form maker ---------- */
.mk-white{background:#fff; box-shadow:inset 0 0 0 1px #d0d0d0}
.mk-hl{background:rgba(255,220,26,.42); mix-blend-mode:multiply}
.mk-rect{border:1.6px solid #111}
.mk-rect:hover, .mk-rect.active{outline:1.5px dashed var(--brand); outline-offset:2px}
.mk-edit{background:#fff}
.mk-edit .mk-t, .mk-etext .mk-t{line-height:1; white-space:pre}
.mk-field{background:rgba(47,111,228,.12); border:1.5px solid #2F6FE4; border-radius:2px}
.mk-field .mk-fl{font:600 11px/1 Inter, Arial, sans-serif; color:#1B3FA0; padding:0 4px; white-space:nowrap; overflow:hidden}
.mk-field.mk-fcheck .mk-fl{font-size:0}
.mk-field.mk-fcheck::after{content:"✓"; position:absolute; inset:0; display:grid; place-items:center; color:#2F6FE4; font-weight:700; font-size:min(14px, 70cqh)}
.txh{position:absolute; cursor:text; border-radius:2px; outline:1px dashed rgba(217,45,32,.35); outline-offset:1px}
.txh:hover{background:rgba(217,45,32,.12); outline:1.5px solid var(--brand)}
.drawing.d-white{background:rgba(255,255,255,.85); border-color:#999}
.drawing.d-hl{background:rgba(255,220,26,.45); border-color:#e0b800}
.drawing.d-rect{background:transparent; border:1.6px solid #111}
.drawing.d-ftext, .drawing.d-fmulti, .drawing.d-fcheck, .drawing.d-fdate{background:rgba(47,111,228,.15); border-color:#2F6FE4}
.seg-wrap{flex-wrap:wrap}
.seg-wrap label{flex:1 1 30%}
.chk{display:flex; gap:8px; align-items:center; font-size:14px; margin:8px 0}

.yt-form{display:flex;gap:8px;width:100%;max-width:640px;margin:0 auto}.yt-form .inp{flex:1;min-width:0;font-size:16px;padding:12px 14px}.yt-form .btn{white-space:nowrap}
@media (max-width:560px){.yt-form{flex-direction:column}}
.yt-lang{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px auto 0;font-size:14px;color:var(--muted,#555)}.yt-lang select{width:auto;max-width:260px;padding:6px 10px}
.hub-about{max-width:820px;margin-top:14px;color:var(--muted,#555);font-size:15px;line-height:1.65}.hub-about p{margin:0 0 10px}

.yt-choices{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:stretch;width:100%;max-width:1040px;margin:0 auto}
.yt-card{background:#fff;border:1.5px solid var(--line,#eadede);border-radius:16px;padding:22px;text-align:left;display:flex;flex-direction:column;gap:12px}
.yt-h{margin:0;font-weight:700;font-size:17px;display:flex;align-items:center;gap:10px}.yt-ico{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#ff0000;color:#fff;font-size:13px}
.yt-link .yt-form{max-width:none;margin:0}.yt-link .yt-lang{justify-content:flex-start;margin:0}
.yt-or{display:grid;place-items:center;color:var(--muted,#777);font-weight:600}.yt-or span{background:var(--bg,#fff7f6);padding:6px 10px;border-radius:99px;border:1px solid var(--line,#eadede)}
.yt-upload{cursor:pointer;align-items:center;justify-content:center;text-align:center;border:2px dashed #e03d2f;background:linear-gradient(180deg,#fff,#fff4f2);transition:transform .15s,box-shadow .15s;font:inherit;color:inherit}
.yt-upload:hover,.yt-upload:focus-visible{transform:translateY(-2px);box-shadow:0 10px 26px rgba(224,61,47,.18)}
.yt-up-ico{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#e03d2f;color:#fff}.yt-up-ico svg{width:26px;height:26px}
.yt-upload b{font-size:18px}.yt-up-types{font-size:14px;color:#444;letter-spacing:.02em}.yt-up-note{font-size:13px;color:var(--muted,#777)}
.yt-drop .dz-alt{margin-top:14px}
@media (max-width:820px){.yt-choices{grid-template-columns:1fr}.yt-or{padding:2px 0}}

/* language pages: same header, longer words */
.loc-head .search-btn{min-width:0; padding:9px}.loc-head .search-btn span,.loc-head .search-btn kbd{display:none}
.loc-head .nav-link{padding:9px 9px; font-size:13px; letter-spacing:0}
.loc-head .head-actions .hide-md{display:none}
@media (max-width:1440px){.loc-head .nav-list > li:nth-child(n+7){display:none}}
@media (max-width:1280px){.loc-head .nav-list > li:nth-child(n+5){display:none}}
@media (max-width:1100px){.loc-head .nav-list > li:nth-child(n+3){display:none}}
.login-ic{display:none; width:18px; height:18px}
@media (max-width:520px){ .head-actions [data-acc="login"].btn span{display:none} .head-actions [data-acc="login"].btn .login-ic{display:block} .head-actions [data-acc="login"].btn{padding:7px 9px} .logo span{font-size:19px} }
@media (max-width:420px){ .head-actions{gap:6px} .head-actions .search-btn{display:none} }
.nav-btn{white-space:nowrap}
