/* Snappy site, same design system as the extension (see DESIGN.md) */

:root {
  --bg: #0a0a0c;
  --bg-stage: #0d0d10;
  --bg-raised: #131316;
  --bg-input: #18181c;
  --bg-hover: #1e1e23;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9e9ec;
  --text-mute: #9a9aa3;
  --text-faint: #5d5d66;
  --accent: #ffb224;
  --accent-hover: #ffc04d;
  --accent-dim: rgba(255, 178, 36, 0.14);
  --ink: #16120a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: clip; /* the split hero showcase bleeds off the right edge */
}

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

::selection { background: var(--accent-dim); }

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.13s ease;
}
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { padding: 96px 0 72px; text-align: center; }
.hero img.mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 32px;
  box-shadow: 0 24px 64px rgba(255, 178, 36, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.sub {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--text-mute);
  font-size: 17px;
}
.hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.13s ease, border-color 0.13s ease, transform 0.08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg-hover); }

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ===== Showcase & gallery ===== */
.showcase {
  margin-top: 64px;
}
.showcase img {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 80px rgba(255, 178, 36, 0.06);
}

/* Split hero: copy left, showcase bleeding off to the right */
.hero-split {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 6fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  padding: 72px 0 80px;
}
.hero-split .hero-copy { min-width: 0; }
.hero-split p.sub { margin: 22px 0 0; max-width: 480px; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-split .showcase {
  margin-top: 0;
  min-width: 0;
}
.hero-split .showcase img {
  max-width: none;
  width: 100%;
  margin: 0;
}
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 72px 0 56px;
  }
  .hero-split p.sub { margin: 22px auto 0; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-split .showcase { margin-top: 40px; overflow: hidden; border-radius: 18px; }
  .hero-split .showcase img { width: 100%; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  padding: 40px 0 8px;
}
.gallery-item img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gallery-item img:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.gallery-item p {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== Features ===== */
.features { padding: 56px 0 24px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.feature {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
}
.feature .glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .glyph svg { width: 18px; height: 18px; fill: var(--accent); }
.feature h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.feature p { font-size: 13.5px; color: var(--text-mute); }

/* ===== Evidence mode ===== */
.evidence {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: 48px;
  align-items: center;
  margin: 48px 0 24px;
  padding: 48px 40px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
}
@media (max-width: 760px) {
  .evidence { grid-template-columns: 1fr; padding: 36px 24px; }
}
.eyebrow {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.evidence-copy h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.evidence-copy > p { color: var(--text-mute); font-size: 14.5px; }
.evidence-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.evidence-list li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--text-mute);
}
.evidence-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.evidence-list strong { color: var(--text); font-weight: 650; }
.evidence-list a.ev-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.evidence-list a.ev-link:hover { color: var(--accent-hover); }

/* The stamped-capture mock */
.ev-shot {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.ev-page {
  background: #f5f5f7;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ev-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ev-bar {
  height: 9px;
  border-radius: 4px;
  background: #d8d8de;
}
.ev-bar.w16 { width: 16%; }
.ev-bar.w20 { width: 20%; }
.ev-bar.w40 { width: 40%; }
.ev-bar.w52 { width: 52%; }
.ev-bar.w58 { width: 58%; }
.ev-bar.w64 { width: 64%; }
.ev-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ev-redact {
  padding: 3px 14px;
  border-radius: 4px;
  background: #111;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
/* The strip itself, matching the real render in evidence.js */
.ev-strip {
  background: #0b0b0d;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 13px 16px 14px;
}
.ev-line1 { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ev-chip {
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ev-url {
  font-size: 13px;
  font-weight: 500;
  color: #e8e8ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-line2 {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #8a8a93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The bundle card */
.ev-bundle {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-input);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-file {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--text-mute);
  min-width: 0;
}
.ev-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ev-file svg { width: 14px; height: 14px; fill: var(--text-faint); flex: none; }
.ev-file.zip { color: var(--text); font-weight: 600; }
.ev-file.zip svg { fill: var(--accent); }
.ev-file.child { padding-left: 23px; }
.ev-verified {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  flex: none;
}

/* ===== Shortcuts ===== */
.shortcuts { padding: 64px 0; text-align: center; }
.shortcuts h2, .privacy-strip h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.shortcuts p { color: var(--text-mute); font-size: 14.5px; }
.os-toggle {
  display: inline-flex;
  margin-top: 24px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.os-toggle button {
  height: 30px;
  padding: 0 18px;
  border: none;
  background: transparent;
  color: var(--text-mute);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.13s ease, color 0.13s ease;
}
.os-toggle button:hover { color: var(--text); }
.os-toggle button[aria-selected="true"] {
  background: var(--bg-hover);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.keys-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.keys-row[hidden] { display: none; }
.keys { display: flex; align-items: center; gap: 6px; }
.keys .label {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-right: 10px;
}
kbd {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 5px 11px;
}

/* ===== Privacy strip ===== */
.privacy-strip {
  margin: 32px 0 80px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
}
.privacy-strip .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  margin-bottom: 18px;
  animation: dot-pulse 2.6s ease-out infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  55% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-strip .dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  }
}
.privacy-strip p {
  color: var(--text-mute);
  font-size: 14.5px;
  max-width: 540px;
  margin: 0 auto 22px;
}
.privacy-strip a.more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.privacy-strip a.more:hover { color: var(--accent-hover); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.foot a { color: var(--text-mute); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .links { display: flex; gap: 20px; }

/* ===== Verifier page ===== */
.verify { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.verify-head { text-align: center; margin-bottom: 36px; }
.verify-head h1 {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.verify-head .sub {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--text-mute);
  font-size: 15px;
}

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--bg-raised);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag {
  border-color: var(--accent);
  background: var(--bg-input);
  outline: none;
}
.dz-icon { width: 36px; height: 36px; fill: var(--accent); margin-bottom: 14px; }
.dz-title { font-size: 16px; font-weight: 650; }
.dz-hint { margin: 6px 0 22px; font-size: 13px; color: var(--text-mute); }
.dz-hint strong { color: var(--text); font-weight: 600; }
.dropzone .btn { pointer-events: auto; }

.verify-privacy {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}
.verify-privacy .lock { margin-right: 4px; }

/* Verdict */
.verdict {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  margin-bottom: 14px;
}
.verdict-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.verdict.ok .verdict-icon { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.verdict.bad .verdict-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.verdict.warn .verdict-icon { background: rgba(255, 178, 36, 0.15); color: var(--accent); }
.verdict.ok { border-color: rgba(52, 211, 153, 0.35); }
.verdict.bad { border-color: rgba(239, 68, 68, 0.4); }
.verdict.warn { border-color: rgba(255, 178, 36, 0.35); }
.verdict-text h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.verdict-text p { margin-top: 4px; font-size: 13.5px; color: var(--text-mute); }

.result-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 700px) { .result-grid { grid-template-columns: 1fr; } }
.result-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  padding: 20px;
  min-width: 0;
}
.result-card h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.manifest { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; }
.manifest dt { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.manifest dd { font-size: 12.5px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.manifest dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.hashes { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.hash-row { margin-bottom: 10px; min-width: 0; }
.hash-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.hash-row code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-mute);
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.hash-row.match code { color: #34d399; }
.hash-row.nomatch code { color: #ef4444; }

.preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-stage);
}
.preview img { display: block; width: 100%; }
.preview-name {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}

.verify-error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  background: var(--bg-raised);
  padding: 24px;
  text-align: center;
}
.verify-error p { color: var(--text-mute); font-size: 14px; margin-bottom: 16px; }

.verify-how { margin-top: 56px; }
.verify-how h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.verify-how ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.verify-how li { font-size: 13.5px; color: var(--text-mute); }
.verify-how strong { color: var(--text); font-weight: 600; }
.verify-how code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.how-note { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

/* ===== Policy page ===== */
.policy { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.policy h1 {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.policy .updated {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}
.policy h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.policy p, .policy li { color: var(--text-mute); font-size: 15px; }
.policy ul { padding-left: 22px; margin: 10px 0; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--text); font-weight: 600; }
.policy .callout {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 178, 36, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.policy .callout p { color: var(--text); font-size: 14.5px; margin: 0; }
