/* WordPDF: dark ground, one crimson, animated red blinds behind the hero and closing banner. */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Hanken";
  src: url("/fonts/hanken.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #17161b;
  --bg-raise: #1f1e24;
  --surface: #25242a;
  --line: rgb(255 255 255 / .08);
  --line-strong: rgb(255 255 255 / .16);
  --text: #f4f1ec;
  --muted: #aca7b0;
  --faint: #948f9a;
  --red: #ff4d5e;          /* accent text and marks on dark */
  --red-fill: #e11d38;     /* button fill, white text passes AA */
  --red-deep: #b5132b;
  --red-glow: rgb(225 29 56 / .28);
  --paper: #fbfaf7;
  --ink: #17161a;
  --ink-soft: #c9c5cc;
  --display: "Bricolage", "Hanken", system-ui, sans-serif;
  --text-face: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgb(225 29 56 / .16), transparent 62%),
    radial-gradient(700px 420px at -10% 30%, rgb(255 255 255 / .03), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--text-face);
  font-feature-settings: "ss01";
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
}
/* film grain keeps the black from looking flat on large screens */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--red-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #3a383e var(--bg); }
a { color: var(--text); text-decoration-color: rgb(255 77 94 / .6); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-color: currentColor; }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgb(23 22 27 / .6); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.logo b { font: 800 23px/1 var(--display); font-stretch: 92%; letter-spacing: -.035em; }
.logo b span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .menu > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px;
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav > a:hover, .menu > summary:hover, .menu[open] > summary { color: var(--text); background: rgb(255 255 255 / .06); }
.nav > a[aria-current="page"] { color: var(--text); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { transition: transform .25s var(--ease-out); }
.menu[open] > summary svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / .7), 0 2px 6px rgb(0 0 0 / .4);
  animation: drop .28s var(--ease-out);
}
.menu-panel a {
  display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 10px;
  padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 15px;
}
.menu-panel a:hover { background: rgb(255 255 255 / .06); color: var(--text); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--red-fill); color: #fff; font: 650 17px/1 var(--text-face); text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .22) inset, 0 10px 28px -8px var(--red-glow), 0 2px 4px rgb(0 0 0 / .4);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:hover { color: #fff; background: #ea2541; transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .22) inset, 0 16px 36px -8px rgb(225 29 56 / .45), 0 2px 4px rgb(0 0 0 / .4); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font: 600 16px/1 var(--text-face);
  background: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgb(255 255 255 / .3); background: rgb(255 255 255 / .04); }

/* ---------- hero: WebGL gradient blinds banner with the big upload box ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: -68px calc(50% - 50vw) 0; padding-top: 68px;
  min-height: clamp(600px, 84vh, 800px); display: flex; align-items: center;
}
/* the blinds dissolve into the page at the bottom instead of ending at an edge */
.hero-blinds, .hero-scrim { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero-blinds, .cta-blinds {
  position: absolute; inset: 0; z-index: 0;
  /* shown until WebGL takes over, and kept when WebGL2 isn't available */
  background:
    repeating-linear-gradient(110deg, rgb(0 0 0 / .35) 0 2px, transparent 2px 64px),
    linear-gradient(110deg, #ff5a6e, #d0112b 35%, #6b0a16 70%, #1a0508);
}
.hero-blinds.live, .cta-blinds.live { background: none; }
.hero-blinds canvas, .cta-blinds canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim, .cta-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(105deg, rgb(23 22 27 / .82) 0%, rgb(23 22 27 / .5) 44%, rgb(23 22 27 / .2) 100%),
    radial-gradient(90% 80% at 78% 50%, rgb(208 17 43 / .22), transparent 62%);
}
.hero-in {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 72px);
}
.hero h1 {
  font: 760 clamp(40px, 5.6vw, 74px)/.98 var(--display); font-stretch: 88%;
  letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: rgb(244 241 236 / .8); margin: 0; max-width: 32em; text-wrap: pretty; }

