/* ScreenshotPunch marketing site. Dark editorial. No frameworks, no external assets. */

:root {
  --bg: #0B0A0D;
  --bg-raised: #131118;
  --bg-inset: #17141d;
  --line: #262230;
  --line-soft: #1d1a25;
  --text: #ece8e0;
  --text-muted: #a49daf;
  --text-faint: #756e81;
  --accent: #e8c787;
  --accent-soft: rgba(232, 199, 135, 0.12);
  --accent-line: rgba(232, 199, 135, 0.35);
  --ok: #8fce9f;
  --ok-soft: rgba(143, 206, 159, 0.1);
  --bad: #e08a7a;
  --bad-soft: rgba(224, 138, 122, 0.1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #0b0a0d; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(11, 10, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark b { color: var(--accent); font-weight: 800; }

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  overflow-x: auto;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 56px 0 16px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}

p { margin-bottom: 14px; }
.prose p, .prose li { color: var(--text-muted); max-width: 68ch; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 62ch;
}

.updated {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 10px 0 0;
}

/* ---------- Page sections ---------- */

.page-hero { padding: 72px 0 40px; }
.section { padding: 8px 0 32px; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 48px 0;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}
table.spec th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-faint);
  font-weight: 600;
  padding: 12px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
table.spec td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
  vertical-align: top;
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec td.num, table.spec td code { font-family: var(--mono); font-size: 13.5px; color: var(--text); white-space: nowrap; }

/* ---------- Code ---------- */

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent);
}

pre {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 16px 0 24px;
  line-height: 1.55;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
}
pre code .c { color: var(--text-faint); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #0b0a0d; }
.btn-primary:hover { background: #f0d49e; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- Privacy note ---------- */

.privacy-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 24px 0;
  max-width: 640px;
}
.privacy-note strong { color: var(--accent); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }

/* ---------- Dropzone ---------- */

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin: 8px 0 24px;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent-line); }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.dropzone .dz-sub { font-size: 13.5px; color: var(--text-faint); margin: 0; }
.dropzone input[type="file"] { display: none; }

/* ---------- Tool options row ---------- */

.tool-options {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tool-options label { display: flex; align-items: center; gap: 8px; }
.tool-options input[type="color"] {
  width: 34px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  padding: 2px;
  cursor: pointer;
}
.tool-options .swatch-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.tool-options .swatch-btn:hover { border-color: var(--accent-line); color: var(--text); }

/* ---------- Results ---------- */

.results { display: grid; gap: 14px; margin: 8px 0 32px; }

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}
.result-card.pass { border-color: rgba(143, 206, 159, 0.4); }
.result-card.fail { border-color: rgba(224, 138, 122, 0.45); }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-file {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  word-break: break-all;
}
.result-verdict {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.result-verdict.ok { color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(143, 206, 159, 0.35); }
.result-verdict.bad { color: var(--bad); background: var(--bad-soft); border: 1px solid rgba(224, 138, 122, 0.35); }

.result-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.result-meta b { color: var(--text-muted); font-weight: 500; }

.result-msg { font-size: 14px; color: var(--text-muted); max-width: 70ch; }
.result-msg.ok-msg { color: var(--ok); }
.result-msg.bad-msg { color: var(--bad); }

.result-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; margin: 12px 0 32px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-family: var(--mono); font-size: 16px; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 0 18px; color: var(--text-muted); font-size: 14.5px; max-width: 70ch; }
.faq .faq-a p { margin-bottom: 8px; }

/* ---------- Cross-link / CTA cards ---------- */

.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}
.cross-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-raised);
  color: var(--text);
  transition: border-color 0.15s ease;
}
.cross-card:hover { border-color: var(--accent-line); text-decoration: none; }
.cross-card .cc-kind {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.cross-card .cc-title { font-weight: 700; font-size: 15.5px; display: block; margin-bottom: 6px; letter-spacing: -0.01em; }
.cross-card .cc-desc { font-size: 13.5px; color: var(--text-muted); display: block; }

/* ---------- Product CTA ---------- */

.product-cta {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-inset));
  padding: 32px 28px;
  margin: 48px 0 24px;
}
.product-cta p { color: var(--text-muted); max-width: 60ch; margin-bottom: 16px; }
.product-cta .pc-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 64px;
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--text-faint);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--text-muted); }
.footer-cols a:hover { color: var(--accent); }
.footer-tag { color: var(--text-faint); font-size: 13px; }

/* ---------- Landing (root) ---------- */

.landing-hero {
  padding: 96px 0 64px;
}
.landing-hero h1 { font-size: clamp(38px, 6.5vw, 64px); max-width: 16ch; }
.landing-hero h1 .accent { color: var(--accent); }
.landing-hero .lede { margin: 8px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

/* ---------- Dimension figure (informational SVG) ---------- */

.dim-figure { margin: 24px 0 32px; }
.dim-figure svg { width: 100%; max-width: 560px; height: auto; display: block; }
.dim-figure figcaption { font-size: 13px; color: var(--text-faint); margin-top: 10px; }

/* ---------- Comparison / vs pages ---------- */

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  margin: 0 0 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* Verdict marks inside a comparison table (reuses table.spec) */
table.spec td .y { color: var(--ok); font-weight: 600; }
table.spec td .n { color: var(--text-faint); }
table.spec td.rowlabel { color: var(--text); font-weight: 600; white-space: nowrap; }
table.spec thead th.col-us { color: var(--accent); }

/* Winning cell — ScreenshotPunch's advantage in a comparison row, highlighted in gold */
table.spec td.win {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
table.spec td.win code { color: var(--accent); background: none; border: 0; padding: 0; }

/* Buyer-type verdict cards */
.verdict { display: grid; gap: 12px; margin: 20px 0 8px; }
.verdict-row {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 15px 18px;
}
.verdict-row .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
.verdict-row .pick { color: var(--text); font-weight: 700; }
.verdict-row p { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); max-width: 68ch; }

/* "Where X wins" fairness callout */
.wins {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-inset));
  padding: 22px 24px;
  margin: 18px 0 8px;
}
.wins h3 { margin: 0 0 8px; }
.wins ul { margin: 8px 0 0 20px; }
.wins li { margin-bottom: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .page-hero { padding: 48px 0 28px; }
  .landing-hero { padding: 64px 0 40px; }
  .site-nav { gap: 16px; }
  .site-nav a.nav-secondary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
