/* VectorProof suite — design system. Refined, Apple-caliber light mode. */
:root {
  /* surfaces */
  --bg: #fbfbfd;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --paper: var(--bg);
  /* text */
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  /* hairlines */
  --line: #e6e6eb;
  --line-strong: #d2d2d7;
  /* accent (brand green, refined) */
  --green: #12855a;
  --green-strong: #0c6e49;
  --green-soft: #e7f4ee;
  /* status */
  --blue: #0071e3;
  --amber: #a56400;
  --amber-soft: #fbf1e0;
  --red: #d13c34;
  --red-soft: #fbecea;
  /* form */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 44px -14px rgba(0, 0, 0, .14);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* aliases used by page-local styles */
  --vp-border: var(--line);
  --vp-muted: var(--muted);
  --vp-green: var(--green);
  --vp-mono: var(--mono);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--green-strong); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.022em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; }
h3 { font-size: 20px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* header — frosted glass, apple.com nav feel */
.vp-top {
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky; top: 0; z-index: 50;
}
.vp-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.vp-brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.vp-brand span { color: var(--green); }
.vp-brand img.vp-logo { height: 60px; width: auto; display: block; }
@media (max-width: 640px) { .vp-brand img.vp-logo { height: 44px; } }
.vp-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
.vp-nav a { color: var(--muted); font-weight: 400; }
.vp-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .vp-nav { gap: 15px; font-size: 13px; } }

/* hero */
.vp-hero { padding: 88px 0 44px; max-width: 880px; }
@media (max-width: 640px) { .vp-hero { padding: 56px 0 32px; } }
.vp-eyebrow { font-size: 16px; font-weight: 600; color: var(--green); letter-spacing: -0.01em; margin-bottom: 10px; }
.vp-hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; margin: 0 0 22px; letter-spacing: -0.03em; font-weight: 600; }
.vp-hero p { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.4; color: var(--muted); max-width: 720px; margin: 0; letter-spacing: -0.014em; }
/* subtle staggered entrance */
.vp-hero > * { animation: vpRise .7s var(--ease) both; }
.vp-hero > *:nth-child(2) { animation-delay: .06s; }
.vp-hero > *:nth-child(3) { animation-delay: .12s; }
.vp-hero > *:nth-child(4) { animation-delay: .18s; }
@keyframes vpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vp-hero > * { animation: none; } html { scroll-behavior: auto; } }

/* layout */
.vp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .vp-grid { grid-template-columns: 1fr; gap: 18px; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .card { padding: 22px; border-radius: 18px; } }
.card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.card .sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.42; }
.section-gap { margin-top: 44px; }

/* dropzone */
.dropzone {
  display: grid; place-items: center; text-align: center; gap: 8px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  padding: 46px 22px; cursor: pointer; background: var(--panel-2);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: var(--green-soft); }
.dropzone.dragging { transform: scale(1.008); }
.dropzone strong { font-size: 17px; font-weight: 600; }
.dropzone small { color: var(--muted); font-size: 14px; }
.dropzone input { display: none; }

/* buttons — apple pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 11px 22px; background: var(--panel-2); color: var(--ink);
  font-size: 15px; font-weight: 500; font-family: inherit; line-height: 1; cursor: pointer;
  -webkit-appearance: none;
  transition: background .25s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: #ececef; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-strong); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.block, .btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* inputs */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 500; }
.field input[type="text"], .field input[type="color"], .field select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--panel); color: inherit; font-size: 15px; font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
textarea { line-height: 1.55; }
.check { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 13px; font-weight: 500; background: var(--panel); color: var(--muted); }
.badge.green { border-color: transparent; background: var(--green-soft); color: var(--green-strong); }
.badge.amber { border-color: transparent; background: var(--amber-soft); color: var(--amber); }
.badge.red { border-color: transparent; background: var(--red-soft); color: var(--red); }

/* verdict / score */
.verdict { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); }
.verdict.good { background: var(--green-soft); border-color: transparent; }
.verdict.warn { background: var(--amber-soft); border-color: transparent; }
.verdict.bad { background: var(--red-soft); border-color: transparent; }
.score { font-size: 40px; font-weight: 600; line-height: 1; min-width: 64px; letter-spacing: -0.03em; }
.verdict-text { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.verdict-text small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; letter-spacing: 0; }

/* issue list */
.issues { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.issues li { display: flex; gap: 11px; font-size: 15px; padding: 13px 15px; border-radius: 12px; background: var(--panel-2); line-height: 1.4; }
.issues li .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.issues li.critical .dot { background: var(--red); }
.issues li.warn .dot { background: var(--amber); }
.issues li.ok .dot { background: var(--green); }

/* stat pills */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 20px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--panel); }
.stat b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }

/* preview surfaces */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 20px; }
.swatch { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: center; background: var(--panel); }
.swatch .art { height: 110px; display: grid; place-items: center; padding: 14px; }
.swatch .art.dark { background: #1d1d1f; }
.swatch .art.light { background: var(--panel-2); }
.swatch .art img, .swatch .art svg { max-width: 100%; max-height: 100%; }
.swatch.art { height: 130px; display: grid; place-items: center; padding: 14px; }
.swatch.art.dark { background: #1d1d1f; }
.swatch.art.light { background: var(--panel-2); }
.swatch svg, .swatch img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
/* Keep injected/preview SVGs anti-aliased so pixel-trace logos never look rough when scaled down. */
.swatch svg, .swatch svg *, .card svg, .card svg * { shape-rendering: geometricPrecision; }
.swatch .cap { font-size: 13px; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.swatch .cap a { font-size: 13px; }

/* code output */
pre.code { background: #1d1d1f; color: #f5f5f7; border-radius: 14px; padding: 18px; overflow: auto; font-size: 13px; line-height: 1.55; max-height: 360px; font-family: var(--mono); }
code { font-family: var(--mono); }

/* color chips */
.palette { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.chip { display: grid; gap: 6px; text-align: center; }
.chip .sw { width: 76px; height: 60px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); box-shadow: var(--shadow-sm); }
.chip code { font-size: 12px; }
.chip small { font-size: 11px; color: var(--faint); }

/* tool grid (hub) */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.tool { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel); color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.tool:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--line-strong); text-decoration: none; }
.tool .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); font-weight: 600; }
.tool h3 { margin: 10px 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.tool p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.42; }
.tool .price { margin-top: 16px; font-size: 14px; color: var(--ink); font-weight: 600; }

/* funnel steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 24px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--panel); }
.step b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step span { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* misc */
.muted { color: var(--muted); }
.hidden { display: none !important; }
.notice { font-size: 14px; color: var(--muted); padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); line-height: 1.45; }
.vp-foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0; color: var(--faint); font-size: 14px; }
.vp-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.vp-foot a { color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