/* the big upload box: dark glass over the moving blinds */
.drop {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center;
  min-height: clamp(320px, 34vw, 420px); padding: 40px 28px; border-radius: 22px; cursor: pointer; isolation: isolate;
  background: rgb(31 30 36 / .64);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .16);
  box-shadow: 0 1px 0 rgb(255 255 255 / .1) inset, 0 30px 70px -24px rgb(0 0 0 / .85);
  transition: transform .35s var(--ease-out), background-color .35s, box-shadow .35s var(--ease-out);
}
.drop::after { /* inner dashed drop target */
  content: ""; position: absolute; inset: 12px; border-radius: 14px; pointer-events: none;
  border: 1.5px dashed rgb(255 255 255 / .18); transition: border-color .3s, inset .35s var(--ease-out);
}
.drop:hover::after, .drop.over::after { border-color: rgb(255 77 94 / .7); inset: 10px; }
/* moving red edge, visible on hover / drag */
.drop::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), transparent 0 62%, var(--red) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.drop:hover::before, .drop.over::before, .drop.busy::before { opacity: 1; animation: orbit 2.8s linear infinite; }
@keyframes orbit { to { --a: 360deg; } }
.drop:hover, .drop.over { transform: translateY(-3px); background: rgb(31 30 36 / .74); box-shadow: 0 1px 0 rgb(255 255 255 / .1) inset, 0 40px 90px -24px rgb(0 0 0 / .9), 0 0 0 8px rgb(225 29 56 / .08); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:focus-within { outline: 2px solid var(--red); outline-offset: 4px; }
.drop-icon {
  width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(160deg, #ff4d5e, var(--red-fill) 55%, var(--red-deep)); color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .3) inset, 0 16px 34px -10px rgb(225 29 56 / .7);
  transition: transform .45s var(--ease-out);
}
.drop-icon svg { width: 32px; height: 32px; }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-4px) scale(1.04); }
.drop-title { font: 680 clamp(22px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -.015em; }
.drop-or { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.drop .btn { min-height: 56px; padding: 0 34px; font-size: 18px; }
.drop-meta { color: var(--muted); font-size: 14px; margin-top: 16px; }
.drop-err { color: #ff8a96; font-weight: 600; font-size: 15px; margin-top: 8px; }
.drop-err:empty { display: none; }
.drop.busy .drop-title::after { content: "…"; }

.assure { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: rgb(244 241 236 / .82); font-size: 15px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { color: var(--red); flex: none; }

/* centered tool hero: headline, wide upload box, trust line */
.hero.center .hero-scrim {
  background:
    radial-gradient(ellipse 34% 42% at 50% 40%, rgb(23 22 27 / .6), transparent 75%),
    linear-gradient(rgb(23 22 27 / .3), transparent 25%);
}
.hero.center .hero-in { grid-template-columns: minmax(0, 760px); justify-content: center; justify-items: center; text-align: center; gap: clamp(24px, 3vw, 36px); }
.hero.center h1 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 16px; }
.hero.center .lead { margin: 0 auto; max-width: 30em; }
.hero.center .drop { width: 100%; min-height: clamp(280px, 26vw, 340px); }
.hero.center .assure { justify-content: center; margin: 0; }

/* status screens (convert, download) reuse the hero banner */
.hero.status { min-height: clamp(520px, 70vh, 660px); }
.panel {
  padding: clamp(24px, 3vw, 36px); border-radius: 22px;
  background: rgb(31 30 36 / .68); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .16); box-shadow: 0 1px 0 rgb(255 255 255 / .1) inset, 0 30px 70px -24px rgb(0 0 0 / .85);
}
.panel .check { margin-bottom: 16px; }
.panel-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.bar { height: 4px; margin-top: 22px; border-radius: 4px; background: rgb(255 255 255 / .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-fill), #ff5a6e); transition: width 1.2s var(--ease-out); }
.file-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--muted); margin: 0 0 22px; }
.file-line b { color: var(--text); font-weight: 650; word-break: break-all; }
.hero-copy .file-line { margin: 0 0 14px; font-size: 17px; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--faint); }
.log li + li { border-top: 1px solid var(--line); }
.log li .mk { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #3c3a40; }
.log li.now { color: var(--text); }
.log li.now .mk { border-color: var(--red); box-shadow: 0 0 0 4px rgb(225 29 56 / .15); animation: pulse 1.6s ease-in-out infinite; }
.log li.ok { color: var(--muted); }
.log li.ok .mk { border-color: var(--red-fill); background: var(--red-fill); color: #fff; }
.log li .t { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 15px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(225 29 56 / 0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .3s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.error-box { margin-top: 20px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgb(255 77 94 / .35); background: rgb(225 29 56 / .1); }
.error-box p { margin: 0 0 14px; }

/* entrance: one orchestrated moment on load */
.anim .rise > * { animation: rise .9s var(--ease-out) both; }
.anim .rise > :nth-child(2) { animation-delay: .08s; }
.anim .rise > :nth-child(3) { animation-delay: .16s; }
.anim .hero-in > .drop, .anim .hero-in > .panel { animation: rise 1s .2s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
/* the headline is the page's largest paint: it moves in but is visible from the first frame */
.anim .rise > h1 { animation-name: rise-soft; }
@keyframes rise-soft { from { transform: translateY(12px); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section > h2, .prose h2 {
  font: 720 clamp(28px, 3.4vw, 42px)/1.08 var(--display); font-stretch: 90%;
  letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance;
}
.section > .sub { color: var(--muted); margin: 0 0 40px; max-width: 40em; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.steps li { padding: 28px 28px 8px 0; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font: 300 64px/1 var(--display); color: var(--red); letter-spacing: -.04em; margin-bottom: 18px; }
.steps h3 { font: 650 20px/1.3 var(--display); margin: 0 0 6px; }
.steps p { color: var(--muted); margin: 0; }

.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font: 650 15px/1.3 var(--display); color: var(--muted); }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { color: var(--text); font-weight: 600; background: rgb(225 29 56 / .06); }
.compare thead th:last-child { color: var(--red); background: rgb(225 29 56 / .06); border-radius: 12px 12px 0 0; }
.yes { display: inline-flex; align-items: center; gap: 8px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 600 19px/1.4 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform .35s var(--ease-out);
  background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 64ch; }
.faq details[open] p { animation: rise .5s var(--ease-out); }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fmt-card {
  display: grid; align-content: start; gap: 10px; padding: 28px 24px 30px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset;
  transition: transform .35s var(--ease-out), border-color .25s, background-color .25s, box-shadow .35s var(--ease-out);
}
.fmt-card:hover {
  color: var(--text); transform: translateY(-4px); border-color: rgb(255 77 94 / .45); background: #2c2b32;
  box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 24px 48px -20px rgb(0 0 0 / .9), 0 12px 30px -18px rgb(225 29 56 / .5);
}
.fmt-icon { margin-bottom: 14px; transition: transform .45s var(--ease-out); }
.fmt-card:hover .fmt-icon { transform: translateY(-2px) rotate(-3deg); }
.fmt-card b { font: 680 20px/1.25 var(--display); letter-spacing: -.01em; }
.fmt-card span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.fmt-card[aria-current="page"] { opacity: .5; pointer-events: none; }

/* ---------- tools: tiles, home grid, menu, workbench ---------- */
.tool-tile {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; flex: none; margin-bottom: 18px;
  background: linear-gradient(180deg, #313037, #23222a); border: 1px solid rgb(255 255 255 / .1); color: #ece9ee;
  box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 10px 24px -12px rgb(0 0 0 / .9);
  transition: color .3s, border-color .3s, box-shadow .4s var(--ease-out), transform .45s var(--ease-out);
}
.tool-tile svg { width: 40px; height: 40px; }
.fmt-card:hover .tool-tile { color: #fff; border-color: rgb(255 77 94 / .45); transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 12px 28px -12px rgb(225 29 56 / .55); }
.hero.home { min-height: clamp(400px, 54vh, 560px); }

.menu-panel a { grid-template-columns: 32px 1fr; align-items: center; gap: 12px; }
.menu-panel .tool-tile { width: 32px; height: 32px; border-radius: 9px; margin: 0; box-shadow: none; }
.menu-panel .tool-tile svg { width: 24px; height: 24px; }
.menu-panel { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; }
.menu-panel a:hover .tool-tile, .menu-panel a[aria-current] .tool-tile { color: #fff; border-color: rgb(255 77 94 / .4); }

.work { position: relative; width: 100%; display: grid; gap: 16px; text-align: left; transition: border-color .25s; }
.work.over { border-color: var(--red); }
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 340px; overflow: auto; }
.files li {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 12px;
  background: rgb(255 255 255 / .04); border: 1px solid var(--line); animation: rise .35s var(--ease-out);
}
.f-tag { flex: none; min-width: 46px; padding: 7px 6px; border-radius: 8px; text-align: center; font: 800 11px/1 var(--display); letter-spacing: .04em; color: #fff; background: var(--red-fill); }
.f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.f-size { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-act { display: flex; gap: 2px; }
.f-act button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.f-act button:hover:not(:disabled) { background: rgb(255 255 255 / .08); color: var(--text); }
.f-act button:disabled { opacity: .3; cursor: default; }
.add-more {
  position: relative; display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 10px 16px; border-radius: 10px; border: 1px dashed var(--line-strong); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.add-more:hover { border-color: var(--red); background: rgb(225 29 56 / .06); }
.add-more input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.add-more:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.opts { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.seg { border: 0; margin: 0; padding: 0; }
.seg legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg label { position: relative; display: inline-block; margin: 0 4px 4px 0; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .2s, border-color .2s, color .2s; }
.seg input:hover + span { color: var(--text); border-color: rgb(255 255 255 / .3); }
.seg input:checked + span { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.work .go { width: 100%; min-height: 56px; font-size: 18px; }
.work .go:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.work.busy { cursor: progress; }
.work.busy .go { opacity: .85; }
.work.result { justify-items: center; text-align: center; padding-block: 40px; }
.res-title { margin: 0; font: 720 clamp(26px, 3vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.work.result .file-line { justify-content: center; margin: 0; }
.work.result .panel-note { margin: 0; }

/* ---------- all-tools zone: animated grid backdrop (CSS only, no JS) ---------- */
.zone { position: relative; isolation: isolate; margin: clamp(48px, 7vw, 88px) calc(50% - 50vw) 0; padding: clamp(56px, 8vw, 104px) 0; }
#tools > .zone { margin-top: 0; padding-top: clamp(24px, 4vw, 48px); }
.zone-in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.zone-in > h2 { font: 720 clamp(28px, 3.4vw, 42px)/1.08 var(--display); font-stretch: 90%; letter-spacing: -.03em; margin: 0 0 14px; text-align: center; }
.zone-in > .sub { color: var(--muted); margin: 0 auto 40px; max-width: 34em; font-size: 18px; text-align: center; }
.zone .fmt-card { background: rgb(37 36 42 / .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zone .fmt-card:hover { background: rgb(44 43 50 / .92); }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 38%, transparent 80%);
}
.grid-bg::before, .grid-bg::after { content: ""; position: absolute; inset: -144px; animation: grid-drift 26s linear infinite; will-change: background-position; }
.grid-bg::before {
  background-image: linear-gradient(to right, rgb(255 255 255 / .12) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .12) 1px, transparent 1px);
  background-size: 36px 36px; opacity: .75;
}
.grid-bg::after {
  background-image: linear-gradient(to right, rgb(225 29 56 / .55) 1.2px, transparent 1.2px), linear-gradient(to bottom, rgb(225 29 56 / .55) 1.2px, transparent 1.2px);
  background-size: 144px 144px; opacity: .45;
}
.grid-glow {
  position: absolute; inset: 0;
  background: radial-gradient(45% 45% at 50% 42%, rgb(225 29 56 / .2), transparent 70%);
  animation: grid-pulse 9s ease-in-out infinite; will-change: transform, opacity;
}
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 144px 144px, 144px 144px; } }
@keyframes grid-pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
@media (forced-colors: active) { .grid-bg { display: none; } }

/* ---------- breadcrumbs, skip link, facts ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--red-fill); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #4a4750; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.hero.center .crumbs ol { justify-content: center; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dl > div:nth-child(odd) { padding-right: 28px; }
.facts dl > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; font-size: 15px; }
.facts dd { margin: 0; }

/* ---------- closing banner (same blinds as the hero) ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  margin: clamp(48px, 7vw, 88px) calc(50% - 50vw) 0; min-height: clamp(440px, 44vw, 580px);
  padding: 64px calc(50vw - min(50vw, var(--max) / 2) + var(--gutter));
}
.cta-blinds, .cta-scrim { -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.cta-copy { position: relative; z-index: 2; display: grid; gap: 14px; max-width: 34rem; }
.cta-copy h2 { margin: 0; max-width: 13ch; font: 740 clamp(34px, 4.6vw, 58px)/1.02 var(--display); font-stretch: 88%; letter-spacing: -.035em; text-wrap: balance; }
.cta-copy p { margin: 0; max-width: 36ch; color: rgb(244 241 236 / .78); font-size: clamp(16px, 1.4vw, 18px); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.cta-actions .btn svg { transition: transform .3s var(--ease-out); }
.cta-actions .btn:hover svg { transform: translateX(3px); }
.cta-link { color: rgb(244 241 236 / .82); font-weight: 550; text-decoration-color: rgb(244 241 236 / .3); }
.cta-link:hover { color: var(--text); text-decoration-color: rgb(244 241 236 / .6); }

/* ---------- article (guides, formats body, legal) ---------- */
.article { padding-top: clamp(40px, 7vw, 80px); }
.article-head { max-width: 760px; margin-bottom: 40px; }
.article-head h1 { font: 760 clamp(36px, 5.2vw, 60px)/1.02 var(--display); font-stretch: 88%; letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; }
.meta { color: var(--faint); font-size: 15px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 56px 0 12px; }
.prose h3 { font: 650 20px/1.35 var(--display); margin: 32px 0 8px; }
.prose p, .prose li { color: #d9d5dc; }
.prose strong { color: var(--text); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose kbd, .prose code { font: 500 .88em/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.note { margin: 28px 0; padding: 18px 22px; border-radius: 14px; background: var(--bg-raise); border: 1px solid var(--line); color: var(--muted); }
.note strong { color: var(--text); }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 860px; }
.guide-list a { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.guide-list a b { font: 650 clamp(20px, 2.2vw, 24px)/1.3 var(--display); letter-spacing: -.015em; }
.guide-list a span { grid-column: 1; color: var(--muted); }
.guide-list a svg { grid-row: 1 / 3; grid-column: 2; color: var(--red); transition: transform .3s var(--ease-out); }
.guide-list a:hover svg { transform: translateX(4px); }
.guide-list a:hover b { color: var(--red); }

/* ---------- ad slots: fixed height, never next to tool buttons ---------- */
.ad {
  position: relative; min-height: 120px; margin: clamp(40px, 6vw, 64px) 0 0; border-radius: 12px;
  background: rgb(255 255 255 / .02); border: 1px dashed var(--line);
}
.ad:empty::before { content: "Advertisement"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6e6a73; }
.ad.tall { min-height: 280px; }
.ad:not(:empty) { border: 0; background: none; }
/* AdSense marks boxes it couldn't fill; hide them instead of leaving a hole */
.ad:has(> ins[data-ad-status="unfilled"]) { display: none; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font: 650 14px/1.4 var(--display); color: var(--text); margin: 0 0 12px; letter-spacing: .01em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { margin: 12px 0 0; max-width: 30em; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-panel { grid-template-columns: 1fr; min-width: 260px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div:nth-child(n) { padding: 14px 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav > a.hide-sm { display: none; }
  .site-head .wrap { gap: 8px; height: 60px; }
  .btn { width: 100%; }
  .actions .btn-ghost { width: 100%; justify-content: center; }
  .compare th, .compare td { padding: 12px 10px; font-size: 15px; }
  .hero-in { padding: 28px 18px 18px; gap: 24px; }
  .drop { min-height: 300px; padding: 32px 18px; }
  .drop .btn { width: 100%; }
  .hero { margin-top: -60px; padding-top: 60px; }
  .cta { min-height: 460px; padding: 56px var(--gutter); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-link { text-align: center; padding: 6px; }
  .ad.tall { min-height: 250px; }
  .f-size { display: none; }
  .facts dl > div { grid-template-columns: 1fr; gap: 4px; }
  .menu-panel { min-width: 260px; right: -60px; }
  .formats { grid-template-columns: 1fr; gap: 12px; }
  .fmt-card { grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .fmt-icon, .fmt-card .tool-tile { grid-row: span 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .drop:hover::before, .drop.over::before { opacity: .6; }
  .check path { stroke-dashoffset: 0; }   /* the tick is drawn by an animation; show it whole */
}
