/* ConvertOrino styles. Blue marks what goes in, orange marks what comes out. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('/assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f4ee;              /* warm paper */
  --panel: #ffffff;
  --sunk: #efebe3;
  --line: #e1dbcf;
  --line-2: #cfc7b8;
  --ink: #15130f;
  --muted: #6b655a;
  --blue: #2346d6;
  --blue-soft: #e4e9fc;
  --orange: #ff5b1f;          /* fills and large display text */
  --orange-text: #c13a08;     /* orange used as small text on light */
  --orange-soft: #ffe8dc;
  --on-orange: #1a0700;
  --ok: #17803d;
  --err: #b42318;
  --bad: #d93a3f;
  --shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(40, 30, 10, 0.28);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --panel: #141416;
    --sunk: #0f0f11;
    --line: #26262c;
    --line-2: #383840;
    --ink: #f3f1ec;
    --muted: #9d998f;
    --blue: #8aa4ff;
    --blue-soft: #151b33;
    --orange: #ff6a2b;
    --orange-text: #ff9a66;
    --orange-soft: #2a1308;
    --ok: #4ade80;
    --err: #ff7b72;
    --bad: #ff6b6b;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --panel: #141416;
  --sunk: #0f0f11;
  --line: #26262c;
  --line-2: #383840;
  --ink: #f3f1ec;
  --muted: #9d998f;
  --blue: #8aa4ff;
  --blue-soft: #151b33;
  --orange: #ff6a2b;
  --orange-text: #ff9a66;
  --orange-soft: #2a1308;
  --ok: #4ade80;
  --err: #ff7b72;
  --bad: #ff6b6b;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 0.98; letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; font-weight: 680; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.num { font-family: var(--display); font-size: 0.9rem; font-weight: 650; color: var(--orange-text); letter-spacing: 0.02em; margin-bottom: 14px; }
.arr { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--orange); color: var(--on-orange); padding: 10px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.45rem; letter-spacing: -0.045em; line-height: 1; }
.brand .logo { width: 32px; height: 32px; flex: none; }
.brand b, .bigmark b { color: var(--orange); font-weight: inherit; }
.logo .mk-back { fill: var(--blue); }
.logo .mk-front { fill: var(--orange); }
:root[data-theme="dark"] .logo .mk-back { fill: #7f9bff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .mk-back { fill: #7f9bff; } }

/* Header */
.top { background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 28px; height: 76px; border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 6px; margin-left: 24px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 550; font-size: 0.98rem; }
.nav a:hover { color: var(--ink); }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.theme { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.theme:hover { background: var(--sunk); }
.theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: none; }
.theme .fill { fill: currentColor; stroke: none; }
.theme[data-mode="system"] .i-sys, .theme[data-mode="light"] .i-light, .theme[data-mode="dark"] .i-dark { display: block; }
.theme:not([data-mode]) .i-sys { display: block; }

/* Hero */
.hero { padding: 64px 0 0; }
.crumbs ol { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 720; letter-spacing: -0.04em; line-height: 0.95; max-width: 16ch; }
.h1 .it { color: var(--muted); }
.pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.14em; max-width: none; font-size: clamp(3.6rem, 10vw, 8.5rem); line-height: 0.88; }
.pair .it { font-size: 0.55em; }
.f-from { color: var(--blue); }
.f-to { color: var(--orange); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.lede strong { color: var(--ink); font-weight: 600; }
.lede a { color: var(--blue); }
.hero > .lede { margin-top: 22px; }

.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 550; font-size: 0.95rem; margin-bottom: 26px; }
.kicker b { color: var(--ink); font-weight: 650; }
.kicker .ln { width: 36px; height: 2px; background: var(--orange); flex: none; }
.home-head { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; }
.mega { font-size: clamp(3.4rem, 7.4vw, 6.6rem); line-height: 0.92; letter-spacing: -0.038em; font-weight: 700; max-width: 11.5ch; }
.mega .it { color: var(--orange); font-size: 1.05em; letter-spacing: -0.02em; }
.home-head .lede { margin-bottom: 12px; }

.t-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; }
.t-intro .trust { margin-top: 18px; }

