/* Verity Train — marketing site + customer wiki
   Brand: navy #0c1220, gold #b98c4f. Mobile-first, no frameworks. */

:root {
  --navy: #0c1220;
  --navy-2: #121c33;
  --navy-3: #0a0f1b;
  --gold: #b98c4f;
  --gold-2: #d4ac74;
  --gold-ink: #171106;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #1c2333;
  --mute: #5c6577;
  --mute-dark: #98a2b8;
  --line: #e4dfd4;
  --line-dark: #2a3752;
  --ok: #2f7d4f;
  --warn: #8a6d1f;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
@media (min-width: 700px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code {
  background: #ece7dc;
  padding: .1em .35em;
  border-radius: 4px;
  font-size: .92em;
}

/* ---------- Header ---------- */
.site-head {
  background: var(--navy);
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand em { color: var(--gold); font-style: normal; }
.brand .brand-sub {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute-dark);
}
.topnav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.topnav a {
  color: #cfd6e4;
  font-size: .92rem;
  padding: 6px 0;
}
.topnav a:hover { color: var(--gold-2); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  font-size: 1rem;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); text-decoration: none; }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gold);
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}
.btn-ghost:hover { background: rgba(185, 140, 79, .15); text-decoration: none; }
.btn-lg { padding: 15px 34px; font-size: 1.08rem; }
.btn-block { display: block; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-navy { background: var(--navy); color: #e8ecf4; }
.section-navy p { color: #c3cbdb; }
.section-paper { background: var(--paper); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-head p { font-size: 1.05rem; }
.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  background-image: radial-gradient(1100px 480px at 78% -140px, #1b2947 0%, var(--navy) 60%);
  color: var(--white);
  padding: 72px 0 68px;
  text-align: center;
}
.hero h1 { font-size: 2.1rem; margin: 0 auto .4em; max-width: 20ch; }
.hero p.lede {
  font-size: 1.12rem;
  color: #c3cbdb;
  max-width: 46ch;
  margin: 0 auto 28px;
}
@media (min-width: 700px) {
  .hero h1 { font-size: 3.1rem; }
  .hero p.lede { font-size: 1.25rem; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note {
  margin-top: 26px;
  font-size: .88rem;
  color: var(--mute-dark);
  letter-spacing: .04em;
}
.hero-note strong { color: var(--gold-2); font-weight: 600; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--navy-3);
  border-top: 1px solid var(--line-dark);
  color: #cfd6e4;
  padding: 26px 0;
}
.stat-strip ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .stat-strip ol { grid-template-columns: repeat(3, 1fr); } }
.stat-strip li {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  font-size: .96rem;
}
.stat-strip li b { color: var(--gold-2); font-family: Georgia, serif; font-size: 1.25rem; display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  display: inline-block;
  width: 40px; height: 40px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Cards (states, pricing) ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-3 { }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.card h3 { margin-bottom: .35em; }
.section-navy .card {
  background: var(--navy-2);
  border-color: var(--line-dark);
  color: #dfe5f0;
}
.section-navy .card p, .section-navy .card li { color: #b9c2d6; }
.state-card { border-top: 3px solid var(--gold); }
.state-card .cite {
  font-size: .85rem;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.badge-live { background: var(--gold); color: var(--gold-ink); }
.badge-soon { background: transparent; color: var(--gold-2); border: 1px solid var(--gold); }
.badge-ghost { background: #ece7dc; color: var(--mute); }
.state-note { font-size: .9rem; }

/* ---------- Explainer (record-keeping) ---------- */
.explainer {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.explainer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .explainer-grid { grid-template-columns: 1.2fr 1fr; } }
.explainer blockquote {
  margin: 0;
  padding: 18px 20px;
  background: var(--navy-3);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: #dfe5f0;
  font-size: .95rem;
}
.explainer blockquote footer { color: var(--mute-dark); font-size: .82rem; margin-top: 8px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Wizard ---------- */
.wizard-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  max-width: 860px;
  margin: 0 auto;
}
.wizard-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .wizard-grid { grid-template-columns: 1fr 1fr; } }
.wizard-field { width: 100%; }
.wizard-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: .95rem;
}
.state-checks { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.state-checks label,
.radio-like label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  cursor: pointer;
}
.state-checks input, .radio-like input { accent-color: var(--gold); width: 16px; height: 16px; }
.wizard-box input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  background: #fbfaf7;
}
.wizard-hint { font-size: .82rem; color: var(--mute); margin-top: 6px; display: block; }
.wizard-actions { margin-top: 20px; }
.wizard-error { color: #9c3d2f; font-weight: 600; margin-top: 10px; display: none; }

#wizard-results { max-width: 860px; margin: 26px auto 0; display: none; }
.summary-strip {
  background: var(--navy);
  color: #dfe5f0;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  font-size: .98rem;
}
.summary-strip b { color: var(--gold-2); }
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 22px;
  margin-bottom: 16px;
}
.result-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 2px; }
.result-card .cite { color: var(--gold); font-weight: 700; font-size: .88rem; }
.result-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.result-tag.live { background: var(--gold); color: var(--gold-ink); }
.result-tag.soon { background: transparent; border: 1px solid var(--gold); color: var(--warn); }
.result-tag.below { background: #efe2d8; color: #9c3d2f; }
.result-dl { display: grid; grid-template-columns: 1fr; gap: 4px 18px; margin: 12px 0; }
@media (min-width: 640px) { .result-dl { grid-template-columns: 170px 1fr; } }
.result-dl dt { font-weight: 700; font-size: .88rem; color: var(--mute); }
.result-dl dd { margin: 0 0 10px; font-size: .95rem; }
.result-extras { margin: 6px 0 0; padding-left: 18px; font-size: .92rem; }
.result-extras li { margin-bottom: 4px; }
.result-alert {
  background: #fbf3e7;
  border: 1px solid #e6d3b3;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .9rem;
  margin-top: 10px;
}
.result-none {
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--mute);
}

/* ---------- Pricing ---------- */
.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: 0 6px 24px rgba(12, 18, 32, .10); }
.price-card .price {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  color: var(--navy);
  margin: 6px 0 2px;
}
.price-card .price span { font-size: .95rem; color: var(--mute); font-family: inherit; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; text-align: left; }
.price-card ul li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul li::before { content: "\2713"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-fine { text-align: center; color: var(--mute); font-size: .85rem; margin-top: 22px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 720px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: var(--navy);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1rem;
  white-space: nowrap;
}
.compare thead th .th-sub { display: block; font-family: inherit; font-size: .75rem; font-weight: 400; color: var(--mute-dark); }
.compare tbody th { font-weight: 600; background: #fbfaf7; }
.compare td.us { background: #fdf7ec; font-weight: 600; }
.compare tfoot td { background: #fbfaf7; font-size: .85rem; color: var(--mute); border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: .4em; color: var(--navy); }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band p { color: #c3cbdb; max-width: 52ch; margin: 0 auto 26px; }
.site-foot {
  background: var(--navy-3);
  color: var(--mute-dark);
  padding: 40px 0 30px;
  font-size: .88rem;
  border-top: 1px solid var(--line-dark);
}
.site-foot .foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-foot .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot a { color: #cfd6e4; }
.site-foot a:hover { color: var(--gold-2); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.foot-brand { color: var(--white); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; }
.foot-brand em { color: var(--gold); font-style: normal; }
.foot-fine { border-top: 1px solid var(--line-dark); margin-top: 26px; padding-top: 18px; font-size: .8rem; }

/* ==========================================================
   Wiki / docs layout
   ========================================================== */
.doc-body { background: #fbfaf7; }
.crumbs {
  font-size: .82rem;
  color: var(--mute);
  letter-spacing: .03em;
  margin: 22px 0 18px;
}
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 6px; color: #c9c2b2; }

.docwrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 64px;
}
@media (min-width: 920px) {
  .docwrap { grid-template-columns: 264px 1fr; align-items: start; }
  .doc-side { position: sticky; top: 18px; }
}
.doc-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.doc-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .92rem;
  margin-bottom: 12px;
  background: #fbfaf7;
}
.doc-nav { list-style: none; margin: 0; padding: 0; }
.doc-nav li { margin-bottom: 2px; }
.doc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .93rem;
  border-left: 3px solid transparent;
}
.doc-nav a:hover { background: #f3efe6; text-decoration: none; }
.doc-nav a.active { border-left-color: var(--gold); background: #f8f2e8; font-weight: 600; }
.doc-nav .nav-empty { display: none; color: var(--mute); font-size: .85rem; padding: 8px 10px; }
.doc-side .nav-back {
  display: inline-block;
  margin-top: 12px;
  font-size: .84rem;
  color: var(--mute);
}

.doc-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  min-width: 0;
}
@media (min-width: 700px) { .doc-main { padding: 40px 46px; } }
.doc-main h1 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
  margin-bottom: .7em;
  font-size: 1.8rem;
}
.doc-main h2 {
  font-size: 1.35rem;
  margin-top: 1.6em;
  color: var(--navy);
}
.doc-main h3 { font-size: 1.05rem; margin-top: 1.4em; }
.doc-main ul, .doc-main ol { padding-left: 22px; }
.doc-main li { margin-bottom: 7px; }
.doc-meta { color: var(--mute); font-size: .85rem; margin-bottom: 22px; }
.doc-note {
  background: #fbf3e7;
  border: 1px solid #e6d3b3;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: .93rem;
  margin: 18px 0;
}
.doc-note b { color: var(--gold-ink); }
.doc-steps { counter-reset: dstep; list-style: none; padding-left: 0 !important; }
.doc-steps > li {
  counter-increment: dstep;
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
}
.doc-steps > li::before {
  content: counter(dstep);
  position: absolute;
  left: 0; top: 1px;
  width: 30px; height: 30px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 700;
}
.kbd-link { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

table.doc-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 16px 0; }
.doc-table th, .doc-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.doc-table thead th { background: var(--navy); color: var(--white); }
.doc-table tbody tr:nth-child(even) td { background: #fbfaf7; }

/* Docs home article cards */
.article-list { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 6px; }
@media (min-width: 700px) { .article-list { grid-template-columns: 1fr 1fr; } }
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  color: var(--ink);
}
.article-card:hover { text-decoration: none; box-shadow: 0 4px 18px rgba(12, 18, 32, .08); }
.article-card h3 { margin-bottom: .3em; color: var(--navy); }
.article-card p { font-size: .9rem; color: var(--mute); margin-bottom: 0; }
.article-list .no-match {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--mute);
  display: none;
}
