/* FileForge — "file-type stickers".
   Navy hero band, cool grey page, white work surfaces, one action colour (signal yellow).
   Each file category owns a hue; it is used wherever a format is shown. */

/* Self-hosted (SIL Open Font License) so no visitor data goes to a font CDN.
   Inter for text, Space Grotesk for headings and prices. Both are variable fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/lib/fonts/inter-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: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/lib/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/lib/fonts/space-grotesk-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: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/lib/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #16233f;
  --navy-2: #22335a;
  --navy-line: #31446e;
  --page: #f6f7fb;
  --surface: #ffffff;
  --sunken: #eef1f8;
  --ink: #1b2333;
  --ink-2: #5a6478;
  --ink-3: #6b7487;
  --line: #e1e6f0;
  --line-2: #c3cbdc;
  --signal: #f5b83d;
  --signal-2: #eaa823;
  --on-signal: #16233f;
  --link: #2448a8;
  --footer: #0f1a31;
  --band-text: #dfe5f2;
  --ok: #138a5b;
  --ok-bg: #e3f6ee;
  --bad: #c92a2a;
  --bad-bg: #fdecec;
  --focus: #4c6ef5;

  /* Category hues */
  --c-document: #2563eb;
  --c-spreadsheet: #16a34a;
  --c-presentation: #ea580c;
  --c-image: #db2777;
  --c-video: #7c3aed;
  --c-audio: #0d9488;
  --c-ebook: #b7791f;
  --c-archive: #64748b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0f1a30;
    --navy-2: #1a2848;
    --navy-line: #2a3b62;
    --page: #0c1424;
    --surface: #141f36;
    --sunken: #101a2e;
    --ink: #e8edf6;
    --ink-2: #b2bdd3;
    --ink-3: #7f8aa6;
    --line: #26365a;
    --line-2: #34466f;
    --link: #8ea8ff;
    --footer: #0a1222;
    --ok: #4cd4a0;
    --ok-bg: #12352a;
    --bad: #ff8787;
    --bad-bg: #3a1c22;
    --c-document: #6b9bff;
    --c-spreadsheet: #4ade80;
    --c-presentation: #fb923c;
    --c-image: #f472b6;
    --c-video: #a78bfa;
    --c-audio: #2dd4bf;
    --c-ebook: #f6c453;
    --c-archive: #94a3b8;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; font-family: var(--display); }
