/* ==========================================================================
   Rankbench design system — "precision instrument"
   Hairline rules, measurement ticks, a green signal and an amber marker.
   One self-hosted font, system mono, light + dark, mobile first.
   ========================================================================== */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  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;
}

:root {
  --bg: #F3F5F1;
  --surface: #FFFFFF;
  --surface-2: #E9EDE6;
  --ink: #0D1511;
  --ink-2: #36423B;
  --muted: #5B6760;
  --line: #D7DDD3;
  --line-strong: #B9C2B4;
  --green: #17704B;
  --green-ink: #FFFFFF;
  --green-soft: #DDEFE4;
  --amber: #F2B236;
  --amber-ink: #2A1D00;
  --good: #17704B; --ok: #A8660B; --bad: #B42318;
  --shadow: 0 1px 2px rgb(13 21 17 / .05), 0 10px 30px -14px rgb(13 21 17 / .18);
  --shadow-lift: 0 2px 4px rgb(13 21 17 / .06), 0 24px 48px -20px rgb(13 21 17 / .3);
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --wrap: 1180px; --gutter: 16px; --header-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;

  /* Compatibility with the tools' original markup */
  --paper: var(--bg); --panel: var(--surface); --ink-soft: var(--ink-2); --ink-faint: var(--muted);
  --signal: var(--green); --signal-dark: var(--green); --signal-tint: var(--green-soft);
  --flag: var(--bad); --flag-tint: #FBE9E7; --radius-sm: var(--r-sm); --radius-md: var(--r);
}
:root[data-theme='dark'] {
  --bg: #0A0F0C; --surface: #111814; --surface-2: #17201B; --ink: #EAF0EB; --ink-2: #C2CCC5; --muted: #8E9A92;
  --line: #222D27; --line-strong: #33403A; --green: #4CC38A; --green-ink: #06110B; --green-soft: #13291E;
  --good: #4CC38A; --ok: #F2B236; --bad: #FF8A7A; --flag-tint: #2B1512;
  --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px -14px rgb(0 0 0 / .7);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .5), 0 24px 48px -20px rgb(0 0 0 / .85);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0A0F0C; --surface: #111814; --surface-2: #17201B; --ink: #EAF0EB; --ink-2: #C2CCC5; --muted: #8E9A92;
    --line: #222D27; --line-strong: #33403A; --green: #4CC38A; --green-ink: #06110B; --green-soft: #13291E;
    --good: #4CC38A; --ok: #F2B236; --bad: #FF8A7A; --flag-tint: #2B1512;
    --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px -14px rgb(0 0 0 / .7);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .5), 0 24px 48px -20px rgb(0 0 0 / .85);
    color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .tick { width: 14px; height: 8px; background: linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / 4px 100%; opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; color: var(--green); }
.pill.is-amber { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
a.pill:hover { border-color: var(--ink); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg) !important; font: 600 14.5px/1 var(--sans); white-space: nowrap; text-decoration: none !important;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-green { background: var(--green); border-color: var(--green); color: var(--green-ink) !important; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--sans); letter-spacing: -.035em; margin-right: auto; }
.logo svg { width: 28px; height: 28px; }
.logo .bar-fill { transform-origin: left; transition: transform .6s var(--ease); }
.logo:hover .bar-fill { transform: scaleX(1.25); }
.nav-main { display: none; }
.nav-main a { position: relative; padding: 8px 2px; font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.nav-main a:hover, .nav-main a[aria-current='page'] { color: var(--ink); }
.nav-main a::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-main a:hover::after, .nav-main a[aria-current='page']::after { transform: scaleX(1); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: none; }
}
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded='true'] .i-close { display: block; }
.menu-btn[aria-expanded='true'] .i-menu { display: none; }
.header-cta { display: none; }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: 20px var(--gutter) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.drawer.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; }
.drawer h2 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.drawer .drawer-tools { display: flex; flex-wrap: wrap; gap: 8px; }
body.drawer-open { overflow: hidden; }
@media (min-width: 1120px) {
  .nav-main { display: flex; gap: 22px; margin-right: 14px; }
  .header-cta { display: inline-flex; margin-left: 6px; }
  .menu-btn, .drawer { display: none; }
}

