/* =============================================================
   Converti — styles.css
   Archetype: Mouse-Reactive Gradient · metallic steel-blue variant
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --shine {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --bg:      #ffffff;
  --bg-2:    #f3f6fb;
  --panel:   #ffffff;
  --steel:   #dfe8f5;
  --ink:     #0b1730;
  --mute:    #55657f;
  --line:    rgba(20, 45, 90, 0.12);
  --line-2:  rgba(20, 45, 90, 0.22);
  --accent:  #2563eb;
  --accent-2:#1d4ed8;
  --ok:      #0f9a66;
  --err:     #d23a50;
  --cream:   #0b1730;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --acc-rgb: 37, 99, 235;
  --glow-a: 90, 150, 235;
  --glow-b: 150, 185, 235;
  --shadow-rgb: 20, 50, 110;
  --cta-hl: #93b4ff;
  --btn-ink: #ffffff;

  --g1: #1e4fa8;
  --g2: #0f2d63;
  --g3: #5aa9ff;

  --chrome: linear-gradient(#1d4ed8, #1d4ed8);
  --chrome-btn: linear-gradient(#2563eb, #2563eb);

  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max:    1240px;
  --radius: 20px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   1b. Color themes — set <html data-theme="…">
   ============================================================= */
html[data-theme="plata"] {
  --bg-2: #f4f5f7; --steel: #e3e6eb; --ink: #14171c; --mute: #5d636e;
  --line: rgba(20, 24, 32, .12); --line-2: rgba(20, 24, 32, .22);
  --accent: #4a5566; --accent-2: #2b3340;
  --acc-rgb: 74, 85, 102; --glow-a: 160, 168, 182; --glow-b: 200, 205, 214; --shadow-rgb: 20, 24, 32;
  --cta-hl: #c9ced8; --btn-ink: #101318;
  --chrome: linear-gradient(178deg, #15181d 0%, #3b414c 28%, #8e96a4 44%, #e6e9ee 52%, #5b6371 60%, #2a2f37 78%, #15181d 100%);
  --chrome-btn: linear-gradient(180deg, #f3f4f6 0%, #cdd2d9 30%, #8b929e 52%, #6c7381 60%, #b3b9c3 85%, #e4e7eb 100%);
}
html[data-theme="oro"] {
  --bg: #fffdf8; --bg-2: #faf5ea; --steel: #efe5cf; --ink: #1f1a10; --mute: #6b604b;
  --line: rgba(60, 45, 15, .12); --line-2: rgba(60, 45, 15, .22);
  --accent: #a87414; --accent-2: #7d540a;
  --acc-rgb: 168, 116, 20; --glow-a: 230, 190, 110; --glow-b: 240, 215, 160; --shadow-rgb: 70, 50, 15;
  --cta-hl: #e9cf8f; --btn-ink: #2a1d05;
  --surface: #fffdf8; --surface-rgb: 255, 253, 248;
  --chrome: linear-gradient(178deg, #3d2a06 0%, #8a5f12 28%, #d5a94e 44%, #fbefc8 52%, #b4852b 60%, #6e4b0c 78%, #3d2a06 100%);
  --chrome-btn: linear-gradient(180deg, #fbf0cf 0%, #ebcf88 30%, #c5963d 52%, #a97a26 60%, #e0bd6b 85%, #f6e5b5 100%);
}
html[data-theme="esmeralda"] {
  --bg-2: #f1f8f5; --steel: #d9eee5; --ink: #0a1f18; --mute: #4f6a60;
  --line: rgba(10, 60, 40, .12); --line-2: rgba(10, 60, 40, .22);
  --accent: #0d8a5f; --accent-2: #066343;
  --acc-rgb: 13, 138, 95; --glow-a: 90, 200, 150; --glow-b: 160, 225, 195; --shadow-rgb: 10, 60, 40;
  --cta-hl: #8fe0bd; --btn-ink: #03251a;
  --chrome: linear-gradient(178deg, #032a1c 0%, #0b6a48 28%, #4fbf90 44%, #d4f5e6 52%, #1f9468 60%, #0a4f36 78%, #032a1c 100%);
  --chrome-btn: linear-gradient(180deg, #dcf7ea 0%, #9fe0c2 30%, #3fae80 52%, #2a8f66 60%, #7fd0aa 85%, #c7f0dd 100%);
}
html[data-theme="violeta"] {
  --bg-2: #f6f3fc; --steel: #e6def7; --ink: #170f2e; --mute: #615a78;
  --line: rgba(40, 20, 90, .12); --line-2: rgba(40, 20, 90, .22);
  --accent: #6a3fd6; --accent-2: #4b25ad;
  --acc-rgb: 106, 63, 214; --glow-a: 160, 120, 240; --glow-b: 205, 185, 245; --shadow-rgb: 40, 20, 90;
  --cta-hl: #c4b0f5; --btn-ink: #1a0b40;
  --chrome: linear-gradient(178deg, #1c0b47 0%, #4a25a8 28%, #9c7ce6 44%, #ece4fc 52%, #6a45c9 60%, #341a80 78%, #1c0b47 100%);
  --chrome-btn: linear-gradient(180deg, #ece5fd 0%, #c6b3f3 30%, #8b67dc 52%, #7350c8 60%, #b29ce9 85%, #e0d6fa 100%);
}
html[data-theme="noche"] {
  --bg: #070b14; --bg-2: #0c1322; --steel: #1b2a44; --ink: #e9f0fb; --mute: #8d9db8;
  --line: rgba(170, 196, 235, .14); --line-2: rgba(170, 196, 235, .28);
  --accent: #5aa9ff; --accent-2: #2f6fd6; --ok: #5be3b0; --err: #ff7a8a;
  --acc-rgb: 90, 169, 255; --glow-a: 46, 104, 210; --glow-b: 18, 52, 120; --shadow-rgb: 0, 0, 0;
  --cta-hl: #2f6fd6; --btn-ink: #06101f;
  --surface: #0c1322; --surface-rgb: 12, 19, 34;
  --chrome: linear-gradient(178deg, #ffffff 0%, #dbe7f8 22%, #9db8de 40%, #3d5f93 52%, #26457a 58%, #8fb0dc 72%, #e3edfa 88%, #b4c9e8 100%);
  --chrome-btn: linear-gradient(180deg, #dbe8fb 0%, #a5c1e6 30%, #5d86c2 52%, #3b65a6 60%, #87a9d8 85%, #c5d8f2 100%);
}
html[data-theme="noche"] .bg-gradient {
  background:
    radial-gradient(circle 46vmax at var(--mx, 70%) var(--my, 25%), rgba(46, 104, 210, .55) 0%, transparent 60%),
    radial-gradient(circle 38vmax at calc(100% - var(--mx, 70%)) calc(100% - var(--my, 25%)), rgba(18, 52, 120, .7) 0%, transparent 62%),
    radial-gradient(circle 30vmax at 50% 110%, rgba(90, 169, 255, .18) 0%, transparent 70%),
    var(--bg);
}
.nav-logo stop:nth-child(1), .nav-logo stop:nth-child(4) { stop-color: var(--accent-2); }
.nav-logo stop:nth-child(2) { stop-color: var(--accent); }
.nav-logo stop:nth-child(3) { stop-color: var(--steel); }
.nav-logo path:last-child { stroke: var(--accent); }
html[data-theme="noche"] .bg-grain { opacity: .06; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #ffffff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--cream); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.kicker, .eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =============================================================
   4. Background layers
   ============================================================= */
.bg-gradient {
  position: fixed; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle 46vmax at var(--mx, 70%) var(--my, 25%), rgba(var(--glow-a), .22) 0%, transparent 60%),
    radial-gradient(circle 38vmax at calc(100% - var(--mx, 70%)) calc(100% - var(--my, 25%)), rgba(var(--glow-b), .25) 0%, transparent 62%),
    radial-gradient(circle 30vmax at 50% 110%, rgba(var(--acc-rgb), .10) 0%, transparent 70%),
    var(--bg);
  filter: blur(30px) saturate(130%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  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");
}

/* =============================================================
   5. Components
   ============================================================= */
/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-word { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 9vw, 5rem); letter-spacing: -.04em; }
.splash-bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--chrome-btn); animation: bar 1.1s var(--ease-soft) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), var(--max));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--surface-rgb), .9);
  transition: background .3s, border-color .3s;
}
@supports (backdrop-filter: blur(10px)) {
  .nav { background: rgba(var(--surface-rgb), .6); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}
.nav.is-scrolled { border-color: var(--line-2); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.03em; }
.nav-links { display: none; gap: 30px; font-size: .92rem; color: var(--mute); }
.nav-links a { position: relative; padding: 4px 0; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Buttons ---- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.3em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.1;
  white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-position .8s var(--ease-out), opacity .3s;
}
.btn-chrome {
  color: var(--btn-ink);
  background: var(--chrome-btn);
  background-size: 100% 220%;
  background-position: 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.25), 0 10px 30px -10px rgba(var(--acc-rgb), .45);
}
.btn-chrome:hover { background: #1d4ed8; background-position: 0 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.25), 0 16px 40px -12px rgba(var(--acc-rgb), .7); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(var(--surface-rgb),.6); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(var(--acc-rgb),.06); }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn:disabled { opacity: .5; pointer-events: none; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Inputs ---- */
.input {
  width: 100%;
  padding: .8em 1em;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.input::placeholder { color: #94a2b8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb),.15); }

input[type="range"] { width: 100%; accent-color: var(--accent); }

/* =============================================================
   6. Sections
   ============================================================= */
main > section { padding-inline: var(--gutter); }
.section-head { max-width: var(--max); margin: 0 auto 40px; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.9rem, 5.2vw, 3.8rem); letter-spacing: -.045em; margin-top: 14px; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding-top: 120px; padding-bottom: 40px;
  position: relative;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,154,102,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,154,102,.5); } 70% { box-shadow: 0 0 0 10px rgba(15,154,102,0); } 100% { box-shadow: 0 0 0 0 rgba(15,154,102,0); } }

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.3rem, 8.4vw, 7.6rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 26px 0 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; }
.hero-sub { max-width: 52ch; font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.marquee {
  margin-top: clamp(48px, 9vh, 96px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-size: .9rem; letter-spacing: .2em; color: var(--mute);
  padding: 16px 28px; position: relative;
}
.marquee-track span::after { content: "◆"; position: absolute; right: -6px; color: var(--steel); font-size: .6rem; top: 50%; transform: translateY(-50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Converter ---- */
.converter-wrap { padding-block: clamp(70px, 12vh, 140px); }
.converter {
  max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(var(--surface-rgb), .95);
  padding: clamp(14px, 2.4vw, 28px);
  box-shadow: 0 40px 100px -40px rgba(var(--shadow-rgb),.28), 0 2px 6px rgba(var(--shadow-rgb),.05), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
@supports (backdrop-filter: blur(10px)) {
  .converter { background: rgba(var(--surface-rgb), .72); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
}
.converter::before {
  /* metallic rim */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(var(--acc-rgb),.45), rgba(var(--glow-b),.2) 30%, transparent 55%, rgba(var(--acc-rgb),.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 5px; gap: 4px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 8px;
  border-radius: 12px;
  font-weight: 600; font-size: .9rem; color: var(--mute);
  transition: color .4s var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--btn-ink); }
.tab-n { display: none; font-family: var(--mono); font-size: .72rem; opacity: .7; }
.tab-indicator {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 18px) / 3);
  border-radius: 12px;
  background: var(--chrome-btn);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px -8px rgba(var(--acc-rgb), .5);
  transition: transform .55s var(--ease-out);
}
.tabs[data-active="pdf"] .tab-indicator { transform: translateX(calc(100% + 4px)); }
.tabs[data-active="av"]  .tab-indicator { transform: translateX(calc(200% + 8px)); }

.panel { padding-top: 22px; }
.panel[hidden] { display: none; }
.panel.is-active { animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.drop {
  position: relative;
  display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: clamp(36px, 7vw, 64px) 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--acc-rgb),.07), transparent 70%),
    var(--bg-2);
  cursor: pointer;
  transition: border-color .35s, background-color .35s, transform .35s var(--ease-out);
}
.drop:hover, .drop.is-over { border-color: var(--accent); background-color: rgba(var(--acc-rgb),.06); }
.drop.is-over { transform: scale(1.01); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.3vw, 1.4rem); letter-spacing: -.02em; }
.drop-hint { color: var(--mute); font-size: .88rem; }
.drop-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 8px;
  background: var(--chrome-btn);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 30px -10px rgba(var(--acc-rgb), .5);
  position: relative;
  transition: transform .5s var(--ease-out);
}
.drop-icon::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  background: var(--btn-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.drop:hover .drop-icon, .drop.is-over .drop-icon { transform: translateY(-4px) rotate(-4deg); }

.options { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 10px; align-content: start; }
.field-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; }
.field-label output { color: var(--ink); }
.field.is-disabled { opacity: .35; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: .5em .95em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  color: var(--mute);
  transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { color: var(--ink); border-color: var(--accent); }
.chip.is-on { color: var(--btn-ink); background: var(--chrome-btn); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.chip[hidden] { display: none; }

.url-row { margin-top: 20px; display: grid; gap: 10px; }
.url-input { display: grid; gap: 8px; }
.note { margin-top: 16px; color: var(--mute); font-size: .9rem; }
.note.small { font-size: .8rem; margin-top: 0; }
.note b { color: var(--ink); }

/* ---- Results ---- */
.results { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.results[hidden] { display: none; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h3 { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
.results-actions { display: flex; gap: 8px; }
.results-list { display: grid; gap: 10px; }
.result {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  animation: panelIn .45s var(--ease-out);
}
.result-thumb {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--steel);
  font-family: var(--mono); font-size: .66rem; font-weight: 500; color: var(--ink); letter-spacing: .05em;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-body { min-width: 0; }
.result-name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-family: var(--mono); font-size: .74rem; color: var(--mute); margin-top: 2px; }
.result.is-error .result-meta { color: var(--err); }
.result.is-done .result-meta { color: var(--ok); }
.progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .25s; }
.result.is-done .progress, .result.is-error .progress { display: none; }
.result-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.result-actions a { font-size: .8rem; }

.privacy { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: .84rem; }
.lock { width: 14px; height: 14px; flex: none; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V7a4 4 0 1 0-8 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V7a4 4 0 1 0-8 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Stats ---- */
.stats {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  display: grid; gap: 0;
  padding-block: 20px 40px;
}
.stat { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.stat-n { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -.06em; line-height: 1;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat-l { color: var(--mute); max-width: 26ch; }

/* ---- How ---- */
.how { padding-block: clamp(70px, 12vh, 140px); }
.steps { max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; }
.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color .4s, transform .5s var(--ease-out);
}
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-n { font-family: var(--display); font-weight: 900; font-size: 2.6rem; letter-spacing: -.05em; display: inline-block; }
.step h3 { font-family: var(--display); font-size: 1.2rem; margin: 18px 0 10px; letter-spacing: -.02em; }
.step p { color: var(--mute); }

/* ---- Formats rows ---- */
.formats { padding-block: clamp(40px, 8vh, 100px); }
.rows { max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); }
.row summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 14px;
  padding: 24px 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3.6vw, 2.5rem); letter-spacing: -.04em;
  transition: color .3s, padding .5s var(--ease-out);
}
.row summary::-webkit-details-marker { display: none; }
.row-arrow { color: var(--accent); transition: transform .5s var(--ease-out); display: inline-block; }
.row-tag { grid-column: 1 / -1; font-family: var(--mono); font-weight: 400; font-size: .76rem; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.row summary:hover { padding-left: 12px; }
.row summary:hover .row-to { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.row[open] .row-arrow { transform: rotate(90deg); }
.row p { max-width: 64ch; color: var(--mute); padding: 0 0 28px; font-size: 1.02rem; }

/* ---- CTA ---- */
.cta { padding-block: clamp(80px, 16vh, 180px); text-align: center; }
.cta-big {
  display: inline-block; margin-top: 18px;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 8.5rem); letter-spacing: -.06em; line-height: .95;
  padding: .08em .18em .14em;
  border-radius: 24px;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
.cta-big span { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cta-big:hover { background-color: var(--ink); color: var(--bg); }
.cta-big:hover span { background: none; -webkit-text-fill-color: var(--cta-hl); color: var(--cta-hl); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 50px;
  display: grid; gap: 10px;
  color: var(--mute); font-size: .9rem;
}
.footer-logo { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: -.04em; width: max-content; }
.footer-meta { font-family: var(--mono); font-size: .76rem; }

/* ---- Global drop overlay ---- */
.drop-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; text-align: center;
  background: rgba(var(--surface-rgb), .9);
  border: 2px dashed var(--accent);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.drop-overlay.is-on { opacity: 1; visibility: visible; }
.drop-overlay div { display: grid; gap: 10px; }
.drop-overlay span { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: -.05em; }
.drop-overlay small { color: var(--mute); }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 950;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 520px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: .9rem; box-shadow: 0 20px 50px -20px rgba(var(--shadow-rgb),.35);
  opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   7. Effects — reveals
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
/* Defensive: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }
/* If JS never runs, show everything */
html:not(.js) .reveal { opacity: 1; transform: none; }

.hero-title .line > * { transform: translateY(0); }
html.js:not(.is-ready) .hero-title .line > * { transform: translateY(105%); }
html.js .hero-title .line > * { transition: transform 1.1s var(--ease-out); }
html.js .hero-title .line:nth-child(2) > * { transition-delay: .08s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .tab-n { display: inline; }
  .url-input { grid-template-columns: 1fr auto auto; }
}
@media (min-width: 720px) {
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .options .field:first-child { grid-column: span 1; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .row summary { grid-template-columns: auto auto auto 1fr; }
  .row-tag { grid-column: auto; text-align: right; align-self: center; }
  .footer { grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .tab { font-size: 1rem; padding: 16px 10px; }
}

/* =============================================================
   9. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .eyebrow .dot { animation: none; }
}

/* Flat blue default: no metallic highlights */
html:not([data-theme]) .btn-chrome,
html:not([data-theme]) .tab-indicator,
html:not([data-theme]) .chip.is-on,
html:not([data-theme]) .drop-icon { box-shadow: 0 8px 22px -10px rgba(37, 99, 235, .55); }
html:not([data-theme]) .nav-logo stop:nth-child(3) { stop-color: var(--accent); }
