/* Ethical Suite website - one stylesheet for every page. System fonts only (no Google Fonts = no tracking). */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f4;
  --card: #ffffff;
  --text: #17201a;
  --muted: #5b675e;
  --line: #dfe6e0;
  --brand: #2e7d32;
  --brand-strong: #1b5e20;
  --brand-soft: #e8f5e9;
  --on-brand: #ffffff;
  --accent: #f2b705;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(16, 32, 20, .06), 0 8px 24px rgba(16, 32, 20, .08);
  --radius: 14px;
  --max: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --bg-soft: #151c17; --card: #18201b; --text: #e6ede7; --muted: #9aa89d; --line: #2a352d;
    --brand: #5cb860; --brand-strong: #7fd082; --brand-soft: #1d2d20; --on-brand: #0b130d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --bg-soft: #151c17; --card: #18201b; --text: #e6ede7; --muted: #9aa89d; --line: #2a352d;
  --brand: #5cb860; --brand-strong: #7fd082; --brand-soft: #1d2d20; --on-brand: #0b130d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--card); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700;
  font-size: 1.1rem; font-family: var(--font-display); white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--brand-strong); }
.theme-btn { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px;
  width: 38px; height: 38px; cursor: pointer; font-size: 1rem; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin-top: 6px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 20px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-heart { background: #fff4f4; color: #b3261e; border-color: #f3c9c6; }
:root[data-theme="dark"] .btn-heart { background: #2a1717; border-color: #5a2a27; color: #ff9b94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-heart { background: #2a1717; border-color: #5a2a27; color: #ff9b94; } }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-sub { display: block; font-weight: 400; font-size: .78rem; opacity: .85; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; padding: 0; margin: 0; list-style: none; }
.badges li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: .85rem;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 16px; }
.hero-shot { position: relative; }
.hero-shot img { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-shot .float { position: absolute; width: 58%; right: -6%; bottom: -8%; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot .float { right: 0; bottom: -10%; width: 55%; }
  .hero-shot { margin-bottom: 40px; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.promise .ico { font-size: 1.6rem; }

.app-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.app-pill { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.app-pill img { width: 30px; height: 30px; }
.app-pill:hover { border-color: var(--brand); color: var(--text); }

.app-row { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 48px; align-items: center; padding: 44px 0;
  border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.app-row:first-of-type { border-top: 0; }
.app-row.flip .app-text { order: 2; }
.app-row img.shot { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-title { display: flex; align-items: center; gap: 14px; }
.app-title img { width: 56px; height: 56px; }
.app-title h3 { font-size: 1.55rem; margin: 0; }
.app-title .kicker { color: var(--muted); font-size: .95rem; }
.feat { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.feat li { padding-left: 26px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.formats span { font: 600 .78rem var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 900px) { .app-row { grid-template-columns: 1fr; gap: 22px; } .app-row.flip .app-text { order: 0; } }

/* compare table */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-size: .95rem; }
.compare td.yes { color: var(--brand-strong); font-weight: 600; }
.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* AI */
.ai-box { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; font-size: .95rem; }
.chat .u { justify-self: end; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 14px 14px 4px 14px; max-width: 85%; }
.chat .a { justify-self: start; background: var(--bg-soft); padding: 8px 14px; border-radius: 14px 14px 14px 4px; max-width: 90%; }
@media (max-width: 860px) { .ai-box { grid-template-columns: 1fr; } }

/* download */
.download-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.req { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.req li { display: flex; gap: 10px; }
.req b { min-width: 9em; }
.hash { font: .78rem var(--mono); word-break: break-all; background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
@media (max-width: 860px) { .download-card { grid-template-columns: 1fr; } }
.note { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* support */
.support { text-align: center; }
.support .btn { margin: 6px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ============================== online tools ============================== */
.tools-hero { padding-top: 48px; padding-bottom: 24px; }
.privacy-pill { max-width: 100%; display: inline-flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-strong);
  padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: .92rem; }
.tool-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding-bottom: 72px; }
.tool-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.tool-nav .group { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 10px 4px; font-weight: 700; }
.tool-nav button { all: unset; cursor: pointer; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; font-size: .96rem; }
.tool-nav button img { width: 22px; height: 22px; }
.tool-nav button:hover { background: var(--bg-soft); }
.tool-nav button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; }
.tool-nav button:focus-visible { outline: 3px solid var(--accent); }
@media (max-width: 860px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .tool-nav .group { display: none; }
  .tool-nav button { white-space: nowrap; border: 1px solid var(--line); }
}
.tool-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.tool-panel h2 { font-size: 1.6rem; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 34px 20px; text-align: center; cursor: pointer; transition: .15s;
  background: var(--bg-soft); }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.drop input { display: none; }
.drop .local-note { display: block; margin-top: 10px; color: var(--brand-strong); font-weight: 600; }
.files { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: .94rem; min-width: 0; }
.files .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.files button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 6px; width: 30px; height: 28px; cursor: pointer; }
.opts { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 16px 0; align-items: end; }
.opts label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.opts input[type="text"], .opts input[type="number"], .opts select { font: 1rem var(--font); padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 150px; }
.opts .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.run-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.progress { height: 8px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; flex: 1; min-width: 160px; }
.progress > div { height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.status { color: var(--muted); font-size: .92rem; }
.status.err { color: var(--danger); font-weight: 600; }
.results { margin-top: 18px; display: grid; gap: 8px; }
.results a.result { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; background: var(--brand-soft);
  color: var(--brand-strong); border-radius: 8px; padding: 10px 14px; font-weight: 600; min-width: 0; }
.results a.result span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.tool-desc { color: var(--muted); margin-bottom: 18px; }

/* simple pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-brand); background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-strong); }

/* ============================== one page per tool (made by make_tool_pages.py) ============================== */
.wrap.narrow { max-width: 920px; }
.tool-page { padding-bottom: 40px; }
.tool-page .crumbs { font-size: .9rem; color: var(--muted); margin: 28px 0 10px; }
.tool-page .crumbs a { color: var(--muted); }
.tool-page h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: .25em; }
.tool-page .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 14px; }
.tool-holder { margin-top: 22px; }
.tool-page .tool-panel > h2, .tool-page .tool-panel > .tool-desc { display: none; }
.seo { margin-top: 40px; }
.seo h2 { font-size: 1.45rem; margin-top: 1.6em; }
.steps { padding-left: 1.3em; display: grid; gap: 6px; }
.steps li::marker { color: var(--brand); font-weight: 700; }
.seo .faq { max-width: none; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-decoration: none; color: var(--text); transition: border-color .15s, transform .1s; }
.tool-card:hover { border-color: var(--brand); color: var(--text); transform: translateY(-1px); }
.tool-card span { display: grid; }
.tool-card small { color: var(--muted); font-size: .86rem; }
.app-promo { display: flex; gap: 16px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.app-promo div { flex: 1; min-width: 220px; }
.hub { padding-bottom: 60px; }
.hub-h { font-size: 1.3rem; margin: 30px 0 12px; }
.foot-tools { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 28px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.foot-col { display: grid; gap: 4px; align-content: start; }
.foot-col b { color: var(--text); margin-bottom: 4px; }

/* "Why I made this" */
.story-section { padding: 56px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.story { display: grid; grid-template-columns: 90px 1fr; gap: 10px; max-width: 900px; }
.story-mark { font: 700 120px/0.8 Georgia, "Times New Roman", serif; color: var(--brand); opacity: .35; }
.story h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.story p { font-size: 1.08rem; line-height: 1.7; }
.story-sign { color: var(--muted); font-style: italic; margin-top: 18px; }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; } .story-mark { font-size: 80px; } }