/* ---------- Tool search ---------- */
.finder { position: relative; }
.finder-field { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.finder-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft), var(--shadow); }
.finder-field .icon { color: var(--muted); }
.finder-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.finder-field kbd { display: none; font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; margin-right: 6px; }
@media (min-width: 768px) { .finder-field kbd { display: inline-block; } }
.finder-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 6px; max-height: min(60vh, 420px); overflow: auto; }
.finder-list[hidden] { display: none; }
.finder-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); }
.finder-list a[aria-selected='true'], .finder-list a:hover { background: var(--surface-2); }
.finder-list .f-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.finder-list b { display: block; font-size: 14.5px; }
.finder-list small { font-size: 12.5px; color: var(--muted); }
.finder-list .empty-row { padding: 14px 12px; color: var(--muted); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 100%; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); opacity: .55; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 7.6vw, 72px); line-height: 1.0; letter-spacing: -.045em; margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--amber); border-radius: 2px; z-index: -1; transform-origin: left; animation: mark 1s .4s var(--ease) both; }
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lede { font-size: clamp(17px, 2.1vw, 19.5px); color: var(--ink-2); max-width: 580px; margin-bottom: 26px; }
.hero .finder { max-width: 560px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (min-width: 768px) { .hero { padding: 80px 0 72px; } }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }

