/* ==========================================================================
   FlipConverto design system · v2 (Nov 2026)
   One stylesheet for every page. No web fonts, no framework, no JS needed
   for layout. Motion is an enhancement and switches off for reduced motion.
   ========================================================================== */

:root {
  --bg: #fbfaff;
  --bg-2: #f4f1fd;
  --surface: #ffffff;
  --surface-2: #f8f6fe;
  --glass: rgba(255, 255, 255, .72);
  --text: #15121f;
  --text-2: #3a3650;
  --muted: #67627f;
  --line: #e9e5f5;
  --line-2: #dbd6ee;
  --brand: #6d28d9;
  --brand-ink: #5b21b6;
  --brand-2: #2563eb;
  --brand-soft: #f2ecff;
  --accent: #f59e0b;
  --ok: #047857;
  --ok-soft: #e7f7ef;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --grad: linear-gradient(135deg, #7c3aed 0%, #5b4cf0 45%, #2563eb 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 18, 54, .06);
  --shadow: 0 1px 2px rgba(23, 18, 54, .05), 0 6px 20px -6px rgba(23, 18, 54, .10);
  --shadow-lg: 0 2px 4px rgba(23, 18, 54, .04), 0 24px 60px -18px rgba(76, 29, 149, .28);
  --ring: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a14;
    --bg-2: #120f1d;
    --surface: #16131f;
    --surface-2: #1b1727;
    --glass: rgba(24, 20, 36, .72);
    --text: #efecf9;
    --text-2: #cfcae4;
    --muted: #a39ec0;
    --line: #272238;
    --line-2: #352f4b;
    --brand: #a78bfa;
    --brand-ink: #c4b5fd;
    --brand-2: #60a5fa;
    --brand-soft: #211b38;
    --ok: #34d399;
    --ok-soft: #10251c;
    --bad: #f87171;
    --bad-soft: #2c1414;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .75);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--brand-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
p, li { text-wrap: pretty; }
code, kbd { font: .88em var(--mono); background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; }

.wrap { width: min(100% - 32px, 760px); margin-inline: auto; }
.wrap-wide { width: min(100% - 32px, 1140px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}
@supports not (animation-timeline: scroll()) { .site-header { border-bottom-color: var(--line); } }
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-in linear both; animation-timeline: scroll(); animation-range: 0 120px; }
  @keyframes header-in { to { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(23, 18, 54, .35); } }
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.08rem; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo svg { flex: none; width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(109, 40, 217, .35)); }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--brand-soft); }
.header-cta { margin-left: 4px; }
@media (max-width: 640px) {
  .header-inner { gap: 6px; min-height: 58px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 9px; font-size: .88rem; }
  .site-header .header-cta { display: none; }
}
@media (max-width: 360px) { .logo span { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--grad);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer;
  font: 700 1rem/1.1 var(--font); color: #fff; text-decoration: none; white-space: nowrap;
  background: var(--b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -8px rgba(91, 33, 182, .65);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 28px -10px rgba(91, 33, 182, .7); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--brand), var(--shadow); }
