:root {
  color-scheme: dark light;
  --bg: #101010;
  --bg-soft: #141414;
  --surface: #101010;
  --surface-2: #1a1a1a;
  --surface-3: #202020;
  --text: #f2f2f2;
  --text-strong: #ffffff;
  --muted: #bdbdbd;
  --muted-2: #8b949e;
  --border: #3d3a39;
  --border-soft: rgba(184, 179, 176, 0.22);
  --brand: #00d992;
  --brand-2: #2fd6a1;
  --brand-deep: #10b981;
  --danger: #ff8a7a;
  --ok: #00d992;
  --code-bg: #0c0c0c;
  --code-text: #f5f6f7;
  --shadow: none;
  --glow: 0 0 0 1px rgba(0, 217, 146, 0.18), 0 0 24px rgba(0, 217, 146, 0.08);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --max: 1560px;
  --mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f2;
  --bg-soft: #ebeee8;
  --surface: #ffffff;
  --surface-2: #f1f4ee;
  --surface-3: #e8eee6;
  --text: #151812;
  --text-strong: #101010;
  --muted: #4f5b52;
  --muted-2: #6f7b73;
  --border: #cbd4cc;
  --border-soft: rgba(16, 16, 16, 0.14);
  --brand: #00b87a;
  --brand-2: #0fa875;
  --brand-deep: #087a55;
  --code-bg: #101010;
  --code-text: #f5f6f7;
  --glow: 0 0 0 1px rgba(0, 184, 122, 0.22), 0 0 24px rgba(0, 184, 122, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "calt" 1, "rlig" 1;
  line-height: 1.625;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  overflow-x: clip;
}

html[data-theme="light"] body {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 16, 16, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

a { color: var(--brand-deep); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--brand); text-decoration-thickness: 0.14em; }


.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-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text-strong);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #101010;
  background: var(--brand);
  font-family: var(--mono);
  font-weight: 800;
  box-shadow: var(--glow);
}

.nav__links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text-strong); }

button, select, textarea, input { font: inherit; }

.button, button {
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.95rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
button:hover, .button:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(0, 217, 146, 0.08);
}
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.button--primary {
  background: var(--brand);
  color: #101010;
  border-color: var(--brand);
  box-shadow: var(--glow);
}
.button--ghost { background: transparent; }
.button--small { min-height: 2.25rem; padding: 0.45rem 0.72rem; font-size: 0.86rem; }

main, .site-footer { width: 100%; max-width: var(--max); min-width: 0; margin: 0 auto; padding: 0 2rem; }
.section {
  padding: 4rem 0;
  scroll-margin-top: 5.5rem;
  border-top: 1px dashed rgba(79, 93, 117, 0.40);
}
.section:first-child, .hero.section { border-top: 0; }
.section--tight { padding: 2.5rem 0; }

.hero {
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 1rem; color: var(--text-strong); }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); font-weight: 400; line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 400; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 64rem; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero__bullets { display: grid; gap: 0.5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; color: var(--muted); }
.hero__bullets li::before { content: ""; display: inline-block; width: 0.48rem; height: 0.48rem; margin-right: 0.65rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px rgba(0, 217, 146, 0.45); }
.mobile-break { display: none; }

.terminal-card {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: none;
}
.terminal-card__bar { display: flex; gap: 0.45rem; padding: 0.72rem 0.9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--border); }
.dot:nth-child(2) { background: var(--muted-2); }
.dot:nth-child(3) { background: var(--brand); }
.terminal-card pre { margin: 0; padding: 1.15rem; overflow: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.55; white-space: pre-wrap; }

.card, .badge-card, .step, .example, .faq-item, .info-card {
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.card__body { padding: 1.35rem; }

.tool-card { max-width: 100%; min-width: 0; overflow: hidden; }
.tool-header {
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.privacy-note { color: var(--text); font-weight: 600; }
.privacy-note::before { content: "●"; color: var(--brand); margin-right: 0.45rem; }

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem;
  min-width: 0;
}

.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label, .control-group__label { font-weight: 650; color: var(--text-strong); }
.help { color: var(--muted-2); font-size: 0.92rem; }

textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 24rem;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
}
textarea::placeholder { color: color-mix(in srgb, var(--muted-2) 80%, transparent); }