/* Live demo instrument in the hero */
.instrument { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.instrument-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.instrument-head .lights { display: flex; gap: 6px; }
.instrument-head .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.instrument-head .lights i:first-child { background: var(--green); }
.instrument-body { padding: 18px 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.instrument label { margin: 0; }
.instrument input { width: 100%; }
.gauge { display: grid; gap: 6px; }
.gauge-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--green); transition: width .25s var(--ease), background .25s; }
.gauge-fill[data-state='over'] { background: var(--bad); }
.gauge-fill[data-state='near'] { background: var(--amber); }
.gauge-ticks { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); }
.gauge-read { display: flex; justify-content: space-between; font: 13px var(--mono); color: var(--ink-2); }
.gauge-read b { color: var(--ink); }
.mini-serp { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 12px 14px; font-family: arial, sans-serif; background: var(--bg); }
.mini-serp .u { font-size: 12px; color: var(--muted); }
.mini-serp .t { font-size: 18px; line-height: 1.3; color: #1a0dab; margin: 2px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:root[data-theme='dark'] .mini-serp .t { color: #9cb8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mini-serp .t { color: #9cb8ff; } }
.mini-serp .d { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* Stats strip */
.stats-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-strip ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.stats-strip li { padding: 18px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip li:nth-child(2n) { border-right: 0; }
.stats-strip li:nth-last-child(-n+2) { border-bottom: 0; }
.stats-strip b { display: block; font: 650 26px/1.1 var(--sans); letter-spacing: -.03em; }
.stats-strip span { font: 12px var(--mono); color: var(--muted); }
@media (min-width: 900px) { .stats-strip ul { grid-template-columns: repeat(4, 1fr); } .stats-strip li { border-bottom: 0; padding: 22px; } .stats-strip li:nth-child(2n) { border-right: 1px solid var(--line); } .stats-strip li:last-child { border-right: 0; } }

/* ---------- Tool cards ---------- */
.group-block + .group-block { margin-top: 44px; }
.group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.group-title .g-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.group-title h3 { font-size: 20px; }
.group-title p { font-size: 14px; color: var(--muted); }
.tool-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.tool-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.tool-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card .t-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; transition: transform .4s var(--ease), background .2s, color .2s; }
.tool-card:hover .t-icon { transform: rotate(-6deg) scale(1.05); background: var(--amber); color: var(--amber-ink); }
.tool-card .t-icon .icon { width: 21px; height: 21px; }
.tool-card h3 { font-size: 16.5px; letter-spacing: -.015em; }
.tool-card h3 a::after { content: ''; position: absolute; inset: 0; }
.tool-card p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.tool-card .t-num { position: absolute; top: 14px; right: 16px; font: 11.5px var(--mono); color: var(--muted); }
.tool-card[hidden] { display: none; }

/* Principles */
.principles { display: grid; gap: 14px; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.principle { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.principle .icon { width: 26px; height: 26px; color: var(--green); margin-bottom: 14px; }
.principle h3 { font-size: 19px; margin-bottom: 8px; }
.principle p { color: var(--ink-2); font-size: 15px; }

/* ---------- Page heads ---------- */
.page-head { padding: 34px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 5.6vw, 54px); letter-spacing: -.04em; margin: 14px 0 12px; }
.page-head .lede { color: var(--ink-2); font-size: 17.5px; max-width: 700px; }
.page-head .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font: 12.5px var(--mono); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a:hover { color: var(--green); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.filters button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Tool workspace (original tool markup, restyled) ---------- */
.workspace { display: grid; grid-template-columns: 1fr; margin: 28px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.workspace-main { padding: 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.workspace-side { padding: 20px; background: var(--surface-2); min-width: 0; }
@media (min-width: 900px) { .workspace { grid-template-columns: minmax(0, 1fr) 380px; } .workspace-main { padding: 28px; border-bottom: 0; border-right: 1px solid var(--line); } .workspace-side { padding: 28px; } }
.workspace label, .tool-page label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.workspace textarea, .workspace input[type='text'], .workspace input[type='url'], .workspace input[type='email'], .workspace input[type='tel'], .workspace input[type='number'], .workspace input[type='password'], .workspace select, .instrument input, .form input, .form select, .form textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line-strong) !important; background: var(--bg) !important; color: var(--ink) !important; padding: 11px 14px !important; font: 15.5px/1.5 var(--sans) !important; border-radius: var(--r-sm) !important; transition: border-color .2s, box-shadow .2s;
}
.workspace textarea, .form textarea { min-height: 220px; resize: vertical; }
.workspace textarea:focus, .workspace input:focus, .workspace select:focus, .instrument input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--green) !important; box-shadow: 0 0 0 4px var(--green-soft); }
.workspace input[type='file'] { width: 100%; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--bg); font-size: 14.5px; }
.workspace input[type='file']::file-selector-button { margin-right: 12px; border: 0; border-radius: 6px; padding: 8px 12px; background: var(--ink); color: var(--bg); font: 600 13.5px var(--sans); cursor: pointer; }
.workspace input[type='range'] { width: 100%; accent-color: var(--green); }
.workspace input[type='checkbox'], .workspace input[type='radio'] { accent-color: var(--green); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.field { margin-bottom: 18px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.field-hint a, .workspace a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
#statusText:empty { display: none; }
.char-limit { font: 12.5px var(--mono); color: var(--muted); text-align: right; margin-top: 5px; }
.char-limit.warn { color: var(--bad); }
.char-limit.ok { color: var(--good); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.readout .num { display: block; font: 650 26px/1.15 var(--sans); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout .lbl { display: block; margin-top: 4px; font: 11.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
[data-rating='good'] { color: var(--good) !important; }
[data-rating='ok'] { color: var(--ok) !important; }
[data-rating='poor'] { color: var(--bad) !important; }
.copy-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.meta-output { background: #0B1310; color: #CFE6D8; font: 13px/1.65 var(--mono); padding: 16px; border-radius: var(--r); white-space: pre-wrap; word-break: break-word; }
.meta-output.is-error { color: #FFB4A8; }
.serp-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-family: arial, sans-serif; }
.serp-url { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
:root[data-theme='dark'] .serp-title { color: #9cb8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .serp-title { color: #9cb8ff; } }
.serp-desc { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
table.kw-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
table.kw-table th, table.kw-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.kw-table th { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.kw-table td.num { font-family: var(--mono); }
.qr-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.idea { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bench { border-top: 1px solid var(--line); }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--green-soft); color: var(--ink-2); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; margin: 18px 0; }
.notice-warn { border-left-color: var(--bad); background: var(--flag-tint); }
.notice[hidden] { display: none; }
.workspace .section, .tool-content .section { padding: 0; border: 0; }

/* ---------- Tool page body ---------- */
.tool-layout { display: grid; gap: 40px; padding: 8px 0 20px; }
@media (min-width: 1024px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.tool-content { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.tool-content h2 { font-size: clamp(23px, 3vw, 28px); color: var(--ink); margin: 1.8em 0 .5em; }
.tool-content h2:first-child { margin-top: 0; }
.tool-content h3 { font-size: 20px; color: var(--ink); margin: 1.4em 0 .4em; }
.tool-content p + p, .tool-content ul, .tool-content ol, .tool-content table { margin-top: 1em; }
.tool-content ul, .tool-content ol { padding-left: 1.3em; }
.tool-content li + li { margin-top: .4em; }
.tool-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.tool-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; display: block; overflow-x: auto; }
.tool-content th, .tool-content td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-content th { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0 !important; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 14px var(--mono); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 650; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 400 24px var(--mono); color: var(--green); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 16px; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 20px; }
.side-card + .side-card { margin-top: 16px; }
.side-card h2 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-list { list-style: none; display: grid; gap: 2px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; font-size: 14.5px; font-weight: 550; }
.side-list a:hover { background: var(--surface-2); }
.side-list .icon { color: var(--green); }
@media (min-width: 1024px) { .tool-aside .sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.privacy-note .icon { color: var(--green); margin-top: 2px; }

/* Ads (only rendered once an AdSense ID is configured) */
.ad { margin: 28px 0; min-height: 280px; display: grid; place-items: center; }
.ad::before { content: 'Advertisement'; display: block; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---------- Prose pages ---------- */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(22px, 3vw, 27px); color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* Forms (directory, waitlist, contact) */
.form { display: grid; gap: 14px; max-width: 640px; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.form textarea { min-height: 120px; }
.form-note { font-size: 14px; min-height: 1.3em; }
.form-note.ok { color: var(--good); }
.form-note.err { color: var(--bad); }
.hp { position: absolute; left: -5000px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
@media (min-width: 768px) { .panel { padding: 36px; } }
.panel-ink { background: var(--ink); color: var(--bg); border: 0; }
.panel-ink .eyebrow, .panel-ink p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.panel-ink h2 { color: var(--bg); }
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; min-height: 50px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); background: transparent; color: inherit; padding: 0 16px; font-size: 16px; }
.inline-form input::placeholder { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.inline-form .btn { background: var(--amber); border-color: var(--amber); color: var(--amber-ink) !important; min-height: 50px; }
.panel-ink .form-note.ok { color: var(--amber); }
.dir-list { display: grid; gap: 10px; }
.dir-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dir-item:hover { border-color: var(--ink); }
.dir-item b { display: block; }
.dir-item span { font-size: 14px; color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty p { max-width: 440px; margin: 0 auto 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); max-width: 340px; margin: 12px 0 0; }
.footer-grid h2 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid ul a { color: var(--ink-2); }
.footer-grid ul a:hover { color: var(--green); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding: 18px 0 28px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lift); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.rv .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv .reveal.in { opacity: 1; transform: none; }
.fade-up { animation: fadeUp .7s var(--ease) both; }
.fade-up.d1 { animation-delay: .06s; } .fade-up.d2 { animation-delay: .12s; } .fade-up.d3 { animation-delay: .18s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .tool-aside, .ad { display: none !important; } }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.post-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card::before { content: ''; height: 3px; width: 36px; border-radius: 2px; background: var(--amber); }
.post-cat { position: relative; z-index: 2; align-self: flex-start; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.post-card h3 { font-size: 20px; line-height: 1.25; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.post-meta { margin-top: auto; padding-top: 6px; display: flex; gap: 14px; font: 12px var(--mono); color: var(--muted); }
.filters .pill[aria-current='page'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.post-byline .avatar, .avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 14px var(--mono); flex: none; }
.post-byline b { display: block; font-size: 14.5px; }
.post-byline span { font-size: 13px; color: var(--muted); }
.post-body { font-size: 18px; }
.post-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: #0B1310; color: #CFE6D8; padding: 16px; border-radius: var(--r); overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); }
.try-tool { margin-top: 2em !important; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--green-soft); display: grid; gap: 10px; }
.try-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; color: var(--ink) !important; transition: border-color .2s; }
.try-row:hover { border-color: var(--ink); }
.try-row .t-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.try-row b { display: block; font-size: 15.5px; }
.try-row small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.try-row > .icon:last-child { margin-left: auto; color: var(--muted); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2em !important; font-size: 14px; color: var(--muted); }
.share-row a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none !important; color: var(--ink-2) !important; }
.share-row a:hover { border-color: var(--ink); }

/* AI Corner */
.ai-corner { position: relative; overflow: hidden; margin-bottom: 44px; padding: 26px 20px 22px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); }
@media (min-width: 768px) { .ai-corner { padding: 34px 32px 30px; } }
.ai-corner::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 35%, transparent), transparent 70%); pointer-events: none; }
.ai-head { position: relative; z-index: 1; max-width: 680px; margin-bottom: 22px; display: grid; gap: 10px; justify-items: start; }
.ai-head h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--bg); }
.ai-head p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.ai-head .link-arrow { color: var(--amber); }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ai-badge .icon { width: 14px; height: 14px; }
.ai-corner .post-grid { position: relative; z-index: 1; }
.ai-corner .post-card { background: color-mix(in srgb, var(--bg) 6%, transparent); border-color: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); }
.ai-corner .post-card:hover { border-color: var(--amber); }
.ai-corner .post-card p, .ai-corner .post-meta { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ai-corner .post-cat { color: var(--amber); }
.post-card.is-ai .post-cat::before { content: '✦ '; }
.prose .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Data & file tools ---------- */
.dropzone { display: flex !important; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 18px; margin-bottom: 16px !important; border: 2px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.dropzone:hover, .dropzone.is-over { border-color: var(--green); background: var(--green-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; padding: 0 !important; border: 0 !important; }
.dz-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 22px; flex: none; }
.dz-text b { display: block; font-size: 16px; color: var(--ink); }
.dz-text small { font-size: 13px; color: var(--muted); font-weight: 400; }
.dz-file { flex-basis: 100%; font: 13px var(--mono); color: var(--green); }
.dz-file:empty { display: none; }
.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.paste-box { margin-bottom: 16px; }
.paste-box summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.data-preview { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.data-preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-preview th, .data-preview td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.data-preview th { font: 600 12px var(--sans); background: var(--surface-2); color: var(--ink); position: sticky; top: 0; }
.downloads { display: grid; gap: 10px; }
.downloads .btn { width: 100%; }
.file-list { list-style: none; display: grid; gap: 4px; max-height: 260px; overflow: auto; font: 13px var(--mono); }
.file-list a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* ---------- More free tools ---------- */
.util-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .util-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .util-grid { grid-template-columns: repeat(4, 1fr); } }
.util-col { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.util-col h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 12px; }
.util-col .g-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.util-col .g-icon .icon { width: 17px; height: 17px; }
.util-col ul { list-style: none; display: grid; gap: 4px; }
.util-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); }
.util-col a:hover { color: var(--green); }
.more-head { font-size: clamp(24px, 3.4vw, 30px); margin: 56px 0 6px; padding-top: 28px; border-top: 1px solid var(--line); }
.more-sub { color: var(--muted); margin-bottom: 26px; }

/* ---------- PDF & image tools ---------- */
@media (min-width: 900px) { .workspace-wide { grid-template-columns: minmax(0, 1fr) 300px; } }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 8px; }
.page-grid > .field-hint { grid-column: 1 / -1; }
.pg { position: relative; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; user-select: none; }
.pg:hover { border-color: var(--line-strong); }
.pg.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.pg.is-drag { opacity: .4; }
.pg[draggable='true'] { cursor: grab; }
.pg-thumb { aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 6px; background: var(--surface-2); transition: transform .25s var(--ease); }
.pg-thumb canvas { max-width: 100%; max-height: 100%; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.pg-loading { width: 60%; height: 70%; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pg-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line); }
.pg-num { font: 600 12px var(--mono); margin-right: auto; }
.pg-btn { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px; line-height: 1; padding: 0; }
.pg-btn:hover:not(:disabled) { border-color: var(--ink); }
.pg-btn:disabled { opacity: .35; }
.pg-check input { width: 18px !important; height: 18px !important; margin: 0 !important; }
.file-order { list-style: decimal inside; display: grid; gap: 6px; margin: 0 0 16px; padding: 0; }
.file-order:empty { display: none; }
.file-order li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: 14px; }
.fo-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fo-meta { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.fo-btns { display: flex; gap: 4px; }
.fo-btns button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 28px; height: 28px; padding: 0; }
.fo-btns button:disabled { opacity: .35; }
.crop-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
@media (min-width: 560px) { .crop-inputs { grid-template-columns: repeat(4, 1fr); } }
.crop-preview, .crop-area { margin: 6px 0 16px; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; touch-action: none; user-select: none; }
.crop-stage canvas, .crop-stage img { max-width: 100%; max-height: 520px; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.crop-box { position: absolute; border: 2px solid var(--green); box-shadow: 0 0 0 9999px rgb(0 0 0 / .45); cursor: move; pointer-events: none; }
.crop-area .crop-stage { cursor: crosshair; overflow: hidden; border-radius: 4px; }
.img-out { margin-top: 16px; }
.img-out img { max-width: 100%; max-height: 360px; border: 1px solid var(--line); border-radius: var(--r-sm); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.pp-stage { display: grid; place-items: center; margin: 4px 0 16px; padding: 16px; border-radius: var(--r); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.pp-stage canvas { width: min(100%, 300px); height: auto; aspect-ratio: 1; cursor: grab; touch-action: none; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 14px; }
.progress-bar { height: 100%; width: 0; background: var(--green); transition: width .2s; }

.media-preview { display: block; width: 100%; max-height: 320px; margin: 12px 0; border-radius: var(--r); border: 1px solid var(--line); background: #000; }
audio.media-preview { background: none; border: 0; max-height: none; }
img.media-preview { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }

/* AI writing tools */
.ai-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-height: 260px; max-height: 70vh; overflow: auto; }
.ai-output { font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ai-output h2, .ai-output h3, .ai-output h4 { font-size: 17px; margin: 18px 0 8px; letter-spacing: -.01em; }
.ai-output h2:first-child, .ai-output h3:first-child { margin-top: 0; }
.ai-output p { margin: 0 0 10px; }
.ai-output ol, .ai-output ul { margin: 0 0 12px; padding-left: 22px; }
.ai-output li { margin: 4px 0; }
.ai-output hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.ai-output code { font: 13px var(--mono); background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.ai-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ai-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: ai-pulse 1s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .ai-dot { animation: none; } }
.soon-badge { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 4px 9px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tool-card.is-soon { border-style: dashed; }
.tool-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.tool-card.is-soon .t-icon { background: var(--bg); color: var(--muted); }
.tool-card.is-soon:hover .t-icon { transform: none; background: var(--bg); color: var(--muted); }
.tool-card.is-soon .soon-badge { position: absolute; top: 12px; right: 12px; margin: 0; }
.tool-card.is-soon h3 { padding-right: 96px; }
/* About: founder */
.founder-card { display: grid; gap: 18px; align-items: center; margin: 0 0 28px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.founder-card img { width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: center 20%; border-radius: var(--r); display: block; }
.prose .founder-card p { margin: 0; }
.founder-name { font: 650 22px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.founder-role { color: var(--muted); margin-top: 4px !important; }
.founder-mail { margin-top: 10px !important; font-size: 14.5px; }
@media (min-width: 640px) { .founder-card { grid-template-columns: 240px 1fr; } .founder-card img { aspect-ratio: 1; max-height: none; } }
.founder-sign { font-weight: 600; } .founder-sign span { font-weight: 400; color: var(--muted); }
