/* compliancesme.com — design system v3
   One font: Inter. Weight does the hierarchy: 400 body, 600 emphasis, 800 headings.
   Six sizes: 13 label / 15 meta / 18 body / 22 card title / 30 section / 46 hero
   Ground: white + cool grey band. Ink: near-black navy. One accent: cobalt. */

:root {
  --paper: #FFFFFF;
  --paper-deep: #F3F5F9;
  --card: #FFFFFF;
  --ink: #0A0F1E;
  --ink-soft: #3A4358;
  --ink-faint: #5B6478;
  --rule: #E3E8F0;
  --rule-strong: #C6CEDD;
  --stamp: #1D51C8;
  --stamp-hover: #16409F;
  --penalty: #C0272D;
  --good: #157A46;
  --cat-a: #14635B;
  --cat-b: #4C3A8C;
  --cat-c: #9A4B12;
  --cat-d: #3E6212;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }

/* Labels and references */
.mono {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ref {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-deep);
  padding: 2px 9px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* Masthead */
.masthead {
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; flex-wrap: wrap; gap: 10px;
}
.masthead-title {
  font-family: var(--font-display); font-size: 23px; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.masthead-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.masthead-nav a {
  font-size: 15px; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
  text-transform: none; letter-spacing: 0;
}
.masthead-nav a:hover { color: var(--stamp); border-bottom-color: var(--stamp); }

/* Bands */
.band { background: var(--paper-deep); }
.band-card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--rule-strong); margin: 0; }

/* Section headings */
.part-head {
  display: flex; align-items: center; gap: 16px;
  padding: 0 0 14px; margin: 64px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.part-head .part-no { display: none; }
.part-head h2 { font-size: 30px; }
.part-head::before {
  content: ''; width: 6px; height: 30px; background: var(--stamp);
  border-radius: 3px; flex-shrink: 0;
}

/* Badges (formerly stamps) */
.stamp {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--good); background: #E8F5EE;
  border: 1px solid #BFE3CF;
  padding: 5px 12px; border-radius: 6px;
  transform: none;
}
.stamp.prep {
  color: var(--ink-faint); background: var(--paper-deep);
  border: 1px solid var(--rule-strong); border-style: solid;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  padding: 14px 28px; border: 2px solid var(--ink);
  border-radius: 10px;
  background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; transition: all 0.12s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-solid:hover { background: #232B40; border-color: #232B40; }
.btn-stamp { border-color: var(--stamp); background: var(--stamp); color: #fff; }
.btn-stamp:hover { background: var(--stamp-hover); border-color: var(--stamp-hover); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 9px 18px; font-size: 15px; border-radius: 8px; }

/* Lists */
.slist { list-style: none; }
.slist li { padding: 13px 0 13px 30px; position: relative; border-bottom: 1px solid var(--rule); font-size: 18px; }
.slist li::before {
  content: ''; position: absolute; left: 4px; top: 22px;
  width: 9px; height: 9px; border-radius: 3px; background: var(--stamp);
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 14px; padding: 28px 30px;
}
.card .mono { color: var(--stamp); margin-bottom: 12px; display: block; }

/* Ledger rows */
.ledger-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px;
  flex-wrap: wrap;
}
.ledger-row strong { font-size: 19px; font-weight: 700; }
.cat-swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

/* Dark section */
.inverted { background: var(--ink); color: #fff; }
.inverted .mono { color: rgba(255,255,255,0.66); }
.inverted h2, .inverted h3 { color: #fff; }
.inverted .btn { border-color: #fff; color: #fff; }
.inverted .btn:hover { background: #fff; color: var(--ink); }
.inverted .btn-stamp { border-color: var(--stamp); background: var(--stamp); color: #fff; }
.inverted .btn-stamp:hover { background: var(--stamp-hover); border-color: var(--stamp-hover); }

/* Forms */
input[type=text], input[type=email], select, textarea {
  font-family: var(--font-body); font-size: 17px;
  padding: 13px 15px; border: 1.5px solid var(--rule-strong);
  border-radius: 9px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(29,81,200,0.3); border-color: var(--stamp); }
label.form-label {
  display: block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: none;
  color: var(--ink); margin: 20px 0 7px;
}

/* Assessment options */
.opt {
  border: 1.5px solid var(--rule-strong); background: #fff;
  border-radius: 11px;
  padding: 17px 20px; cursor: pointer; display: flex; align-items: center; gap: 15px;
  font-size: 18px; transition: all 0.1s; margin-bottom: 10px;
}
.opt:hover { border-color: var(--stamp); }
.opt.selected { background: #EEF3FD; border-color: var(--stamp); box-shadow: none; }
.opt-box {
  width: 21px; height: 21px; border: 2px solid var(--rule-strong);
  border-radius: 6px;
  flex-shrink: 0; position: relative; background: #fff;
}
.opt.round .opt-box { border-radius: 50%; }
.opt.selected .opt-box { background: var(--stamp); border-color: var(--stamp); }
.opt.selected .opt-box::after {
  content: ''; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 9px; border: solid #fff;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.opt small { display: block; color: var(--ink-faint); font-size: 15px; line-height: 1.45; }

/* Footer */
.footer {
  background: var(--ink); color: #fff;
  margin-top: 90px; padding: 40px 0 44px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer .mono { color: rgba(255,255,255,0.75); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15px; }
.footer .mono a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer .mono a:hover { color: #fff; text-decoration: underline; }
.notice-bar {
  font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 16px; margin-top: 22px;
}

/* Utility */
.tag-price { font-family: var(--font-display); font-size: 21px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.small { font-size: 16px; color: var(--ink-soft); }
.tiny { font-size: 15px; color: var(--ink-faint); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .part-head h2 { font-size: 24px; }
  .masthead-inner { height: auto; padding: 14px 0; }
  .masthead-nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