.btn-small { padding: 9px 15px; font-size: .92rem; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn-light { background: #fff; color: #3b1d8f; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn-light:hover { color: #2a136b; }

/* ---------- Generic page typography ---------- */
main { padding-block: 40px 72px; }
main.home { padding-block: 0 24px; }
h1 { font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 16px; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 1.12rem; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose h2 { scroll-margin-top: 90px; }
.prose img { border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose blockquote { margin: 18px 0; padding: 6px 18px; border-left: 4px solid var(--brand); color: var(--text-2); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.t-center { text-align: center; }
.t-right { text-align: right; }

/* ---------- Converter (tool pages) ---------- */
.answer { font-size: 1.1rem; color: var(--text-2); border-left: 4px solid; border-image: var(--grad) 1; padding: 4px 0 4px 16px; margin: 0 0 8px; }
.tool {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; margin: 26px 0 10px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
}
.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 8px;
  border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 16px;
  padding: 38px 16px; cursor: pointer;
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--brand-soft) 90%, transparent), transparent 70%), var(--surface-2);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.drop:hover { border-color: var(--brand); }
.drop.over { border-color: var(--brand); transform: scale(1.01); background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 10%); }
.drop strong { font-size: 1.15rem; }
.drop .btn { pointer-events: none; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.options { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; font-size: .95rem; align-items: center; }
.options label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.options select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.options input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.status { min-height: 1.6em; margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.results { list-style: none; padding: 0; margin: 8px 0 0; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.item-main { min-width: 0; display: grid; }
.item-name { font-weight: 700; overflow-wrap: anywhere; }
.item-meta { font-size: .88rem; color: var(--muted); }
.item.ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.item.failed { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); background: var(--bad-soft); }
.item.failed .item-meta { color: var(--bad); }
.item.working .item-meta::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.bulk { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.noscript { padding: 12px; border-radius: 10px; background: var(--bad-soft); margin-top: 12px; }
.tool-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.handoff-note { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--brand-ink); background: var(--brand-soft); padding: 8px 12px; border-radius: 10px; margin: 0 0 12px; }

/* ---------- Tables, FAQ, misc content ---------- */
.steps { padding-left: 1.3em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface-2); font-weight: 700; font-size: .85rem; letter-spacing: .01em; }
tr:last-child td { border-bottom: 0; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; color: var(--muted); font-size: .88rem; white-space: normal; }
.post-body .table-wrap { margin: 1.4em 0; }
.post-body .table-wrap :is(th, td) { white-space: normal; vertical-align: top; }
.post-body .table-wrap td { min-width: 7.5rem; line-height: 1.45; }
.post-body .table-wrap td:first-child { font-weight: 600; color: var(--text); }

.faq details {
  border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  interpolate-size: allow-keywords;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; font-weight: 700; cursor: pointer; padding: 15px 34px 15px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.byline { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.placeholder { background: #fff3c4; color: #5c4400; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.post-meta { margin-top: -6px; }
.cover { margin: 16px 0 24px; }
.cover img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: var(--shadow-lg); }
.post-list { padding-left: 1.2em; }
.post-list li { margin-bottom: 8px; }
.post-cards { display: grid; gap: 14px; margin-top: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.post-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card p { margin: 0 0 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); }
.related { margin-top: 40px; }

/* ==========================================================================
   Home page
   ========================================================================== */

/* Hero */
.hero-home { position: relative; isolation: isolate; padding: 64px 0 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% 0;
  background:
    radial-gradient(38% 42% at 12% 18%, rgba(124, 58, 237, .22), transparent 70%),
    radial-gradient(34% 40% at 88% 12%, rgba(37, 99, 235, .20), transparent 70%),
    radial-gradient(30% 32% at 70% 88%, rgba(245, 158, 11, .10), transparent 70%);
  filter: saturate(1.1);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px 6px 8px;
  font-size: .86rem; font-weight: 600; color: var(--text-2);
  background: var(--glass); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow b { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 3px 8px; border-radius: 999px; }
.hero-home h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 850; }
.hl {
  position: relative; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.12em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 40 2, 80 2, 110 6 S 170 11, 198 4' fill='none' stroke='%23f59e0b' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .9;
}
.hero-lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 56ch; margin: 0 0 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: .93rem; font-weight: 600; color: var(--text-2); }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

/* Floating file chips around the drop card (illustration) */
.hero-drop { position: relative; }
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 14px; font-size: .8rem; line-height: 1.25;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -16px rgba(23, 18, 54, .45);
}
.float-chip b { display: block; font-size: .82rem; color: var(--text); font-family: var(--mono); font-weight: 700; }
.float-chip small { color: var(--muted); font-size: .74rem; }
.fcx { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 800 .66rem var(--mono); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.fcx-ok { color: #fff; background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 8px 16px -8px rgba(5, 150, 105, .8); }
.fc-in { top: -22px; left: -34px; transform: rotate(-3deg); }
.fc-out { bottom: -50px; right: -22px; transform: rotate(2deg); }
@media (prefers-reduced-motion: no-preference) {
  .fc-in { animation: float-a 6s ease-in-out infinite; }
  .fc-out { animation: float-b 7s ease-in-out infinite; }
  @keyframes float-a { 50% { transform: rotate(-2deg) translateY(-8px); } }
  @keyframes float-b { 50% { transform: rotate(3deg) translateY(7px); } }
}
@media (max-width: 1100px) { .fc-in { left: -8px; } .fc-out { right: -6px; } }
@media (max-width: 640px) { .float-chip { display: none; } }

/* Smart drop */
.smartdrop {
  --angle: 0deg;
  position: relative; padding: 14px; border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
}
.smartdrop::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 40%, #7c3aed, #2563eb, #f59e0b, transparent 60% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .0; transition: opacity .3s;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.smartdrop:hover::before, .smartdrop.is-over::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .smartdrop::before { animation: orbit 4.5s linear infinite; }
  @keyframes orbit { to { --angle: 360deg; } }
}
.sd-zone {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; cursor: pointer;
  padding: 40px 22px 34px; border-radius: 18px;
  background:
    radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, var(--brand-soft) 95%, transparent), transparent 72%),
    var(--surface);
  border: 1.5px dashed color-mix(in srgb, var(--brand) 38%, var(--line));
  transition: border-color .2s, transform .25s var(--ease), background .2s;
}
.sd-zone:hover, .smartdrop.is-over .sd-zone { border-color: var(--brand); }
.smartdrop.is-over .sd-zone { transform: scale(.99); }
.sd-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sd-zone:focus-within { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.sd-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(91, 33, 182, .8), inset 0 1px 0 rgba(255,255,255,.3); }
.sd-icon svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .sd-zone:hover .sd-icon, .smartdrop.is-over .sd-icon { animation: bob .9s var(--ease) infinite alternate; }
  @keyframes bob { to { transform: translateY(-5px); } }
}
.sd-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.sd-sub { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.sd-zone .btn { pointer-events: none; margin-top: 6px; }
.sd-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 6px 2px; font-size: .86rem; color: var(--muted); }
.sd-meta .lock { display: inline-flex; align-items: center; gap: 6px; }
.sd-meta svg { width: 15px; height: 15px; }
.fmt-row { display: inline-flex; align-items: center; gap: 6px; }
.fmt { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); text-decoration: none; }
.fmt:hover { color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.sd-status { margin: 10px 6px 2px; min-height: 0; font-size: .92rem; }
.sd-status:empty { display: none; }
.sd-status.warn { color: #9a5b00; }
.sd-status.ok { color: var(--ok); }
.drag-veil {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s;
}
.drag-veil span { font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--grad); padding: 14px 22px; border-radius: 16px; box-shadow: var(--shadow-lg); }
body.dragging .drag-veil { opacity: 1; }

/* Sections */
.section { padding: 84px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 12px; }
.section-head p { color: var(--text-2); font-size: 1.06rem; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.tool-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, var(--line)), var(--shadow-lg); }
.tool-card h3 { margin: 4px 0 0; font-size: 1.45rem; letter-spacing: -.03em; }
.tool-card p { margin: 0; color: var(--text-2); }
.tc-top { display: flex; justify-content: space-between; align-items: center; }
.pair { display: inline-flex; align-items: center; gap: 8px; }
.pair .chip { font: 800 .82rem var(--mono); padding: 6px 10px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pair .chip-to { color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(91, 33, 182, .7); }
.pair svg { width: 18px; height: 18px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .live::before { animation: pulse 2s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
}
.ticks { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .93rem; color: var(--text-2); }
.ticks li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.ticks svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 3px; }
.tc-cta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--brand-ink); }
.tc-cta svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
a.tool-card:hover .tc-cta svg { transform: translateX(4px); }
.tool-card-next { background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); box-shadow: inset 0 0 0 1px var(--line); justify-content: center; }
.tool-card-next h3 { font-size: 1.2rem; }
.tool-card-next .icon-bubble { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--brand-ink); }
.tool-card-next .icon-bubble svg { width: 22px; height: 22px; }
.tool-card-next a { font-weight: 800; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* How it works */
.how-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.how-grid h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 14px; }
.how-grid > div > p { color: var(--text-2); }
.how-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; counter-reset: s; }
.how-steps li { position: relative; padding-left: 54px; margin: 0; counter-increment: s; color: var(--text-2); }
.how-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(91, 33, 182, .8);
}
.how-steps strong { display: block; color: var(--text); font-size: 1.05rem; }
.flow { margin: 0; padding: 26px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.flow svg { display: block; width: 100%; height: auto; }
.flow figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.flow .node rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.flow .node.mid rect { fill: url(#fc-grad); stroke: none; }
.flow .node text { fill: var(--text); font: 700 13px var(--font); }
.flow .node.mid text { fill: #fff; }
.flow .node .sub { fill: var(--muted); font-weight: 500; font-size: 11px; }
.flow .node.mid .sub { fill: rgba(255, 255, 255, .8); }
.flow .ico { stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow .node.mid .ico { stroke: #fff; }
.flow .wire { stroke: var(--brand); stroke-width: 2; fill: none; stroke-dasharray: 5 6; }
.flow .wire-bad { stroke: var(--line-2); stroke-width: 2; fill: none; stroke-dasharray: 3 6; }
.flow .cloud { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.flow .cloud-text { fill: var(--muted); font: 700 12px var(--font); }
.flow .cross { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }
.flow .note { fill: var(--bad); font: 700 11.5px var(--font); }
.flow .arrowhead { fill: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .flow .wire { animation: flow 1.2s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -22; } }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-card {
  position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bento-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, var(--line)), var(--shadow); }
.bento-card h3 { margin: 14px 0 6px; font-size: 1.12rem; letter-spacing: -.02em; }
.bento-card p { margin: 0; color: var(--text-2); font-size: .96rem; }
.b-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent); }
.b-icon svg { width: 22px; height: 22px; }
.b-wide { grid-column: span 4; }
.b-half { grid-column: span 3; }
.b-third { grid-column: span 2; }
.b-dark { background: #13101f; color: #efecf9; box-shadow: inset 0 0 0 1px #2a2540, var(--shadow-lg); }
.b-dark p { color: #c9c3e3; }
@media (prefers-color-scheme: dark) { .b-dark { background: linear-gradient(135deg, #2b1b63, #141238 70%); box-shadow: inset 0 0 0 1px #3b2f73, var(--shadow-lg); } }
.b-dark .b-icon { background: rgba(167, 139, 250, .14); color: #c4b5fd; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25); }
.b-dark::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, .55), transparent); pointer-events: none; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.meta-pills span { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.meta-pills .off { text-decoration: line-through; color: var(--bad); background: var(--bad-soft); box-shadow: none; }
.b-dark .meta-pills span { background: rgba(255,255,255,.06); color: #ddd8f3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.zip-stack { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.zip-stack span { width: 38px; height: 46px; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 12px -6px rgba(23,18,54,.3); display: grid; place-items: center; font: 800 9px var(--mono); color: var(--muted); transition: transform .3s var(--ease); }
.zip-stack span:nth-child(1) { transform: rotate(-8deg) translateY(2px); }
.zip-stack span:nth-child(2) { transform: rotate(-3deg); }
.zip-stack span:nth-child(3) { transform: rotate(3deg); }
.zip-stack span:nth-child(4) { transform: rotate(8deg) translateY(2px); }
.zip-stack i { width: 26px; height: 2px; margin: 0 6px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 9px); }
.zip-stack span:last-child { width: 46px; height: 52px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(91, 33, 182, .8); transform: none; font-size: 10px; }
.bento-card:hover .zip-stack span:not(:last-child) { transform: none; }
.cta-fine { margin: 14px 0 0 !important; font-size: .86rem; color: rgba(255, 255, 255, .7) !important; letter-spacing: .02em; }

.hero-grid > *, .how-grid > *, .verify-grid > *, .tool-grid > *, .bento > *, .compare > * { min-width: 0; }

/* Verify (DevTools drawing) */
.verify-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.verify-grid h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 14px; }
.verify-grid ol { padding-left: 1.2em; color: var(--text-2); }
.devtools { margin: 0; border-radius: 16px; overflow: hidden; background: #1e1e24; color: #d6d6de; font: 12.5px/1.4 var(--mono); box-shadow: 0 0 0 1px #2c2c35, var(--shadow-lg); }
.dt-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2a2a32; border-bottom: 1px solid #34343e; }
.dt-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #4b4b56; }
.dt-chrome i:nth-child(1) { background: #ff5f57; } .dt-chrome i:nth-child(2) { background: #febc2e; } .dt-chrome i:nth-child(3) { background: #28c840; }
.dt-tabs { display: flex; gap: 16px; margin-left: 14px; font: 600 12px var(--font); color: #9c9ca8; }
.dt-tabs b { color: #e8e8ef; border-bottom: 2px solid #7aa2ff; padding-bottom: 2px; }
.devtools table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.devtools th, .devtools td { padding: 7px 12px; border-bottom: 1px solid #2c2c35; white-space: nowrap; background: none; color: inherit; font-weight: 500; }
.devtools th { color: #9c9ca8; font-size: 11.5px; text-align: left; background: #24242b; }
.devtools td:nth-child(2) { color: #8bdc8b; }
.devtools td:last-child, .devtools th:last-child { text-align: right; }
.devtools tr.dt-local td { color: #c4b5fd; background: rgba(124, 58, 237, .14); border-bottom: 0; }
.dt-foot { display: flex; justify-content: space-between; padding: 8px 12px; background: #24242b; color: #9c9ca8; font-size: 11.5px; }
.dt-foot b { color: #8bdc8b; }
.devtools + figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin-inline: auto; }
.cmp { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cmp h3 { margin: 0 0 16px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cmp li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0; color: var(--text-2); font-size: .97rem; }
.cmp li svg { width: 20px; height: 20px; margin-top: 2px; }
.cmp li b { color: var(--text); display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.cmp-them li svg { color: var(--muted); }
.cmp-us { position: relative; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); }
.cmp-us li svg { color: var(--ok); }
.cmp-us h3 .logo-mini { width: 26px; height: 26px; }

/* FAQ on the home page */
.faq-home { max-width: 780px; margin-inline: auto; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 56px 40px; text-align: center; color: #fff; background: #1b1238; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 15% 0%, rgba(124, 58, 237, .9), transparent 70%), radial-gradient(50% 80% at 90% 100%, rgba(37, 99, 235, .85), transparent 70%), radial-gradient(30% 50% at 60% 30%, rgba(245, 158, 11, .25), transparent 70%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.035em; }
.cta-band p { margin: 0 auto 24px; max-width: 52ch; color: rgba(255, 255, 255, .86); }

/* Home blog list */
.home-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-posts a { display: block; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.home-posts a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)), var(--shadow); color: var(--text); }
.home-posts strong { display: block; font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -.01em; }
.home-posts span { font-size: .85rem; color: var(--muted); }
.home-prose { padding: 24px 0; }
.more-link { margin: 22px 0 0; font-weight: 700; }

/* ==========================================================================
   Tool pages
   ========================================================================== */
main.toolpage { padding-top: 0; }
.tool-hero { position: relative; isolation: isolate; padding: 30px 0 18px; overflow: hidden; }
.tool-hero .hero-bg::before { inset: -30% -10% 0; }
.tool-head { max-width: 820px; margin: 0 auto; text-align: center; }
.tool-head .crumbs { margin-bottom: 18px; }
.tool-head h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 850; margin: 0 0 16px; }
.tool-head .answer { border: 0; padding: 0; margin: 0 auto 18px; max-width: 64ch; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-2); }
.tool-head .trust { justify-content: center; margin-bottom: 4px; }

/* Converter card */
.converter {
  max-width: 920px; margin: 26px auto 0; padding: 16px; border-radius: 26px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
}
.converter .drop { padding: 34px 18px 30px; border-radius: 18px; background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--brand-soft) 95%, transparent), transparent 72%), var(--surface); border: 1.5px dashed color-mix(in srgb, var(--brand) 38%, var(--line)); }
.converter .drop .sd-icon { width: 58px; height: 58px; border-radius: 18px; }
.drop-title { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.drop-hint { font-size: .88rem; color: var(--muted); }
.converter .drop.over .sd-icon { transform: translateY(-4px); }
.tool-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 14px 6px 4px; }
.seg-q { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; margin: 0; }
.seg-q legend { float: left; margin-right: 10px; font-size: .9rem; font-weight: 700; color: var(--text-2); padding: 0; }
.seg-q .seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg-q label { position: relative; cursor: pointer; }
.seg-q input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-q label span { display: block; padding: 6px 12px; border-radius: 9px; font-size: .88rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg-q label span small { font: 600 .72rem var(--mono); margin-left: 5px; opacity: .7; }
.seg-q input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(23,18,54,.12), inset 0 0 0 1px var(--line-2); }
.seg-q input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 1px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .sw { background: var(--grad); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.tool-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 4px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .93rem; color: var(--text-2); }
.tool-summary .bulk { margin: 0; }
.converter .status { margin: 10px 6px 0; font-size: .9rem; }
.converter .status:empty { display: none; }
.converter .results { margin: 6px 0 0; display: grid; gap: 8px; }
.converter .item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .converter .item { animation: item-in .35s var(--ease) both; } @keyframes item-in { from { opacity: 0; transform: translateY(6px); } } }
.thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item.working .thumb { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--brand-soft) 80%, #fff) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) { .item.working .thumb { animation: shimmer 1.2s linear infinite; } @keyframes shimmer { to { background-position: -150% 0; } } }
.item.failed .thumb::after { content: "!"; font-weight: 900; color: var(--bad); }
.converter .item.ok { background: var(--surface); border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); }
.converter .item.failed { background: var(--bad-soft); }
.item-name { font-family: var(--mono); font-size: .92rem; }
.item-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.itag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.itag.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.itag.cut { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.itag.warn { background: #fff4dc; color: #8a5300; box-shadow: none; }
.item-act { display: flex; align-items: center; gap: 10px; }
.delta { font: 800 .78rem var(--mono); padding: 3px 7px; border-radius: 8px; }
.delta.down { color: var(--ok); background: var(--ok-soft); }
.delta.up { color: #8a5300; background: #fff4dc; }
.tool-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 16px auto 0; font-size: .86rem; color: var(--muted); }
.tool-foot span { display: inline-flex; align-items: center; gap: 7px; }
.tool-foot svg { width: 16px; height: 16px; color: var(--brand-ink); }

/* Article + contents rail */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 56px; align-items: start; max-width: 1040px; padding-top: 44px; }
.doc { max-width: 720px; }
.doc > h2:first-child { margin-top: 8px; }
.toc { position: sticky; top: 88px; font-size: .88rem; }
.toc p { margin: 0 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0 0 0 2px; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); }
.toc a[aria-current] { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 700; }
.toc .toc-cta { margin-top: 16px; display: inline-flex; }
.toc-mobile { display: none; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 14px; }
.toc-mobile summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.toc-mobile ol { padding-left: 1.2em; margin: 0 0 12px; }
.toc-mobile a { text-decoration: none; }

/* Designed content blocks */
.step-cards { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: st; }
.step-cards li { position: relative; margin: 0; padding: 18px 16px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); counter-increment: st; font-size: .95rem; color: var(--text-2); }
.step-cards li::before { content: counter(st); position: absolute; top: 14px; right: 14px; font: 800 .78rem var(--mono); color: var(--muted); }
.step-cards .b-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
.step-cards strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.vs-table { margin: 18px 0 8px; }
.vs-table table { font-size: .93rem; }
.vs-table th:not(:first-child), .vs-table td:not(:first-child) { white-space: normal; }
.vs-table thead th:nth-child(2) { color: var(--muted); }
.vs-table thead th:nth-child(3) { color: var(--brand-ink); }
.vs-table td:first-child { font-weight: 700; color: var(--text); }
.kept-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.kept-col { padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kept-col h3 { margin: 0 0 10px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.kept-col h3 i { width: 10px; height: 10px; border-radius: 50%; }
.kept-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .92rem; color: var(--text-2); }
.kept-col li { margin: 0; }
.kept-col p { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.k-ok h3 i { background: var(--ok); }
.k-cut h3 i { background: var(--brand); }
.k-no h3 i { background: var(--muted); }
.k-ok { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 35%, var(--line)); }
.ios-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.ios { border-radius: 22px; padding: 16px; background: #f2f2f7; color: #111; box-shadow: inset 0 0 0 1px #e0e0e6, var(--shadow); font: 15px/1.3 -apple-system, "SF Pro Text", system-ui, sans-serif; }
.ios-path { font-size: .78rem; color: #6c6c70; margin: 0 0 10px; font-weight: 600; }
.ios-path b { color: #111; }
.ios-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.ios-note { font-size: .78rem; color: #6c6c70; margin: 8px 4px 0; }
.ios-group { background: #fff; border-radius: 12px; overflow: hidden; }
.ios-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid #e5e5ea; font-size: .95rem; }
.ios-row:last-child { border-bottom: 0; }
.ios-row .ck { color: #0a84ff; font-weight: 800; }
.ios-label { font-size: .72rem; text-transform: uppercase; color: #6c6c70; margin: 0 0 6px 14px; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) {
  .ios { background: #1c1c1e; color: #f2f2f7; box-shadow: inset 0 0 0 1px #2c2c2e; }
  .ios-group { background: #2c2c2e; }
  .ios-row { border-color: #3a3a3c; }
  .ios-path b { color: #f2f2f7; }
}
.os-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.os { padding: 18px 18px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.os h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.os h3 svg { width: 22px; height: 22px; }
.os ol { margin: 0; padding-left: 1.2em; font-size: .93rem; color: var(--text-2); }
.os li { margin-bottom: 6px; }
.os .path { font: 600 .84em var(--mono); color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.doc-meta { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; color: var(--muted); }
.doc-meta svg.mark { width: 40px; height: 40px; flex: none; }
.doc-meta strong { color: var(--text); }
.next-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.next-cards a { display: block; padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.next-cards a:hover { color: var(--text); transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)), var(--shadow); }
.next-cards small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 4px; }
.back-to-tool { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff; text-decoration: none; background: var(--grad); box-shadow: 0 14px 30px -10px rgba(91, 33, 182, .7); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.back-to-tool.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-tool:hover { color: #fff; }
.back-to-tool svg { width: 16px; height: 16px; }

@media (max-width: 1100px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc { max-width: 760px; width: 100%; min-width: 0; margin-inline: auto; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 700px) {
  .step-cards, .kept-grid, .ios-cards, .os-cards, .next-cards { grid-template-columns: 1fr; }
  .converter { padding: 10px; border-radius: 20px; }
  .converter .item { grid-template-columns: 52px 1fr; }
  .converter .item .item-act { grid-column: 1 / -1; justify-content: space-between; }
  .converter .item .item-act .btn { flex: 1; }
  .thumb { width: 52px; height: 52px; }
  .seg-q legend { display: none; }
  .tool-settings { gap: 12px 16px; }
}

/* ==========================================================================
   Standard, legal, 404 and blog pages
   ========================================================================== */
main.page { padding: 0 0 48px; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 34px 0 30px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.page-hero .hero-bg::before { inset: -40% -10% 0; }
.page-head .crumbs { margin-bottom: 18px; }
.page-head-wide { max-width: 1040px; }
.page-head-wide > * { max-width: 720px; }
.page-head .kicker { margin-bottom: 10px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 850; margin: 0 0 14px; }
.page-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); margin: 0; max-width: 62ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text-2); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.meta-chip svg { width: 15px; height: 15px; color: var(--brand-ink); }
.page-body { padding-top: 26px; }
.page-body > h2:first-child, .page-body > .bleed:first-child + h2 { margin-top: 32px; }

/* Prose refinements for every reading page */
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand-ink); font-weight: 800; }
.prose a:not(.btn):not(.contact-card):not(.post-tile):not(.post-feature) { text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose h2 { font-size: 1.55rem; letter-spacing: -.025em; margin: 46px 0 12px; }
.prose h3 { letter-spacing: -.015em; }

/* Break a block out of the reading column */
.bleed { position: relative; width: min(1040px, calc(100vw - 32px)); left: 50%; transform: translateX(-50%); margin: 26px 0 34px; }

/* About: principles, timeline, mini flow */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle { padding: 22px 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.principle:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, var(--line)), var(--shadow); }
.principle h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.principle p { margin: 0; font-size: .93rem; color: var(--text-2); }
.principle:first-child { background: linear-gradient(160deg, color-mix(in srgb, var(--brand-soft) 90%, var(--surface)), var(--surface)); }
.timeline { list-style: none; padding: 0; margin: 22px 0 10px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--line-2), var(--brand), var(--line-2)); }
.timeline li { position: relative; padding: 0 0 24px 34px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); }
.timeline li.is-now::before { background: var(--grad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.tl-when { display: block; font: 700 .78rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.timeline strong { display: block; font-size: 1.08rem; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--text-2); }
.mini-flow { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin: 24px 0 12px; padding: 34px 18px 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.mf-node { display: grid; justify-items: center; gap: 6px; min-width: 120px; padding: 14px 12px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; }
.mf-node svg { width: 24px; height: 24px; color: var(--text-2); }
.mf-node b { font-size: .9rem; }
.mf-node small { font-size: .74rem; color: var(--muted); margin-top: -4px; }
.mf-mid { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -12px rgba(91, 33, 182, .7); }
.mf-mid svg, .mf-mid small { color: rgba(255, 255, 255, .85); }
.mf-wire { width: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 11px); background-size: 22px 2px; }
@media (prefers-reduced-motion: no-preference) { .mf-wire { animation: wire 1s linear infinite; } @keyframes wire { to { background-position: 22px 0; } } }
.mf-server { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 700; color: var(--bad); white-space: nowrap; }
.mf-server s { color: var(--muted); text-decoration-color: var(--bad); text-decoration-thickness: 2px; margin-right: 4px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--radius-lg); color: var(--text); text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.contact-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)), var(--shadow-lg); }
.contact-card h3 { margin: 10px 0 0; font-size: 1.08rem; }
.contact-card p { margin: 0; font-size: .93rem; color: var(--text-2); }
.contact-card .tc-cta { padding-top: 10px; font-size: .92rem; }
.contact-card:hover .tc-cta svg { transform: translateX(4px); }
.email-pill { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -10px 0 30px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.email-pill > span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .95rem; }
.email-pill > span svg { width: 20px; height: 20px; color: var(--brand-ink); }

/* Cards that end a page */
.end-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 40px 0 0; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.end-card h3 { margin: 0 0 4px; font-size: 1.12rem; }
.end-card p { margin: 0; color: var(--text-2); font-size: .95rem; }
.end-card-brand { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #1b1238; box-shadow: var(--shadow-lg); }
.end-card-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, rgba(124, 58, 237, .85), transparent 70%), radial-gradient(60% 120% at 100% 100%, rgba(37, 99, 235, .8), transparent 70%); }
.end-card-brand p { color: rgba(255, 255, 255, .85); }

/* Legal */
.legal { counter-reset: sec; }
.legal > h2 { counter-increment: sec; display: flex; align-items: baseline; gap: 12px; }
.legal > h2::before { content: counter(sec, decimal-leading-zero); font: 800 .8rem var(--mono); color: var(--brand-ink); background: var(--brand-soft); padding: 3px 8px; border-radius: 8px; transform: translateY(-3px); }
.in-short { margin: 0 0 26px; padding: 20px 22px; border-radius: var(--radius-lg); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); }
.in-short h2 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); }
.in-short ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.in-short li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; font-size: .93rem; color: var(--text-2); }
.in-short li svg { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.in-short b { display: block; color: var(--text); }

/* 404 */
.nf { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 72px; }
.nf .hero-bg::before { inset: -30% -10% 0; }
.nf-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.nf-grid > * { min-width: 0; }
.nf-art { position: relative; height: 150px; margin-bottom: 8px; }
.nf-num { position: absolute; left: -6px; top: -26px; font: 900 clamp(7rem, 16vw, 11rem)/1 var(--font); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--brand) 55%, transparent); background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(37, 99, 235, .06)); -webkit-background-clip: text; background-clip: text; user-select: none; }
.nf-chip { position: absolute; left: 190px; top: 84px; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -16px rgba(23, 18, 54, .45); transform: rotate(-4deg); font-size: .8rem; }
.nf-chip .fcx svg { width: 18px; height: 18px; }
.nf-chip b { display: block; font: 700 .82rem var(--mono); text-decoration: line-through; text-decoration-color: var(--bad); }
.nf-chip small { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .nf-chip { animation: float-a 6s ease-in-out infinite; } }
.nf h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 14px; }
.nf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.nf-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.nf-link:hover { color: var(--text); transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)), var(--shadow); }
.nf-link svg { width: 22px; height: 22px; flex: none; color: var(--brand-ink); }
.nf-link b { display: block; font-size: .95rem; }
.nf-link small { color: var(--muted); font-size: .8rem; }
.nf-link-main { grid-column: 1 / -1; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(91, 33, 182, .8); }
.nf-link-main:hover { color: #fff; box-shadow: 0 18px 34px -14px rgba(91, 33, 182, .9); }
.nf-link-main svg, .nf-link-main small { color: rgba(255, 255, 255, .85); }

/* Blog index */
.blog-wrap { padding-top: 34px; }
.post-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.post-feature:hover { color: var(--text); transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, var(--line)), var(--shadow-lg); }
.pf-img, .pt-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-img { min-height: 280px; }
.pf-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 30px 32px; }
.pf-body h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; }
.pf-body p { margin: 0; color: var(--text-2); }
.pf-tag { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 999px; }
.pf-meta { font-size: .84rem; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.post-tile { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.post-tile:hover { color: var(--text); transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, var(--line)), var(--shadow); }
.pt-img { aspect-ratio: 16 / 9; height: auto; }
.pt-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pt-body h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.3; }
.pt-body p { margin: 0; font-size: .92rem; color: var(--text-2); }
.cover-empty { display: grid; place-items: center; aspect-ratio: 16 / 9; color: color-mix(in srgb, var(--brand) 55%, transparent); background: radial-gradient(60% 80% at 20% 20%, rgba(124, 58, 237, .25), transparent 70%), radial-gradient(60% 80% at 80% 80%, rgba(37, 99, 235, .22), transparent 70%), var(--surface-2); }
.cover-empty svg { width: 34px; height: 34px; }
.post-feature .cover-empty { aspect-ratio: auto; min-height: 280px; }
.pager { margin-top: 30px; }

/* Blog post */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
.post-cover { margin-top: 26px; }
.pc-img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); display: block; }
.doc-grid.no-toc { grid-template-columns: minmax(0, 760px); justify-content: center; }
.post-body { font-size: 1.06rem; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-weight: 600; }
.related-posts { margin-top: 56px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: #fff; background: #1b1238; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .5); transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .nf-grid { grid-template-columns: 1fr; gap: 34px; }
  .post-feature { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .principles, .post-grid, .in-short ul, .nf-links { grid-template-columns: 1fr; }
  .nf-link-main { grid-column: auto; }
  .nf-chip { left: 110px; top: 64px; }
  .nf-art { height: 120px; }
  .mf-wire { width: 22px; }
  .mf-node { min-width: 92px; padding: 12px 8px; }
  .pf-body { padding: 22px; }
  .legal > h2 { gap: 9px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); font-size: .93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 52px 0 36px; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.footer-col h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin: 6px 0 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: .86rem; }
.footer-bottom .dot { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- Consent notice ---------- */
.consent { position: fixed; inset: auto 16px 16px 16px; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); padding: 16px 18px; font-size: .92rem; z-index: 60; }
.consent p { margin: 0 0 10px; }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Motion: page transitions + reveal on scroll ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .how-grid, .verify-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-home { padding: 40px 0 56px; }
  .tool-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-wide, .b-half, .b-third { grid-column: span 1; }
  .b-wide { grid-column: span 2; }
  .home-posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr; }
  .b-wide { grid-column: span 1; }
  .compare { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; border-radius: 22px; }
  .item { flex-direction: column; align-items: stretch; }
  .item-act .btn { width: 100%; }
  th, td { padding: 9px 10px; }
  .devtools th:nth-child(3), .devtools td:nth-child(3) { display: none; }
  .devtools td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .devtools th, .devtools td { padding: 7px 9px; }
  .hl { white-space: normal; }
}

/* ==========================================================================
   Tools platform (Nov 2026): hubs, tool cards, shared runner, announcements, ads
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo-img { width: 34px; height: 34px; object-fit: contain; }

/* Hub search + chips */
.hub-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 22px 0 0; padding: 0 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transition: box-shadow .2s; }
.hub-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand), var(--ring), var(--shadow); }
.hub-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.hub-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1.05rem var(--font); color: var(--text); padding: 15px 0; }
.hub-search kbd { font: 700 .75rem var(--mono); padding: 2px 8px; border-radius: 7px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.hub { padding: 26px 0 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text-2); font: 700 .9rem var(--font); cursor: pointer; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s, color .15s, box-shadow .15s, transform .15s var(--ease); }
.chip-btn svg { width: 16px; height: 16px; color: var(--brand-ink); }
.chip-btn span { font: 700 .75rem var(--mono); color: var(--muted); }
.chip-btn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--brand); transform: translateY(-1px); }
.chip-btn.active { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(91, 33, 182, .8); }
.chip-btn.active svg, .chip-btn.active span { color: rgba(255, 255, 255, .85); }

