:root {
  --red: #ed1c24;
  --red-dark: #c90b14;
  --black: #0b0b0c;
  --ink: #151516;
  --white: #ffffff;
  --paper: #f5f5f3;
  --line: #d7d7d2;
  --muted: #656568;
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--black); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
html.native-app body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; }
html.native-app select, html.native-app button, html.native-app a { touch-action: manipulation; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, .drop-picker:focus-visible { outline: 3px solid #1a6cff; outline-offset: 3px; }
svg { display: block; }
.page-shell { min-height: 100vh; overflow: hidden; }

.topbar { height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4vw; border-bottom: 1px solid var(--black); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--black); text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.04em; width: fit-content; }
.brand-mark { width: 33px; height: 33px; background: var(--red); display: grid; place-content: center; gap: 5px; border-radius: 2px; transform: rotate(-2deg); }
.brand-mark span { display: block; width: 17px; height: 3px; background: white; position: relative; }
.brand-mark span:first-child::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 4px solid white; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.brand-mark span:last-child::before { content: ""; position: absolute; left: -1px; top: -3px; border-right: 4px solid white; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.topnav { display: flex; height: 100%; align-items: center; gap: 34px; }
.topnav a { color: #5f5f62; text-decoration: none; font-weight: 500; font-size: .92rem; height: 100%; display: grid; place-items: center; position: relative; }
.topnav a:hover, .topnav a.active { color: var(--black); }
.topnav a.active::after { content: ""; height: 3px; background: var(--red); position: absolute; left: 0; right: 0; bottom: -1px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.privacy-chip { display: flex; align-items: center; gap: 9px; font: 500 .75rem var(--mono); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.privacy-dot { width: 9px; height: 9px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(237,28,36,.12); }
.install-button { height: 38px; padding: 0 14px; border: 1px solid var(--black); background: var(--black); color: white; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 500 .72rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.install-button[hidden] { display: none; }
.install-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.install-button:hover { background: var(--red); border-color: var(--red); }

.workspace { min-height: 710px; padding: 76px 6vw 60px; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.25fr); gap: 6vw; align-items: center; background-color: var(--paper); background-image: linear-gradient(rgba(11,11,12,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,12,.035) 1px, transparent 1px); background-size: 40px 40px; position: relative; }
.workspace::before { content: ""; position: absolute; width: 170px; height: 10px; background: var(--red); left: 0; top: 42px; }
.eyebrow { font: 500 .78rem var(--mono); letter-spacing: .12em; margin: 0 0 20px; display: flex; align-items: center; gap: 13px; }
.eyebrow span { color: var(--red); }
.eyebrow::after { content: ""; height: 1px; width: 42px; background: currentColor; opacity: .7; }
.workspace-intro { align-self: start; padding-top: 28px; }
.workspace-intro h1 { font-size: clamp(3rem, 4.6vw, 5.4rem); line-height: .91; letter-spacing: -.075em; margin: 0; max-width: 630px; }
.workspace-intro h1 em { display: inline-block; font-style: normal; color: var(--red); }
.intro-copy { max-width: 420px; color: #505054; margin: 30px 0 0; font-size: 1rem; line-height: 1.7; }

.converter-card { background: var(--white); border: 1px solid var(--black); box-shadow: 13px 13px 0 var(--black); padding: 22px; position: relative; z-index: 2; }
.category-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 18px; }
.category-tab { border: 0; border-right: 1px solid var(--line); background: white; padding: 14px 7px; display: flex; justify-content: center; align-items: center; gap: 7px; color: #5e5e60; cursor: pointer; font-size: .82rem; font-weight: 600; }
.category-tab:last-child { border-right: 0; }
.category-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.category-tab:hover { color: var(--red); }
.category-tab.is-active { color: white; background: var(--black); }

.drop-zone { min-height: 168px; border: 1.5px dashed #9c9c9c; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; position: relative; transition: .2s ease; background: linear-gradient(135deg, rgba(237,28,36,.025), transparent 55%); }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--red); background: rgba(237,28,36,.045); }
.drop-zone.has-file { border-style: solid; border-color: var(--black); background: #fafafa; }
.file-input { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; overflow: hidden !important; white-space: nowrap !important; pointer-events: none !important; }
.drop-picker { width: 100%; min-height: 166px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.drop-zone.has-file > .drop-picker { display: none; }
.drop-picker .drop-title, .drop-picker .drop-help { display: block; }
.choose-file-button { min-height: 34px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: var(--white); font: 700 .66rem var(--mono); letter-spacing: .055em; }
.drop-picker:hover .choose-file-button { background: var(--black); }
.paste-help { color: #707074; font: 500 .58rem var(--mono); letter-spacing: .035em; }
.drop-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; margin-bottom: 12px; }
.drop-icon svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 2; }
.drop-title { font-weight: 700; margin: 0 0 3px; letter-spacing: -.02em; }
.drop-help { margin: 0; color: #77777a; font-size: .78rem; }
.drop-help span { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.file-pill { width: calc(100% - 42px); display: flex; align-items: center; gap: 15px; text-align: left; }
.file-pill[hidden], .progress-panel[hidden] { display: none; }
.file-extension { width: 54px; height: 64px; background: var(--red); color: white; display: grid; place-items: end center; padding-bottom: 9px; font: 500 .72rem var(--mono); clip-path: polygon(0 0, 72% 0, 100% 23%, 100% 100%, 0 100%); }
.file-details { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details small { font: .76rem var(--mono); color: var(--muted); margin-top: 3px; }
.file-pill button { width: 34px; height: 34px; border: 1px solid var(--line); background: white; font-size: 1.4rem; cursor: pointer; }
.file-pill button:hover { border-color: var(--red); color: var(--red); }

.route-row { display: grid; grid-template-columns: 1fr 42px 1fr; gap: 12px; align-items: end; padding: 19px 0; }
.format-field { display: grid; gap: 7px; }
.format-field span { font: 500 .75rem var(--mono); letter-spacing: .06em; color: #5f5f62; }
.format-field select { height: 48px; width: 100%; border: 1px solid #bdbdbd; border-radius: 0; background: white; color: var(--black); padding: 0 40px 0 13px; font-weight: 700; cursor: pointer; }
.swap-button { height: 42px; border: 1px solid var(--black); background: white; cursor: pointer; display: grid; place-items: center; margin-bottom: 3px; }
.swap-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.swap-button:hover { background: var(--black); color: white; }
.quality-row { border-top: 1px solid var(--line); padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.quality-label { display: flex; align-items: center; gap: 11px; }
.shield-icon { width: 31px; height: 31px; background: var(--red); display: grid; place-items: center; color: var(--white); }
.shield-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.quality-label div { display: grid; }
.quality-label strong { font-size: .82rem; }
.quality-label small { color: #707075; font-size: .75rem; }
.quality-fixed { display: inline-flex; align-items: center; gap: 7px; color: var(--red-dark); font: 600 .66rem var(--mono); letter-spacing: .04em; white-space: nowrap; }
.quality-fixed i { width: 9px; height: 9px; display: block; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(237,28,36,.12); }
.convert-button { width: 100%; height: 58px; border: 0; background: var(--red); color: white; font: 500 .78rem var(--mono); letter-spacing: .08em; display: flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer; transition: .2s; }
.convert-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: .2s; }
.convert-button:not(:disabled):hover { background: var(--black); }
.convert-button:not(:disabled):hover svg { transform: translateX(4px); }
.convert-button:disabled { background: #c8c8c8; cursor: not-allowed; }
.progress-panel { margin-top: 16px; border: 1px solid var(--black); padding: 15px; background: #fafafa; }
.progress-head { display: flex; justify-content: space-between; font-size: .76rem; }
.progress-head span { font: .72rem var(--mono); color: var(--red); }
.progress-track { height: 5px; background: #dedede; margin: 11px 0 8px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--red); transition: width .25s ease; }
.progress-panel p { margin: 0; font-size: .75rem; color: var(--muted); }
.result-panel { margin-top: 12px; border: 1px solid var(--black); padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--white); }
.result-panel[hidden] { display: none; }
.result-copy { min-width: 0; display: flex; align-items: center; gap: 10px; }
.result-copy > div { min-width: 0; display: grid; }
.result-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.result-copy small { color: var(--muted); font: .66rem var(--mono); }
.result-check { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; background: var(--red); color: var(--white); font-weight: 700; }
.download-result { flex: 0 0 auto; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); text-decoration: none; font: 600 .62rem var(--mono); letter-spacing: .04em; }
.download-result:hover { background: var(--red); }

.conversion-render { position: fixed; z-index: -9999; left: -10000px; top: 0; width: 794px; min-height: 1123px; padding: 72px; overflow: visible; background: white; color: #111; font: 16px/1.55 Arial, sans-serif; }
.conversion-render img { max-width: 100%; height: auto; }
.conversion-render table { width: 100%; border-collapse: collapse; }
.conversion-render td, .conversion-render th { border: 1px solid #777; padding: 6px; vertical-align: top; }
.conversion-render h1, .conversion-render h2, .conversion-render h3 { break-after: avoid; }

.integrity-rail { align-self: center; border-left: 1px solid var(--black); padding-left: 27px; }
.rail-label { font: 500 .72rem var(--mono); letter-spacing: .1em; writing-mode: vertical-rl; position: absolute; transform: translateX(-50px) rotate(180deg); margin: 0; }
.score-ring { width: 122px; height: 122px; position: relative; }
.score-ring svg { width: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: #d3d3d0; }
.ring-value { stroke: var(--red); stroke-linecap: square; stroke-dasharray: 264; stroke-dashoffset: var(--ring-offset, 21); transition: stroke-dashoffset .35s ease; }
.score-ring > div { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; }
.score-ring strong { font-size: 2rem; line-height: 1; letter-spacing: -.06em; }
.score-ring strong small { font-size: .8rem; }
.score-ring span { font: .72rem var(--mono); letter-spacing: .05em; margin-top: 6px; }
.score-ring strong > span { font: inherit; letter-spacing: inherit; margin: 0; }
.integrity-rail ul { list-style: none; margin: 25px 0; padding: 0; display: grid; gap: 11px; font: .72rem var(--mono); }
.integrity-rail li { display: flex; align-items: center; gap: 9px; }
.integrity-rail li span { width: 7px; height: 7px; background: var(--red); }
.rail-note { color: #5f5f62; font-size: .75rem; line-height: 1.55; }

.format-marquee { height: 58px; background: var(--red); color: white; border-block: 1px solid var(--black); display: flex; align-items: center; overflow: hidden; font: 600 .85rem var(--mono); white-space: nowrap; }
.format-marquee div { min-width: max-content; animation: marquee 24s linear infinite; }
.format-marquee b { color: var(--black); margin: 0 6px; }
.format-marquee span { margin: 0 20px; color: var(--black); }
@keyframes marquee { to { transform: translateX(-100%); } }

.ad-zone { position: relative; display: grid; place-items: center; background: #eeeeeb; color: #6b6b6e; overflow: hidden; }
.ad-zone--leaderboard, .ad-zone--footer { min-height: 132px; padding: 30px max(4vw, calc((100vw - 1100px) / 2)); border-block: 1px solid var(--line); }
.ad-zone--footer { background: #f8f8f6; }
.ad-label { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font: 500 .58rem var(--mono); letter-spacing: .12em; color: #87878a; }
.ad-unit { display: none; width: 100%; min-height: 90px; }
.ad-zone.is-live .ad-unit { display: block; }
.ad-zone.is-live .ad-pending { display: none; }
.ad-pending { margin: 0; font: 500 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.formats-section { padding: 110px 4vw 120px; background: white; }
.section-heading { display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 30px; margin-bottom: 55px; }
.section-heading h2 { margin: 0; font-size: clamp(3rem, 5.2vw, 5.9rem); line-height: .94; letter-spacing: -.07em; }
.section-heading > p { color: #5c5c60; line-height: 1.75; margin: 0 0 6px; }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--black); }
.format-card { min-height: 390px; border-right: 1px solid var(--black); padding: 27px 25px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; background: var(--white); }
.format-card:last-child { border-right: 0; }
.format-card:hover { transform: translateY(-8px); box-shadow: 0 8px 0 var(--red); z-index: 2; }
.format-card > svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.5; margin: 70px 0 31px; }
.card-number { position: absolute; right: 20px; top: 20px; font: .65rem var(--mono); }
.format-card h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }
.format-card p { margin: 6px 0 25px; color: #68686b; font-size: .85rem; }
.format-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.format-tags span { border: 1px solid currentColor; padding: 5px 8px; font: .72rem var(--mono); }
.red-card { background: var(--red); color: white; }
.red-card p { color: rgba(255,255,255,.72); }
.dark-card { background: var(--black); color: white; }
.dark-card p { color: rgba(255,255,255,.65); }

.guide-section { padding: 110px 4vw; background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 6vw; align-items: start; border-top: 1px solid var(--black); }
.guide-content h2 { margin: 0; max-width: 920px; font-size: clamp(3rem, 5.2vw, 5.9rem); line-height: .94; letter-spacing: -.07em; }
.guide-content h2 em { color: var(--red); font-style: normal; }
.guide-lead { max-width: 780px; margin: 30px 0 50px; color: #56565a; font-size: 1.05rem; line-height: 1.8; }
.conversion-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--black); background: white; }
.conversion-guides article { min-height: 190px; padding: 28px; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.conversion-guides article:nth-child(2n) { border-right: 0; }
.conversion-guides article:nth-last-child(-n+2) { border-bottom: 0; }
.conversion-guides h3 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.04em; }
.conversion-guides p { margin: 0; color: #646468; font-size: .9rem; line-height: 1.7; }
.guide-link { display: inline-block; margin-top: 20px; color: var(--red-dark); font: 600 .72rem var(--mono); letter-spacing: .02em; text-decoration: none; }
.guide-link:hover { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
.ad-zone--sidebar { min-height: 300px; width: 300px; padding: 34px 18px 22px; border: 1px solid var(--black); background: white; }
.ad-zone--sidebar .ad-unit { min-height: 250px; }

.faq-section { padding: 110px 4vw 120px; background: white; border-top: 1px solid var(--black); }
.faq-heading { margin-bottom: 50px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--black); }
.faq-grid details { min-height: 168px; padding: 27px 28px; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.faq-grid details:nth-child(2n) { border-right: 0; }
.faq-grid details:nth-last-child(-n+2) { border-bottom: 0; }
.faq-grid summary { cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 700; letter-spacing: -.025em; padding-right: 30px; position: relative; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 0; top: -5px; color: var(--red); font: 500 1.6rem var(--mono); }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid p { margin: 18px 0 0; color: #626266; font-size: .9rem; line-height: 1.7; }

.integrity-section { background: var(--black); color: white; padding: 110px 4vw; display: grid; grid-template-columns: 1.15fr .85fr; gap: 10vw; align-items: center; }
.eyebrow.light::after { background: white; }
.integrity-copy h2 { font-size: clamp(3rem, 5.5vw, 6rem); line-height: .93; letter-spacing: -.07em; margin: 0; max-width: 820px; }
.integrity-copy h2 em { color: var(--red); font-style: normal; }
.integrity-copy > p:last-child { max-width: 590px; color: #b3b3b6; line-height: 1.75; margin-top: 32px; }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #424245; }
.process-list li { padding: 26px 0; border-bottom: 1px solid #424245; display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.process-list li > span { color: var(--red); font: .75rem var(--mono); padding-top: 4px; }
.process-list strong { font-size: 1.15rem; }
.process-list p { margin: 5px 0 0; color: #9d9da2; font-size: .85rem; }

footer { min-height: 130px; padding: 30px 4vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; background: var(--white); border-top: 1px solid var(--black); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #505054; text-decoration: none; font-size: .78rem; }
.footer-links a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
footer > span { text-align: right; font: .72rem var(--mono); color: #707073; }

.legal-page { min-height: 100vh; background: var(--paper); }
.legal-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 120px; }
.legal-main h1 { margin: 0 0 25px; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.07em; }
.legal-main h2 { margin: 50px 0 14px; font-size: 1.6rem; letter-spacing: -.04em; }
.legal-main p, .legal-main li { color: #505054; line-height: 1.8; }
.legal-main a { color: var(--red-dark); }
.legal-note { padding: 20px; border: 1px solid var(--black); background: white; }

.route-main { background: var(--paper); }
.route-hero { min-height: 650px; padding: 82px 4vw; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr); gap: 7vw; align-items: center; background-image: linear-gradient(rgba(11,11,12,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,12,.035) 1px, transparent 1px); background-size: 40px 40px; }
.route-copy h1 { margin: 0; max-width: 820px; font-size: clamp(3.4rem, 6vw, 6.7rem); line-height: .9; letter-spacing: -.075em; }
.route-copy h1 em { color: var(--red); font-style: normal; }
.route-copy > p:last-of-type { max-width: 690px; margin: 28px 0 0; color: #55555a; font-size: 1.05rem; line-height: 1.75; }
.route-tool { background: white; border: 1px solid var(--black); box-shadow: 13px 13px 0 var(--black); padding: 32px; }
.route-tool-icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--red); color: white; margin-bottom: 28px; }
.route-tool-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.route-tool h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }
.route-tool p { color: #626266; line-height: 1.7; }
.route-formats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 25px 0; }
.route-format { border: 1px solid var(--black); min-height: 56px; display: grid; place-items: center; font-weight: 700; }
.route-arrow { color: var(--red); font: 700 1.4rem var(--mono); }
.route-cta { min-height: 58px; display: flex; justify-content: center; align-items: center; background: var(--red); color: white; text-decoration: none; font: 600 .76rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.route-cta:hover { background: var(--black); }
.route-note { margin: 13px 0 0 !important; font-size: .76rem; }
.route-content { padding: 110px 4vw; background: white; }
.route-content-header { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: end; margin-bottom: 55px; }
.route-content-header h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.5rem); line-height: .94; letter-spacing: -.07em; }
.route-content-header p { color: #5d5d61; line-height: 1.75; }
.route-steps, .route-benefits { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--black); }
.route-steps article, .route-benefits article { min-height: 220px; padding: 28px; border-right: 1px solid var(--black); }
.route-steps article:last-child, .route-benefits article:last-child { border-right: 0; }
.route-step-number { color: var(--red); font: 600 .75rem var(--mono); }
.route-steps h3, .route-benefits h3 { margin: 48px 0 12px; font-size: 1.25rem; }
.route-steps p, .route-benefits p { margin: 0; color: #626266; line-height: 1.7; font-size: .9rem; }
.route-benefits { margin-top: 45px; }
.related-tools { padding: 85px 4vw; background: var(--black); color: white; }
.related-tools h2 { margin: 0 0 30px; font-size: 2.5rem; letter-spacing: -.055em; }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { border: 1px solid #4b4b4e; color: white; padding: 12px 16px; text-decoration: none; font: 500 .72rem var(--mono); }
.related-links a:hover { border-color: var(--red); background: var(--red); }

.toast { position: fixed; right: 24px; bottom: 24px; width: min(400px, calc(100vw - 40px)); background: var(--black); color: white; border-left: 5px solid var(--red); box-shadow: 8px 8px 0 rgba(237,28,36,.9); padding: 17px 16px; z-index: 50; display: grid; grid-template-columns: 32px 1fr 25px; gap: 12px; align-items: start; }
.toast[hidden] { display: none; }
.toast-icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--red); border-radius: 50%; font-weight: 700; }
.toast strong { font-size: .86rem; }
.toast p { margin: 3px 0 0; color: #bababe; font-size: .72rem; }
.toast button { color: white; background: none; border: 0; font-size: 1.3rem; cursor: pointer; }

@media (max-width: 1150px) {
  .workspace { grid-template-columns: .8fr 1.3fr; gap: 5vw; }
  .integrity-rail { display: none; }
  .format-card { padding: 22px 18px; }
  .guide-section { grid-template-columns: minmax(0, 1fr) 260px; gap: 4vw; }
  .ad-zone--sidebar { width: 260px; }
}

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; height: 68px; }
  .topnav { display: none; }
  .privacy-chip { font-size: .62rem; }
  .install-button { padding-inline: 10px; }
  .workspace { grid-template-columns: 1fr; padding-top: 58px; }
  .workspace-intro { padding-top: 0; }
  .workspace-intro h1 { max-width: 680px; }
  .converter-card { box-shadow: 8px 8px 0 var(--black); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { max-width: 600px; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .format-card:nth-child(2) { border-right: 0; }
  .format-card:nth-child(-n+2) { border-bottom: 1px solid var(--black); }
  .guide-section { grid-template-columns: 1fr; }
  .ad-zone--sidebar { width: 100%; min-height: 150px; }
  .ad-zone--sidebar .ad-unit { min-height: 100px; }
  .integrity-section { grid-template-columns: 1fr; }
  .route-hero { grid-template-columns: 1fr; }
  .route-content-header { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { padding-inline: 20px; }
  .top-actions { gap: 12px; }
  .privacy-chip { font-size: 0; }
  .privacy-dot { display: block; }
  .install-button { width: 38px; padding: 0; justify-content: center; font-size: 0; }
  .workspace { padding: 55px 20px 45px; }
  .workspace::before { width: 86px; top: 28px; height: 7px; }
  .workspace-intro h1 { font-size: clamp(3.15rem, 15vw, 4.5rem); }
  .intro-copy { margin-top: 22px; }
  .converter-card { padding: 14px; }
  .category-tab { min-height: 48px; font-size: 0; }
  .category-tab svg { width: 21px; height: 21px; }
  .drop-zone { min-height: 156px; }
  .route-row { grid-template-columns: 1fr 38px 1fr; gap: 7px; }
  .format-field span { font-size: .7rem; }
  .quality-label small { display: none; }
  .quality-fixed { font-size: .56rem; }
  .result-panel { align-items: stretch; flex-direction: column; }
  .download-result { width: 100%; }
  .format-marquee { height: 50px; }
  .formats-section { padding: 85px 20px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .integrity-copy h2 { font-size: 3.4rem; }
  .format-grid { grid-template-columns: 1fr; }
  .format-card { border-right: 0; border-bottom: 1px solid var(--black); min-height: 330px; }
  .format-card:last-child { border-bottom: 0; }
  .format-card > svg { margin-top: 45px; }
  .ad-zone--leaderboard, .ad-zone--footer { min-height: 118px; padding: 28px 20px 20px; }
  .guide-section, .faq-section { padding: 85px 20px; }
  .guide-content h2 { font-size: 3.4rem; }
  .guide-lead { margin: 24px 0 36px; }
  .conversion-guides, .faq-grid { grid-template-columns: 1fr; }
  .conversion-guides article, .faq-grid details { border-right: 0; border-bottom: 1px solid var(--black); }
  .conversion-guides article:nth-last-child(-n+2), .faq-grid details:nth-last-child(-n+2) { border-bottom: 1px solid var(--black); }
  .conversion-guides article:last-child, .faq-grid details:last-child { border-bottom: 0; }
  .integrity-section { padding: 85px 20px; }
  .route-hero { padding: 70px 20px 80px; }
  .route-copy h1 { font-size: clamp(3.25rem, 16vw, 4.9rem); }
  .route-tool { padding: 22px; box-shadow: 8px 8px 0 var(--black); }
  .route-content { padding: 85px 20px; }
  .route-steps, .route-benefits { grid-template-columns: 1fr; }
  .route-steps article, .route-benefits article { border-right: 0; border-bottom: 1px solid var(--black); }
  .route-steps article:last-child, .route-benefits article:last-child { border-bottom: 0; }
  .related-tools { padding: 70px 20px; }
  footer { grid-template-columns: 1fr auto; gap: 22px; padding: 28px 20px; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  footer > span { max-width: 140px; }
}

html.native-app .topbar {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top);
  height: calc(68px + env(safe-area-inset-top));
}
html.native-app .workspace { min-height: calc(100vh - 68px - env(safe-area-inset-top)); }
html.native-app footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
html.native-app .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