h2 { font-size: 28px; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: 13.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.inline { display: inline; margin: 0; }
.muted { color: var(--ink-3); }

/* ---------- format sticker: the visual unit of the whole site ---------- */
.fmt {
  --c: var(--c-archive);
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  border-radius: 7px;
  padding: .1em .45em;
  white-space: nowrap;
}
[data-cat="document"] { --c: var(--c-document); }
[data-cat="spreadsheet"] { --c: var(--c-spreadsheet); }
[data-cat="presentation"] { --c: var(--c-presentation); }
[data-cat="image"] { --c: var(--c-image); }
[data-cat="video"] { --c: var(--c-video); }
[data-cat="audio"] { --c: var(--c-audio); }
[data-cat="ebook"] { --c: var(--c-ebook); }
[data-cat="archive"] { --c: var(--c-archive); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px;
  background: var(--signal); color: var(--on-signal);
  font: 700 15px var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .12s;
}
.btn:hover { background: var(--signal-2); }
.btn:disabled { background: var(--sunken); color: var(--ink-3); cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-quiet:hover { background: var(--sunken); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
@media (prefers-color-scheme: dark) { .btn-dark { background: #2b3d66; } .btn-dark:hover { background: #34497a; } }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-danger:hover { background: var(--bad-bg); }
.icon-btn { background: none; border: 0; color: var(--ink-3); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.icon-btn[aria-expanded="true"] { background: var(--sunken); color: var(--ink); }

/* ---------- top bar (sits on the navy band) ---------- */
.band { background: var(--navy); color: #fff; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 72px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 20px var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand svg { flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1 1 auto; }
.nav-auth { display: flex; align-items: center; gap: 8px; }
.nav a, .nav .linkish, .nav-auth a, .nav-auth .linkish { color: var(--band-text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav .linkish:hover, .nav-auth a:hover, .nav-auth .linkish:hover { color: #fff; background: var(--navy-2); }
.nav > a[aria-current="page"], .nav-menu > a[aria-current="page"], .nav-auth a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.nav-auth .btn { color: var(--on-signal); padding: 0 18px; font-weight: 600; min-height: 44px; }
.nav-auth .btn:hover { background: var(--signal-2); color: var(--on-signal); }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 88px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: #fff; }
.hero h1 .fmt { font-size: .9em; padding: 0 .2em; border: 0; border-radius: 12px; vertical-align: .02em; background: #24365e; color: var(--signal); }
.hero h1 .line { display: block; }
.hero .lead { color: var(--band-text); font-size: 19px; line-height: 1.55; margin-top: 24px; max-width: 34rem; }
.facts-inline { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; color: #fff; font-size: 16px; }
.facts-inline li { display: flex; gap: 12px; align-items: center; }
.facts-inline svg { color: var(--signal); flex: none; }

/* The one motion moment: the format pair swaps. */
.swap { display: inline-block; transition: opacity .28s ease, transform .28s ease; }
.swap.out { opacity: 0; transform: translateY(-.25em); }
@media (prefers-reduced-motion: reduce) { .swap { transition: none; } }

/* ---------- converter panel ---------- */
.panel { background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(5, 12, 30, .35); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.drop {
  padding: 40px 24px; border-radius: 16px; text-align: center;
  border: 2px dashed var(--line-2); background: var(--page);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: border-color .12s, background-color .12s;
}
.drop-compact { padding: 32px 20px; }
.drop.drag { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 8%, var(--surface)); }
.drop-icon { color: var(--ink); }
.drop h2 { font-size: 22px; }
.drop p { color: var(--ink-2); font-size: 14px; }
.drop .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.panel > .fine { color: var(--ink-2); font-size: 13px; margin-top: -6px; }
.url-field label { color: var(--ink); }
.url-row { display: none; gap: 8px; }
.url-row.show { display: flex; }
.url-row input { min-height: 48px; }
.url-row .btn { flex: none; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select {
  width: 100%; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface); color: var(--ink); font: 15px var(--font);
}
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; color: var(--ink-2); }

.notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 14.5px; display: none; }
.notice.show { display: block; }

/* File rows */
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files:empty { display: none; }
.file { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.file-main { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 12px 12px 14px; }
.file .fmt { justify-content: center; font-size: 14px; padding: 6px 0; width: 64px; }
.file-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-name small { color: var(--ink-3); font-size: 13.5px; }
.file-target { display: flex; align-items: center; gap: 10px; }
.file-target .to { color: var(--ink-3); font-size: 14px; }
.file-target select { width: 120px; min-height: 38px; font-weight: 600; }
.file-actions { display: flex; align-items: center; gap: 4px; min-width: 0; }
.status { font-size: 14px; color: var(--ink-3); white-space: nowrap; padding: 0 6px; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.bad { color: var(--bad); font-weight: 600; }
.progress { height: 3px; margin: 0 14px; background: transparent; overflow: hidden; border-radius: 3px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--focus); transition: width .3s; }
.progress.indeterminate > span { width: 30%; animation: slide 1.2s infinite ease-in-out; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress.indeterminate > span { animation: none; width: 100%; opacity: .4; } }
.file-error { padding: 0 14px 12px 92px; color: var(--bad); font-size: 14px; }
.options { display: none; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 12px 12px; padding: 16px; }
.options.show { display: block; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.options .check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); padding-top: 28px; margin: 0; }
.options .check input { width: 18px; height: 18px; accent-color: var(--focus); }
.options .hint { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

.panel-foot { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-foot .buttons { margin-left: auto; }
.panel-foot.show { display: flex; }
.usage { color: var(--ink-3); font-size: 14px; }
.panel-foot .buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- sections below the band ---------- */
.block { padding-block: 88px 0; }
.block-tight { padding-top: 56px; }
.block h2, .section-title { font-size: clamp(28px, 3.4vw, 40px); }
.section-title { margin-bottom: 24px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.block-head p { color: var(--ink-2); max-width: 60ch; margin-top: 8px; font-size: 17px; }
.more-link { font-weight: 600; padding: 12px 0; }

/* Catalog: real formats, grouped by category colour */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cat-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat-card-head span { font-size: 13px; color: var(--ink-2); }
.catalog h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; text-transform: capitalize; }
.catalog ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.catalog a.fmt { text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.catalog a.fmt:hover { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }

/* Facts: plain row, not cards */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 72px; }
.facts > div { padding: 28px 28px 0 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts h3 { margin-bottom: 8px; }
.facts p { color: var(--ink-2); max-width: 36ch; }

/* Landing page how-to */
.howto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.howto ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.howto ol li::marker { font-weight: 700; color: var(--ink); }
.howto .about { color: var(--ink-2); margin-top: 16px; max-width: 62ch; }

/* ---------- page header for inner pages ---------- */
.page-head { padding-block: 40px 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: #fff; }
.page-head p { color: var(--band-text); margin-top: 14px; font-size: 18px; max-width: 58ch; }

/* Docs */
.doc { max-width: 780px; padding-bottom: 24px; }
.doc h2 { margin: 48px 0 12px; font-size: 24px; }
.doc h3 { margin: 24px 0 8px; font-size: 16px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal h2 { scroll-margin-top: 16px; }
.doc td code { overflow-wrap: anywhere; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0; margin-top: 32px; border-bottom: 1px solid var(--line); font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.contact-email { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -0.02em; margin-top: 36px; }
.consent { color: var(--ink-3); font-size: 13.5px; margin-top: 14px; text-align: center; }
.flash { grid-column: 1 / -1; padding: 12px 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flash-bad { background: var(--bad-bg); color: var(--bad); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.config-warning { background: var(--signal); color: var(--on-signal); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; }
.doc pre { background: var(--navy); color: #e3e9f6; padding: 18px; border-radius: 12px; overflow-x: auto; line-height: 1.55; margin: 12px 0; }
.doc :not(pre) > code { background: var(--sunken); color: var(--ink); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc td, .doc th { border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }
.verb { font: 700 12px var(--mono); padding: 3px 7px; border-radius: 5px; background: var(--navy); color: var(--signal); }
.endpoint { display: flex; align-items: center; gap: 10px; margin: 8px 0; }

/* Auth + account */
.auth { max-width: 440px; margin: 0 auto; padding-block: 32px 72px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth .card { box-shadow: 0 30px 60px -20px rgba(6, 12, 28, .55); border: 0; }
.auth h1 { font-size: 30px; letter-spacing: -0.03em; }

/* Sign in / sign up: copy on the left, form card on the right, both inside the navy band. */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: center; padding-block: 40px 80px; }
.auth-copy h1 { color: #fff; font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; max-width: 15ch; }
.auth-lead { color: #c9d3ea; font-size: 18px; margin-top: 18px; max-width: 44ch; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; color: #dfe6f5; font-size: 16px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks svg { color: var(--signal); flex: none; margin-top: 2px; }
.perks strong { color: #fff; font-weight: 650; }
.trail { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trail li { display: flex; align-items: center; gap: 8px; color: #7f8fb3; }
.trail .fmt { font-size: 15px; background: color-mix(in srgb, var(--c) 22%, var(--navy)); border-color: color-mix(in srgb, var(--c) 50%, transparent); color: color-mix(in srgb, var(--c) 40%, #fff); }
/* Cards inside the navy band must reset the band's white text. */
.band .card { color: var(--ink); }
.auth-card { box-shadow: 0 30px 60px -20px rgba(6, 12, 28, .6); border: 0; padding: 32px; }
/* Pages whose content all sits in the band: no empty grey gap before the footer. */
main:not(:has(*)) + .footer { margin-top: 0; }
.auth-card h2 { font-size: 26px; letter-spacing: -0.025em; }
.auth-card .sub { color: var(--ink-2); margin: 6px 0 22px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 14px; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.hint { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.btn-block { width: 100%; margin-top: 8px; min-height: 48px; font-size: 16px; }
.auth-solo { padding-top: 24px; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; gap: 32px; padding-block: 16px 48px; }
  .auth-copy h1 { font-size: 34px; }
  .trail { display: none; }
}
.auth .sub { color: var(--ink-2); margin: 8px 0 22px; }
.field { margin-bottom: 16px; }
.errors { color: var(--bad); font-size: 14.5px; }
.errors ul { margin: 0 0 14px; padding-left: 18px; }
.field-error { color: var(--bad); font-size: 13.5px; display: block; margin-top: 4px; }
.switch { text-align: center; color: var(--ink-2); margin-top: 18px; font-size: 15px; }
.band-tail { height: 88px; }

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; margin-top: -48px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.meter { margin-top: 14px; height: 8px; background: var(--sunken); border-radius: 8px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--focus); border-radius: 8px; }
.stat { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 10px; }
.stat small { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.card h2 { font-size: 19px; letter-spacing: -0.01em; }
.card .desc { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.keybox { font-family: var(--mono); font-size: 14px; background: var(--ok-bg); color: var(--ok); padding: 14px; border-radius: 10px; word-break: break-all; margin: 10px 0 4px; }
.keyform { display: flex; gap: 8px; margin: 16px 0; }
.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.list td, .list th { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list th { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.list .fmt { font-size: 13px; }
.secret { font-family: var(--mono); font-size: 13px; word-break: break-all; background: var(--sunken); padding: 10px 12px; border-radius: 8px; margin-top: 12px; }
.pill { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); text-transform: capitalize; }
.pill.finished { background: var(--ok-bg); color: var(--ok); }
.pill.failed { background: var(--bad-bg); color: var(--bad); }
.empty { color: var(--ink-2); padding: 8px 0; }
.table-scroll { overflow-x: auto; margin-top: 12px; }

/* Error page */
.error-page { padding-block: 24px 8px; }
.error-page .btn { margin-top: 24px; }

/* Footer */
.footer { margin-top: 88px; background: var(--footer); color: #c9d1e3; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 48px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand strong { font: 700 20px var(--display); color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 34ch; }
.footer nav { display: flex; gap: 4px 24px; flex-wrap: wrap; flex: 2 1 480px; align-content: flex-start; justify-content: flex-end; }
.footer a { color: #c9d1e3; text-decoration: none; padding: 10px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 40px; }
  .hero-copy { padding-top: 8px; }
  .hero .lead { max-width: 46ch; }
  .facts-inline { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .howto, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar { padding-block: 12px; row-gap: 4px; }
  .nav { gap: 0; margin-left: -10px; order: 3; flex-basis: 100%; }
  .nav a, .nav .linkish, .nav-auth a, .nav-auth .linkish { white-space: nowrap; padding: 8px 10px; font-size: 14.5px; }
  .nav-auth { margin-left: auto; }
  .nav-auth .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .footer nav { justify-content: flex-start; }
  .drop { margin: 10px; padding: 28px 14px; }
  .files { padding: 0 10px; }
  .file-main { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .file .fmt { width: 56px; }
  .file-target { grid-column: 1 / -1; }
  .file-target select { flex: 1; width: auto; }
  .file-actions { grid-column: 3; grid-row: 1; }
  .file-error { padding-left: 14px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 22px 0 0; border-left: 0; }
  .format-row { grid-template-columns: 1fr; gap: 10px; }
  .keyform { flex-direction: column; }
}

/* ---------- admin stats ---------- */
/* Single-series bar colour; validated against both chart surfaces (dataviz validator, light and dark). */
:root { --chart: #4c6ef5; }
@media (prefers-color-scheme: dark) { :root { --chart: #5b7cf0; } }
.stats { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; }
.jump a[aria-current="page"] { background: var(--signal); color: var(--on-signal); box-shadow: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile span { color: var(--ink-2); font-size: 14.5px; }
.tile strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile small { color: var(--ink-3); font-size: 13.5px; }
.chart-card h2, .stats .card h2 { margin-bottom: 14px; }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; height: 260px; padding-bottom: 24px; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: -7px; margin-top: -7px; }
.plot { position: relative; display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); gap: 2px; align-items: end; border-bottom: 1px solid var(--line-2); }
.grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.grid i { border-top: 1px solid var(--line); }
.grid i:last-child { border-top: 0; }
.col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline-offset: 0; }
.bar { width: 100%; max-width: 24px; min-height: 0; background: var(--chart); border-radius: 4px 4px 0 0; }
.col em { position: absolute; top: calc(100% + 6px); font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.col:hover .bar, .col:focus-visible .bar { filter: brightness(1.15); }
.col:hover::after, .col:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 2; pointer-events: none;
}
.col:first-child:hover::after, .col:first-child:focus-visible::after { left: 0; transform: none; }
.col:last-child:hover::after, .col:last-child:focus-visible::after { left: auto; right: 0; transform: none; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.list .num { text-align: right; font-variant-numeric: tabular-nums; }
.counts td:first-child { position: relative; max-width: 0; width: 100%; }
.share { position: absolute; left: 0; top: 4px; bottom: 4px; background: color-mix(in srgb, var(--chart) 14%, transparent); border-radius: 4px; }
.share-label { position: relative; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 6px; }

.ranges a { text-transform: none; }

/* Popular conversions: plain crawlable links, coloured by the target format's category. */
.popular { margin-top: 64px; }
.popular h2 { margin-bottom: 18px; }
.popular ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 24px; }
.popular a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.popular a:hover { color: var(--link); }
.popular .dot { width: 7px; height: 7px; }

/* ---------- email tools ---------- */
:root { --warn: #a15c07; --warn-bg: #fdf3dc; }
@media (prefers-color-scheme: dark) { :root { --warn: #f6c453; --warn-bg: #3a2f14; } }
.tool-head { padding-block: 32px 64px; }
.tool-head h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; margin-top: 22px; }
.tool-head .lead { color: #c9d3ea; font-size: 18px; margin-top: 14px; max-width: 62ch; }
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-nav a { color: #dfe6f5; text-decoration: none; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--navy-line); font-size: 14.5px; font-weight: 500; }
.tool-nav a:hover { background: var(--navy-2); }
.tool-nav a[aria-current="page"] { background: var(--signal); color: var(--on-signal); box-shadow: none; font-weight: 650; }
.tool-card { margin-top: 28px; max-width: 860px; padding: 24px; border: 0; box-shadow: 0 30px 60px -24px rgba(6, 12, 28, .55); }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-grid .span-2 { grid-column: span 2; }
.tool-card .field { margin-bottom: 0; }
.tool-card .check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); margin: 14px 0 0; }
.tool-card .check input { width: 18px; height: 18px; accent-color: var(--focus); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.presets button { background: var(--sunken); border: 0; border-radius: 6px; padding: 4px 10px; font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; }
.presets button:hover { background: var(--line); color: var(--ink); }
.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.more fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.more fieldset:disabled { opacity: .55; }
.more .note { background: var(--sunken); border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.more .hint { margin-top: 10px; }
.tool-submit { margin-top: 20px; min-width: 180px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1; }
.inline-form .tool-submit { margin-top: 0; min-height: 42px; }

.tool-results { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; scroll-margin-top: 16px; }
.tool-results:empty { display: none; }
.result-card h2 { font-size: 19px; margin-bottom: 14px; }
.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.status-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; }
.status-line.good { background: var(--ok-bg); }
.status-line.warn { background: var(--warn-bg); }
.status-line.bad { background: var(--bad-bg); }
.status-icon { display: inline-grid; place-items: center; }
.good .status-icon, .port-state.good { color: var(--ok); }
.warn .status-icon, .port-state.warn { color: var(--warn); }
.bad .status-icon, .fail .status-icon, .port-state.bad { color: var(--bad); }
.ok .status-icon { color: var(--ok); }
.status-label { font-weight: 700; font-size: 13px; padding-top: 1px; min-width: 56px; }
.status-line.good .status-label { color: var(--ok); }
.status-line.warn .status-label { color: var(--warn); }
.status-line.bad .status-label { color: var(--bad); }
.status-text { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.step-detail { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 2px; overflow-wrap: anywhere; }
.ms { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 14.5px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.result-card .kv { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sm { background: var(--sunken); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-family: var(--mono); }
.transcript summary { cursor: pointer; font-weight: 600; }
.transcript pre, .record { background: var(--navy); color: #e3e9f6; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.record { margin: 0 0 14px; }
.port-list { list-style: none; margin: 14px 0 0; padding: 0; }
.port-list li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.port-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13.5px; }
.mx-table { margin-top: 14px; }

.tool-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style-position: outside; }
.faq p { color: var(--ink-2); margin-top: 10px; max-width: 70ch; }
.tool-links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-links a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tool-links a:hover { border-color: var(--focus); }
.tool-links strong { font-size: 17px; }
.tool-links span { color: var(--ink-2); font-size: 14.5px; }
.tool-links-big { margin-top: 0; }

@media (max-width: 760px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid .span-2 { grid-column: 1 / -1; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .tool-about { grid-template-columns: 1fr; gap: 8px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}

/* ---------- warmup planner ---------- */
.warmup-table { margin-bottom: 14px; max-width: 620px; }
.warmup-table td:first-child, .warmup-table th:first-child { width: 64px; }
.warmup-table td.num, .warmup-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.warmup-table .week-row td { background: var(--sunken); padding-top: 12px; padding-bottom: 12px; font-size: 14.5px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border: 2px solid var(--line-2); border-radius: 4px; }

/* ---------- "Email tools" dropdown in the top bar ---------- */
.nav-menu { position: relative; }
.nav-menu > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-menu .caret { opacity: .7; transition: transform .15s; }
.nav-drop {
  position: absolute; top: 100%; left: -8px; z-index: 50; width: 330px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(10, 20, 45, .22);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
/* An invisible bridge so the menu doesn't close while the mouse crosses the gap. */
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .nav-drop a { display: block; color: var(--ink); padding: 9px 12px; border-radius: 9px; white-space: normal; }
.nav .nav-drop a:hover, .nav .nav-drop a:focus-visible { background: var(--sunken); color: var(--ink); }
.nav .nav-drop a[aria-current="page"] { background: var(--sunken); color: var(--ink); }
.nav-drop strong { display: block; font-weight: 650; font-size: 15px; }
.nav-drop span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.nav .nav-drop .nav-drop-all { color: var(--link); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
@media (hover: hover) {
  .nav-menu:hover .nav-drop { opacity: 1; visibility: visible; transform: none; }
  .nav-menu:hover .caret { transform: rotate(180deg); }
}
.nav-menu:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
@media (hover: none) { .nav-menu .caret { display: none; } .nav-drop { display: none; } }

/* ---------- written content on conversion landing pages ---------- */
.howto .guide-intro { color: var(--ink); font-size: 18px; line-height: 1.6; margin: 0 0 18px; max-width: 62ch; }
.guide-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); max-width: 70ch; }
.guide-tips li::marker { color: var(--ink-3); }
.guide-formats { display: flex; flex-direction: column; gap: 18px; }
.guide-formats h3 { margin: 0 0 6px; font-size: 16px; }
.guide-formats p { margin: 0; color: var(--ink-2); max-width: 70ch; }

/* ---------- redesign: home sections ---------- */
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a { display: inline-block; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.pill-links a:hover { border-color: var(--ink); }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature svg { color: var(--ink); }
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-2); line-height: 1.6; }
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-band > div { flex: 1 1 420px; }
.cta-band h2 { font-size: 30px; margin-bottom: 8px; }
.cta-band p { color: var(--band-text); font-size: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ---------- redesign: converter page (/convert/x-to-y) ---------- */
.convert-page { padding-top: 32px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { color: var(--link); }
.convert-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.convert-head h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.convert-head p { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.pair-pick { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; color: var(--ink-2); }
.pair-pick .fmt { font-size: 15px; padding: 10px 14px; border-radius: 8px; border: 0; }
.pair-pick select { width: auto; border: 0; background: var(--navy); color: #fff; border-radius: 8px; padding: 0 14px; font-weight: 700; min-height: 44px; }
.convert-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.convert-main { flex: 999 1 560px; min-width: 0; }
.convert-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.files-card { padding: 0; overflow: hidden; }
.files-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.files-card-head h2 { font-size: 20px; }
.files-card-head .usage { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.files-card-head .usage:not(:empty)::before { content: "\00b7  "; }
.files-card .panel { box-shadow: none; border-radius: 0; padding: 22px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.aside-card h2 { font-size: 18px; }
.aside-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.aside-card > a { font-size: 14px; font-weight: 600; }
.aside-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.aside-dark p { color: var(--band-text); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: block; padding: 9px 0; font-size: 15px; }
.aside-links li + li { border-top: 1px solid var(--line); }
.convert-page + .howto { padding-top: 72px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 48px; }
  .panel { padding: 20px; }
  .cta-band { padding: 28px; }
}

/* ---------- redesign: formats page ---------- */
.search-box { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 22px; background: var(--surface); border-radius: 12px; padding: 6px 6px 6px 16px; color: var(--ink-2); }
.search-box input { border: 0; min-height: 44px; font-size: 16px; padding: 0; background: transparent; }
.search-box input:focus { outline: none; }
.search-box:focus-within { outline: 3px solid color-mix(in srgb, var(--focus) 60%, transparent); }
.formats-page { padding-top: 32px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-pills button { border-radius: 999px; padding: 0 18px; min-height: 44px; font: 600 15px var(--font); cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.filter-pills button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.format-groups { display: flex; flex-direction: column; gap: 20px; }
.format-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; scroll-margin-top: 16px; }
.format-group-head { flex: 1 1 200px; }
.format-group-head h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; text-transform: capitalize; margin-bottom: 6px; }
.format-group-head h2 .dot { width: 12px; height: 12px; }
.format-group-head p { font-size: 14px; color: var(--ink-2); }
.format-tiles { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: start; }
.format-tile { border: 1px solid var(--line-2); border-radius: 10px; scroll-margin-top: 16px; }
.format-tile[open] { grid-column: 1 / -1; border-color: var(--ink); }
.format-tile summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.format-tile summary::-webkit-details-marker { display: none; }
.format-tile summary strong { font-size: 15px; }
.format-tile summary span { font-size: 12px; color: var(--ink-2); }
.format-tile summary:hover { background: var(--sunken); border-radius: 10px; }
.targets { list-style: none; margin: 0; padding: 4px 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.targets a { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 6px; background: var(--sunken); }
.targets a:hover { background: var(--line); }
.empty-search { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 16px; padding: 40px; text-align: center; color: var(--ink-2); }
.empty-search strong { color: var(--ink); font-size: 18px; }
.arrow-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.arrow-links a { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 500; }
.arrow-links a span { color: var(--link); }
.arrow-links a:hover { border-color: var(--ink); }

/* ---------- redesign: pricing ---------- */
.pricing { padding-top: 56px; }
.pricing-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 40px; }
.pricing-intro h1 { font-size: clamp(36px, 5vw, 56px); }
.pricing-intro p { font-size: 18px; color: var(--ink-2); max-width: 36rem; }
.period-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.period-switch button { border: 0; border-radius: 999px; padding: 0 18px; min-height: 44px; font: 600 15px var(--font); cursor: pointer; background: transparent; color: var(--ink-2); }
.period-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pricing > .flash { margin-bottom: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.plan h2 { font-size: 24px; margin-bottom: 6px; }
.plan-sub { font-size: 15px; color: var(--ink-2); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-tag { background: var(--signal); color: var(--on-signal); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-price { font: 700 52px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font: 400 16px var(--font); color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.plan-price + .plan-sub { margin-top: 6px; font-size: 14px; }
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { flex: none; color: var(--ok); }
.plan-note { font-size: 13px; color: var(--ink-2); text-align: center; }
.plan-note:empty { display: none; }
.plan-fine { font-size: 14px; line-height: 1.6; color: var(--ink-2); flex: 1 1 auto; }
.plan .btn-block { margin-top: 0; }
.plan-pro { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 24px 60px rgba(22, 35, 63, .3); }
.plan-pro .plan-sub, .plan-pro .plan-price small, .plan-pro .plan-note { color: var(--band-text); }
.plan-pro .plan-list svg { color: var(--signal); }
.plan-pro .plan-note a { color: #fff; }
.pack-options { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pack-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; cursor: pointer; margin: 0; color: var(--ink); font-weight: 400; }
.pack-option:has(input:checked) { border: 2px solid var(--ink); padding: 15px; }
.pack-option input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.pack-text { flex: 1 1 auto; display: flex; flex-direction: column; }
.pack-text strong { font-size: 17px; }
.pack-text small { font-size: 13px; color: var(--ink-2); }
.pack-price { font: 700 26px var(--display); }
.pricing-faq { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 40px; }
.pricing-faq > div:first-child { flex: 1 1 280px; }
.pricing-faq h2 { font-size: 34px; margin-bottom: 12px; }
.pricing-faq > div:first-child p { color: var(--ink-2); }
.faq-cards { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-cards details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq-cards summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; }
.faq-cards p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.credits-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.credits-line strong { color: var(--ink); }
.text-bad { color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- redesign: API docs ---------- */
.api-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 48px 64px; }
.api-hero > div:first-child { flex: 1 1 420px; min-width: 0; }
.api-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 18px; }
.api-hero .lead { color: var(--band-text); font-size: 18px; line-height: 1.6; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #8794b3; }
.btn-ghost:hover { background: var(--navy-2); }
.code-box { flex: 1 1 440px; min-width: 0; background: #0b1426; border: 1px solid #24304d; border-radius: 16px; overflow: hidden; }
.code-box-head { padding: 12px 16px; border-bottom: 1px solid #24304d; font-size: 13px; color: #9aa6bf; }
.code-box pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: #dfe5f2; }
.api-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 48px; }
.api-nav { flex: 1 1 220px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; position: sticky; top: 16px; }
.api-nav ul { list-style: none; margin: 0; padding: 0; }
.api-nav a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.api-nav a:hover { background: var(--sunken); }
.api-content { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.api-content h2 { font-size: 32px; scroll-margin-top: 16px; }
#quickstart h2 { margin-bottom: 20px; }
.steps-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--signal); display: grid; place-items: center; font-weight: 700; }
.steps-cards h3 { font-size: 18px; font-family: var(--font); }
.steps-cards p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.api-doc { max-width: none; }
.api-doc h2 { margin-top: 56px; }
@media (max-width: 900px) { .api-nav { position: static; } }

/* ---------- redesign: sign in / create account ---------- */
.main-bare { flex: 1; display: flex; }
.auth-screen { flex: 1; display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-side { flex: 1 1 420px; background: var(--navy); color: #fff; padding: 40px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-pitch { display: flex; flex-direction: column; gap: 24px; max-width: 30rem; }
.auth-pitch h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.auth-side .perks { margin: 0; gap: 14px; color: var(--band-text); }
.auth-side .perks li { align-items: center; }
.auth-note { font-size: 13px; color: #c9d1e3; }
.auth-main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.auth-tabs { display: flex; background: var(--sunken); border-radius: 12px; padding: 4px; gap: 4px; }
.auth-tabs a { flex: 1 1 0; text-align: center; border-radius: 9px; min-height: 44px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.auth-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 35, 63, .15); }
.auth-box h2 { font-size: 30px; margin-bottom: 6px; }
.auth-box .sub { color: var(--ink-2); font-size: 15px; }
.auth-box form .field input { min-height: 48px; }
.auth-back { text-align: center; padding: 10px; font-size: 15px; }
@media (max-width: 900px) { .auth-screen { min-height: 0; } .auth-side { gap: 28px; padding-block: 28px; } }

/* Kept from the old styles: pill row on the navy band (admin stats ranges) and the Pro card on the account page. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; color: #dfe6f5; text-decoration: none; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--navy-line); text-transform: capitalize; font-size: 14.5px; }
.jump a:hover { background: var(--navy-2); }
.plan-card-pro { border: 2px solid var(--signal); }

/* ---------- guides ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.guide-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-list a:hover { border-color: var(--ink); }
.guide-list strong { font: 700 20px/1.25 var(--display); }
.guide-list span { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.article-head h1 { max-width: 22ch; }
.article-head p { max-width: 64ch; }
.article-head .article-date { font-size: 14px; color: #a9b6d3; margin-top: 18px; }
.crumbs-dark { color: #a9b6d3; }
.crumbs-dark a { color: var(--band-text); }
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 24px; }
.article-body { flex: 999 1 560px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.7; }
.article-body h2 { font-size: 26px; }
.article-body li { line-height: 1.6; }
.article-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article-aside { position: sticky; top: 16px; padding-top: 48px; }
.aside-links-dark li + li { border-top-color: var(--navy-line); }
.aside-links-dark a { color: #fff; }
@media (max-width: 900px) { .article-aside { position: static; padding-top: 0; } }