.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; }
.trust svg { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Converter */
.studio { margin-top: 44px; display: grid; grid-template-columns: 1.5fr 1fr; background: var(--panel); border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.studio .tool { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; display: flex; flex-direction: column; }
.studio .drop { flex: 1; }
.tool { margin-top: 40px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.tool.split:has(.settings:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: 'drop set' 'res set' 'nojs set'; align-content: start; }
.tool.split:has(.settings:not([hidden])):has(.results[hidden]) { grid-template-rows: 1fr auto auto; }
.tool.split:has(.settings:not([hidden])) .drop { grid-area: drop; }
.tool.split:has(.settings:not([hidden])) .results { grid-area: res; }
.tool.split:has(.settings:not([hidden])) .settings { grid-area: set; }
.drop {
  position: relative;
  margin: 14px;
  border: 1.5px dashed var(--line-2);
  background: var(--sunk);
  border-radius: 18px;
  min-height: 300px;
  padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px;
  transition: border-color .15s, background-color .15s;
}
.drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.drop.is-compact { flex-direction: row; justify-content: space-between; min-height: 0; padding: 14px 16px 14px 22px; text-align: left; border-radius: 16px; }
.drop.is-compact .stack, .drop.is-compact .drop-note { display: none; }
.drop.is-compact .drop-title { font-size: 1.15rem; }
.drop-title { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.1; }
.drop-note { color: var(--muted); font-size: 0.93rem; }

.stack { position: relative; height: 96px; margin-bottom: 4px; }
.stack.s1 { width: 72px; }
.stack.s2 { width: 120px; }
.stack.s3 { width: 168px; }
.stack span { position: absolute; top: 6px; width: 64px; height: 80px; border-radius: 10px; display: grid; place-items: end start; padding: 0 0 9px 7px; font-family: var(--display); font-weight: 750; font-size: 0.8rem; letter-spacing: 0.02em; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.stack span::after { content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-bottom-left-radius: 6px; background: rgba(255, 255, 255, .45); }
.stack .f-in { left: 2px; transform: rotate(-9deg); background: var(--blue); color: #fff; }
.stack .f-mid { left: 50px; top: 0; transform: rotate(2deg); background: var(--ink); color: var(--bg); }
.stack .f-out { right: 2px; top: 8px; transform: rotate(9deg); background: var(--orange); color: var(--on-orange); }
.stack.s1 .f-out { right: 4px; transform: rotate(4deg); }
:root[data-theme="dark"] .stack .f-in { color: #0b0b0c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stack .f-in { color: #0b0b0c; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--orange); color: var(--on-orange); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 8px 18px -8px rgba(255, 91, 31, .7); }
.drop .btn-primary { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.drop.is-compact .btn-primary { min-height: 44px; padding: 0 20px; font-size: 0.98rem; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { background: transparent; color: var(--muted); padding: 0 12px; }
.btn-text:hover { color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.drop input:focus-visible + .stack + .drop-title + .btn { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Settings */
.settings { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-end; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.settings[hidden] { display: none; }
.tool.split .settings { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; padding: 24px; border-top: 0; border-left: 1px solid var(--line); }
.tool.split .settings::before { content: 'Settings'; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 650; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.field select, .field input[type="number"], .field input[type="text"] {
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: var(--sunk);
  border: 1px solid var(--line); border-radius: 12px; min-height: 46px; padding: 0 14px; min-width: 120px;
}
.field select:focus, .field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.field input[type="number"] { width: 140px; }
.tool.split .field input[type="number"], .tool.split .field input[type="text"], .tool.split .field select { width: 100%; }
.field input[type="color"] { width: 64px; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--sunk); cursor: pointer; }
.field.range { min-width: 220px; }
.hint { display: block; font-weight: 450; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.row-meta .warn { color: var(--orange-text); font-weight: 700; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.1rem; min-width: 2.5ch; font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: var(--orange); width: 200px; height: 44px; }
.tool.split input[type="range"] { flex: 1; width: auto; }
.check { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.targets { display: flex; flex-wrap: wrap; gap: 4px; background: var(--sunk); border-radius: 12px; padding: 4px; }
.target { font: inherit; font-weight: 650; min-height: 40px; min-width: 64px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.target[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.target:hover:not([aria-pressed="true"]) { color: var(--ink); }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { font-size: 0.95rem; font-weight: 600; margin-bottom: 7px; padding: 0; }

/* Results */
.results { margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.results[hidden] { display: none; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.results-sum { font-weight: 650; }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.results-actions .btn { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.results-actions [hidden] { display: none; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.row + .row { border-top: 1px solid var(--line); }
.thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); object-fit: cover; display: grid; place-items: center; color: var(--muted); font-size: 0.7rem; font-weight: 800; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; }
.row-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 0.88rem; color: var(--muted); }
.row-meta .in, .row-meta .out { font-variant-numeric: tabular-nums; }
.row-meta .in { color: var(--blue); font-weight: 650; }
.row-meta .out { color: var(--orange-text); font-weight: 700; }
.row-meta .bad { color: var(--err); font-weight: 600; }
.row-side { display: flex; align-items: center; gap: 6px; }
.row-side .btn { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.row-side .btn-primary { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.bar { height: 4px; background: var(--sunk); border-radius: 4px; overflow: hidden; margin-top: 7px; max-width: 220px; }
.bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.bar.is-busy i { width: 35%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.nojs { margin: 0 14px 14px; color: var(--err); }

/* Popular tools beside the home converter */
.quick { border-left: 1px solid var(--line); padding: 26px 26px 22px; display: flex; flex-direction: column; }
.quick h2, .foot h2, .lbl { font-family: var(--font); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 650; line-height: 1.4; margin: 0 0 12px; }
.quick ul { list-style: none; margin: 0; padding: 0; }
.quick li a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.quick li:last-child a { border-bottom: 1px solid var(--line); }
.quick .t-pair, .quick .t-name { font-family: var(--display); font-weight: 680; font-size: 1.2rem; letter-spacing: -0.02em; }
.q-note { color: var(--muted); font-size: 0.88rem; text-align: right; }
.q-ar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); transition: background-color .15s; }
.quick li a:hover .q-ar, .quick li:first-child .q-ar { background: var(--orange); color: var(--on-orange); }
.q-more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; color: var(--muted); text-decoration: none; }
.q-more b { color: var(--ink); }
.q-more:hover b { color: var(--blue); }
.t-pair .it { color: var(--muted); font-size: 0.95em; }

/* Format strip */
.strip { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.strip p { display: inline-flex; gap: 40px; padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.2px var(--line-2); transform: translateX(-60px); }
.strip .on { color: var(--ink); -webkit-text-stroke: 0; }
.strip .star { color: var(--orange); -webkit-text-stroke: 0; font-size: 1.8rem; align-self: center; }

/* Content */
.content { padding: 0 0 40px; }
.block { padding: 110px 0 0; }
.tool-hero + .content .block:first-child { padding-top: 96px; }
.sec-h { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.sec-h h2 .it { color: var(--blue); }
.sec-h > p { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.measure, .prose p { max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose .block > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.prose .block { padding-top: 64px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 4rem; line-height: 0.8; color: var(--orange); margin-bottom: 18px; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); margin-top: 10px; max-width: 34ch; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 2.4rem; letter-spacing: -0.04em; font-weight: 720; line-height: 1; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.compare .c-from { color: var(--blue); }
.compare .c-to { color: var(--orange); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 22%; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 48px; }
.notes > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.notes h3 { font-size: 1.4rem; }
.notes p { color: var(--muted); margin-top: 10px; }
.notes p + p { margin-top: 12px; }
.guide .notes p { max-width: 62ch; }

.faq-g { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq-aside > p:not(.num) { color: var(--muted); margin-top: 20px; max-width: 32ch; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 22px 52px 22px 0; font-family: var(--display); font-size: 1.25rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.3; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font); font-size: 1.15rem; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--panel); }
.links a:hover { border-color: var(--ink); }
.links .t-pair .it { font-size: 1.05em; }
.updated { margin-top: 64px; color: var(--muted); font-size: 0.92rem; }
.credits { padding-left: 1.2em; }
.credits li { margin: 6px 0; }

/* Home: privacy comparison */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { border-radius: 24px; padding: 32px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.vs-card.good { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vs-card .lbl { color: inherit; opacity: .6; margin: 0; }
.vs-card h3 { font-size: 1.85rem; margin-top: 10px; letter-spacing: -0.035em; }
.vs-card > p:not(.lbl) { margin-top: 12px; opacity: .75; max-width: 44ch; }
.route { margin-top: auto; padding-top: 34px; display: flex; align-items: flex-start; gap: 10px; font-weight: 650; font-size: 0.88rem; }
.node { display: grid; justify-items: center; gap: 8px; text-align: center; }
.node svg { width: 56px; height: 56px; padding: 14px; border-radius: 16px; border: 1.5px solid currentColor; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node.hot svg { background: var(--orange); border-color: var(--orange); stroke: var(--on-orange); }
.node.bad svg { color: var(--bad); }
.wire { flex: 1; border-top: 2px dashed currentColor; opacity: .35; margin-top: 27px; }
.wire.bad { border-color: var(--bad); opacity: .9; }
.loop { flex: 1; text-align: center; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; font-weight: 400; opacity: .8; }

/* Home: tool index */
.index { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px 28px; }
.index #image { grid-row: span 2; }
.index #image ul { columns: 2; column-gap: 28px; }
.index #image li { break-inside: avoid; }
.cat { scroll-margin-top: 96px; }
.cat h3 { font-size: 1.4rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cat h3 small { font-family: var(--font); font-size: 0.82rem; color: var(--muted); font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.cat li a .arr { color: var(--orange); opacity: 0; transition: opacity .15s, transform .15s; }
.cat li a:hover .arr { opacity: 1; transform: translateX(2px); }
.cat .t-pair .f-from, .cat .t-pair .f-to { color: inherit; }
.cat li a:hover .f-from { color: var(--blue); }
.cat li a:hover .f-to { color: var(--orange-text); }

/* Footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 16px; max-width: 30ch; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot a, .linkbtn { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot .brand { font-weight: 750; }
.foot .brand:hover { color: var(--ink); text-decoration: none; }
.foot a:hover, .linkbtn:hover { color: var(--blue); text-decoration: underline; }
.bigmark { margin-top: 56px; font-family: var(--display); font-weight: 760; font-size: clamp(3.6rem, 15.4vw, 13.9rem); letter-spacing: -0.065em; line-height: 0.8; white-space: nowrap; overflow: hidden; padding-bottom: 0.06em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--muted); font-size: 0.9rem; margin-top: 28px; }

/* Footer button that looks like the footer links. */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Cookie banner. Accept and Reject share one style so neither is pushed. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  max-width: 820px; margin: 0 auto; padding: 20px 22px;
  display: flex; align-items: center; gap: 16px 28px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(20, 15, 5, 0.35);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.consent .consent-title { color: var(--ink); font-family: var(--display); font-weight: 680; font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.consent a { color: var(--blue); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { min-width: 112px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); }

@media (max-width: 980px) {
  .pill { display: none; }
  .theme { margin-left: auto; }
  .home-head, .t-head { grid-template-columns: 1fr; gap: 20px; }
  .studio { grid-template-columns: 1fr; }
  .quick { border-left: 0; border-top: 1px solid var(--line); }
  .tool.split:has(.settings:not([hidden])) { grid-template-columns: 1fr; grid-template-areas: 'drop' 'set' 'res' 'nojs'; }
  .tool.split .settings { flex-direction: row; flex-wrap: wrap; align-items: flex-end; border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px 22px; }
  .tool.split .settings::before { flex-basis: 100%; }
  .tool.split .field input[type="number"], .tool.split .field input[type="text"], .tool.split .field select { width: auto; }
  .tool.split input[type="range"] { flex: none; width: 200px; }
  .sec-h, .faq-g, .vs { grid-template-columns: 1fr; gap: 18px; }
  .faq-g { gap: 28px; }
  .index { grid-template-columns: 1fr 1fr; }
  .index #image { grid-column: 1 / -1; grid-row: auto; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 2px solid var(--ink); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 32px); }
  .nav { display: none; }
  .top-in { height: 64px; }
  .brand { font-size: 1.3rem; }
  .hero { padding-top: 32px; }
  .crumbs ol { margin-bottom: 20px; }
  .kicker { margin-bottom: 18px; font-size: 0.9rem; }
  .mega { font-size: 3.5rem; }
  .studio, .tool { border-radius: 22px; margin-top: 28px; }
  .studio .tool { margin-top: 0; }
  .drop { margin: 10px; min-height: 270px; padding: 30px 16px; }
  .quick { padding: 20px; }
  .strip p { font-size: 1.9rem; gap: 24px; padding: 16px 0; }
  .block { padding-top: 72px; }
  .sec-h { margin-bottom: 28px; }
  .vs-card { padding: 24px; }
  .index { grid-template-columns: 1fr; gap: 40px; }
  .index #image ul { columns: 1; }
  .row { grid-template-columns: 44px 1fr; }
  .thumb { width: 44px; height: 44px; }
  .row-side { grid-column: 1 / -1; justify-content: flex-end; }
  .drop.is-compact { flex-direction: column; text-align: center; }
  .results { margin: 0 10px 10px; }
  .results-actions { width: 100%; }
  .results-actions .btn-primary, .results-actions .btn-ghost { flex: 1; }
  .consent { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .consent-actions .btn { flex: 1; min-width: 0; }
  input[type="range"] { width: 150px; }
  .compare { min-width: 0; font-size: 0.92rem; }
  .compare thead th { font-size: 1.8rem; }
  .compare th, .compare td { padding: 12px 10px 12px 0; }
  .compare tbody th { width: 28%; }
  .foot-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