/* Tool cards */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { position: relative; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.tcard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)), var(--shadow-lg); }
.tcard-link { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 46px 16px 16px; color: var(--text); text-decoration: none; height: 100%; }
.tcard-link:hover { color: var(--text); }
.tcard-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent); transition: background .2s, color .2s; }
.tcard-ic svg { width: 22px; height: 22px; }
.tcard:hover .tcard-ic { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(91, 33, 182, .7); }
.tcard-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tcard-title { font-weight: 800; letter-spacing: -.015em; font-size: 1.02rem; }
.tcard-text { font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.tcard-cat { font-size: .76rem; font-weight: 700; color: var(--muted); }
.tbadge { justify-self: start; display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.tbadge-new { background: #e7f7ef; color: #047857; }
.tbadge-popular { background: #fff4dc; color: #8a5300; }
.tbadge-beta { background: #eaf2ff; color: #1d4ed8; }
@media (prefers-color-scheme: dark) { .tbadge-new { background: #10251c; color: #34d399; } .tbadge-popular { background: #2b220b; color: #fbbf24; } .tbadge-beta { background: #0f1d33; color: #93c5fd; } }
.fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, transform .15s var(--ease); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { background: var(--surface-2); color: var(--accent); }
.fav.on { color: var(--accent); }
.fav.on svg { fill: currentColor; }
.fav:active { transform: scale(.9); }
.tool-tags { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -6px 0 14px; }
.fav-page { position: static; width: auto; height: auto; display: inline-flex; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 700 .82rem var(--font); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); }
.fav-page svg { width: 15px; height: 15px; }

/* Hub rows and groups */
.hub-row { margin: 0 0 22px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.hub-row h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hub-row h2 svg { width: 16px; height: 16px; color: var(--accent); fill: currentColor; }
.hub-row h2 svg[stroke] { fill: none; color: var(--brand-ink); }
.mini-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-cards a { padding: 7px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--text); }
.mini-cards a:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-ink); }
.hub-group { margin: 0 0 34px; }
.hub-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.hub-group-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.hub-group-head h2 svg { width: 22px; height: 22px; color: var(--brand-ink); }
.hub-group-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: .92rem; text-decoration: none; }
.hub-group-head a svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.hub-group-head a:hover svg { transform: translateX(3px); }
.hub-group-desc { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.hub-group:not(:has(.hub-group-desc)) .hub-group-head { margin-bottom: 14px; }
.hub-empty { text-align: center; padding: 40px 16px; }
.hub-empty .b-icon { margin: 0 auto 12px; }
.hub-empty h2 { font-size: 1.25rem; margin: 0 0 6px; }
.hub-empty p { color: var(--muted); }
.hub-banner img { width: 100%; height: auto; max-height: 280px; object-fit: cover; border-radius: var(--radius-lg); margin-top: 22px; }
.hub-article { padding-bottom: 30px; }
.hub-more { padding: 0 0 56px; }
.hub-more h2 { font-size: 1rem; margin: 0 0 12px; }
.collection { margin: 0 0 30px; padding: 20px; border-radius: var(--radius-lg); background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--brand-soft) 90%, transparent), transparent 70%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.collection-head h2 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.02em; }
.collection-head p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.snippet > :first-child { margin-top: 0; }

/* Shared tool runner */
.runner { display: grid; gap: 12px; }
.rn-pane { display: grid; align-content: start; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.rn-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rn-head > label, .rn-head > span:first-child { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.rn-count { font: 600 .78rem var(--mono); color: var(--muted); margin-right: 6px; }
.rn-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 700 .84rem var(--font); cursor: pointer; transition: background .15s, color .15s; }
.rn-btn svg { width: 15px; height: 15px; }
.rn-btn:hover { background: var(--brand-soft); color: var(--brand-ink); }
.rn-text { width: 100%; min-height: 220px; resize: vertical; border: 0; outline: 0; padding: 14px 16px; font: 1rem/1.6 var(--font); color: var(--text); background: var(--surface); display: block; }
.rn-text.mono { font: .93rem/1.65 var(--mono); tab-size: 2; }
.rn-text[readonly] { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.rn-text:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-2); }
.rn-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 4px 6px; }
.rn-opt { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; margin: 0; font-size: .9rem; font-weight: 700; color: var(--text-2); }
.rn-opt legend { float: left; margin-right: 10px; padding: 0; }
fieldset.rn-opt .seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
fieldset.rn-opt label { position: relative; cursor: pointer; }
fieldset.rn-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
fieldset.rn-opt label span { display: block; padding: 6px 11px; border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
fieldset.rn-opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(23,18,54,.12), inset 0 0 0 1px var(--line-2); }
fieldset.rn-opt input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 1px; }
.rn-select select, .rn-number input { font: 600 .9rem var(--font); padding: 7px 10px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); color: var(--text); }
.rn-number input { width: 96px; }
.rn-generate { margin-left: auto; }
.rn-generate svg { width: 16px; height: 16px; }
.rn-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin: 0; background: var(--line); }
.rn-stats div { padding: 14px 16px; background: var(--surface); }
.rn-stats dt { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rn-stats dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 820; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.runner-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.runner-text .rn-options, .runner-text .rn-status { grid-column: 1 / -1; }
.runner-text .rn-options { order: -1; }
.rn-status.is-error { color: var(--bad); font-weight: 650; }
.rn-status.is-ok { color: var(--ok); }
.rn-files .results { padding: 8px; margin: 0; }
.rn-file { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.rn-file + .rn-file { border-top: 1px solid var(--line); }
.rn-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.rn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-meta { display: grid; min-width: 0; }
.rn-meta b { font: 700 .9rem var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-meta small { color: var(--muted); font-size: .84rem; }
.rn-file.is-error small { color: var(--bad); }
@media (max-width: 760px) {
  .runner-text { grid-template-columns: minmax(0, 1fr); }
  .rn-text { min-height: 160px; }
  .rn-btn span { display: none; }
  .rn-generate { margin-left: 0; width: 100%; }
}

/* Announcement bar */
.announce { position: relative; font-size: .92rem; font-weight: 600; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 8px 36px; text-align: center; }
.announce p { margin: 0; }
.announce a { font-weight: 800; color: inherit; text-underline-offset: 3px; }
.announce-brand { background: var(--grad); color: #fff; }
.announce-info { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 -1px 0 var(--line); }
.announce-warn { background: #fff4dc; color: #7a4a00; }
.announce-dark { background: #16131f; color: #efecf9; }
@media (prefers-color-scheme: dark) { .announce-warn { background: #2b220b; color: #fbbf24; } .announce-dark { background: #000; } }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .75; }
.announce-x:hover { opacity: 1; background: rgba(255, 255, 255, .15); }

/* Ad slots */
.ad { position: relative; display: block; margin: 22px auto; max-width: 100%; text-align: center; }
.ad-row { padding-top: 8px; }
.ad-label { display: block; margin: 0 0 6px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad-house { display: inline-grid; justify-items: center; gap: 8px; max-width: 100%; text-decoration: none; color: var(--text); }
.ad-house:hover { color: var(--text); }
.ad-house img { max-width: 100%; height: auto; border-radius: 14px; }
.ad-copy { display: grid; gap: 4px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ad-copy b { font-size: 1.02rem; }
.ad-copy span { color: var(--text-2); font-size: .92rem; }
.ad-copy em { font-style: normal; font-weight: 800; color: var(--brand-ink); }
.adsbygoogle { display: block; min-height: 90px; }
.ad-in-tool { width: min(100% - 32px, 920px); }
.ad-sidebar { margin: 18px 0 0; }
.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; padding: 8px 40px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -18px rgba(23, 18, 54, .4); }
.ad-sticky .ad-label { margin: 0 0 4px; }
.ad-overlay { position: fixed; inset: 0; z-index: 60; margin: 0; display: none; place-content: center; padding: 20px; background: rgba(20, 14, 40, .55); }
.ad-overlay.show { display: grid; }
.ad-overlay > :not(.ad-close) { max-width: min(560px, 92vw); }
.ad-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); z-index: 1; }
@media (max-width: 767px) { .ad-only-desktop { display: none !important; } }
@media (min-width: 768px) { .ad-only-mobile { display: none !important; } }

/* Footer quick links */
.footer-quick { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-quick a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-quick a:hover { color: var(--brand-ink); }

/* Header menu on phones: scrolls sideways instead of widening the page (menus can now hold more links). */
@media (max-width: 640px) {
  .header-inner .logo { flex: none; }
  .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 18px; }
  .nav::-webkit-scrollbar { display: none; }
}