.controls {
  display: grid;
  gap: 1rem;
  padding: 0 1.35rem 1.35rem;
}
.control-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
  color: var(--text);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 500;
}
.checkbox input { margin-top: 0.28rem; accent-color: var(--brand); }
.action-row { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }
.status { min-height: 1.5rem; margin: 0; color: var(--muted); font-weight: 500; }

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.metric {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.metric dt { color: var(--muted-2); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; }
.metric dd { margin: 0.2rem 0 0; font-family: var(--mono); font-weight: 550; font-size: 0.95rem; color: var(--text-strong); }
.noise-panel { grid-column: 1 / -1; }
.noise-panel ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--muted); }


.tool-first {
  padding-top: 1.25rem;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.tool-first__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.72fr);
  gap: 1.25rem;
  align-items: center;
  min-width: 0;
}

.tool-first__intro h1,
.tool-first__intro .lead {
  margin-bottom: 0;
}

.tool-first__intro h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
}

.tool-first__intro .lead {
  max-width: 40rem;
  justify-self: end;
  padding-top: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.45;
}

.tool-first .tool-card {
  width: 100%;
}

.tool-first .tool-grid {
  grid-template-columns: 1fr;
}

.tool-bridge {
  position: relative;
  display: grid;
  gap: 0.45rem;
  align-self: stretch;
  align-content: center;
  justify-items: center;
  padding-top: 1.95rem;
}

.tool-bridge button {
  min-width: 7.5rem;
  white-space: nowrap;
}

.tool-bridge__copy {
  width: 9.5rem;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.tool-first textarea {
  min-height: 19.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.tool-first .metrics {
  padding: 1rem 1.1rem;
}

@media (min-width: 1040px) {
  .tool-first .tool-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 980px) {
  .tool-first__intro {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .tool-first__intro .lead {
    justify-self: start;
    max-width: 58rem;
  }
}

@media (max-width: 760px) {
  .tool-first {
    padding-top: 0.9rem;
  }
  .tool-first__intro h1 {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
  }
  .tool-first__intro .lead {
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .control-row--compact {
    grid-template-columns: 1fr;
  }
  .tool-bridge {
    align-self: stretch;
    justify-items: stretch;
    padding-top: 0;
  }
  .tool-bridge button {
    width: 100%;
  }
  .tool-bridge__copy {
    width: auto;
  }
  .tool-first textarea {
    min-height: 11.5rem;
  }
}


/* makejpeg-style lower page: tool first, then compact FAQ/directory/site links. */
.post-tool,
.tool-directory,
.site-info {
  padding: 1.25rem 0;
  border-top: 1px dashed rgba(79, 93, 117, 0.34);
}

.post-tool__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.post-tool__head h2,
.site-info h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.faq-list {
  display: grid;
  gap: 0.45rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-2));
}

.faq-list summary {
  cursor: pointer;
  padding: 0.72rem 0.85rem;
  color: var(--text-strong);
  font-weight: 650;
}

.faq-list details p {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  font-size: 0.92rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.directory-grid span {
  min-height: 4.6rem;
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.directory-grid strong {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.directory-grid small {
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.site-info p {
  margin-bottom: 0;
  max-width: 760px;
}

.site-info__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.site-info__links a {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-info__links a:hover {
  border-color: var(--brand);
}

.ad-slot[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-info {
    grid-template-columns: 1fr;
  }
  .site-info__links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 0.55rem;
    padding: 0.65rem 1rem;
  }
  .nav__links {
    gap: 0.5rem;
  }
  .nav__links a {
    font-size: 0.84rem;
  }
  .nav__links--compact a {
    display: none;
  }
  .button--small {
    padding: 0.42rem 0.62rem;
    font-size: 0.82rem;
  }
  main,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .tool-first__intro,
  .tool-card,
  .tool-grid,
  .field {
    min-width: 0;
  }
  .tool-first__intro h1 {
    overflow-wrap: break-word;
  }
  .mobile-break {
    display: inline;
  }
  .tool-grid {
    padding: 1rem;
  }
  .post-tool__head {
    display: grid;
    gap: 0.35rem;
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
}


.policy-section {
  max-width: 880px;
  margin: 0 auto;
  padding-top: 3.5rem;
}

.policy-section .eyebrow {
  margin-bottom: 0.85rem;
}

.policy-copy {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.policy-copy p,
.policy-copy ul {
  margin: 0;
}

.policy-copy h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  letter-spacing: -0.02em;
}

.policy-copy ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

.policy-copy li + li {
  margin-top: 0.35rem;
}
