/* =========================================================================
 * ZIP File Creator — styles.
 * Professional, flat, deep rose (#c9184a) identity. Amber (#b45309)
 * only as a small accent — never as a gradient, never on large text.
 *
 * COLOURS ARE LITERAL VALUES, not var() references: the review browser
 * used by the site owner does not resolve CSS custom properties, so every
 * rule that paints a button, header, input, border or text uses a hex
 * value directly. The :root block below only documents the palette (and
 * keeps the --brand/--brand-2 declarations the cross-tool accent scan
 * looks for); no rule depends on it.
 *
 * Palette: bg #f6f7fb · surface #ffffff · surface-2 #eef1f8 ·
 * ink #141a2e · ink-soft #4b5573 · ink-faint #8a93ad ·
 * hairline #e2e7f2 · visible border #c9d2e0 · input border #b6bfce ·
 * brand #c9184a · brand hover #a3123d · brand-soft #fdeef1 ·
 * brand-2 #ff4d6d · amber #b45309 · ok #0f9d58 / #e5f6ec ·
 * warn #b45309 / #fef3e2 · err #dc2626 / #fdecec.
 * All motion disabled under prefers-reduced-motion.
 * ========================================================================= */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #141a2e;
  --ink-soft: #4b5573;
  --ink-faint: #8a93ad;
  --line: #e2e7f2;
  --brand: #c9184a;
  --brand-2: #ff4d6d;
  --brand-soft: #fdeef1;
  --ok: #0f9d58;
  --ok-soft: #e5f6ec;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --err: #dc2626;
  --err-soft: #fdecec;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 26, 46, 0.08);
  --shadow-lg: 0 18px 50px rgba(201, 24, 74, 0.16);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: #f6f7fb;
  color: #141a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.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: 16px; top: -60px; z-index: 100;
  background: #141a2e; color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #dbe2ec;
  box-shadow: 0 1px 6px rgba(20, 26, 46, 0.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #141a2e; font-weight: 800; font-size: 1.05rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #c9184a;
  box-shadow: 0 10px 30px rgba(20, 26, 46, 0.08);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: #4b5573; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 10px; transition: background 0.18s, color 0.18s;
}
.nav a:hover, .nav a:focus-visible { background: #eef1f8; color: #141a2e; outline: none; }

/* ---------------- hero ---------------- */
.hero {
  padding: 26px 0 12px;
  background: radial-gradient(600px 280px at 15% 0%, rgba(201, 24, 74, 0.10), transparent 60%);
}
.hero h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; max-width: none;
}
.hero h1 .accent { color: #c9184a; }
.lede { font-size: 1rem; color: #4b5573; max-width: none; margin: 0 0 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trust-row li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ffffff; border: 1px solid #c9d2e0; border-radius: 999px;
  padding: 5px 11px; font-size: 0.82rem; font-weight: 600; color: #3f4a63;
  box-shadow: 0 1px 3px rgba(20, 26, 46, 0.05);
}
.trust-row .dot { width: 7px; height: 7px; border-radius: 50%; background: #0f9d58; box-shadow: 0 0 0 3px #e5f6ec; }

/* ---------------- tool card ---------------- */
.tool-section { padding: 8px 0 32px; }
.tool-card {
  background: #ffffff; border: 1.5px solid #c9d2e0;
  border-radius: 18px; box-shadow: 0 18px 50px rgba(201, 24, 74, 0.16);
  padding: clamp(20px, 3vw, 30px);
}
.tool-title { font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 4px; }
.tool-sub { font-size: 0.92rem; color: #4b5573; margin: 0 0 16px; }

/* ---------------- dropzone ---------------- */
.dropzone {
  border: 2px dashed #b6bfce; border-radius: 14px; background: #f6f7fb;
  padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: #c9184a; background: #fdeef1; outline: none; }
.dropzone.drag-over { border-color: #c9184a; background: #fdeef1; border-style: solid; }
.dropzone .dz-title { font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.dropzone .dz-hint { color: #4b5573; font-size: 0.9rem; margin: 0; }
.dropzone .dz-hint kbd {
  background: #ffffff; border: 1px solid #c9d2e0; border-radius: 6px;
  padding: 1px 7px; font: inherit; font-size: 0.85em;
}
.add-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

/* ---------------- file list ---------------- */
.file-list-wrap { margin-top: 18px; overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; table-layout: fixed; }
.file-table th, .file-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e7f2;
  vertical-align: middle; overflow-wrap: anywhere; word-break: break-all;
}
.file-table th { color: #4b5573; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.file-table th:nth-child(1) { width: 46%; }
.file-table th:nth-child(2) { width: 16%; }
.file-table th:nth-child(3) { width: 16%; }
.file-table th:nth-child(4) { width: 22%; }
.file-table td { min-width: 0; }
.path-input {
  width: 100%; font: inherit; font-size: 0.86rem; padding: 6px 8px;
  border: 1.5px solid #b6bfce; border-radius: 8px; background: #ffffff;
  color: #141a2e; min-width: 0;
}
.path-input:focus { outline: 3px solid rgba(201, 24, 74, 0.35); outline-offset: 2px; border-color: #c9184a; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.mini-btn {
  background: #ffffff; border: 1.5px solid #c9d2e0; border-radius: 8px;
  padding: 4px 9px; font: inherit; font-size: 0.82rem; font-weight: 700;
  color: #141a2e; cursor: pointer; line-height: 1.4;
}
.mini-btn:hover:not(:disabled) { background: #eef1f8; border-color: #b6bfce; }
.mini-btn:disabled { color: #8a93ad; cursor: not-allowed; background: #eef1f8; }
.mini-btn.danger { color: #dc2626; }
.mini-btn:focus-visible { outline: 3px solid rgba(201, 24, 74, 0.35); outline-offset: 2px; }
.empty-list { color: #8a93ad; font-size: 0.92rem; margin: 14px 0 0; }

/* ---------------- options ---------------- */
.form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin-top: 18px;
}
.field { min-width: 0; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #b6bfce;
  border-radius: 10px; background-color: #ffffff; color: #141a2e; min-width: 0;
}
.field input:focus, .field select:focus {
  outline: 3px solid rgba(201, 24, 74, 0.35); outline-offset: 2px; border-color: #c9184a;
}
.field .ctl-hint { display: block; margin-top: 4px; font-size: 0.85rem; color: #8a93ad; }
.archive-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }

/* ---------------- totals + progress ---------------- */
.totals {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px;
  padding: 12px 16px; background: #eef1f8; border: 1px solid #dbe2ec;
  border-radius: 12px; font-size: 0.92rem;
}
.totals span { color: #4b5573; }
.totals b { color: #141a2e; }
.totals .est-note { font-size: 0.82rem; color: #8a93ad; }
.progress-wrap { margin-top: 14px; }
.progress-wrap .progress-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.progress-track {
  height: 12px; background: #eef1f8; border: 1px solid #c9d2e0;
  border-radius: 999px; overflow: hidden;
}
.progress-fill { height: 100%; width: 0%; background: #c9184a; transition: width 0.2s; }
.warn-list { margin: 10px 0 0; padding: 0; list-style: none; }
.warn-list li {
  background: #fef3e2; border: 1px solid #f3c1c1; border-left: 4px solid #b45309;
  border-radius: 8px; padding: 8px 12px; margin: 6px 0; font-size: 0.9rem; color: #4b5573;
}
.warn-list li.err { background: #fdecec; border-left-color: #dc2626; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.92rem; text-decoration: none;
  padding: 10px 18px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: #c9184a; color: #fff; box-shadow: 0 4px 14px rgba(201, 24, 74, 0.28); }
.btn-primary:hover:not(:disabled) { background: #a3123d; transform: translateY(-1px); }
.btn-primary:disabled { background: #9aa5b5; color: #fff; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #ffffff; border: 1.5px solid #c9d2e0; color: #141a2e; }
.btn-ghost:hover:not(:disabled) { background: #eef1f8; border-color: #b6bfce; }
.btn-ghost:disabled { background: #eef1f8; color: #8a93ad; border-color: #c9d2e0; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid rgba(201, 24, 74, 0.4); outline-offset: 2px; }

/* batch bar */
.batch-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  border-top: 1px solid #e2e7f2; margin-top: 18px; padding-top: 16px;
}
.bb-text { font-weight: 700; }
.bb-text small { display: block; font-weight: 400; color: #8a93ad; font-size: 0.84rem; }
.bb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.res-hint { color: #4b5573; font-size: 0.92rem; line-height: 1.6; margin: 4px 0 10px; overflow-wrap: anywhere; }

/* ---------------- how it works ---------------- */
.scoring { padding: 4px 0 40px; }
.settings {
  background: #eef1f8; border: 1px solid #dbe2ec; border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
}
.settings-title { font-weight: 800; font-size: 1.25rem; margin: 0 0 8px; }
.settings .ctl-hint { font-size: 0.92rem; color: #4b5573; margin: 0 0 4px; }
.scoring-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; margin-top: 14px; }
.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.signal-list li { font-size: 0.9rem; line-height: 1.5; color: #4b5573; padding-left: 16px; position: relative; }
.signal-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #b45309; }
.signal-list li strong { color: #141a2e; }
.png-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.png-facts li { font-size: 0.92rem; color: #4b5573; padding-left: 18px; position: relative; }
.png-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; background: #c9184a;
}
.png-facts li strong { color: #141a2e; }
.png-alt { font-size: 0.92rem; color: #4b5573; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #dbe2ec; }
.png-alt a { color: #c9184a; font-weight: 700; }
.png-alt a:hover { color: #b45309; }

/* ---------------- privacy ---------------- */
.privacy { padding: 8px 0 44px; }
.privacy-card {
  background: linear-gradient(135deg, #2b0a14, #c9184a);
  color: #fbeef2; border-radius: 22px; padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 18px 50px rgba(201, 24, 74, 0.16);
}
.privacy-card h2 { color: #fff; margin: 0 0 10px; font-size: 1.4rem; }
.privacy-card p { margin: 0 0 16px; }
.net-meter {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 9px 16px; font-weight: 700; color: #fff;
}
.net-meter b { font-size: 1.15rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #34d399; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}
.verify-steps { margin: 16px 0 0; padding-left: 20px; }
.verify-steps li { margin: 6px 0; }
kbd {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px; padding: 1px 7px; font: inherit; font-size: 0.85em;
}
.tool-card kbd, .content kbd {
  background: #eef1f8; border-color: #e2e7f2; color: #141a2e;
}

/* ---------------- guide + FAQ ---------------- */
.content { padding: 20px 0 44px; }
.content .wrap { max-width: 68ch; }
.content h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 12px; }
.content h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.content p, .content li { color: #4b5573; }
.content ol, .content ul { padding-left: 22px; }
.content li { margin: 6px 0; }
.content code { background: #eef1f8; border: 1px solid #e2e7f2; border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }
.prose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.prose-card { background: #ffffff; border: 1px solid #dbe2ec; border-radius: 16px; padding: 16px 18px; }
.prose-card h3 { margin: 0 0 6px; }
.prose-card p { margin: 0; font-size: 0.93rem; }

.faq details {
  background: #ffffff; border: 1px solid #dbe2ec; border-radius: 12px;
  padding: 12px 16px; margin: 8px 0;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary:focus-visible { outline: 3px solid rgba(201, 24, 74, 0.35); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 10px 0 2px; }

/* ---------------- footer ---------------- */
.site-footer { background: #eef1f8; border-top: 1px solid #c9d2e0; padding: 22px 0 30px; color: #4b5573; font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer p:first-child { font-weight: 700; color: #141a2e; }
.site-footer .footer-note { color: #4b5573; }
.site-footer a { color: #c9184a; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .scoring-grid { grid-template-columns: minmax(0, 1fr); }
  .settings { padding: 18px 20px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 20px 0 8px; }
  .batch-bar { flex-direction: column; align-items: stretch; }
  .bb-actions { display: grid; grid-template-columns: 1fr; }
  .bb-actions .btn { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .file-table th:nth-child(3), .file-table td:nth-child(3) { display: none; }
  .file-table th:nth-child(1) { width: 52%; }
  .file-table th:nth-child(2) { width: 20%; }
  .file-table th:nth-child(4) { width: 28%; }
  .site-footer .wrap { flex-direction: column; gap: 2px; }
}

/* reduced motion: kill every animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
