/* SkillGrade design system — clean, modern, credible product-minimalism.
   Light + dark, mobile-first, accessible. Templates + CSS only; no logic changes. */

/* ONE intentional dark theme for every visitor, regardless of system setting.
   Dark tokens live on :root unconditionally (no system-preference dependency),
   so a light-mode browser can never fall back to an unstyled white page. */
:root {
  color-scheme: dark;
  --bg: #0c0e12;
  --bg-soft: #12151b;
  --surface: #14171e;
  --ink: #eef1f6;
  --ink-2: #c4ccd8;
  --muted: #9aa4b2;
  --line: #262b34;
  --line-2: #2c323c;
  --accent: #7c74ff;
  --accent-hover: #948dff;
  --accent-soft: #1b1e33;
  --focus: #8b84ff;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --maxw: 1080px;

  /* Grade system — A green · B light-green · C amber · D orange · F red */
  --A: #0f8a52; --B: #5a9c1f; --C: #b7791f; --D: #c05621; --F: #c1361d;
  --A-bg: #10231a; --B-bg: #17240f; --C-bg: #241d0c; --D-bg: #24160d; --F-bg: #24110f;
  --A-tx: #4cc38a; --B-tx: #9bd45e; --C-tx: #e0b64a; --D-tx: #e78a4e; --F-tx: #f0766a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; background: #0c0e12; }
body {
  margin: 0; color: var(--ink); background: var(--bg); color-scheme: dark;
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* generic input used by Guard + forms */
.ipt { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 750; }
h2 { font-size: clamp(20px, 3vw, 27px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
main { padding: 40px 0 64px; }
.muted { color: var(--muted); }
.lede { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 19px); margin: 0 0 8px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 19px;
  letter-spacing: -0.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .g { color: var(--accent); }
.logo-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--A); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0;
}
header.site nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
header.site nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 550; padding: 8px 11px; border-radius: 8px; }
header.site nav a:hover { color: var(--ink); background: var(--bg-soft); }
header.site nav .btn { margin-left: 6px; }

/* ---------- buttons ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--bg-soft); color: var(--ink); }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--accent); border-color: transparent; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.card h2 { margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; text-align: center; }
.hero h1 { margin: 0 auto 14px; max-width: 16ch; }
.hero .lede { max-width: 60ch; margin: 0 auto 22px; }
.trustline { color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: .01em; margin-top: 14px; }
.trustline b { color: var(--ink-2); font-weight: 700; }

/* ---------- segmented input control ---------- */
.checkbox-card { max-width: 640px; margin: 0 auto; text-align: left; }
.seg-tabs { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.seg-tabs label {
  flex: 1; text-align: center; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; user-select: none; transition: background .12s, color .12s;
}
.seg-tabs label:hover { color: var(--ink); }
.seg-radio { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio:focus-visible + .seg-tabs label[for] { outline: 2px solid var(--focus); }
#m-url:checked ~ .seg-tabs label[for="m-url"],
#m-file:checked ~ .seg-tabs label[for="m-file"],
#m-paste:checked ~ .seg-tabs label[for="m-paste"] {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}
.seg-panel { display: none; }
#m-url:checked ~ .seg-panels .panel-url,
#m-file:checked ~ .seg-panels .panel-file,
#m-paste:checked ~ .seg-panels .panel-paste { display: block; }
/* No-CSS / fallback: show all panels so a file/paste user is never stuck. */
.no-js-note { display: none; }

label { display: block; font-weight: 600; font-size: 13.5px; margin: 6px 0 6px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=url], textarea, input[type=file] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px;
  font: inherit; font-size: 15px; background: var(--surface); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 130px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; resize: vertical; }
.field-row { margin-top: 12px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }

/* ---------- feature strip ---------- */
.section { padding: 40px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 26px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px; box-shadow: var(--shadow-sm); }
.feature .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 18px; margin-bottom: 10px; }
.feature h3 { margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(79,70,229,.10); }
.price-tag { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; }
.price-name { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.price-amt { font-size: 34px; font-weight: 780; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price-amt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.price-card li { font-size: 14px; color: var(--ink-2); padding: 6px 0 6px 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--A); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---------- grade badges ---------- */
.grade-badge {
  display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 20px;
  color: #fff; font-size: 54px; font-weight: 820; flex: none;
}
.grade-lg { width: 108px; height: 108px; font-size: 64px; border-radius: 24px; }
.gA{background:var(--A)} .gB{background:var(--B)} .gC{background:var(--C)} .gD{background:var(--D)} .gF{background:var(--F)}
.grade-chip { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 7px; font-weight: 800; font-size: 14px; }
.cA{background:var(--A-bg);color:var(--A-tx)} .cB{background:var(--B-bg);color:var(--B-tx)}
.cC{background:var(--C-bg);color:var(--C-tx)} .cD{background:var(--D-bg);color:var(--D-tx)}
.cF{background:var(--F-bg);color:var(--F-tx)}
.grade-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.grade-legend .item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }

/* ---------- result page checks ---------- */
.result-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 6px; }
.check { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: var(--bg-soft); }
.check .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.check .v { font-weight: 800; font-size: 15px; margin-top: 4px; }
.pass { color: var(--A); } .fail { color: var(--F); }

/* ---------- tables, pills, code ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
tbody tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.stub { background: var(--C-bg); color: var(--C-tx); border: 1px solid color-mix(in srgb, var(--C) 30%, transparent); }
.pill.live { background: var(--A-bg); color: var(--A-tx); border: 1px solid color-mix(in srgb, var(--A) 30%, transparent); }
.pill.community { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.source-tag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
code, pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; }
code { padding: 2px 6px; font-size: 12.5px; word-break: break-all; }
pre { padding: 13px 15px; overflow-x: auto; font-size: 12.5px; }
.hashline { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); word-break: break-all; margin-top: 14px; }

/* ---------- notices ---------- */
.err { background: var(--F-bg); border: 1px solid color-mix(in srgb, var(--F) 30%, transparent);
  color: var(--F-tx); padding: 11px 14px; border-radius: 10px; margin: 14px 0; }
.notice { background: var(--C-bg); border: 1px solid color-mix(in srgb, var(--C) 30%, transparent);
  color: var(--C-tx); padding: 11px 14px; border-radius: 10px; margin: 14px 0; font-size: 14px; }
.ok-notice { background: var(--A-bg); border: 1px solid color-mix(in srgb, var(--A) 30%, transparent);
  color: var(--A-tx); padding: 11px 14px; border-radius: 10px; margin: 14px 0; }
.notice.under-dispute { background: var(--D-bg); border-color: color-mix(in srgb, var(--D) 40%, transparent);
  color: var(--D-tx); }

/* ---------- upsell cards on result ---------- */
.upsell { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upsell .price-card { padding: 22px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 20px; }
footer.site .wrap { padding-top: 30px; padding-bottom: 40px; }
footer.site .foot-brand { font-weight: 750; color: var(--ink); font-size: 16px; }
footer.site p { margin: 8px 0; color: var(--muted); font-size: 13.5px; max-width: 70ch; }
.footlinks { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.footlinks a { color: var(--ink-2); font-size: 13.5px; }
.footlinks a:hover { color: var(--accent); }

/* ---------- legal / prose ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-2); }
.legal ul { padding-left: 22px; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  main { padding: 26px 0 48px; }
  .card { padding: 22px 18px; }
  .grid2, .upsell { grid-template-columns: 1fr; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  header.site .wrap { gap: 10px; }
  header.site nav { gap: 0; }
  header.site nav a:not(.btn) { padding: 8px 8px; font-size: 13.5px; }
  .seg-tabs label { font-size: 12.5px; padding: 8px 6px; }
}
@media (max-width: 460px) {
  header.site nav a.navlink { display: none; }  /* keep logo + Certify button on tiny screens */
}
