/* Solutions Guru — business credit membership
   Look: a credit ledger. Warm paper, charcoal ink, the logo's green used for progress and action.
   Type: Barlow Condensed (echoes the SG wordmark) · IBM Plex Sans (reading) · IBM Plex Mono (figures, labels). */

:root {
  color-scheme: light;
  --paper: #F6F4EE;
  --paper-2: #EEEBE2;
  --card: #FFFFFF;
  --ink: #1D1D1B;
  --ink-2: #45453F;
  --ink-3: #66655E;
  --line: #D9D5C9;
  --line-2: #C9C4B5;
  --green: #18A538;      /* logo green — marks, bars, large accents */
  --green-ink: #0B6B26;  /* text-safe green: buttons, links (6.9:1 with white) */
  --green-hover: #08561E;
  --green-deep: #0C2716;
  --green-tint: #E4F1E5;
  --amber: #7A4E00;
  --amber-tint: #FBEFD5;
  --red: #9B2C1F;
  --red-tint: #F8E4DF;
  --focus: #1F5FD1;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(29,29,27,.04), 0 6px 20px -10px rgba(29,29,27,.18);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.eyebrow, .label {
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow { display: block; margin-bottom: .8rem; color: var(--green-ink); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(246,244,238,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.head-actions a.text { padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 8px; }
.head-actions a.text:hover { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--green-ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { --bg: var(--green-hover); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.danger { --bg: var(--red); }
.btn.danger:hover { --bg: #7E2318; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn.block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1.4rem 0 .8rem; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 28px; }
.hero-grid { display: grid; gap: 32px; }
.hero .fine { font-size: .92rem; color: var(--ink-3); margin: 0; }

/* The ladder: seven stages drawn as the logo's rising bars */
.ladder { list-style: none; margin: 0; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); counter-reset: s; }
.ladder li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 2px 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.ladder li:last-child { border-bottom: 0; }
.ladder .n { font: 500 .85rem var(--mono); color: var(--ink-3); grid-row: span 2; align-self: start; padding-top: 2px; }
.ladder .t { font-weight: 500; line-height: 1.3; }
.ladder .bar { height: 7px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.ladder .bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.ladder li:nth-child(1) .bar i { width: 14%; } .ladder li:nth-child(2) .bar i { width: 28%; }
.ladder li:nth-child(3) .bar i { width: 42%; } .ladder li:nth-child(4) .bar i { width: 56%; }
.ladder li:nth-child(5) .bar i { width: 70%; } .ladder li:nth-child(6) .bar i { width: 85%; }
.ladder li:nth-child(7) .bar i { width: 100%; }
.ladder-cap { display: flex; justify-content: space-between; margin-bottom: 6px; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--green-deep); color: #F6F4EE; }
.section.dark .lead, .section.dark .muted { color: #C9DDCB; }
.section.dark a:not(.btn) { color: #9FE0AE; }
.section-head { max-width: 42em; margin-bottom: 26px; }
.grid-3 { display: grid; gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--ink-2); }
.feature .num { font: 500 .8rem var(--mono); color: var(--green-ink); display: block; margin-bottom: .6rem; }

/* ---------- vendor "trade line" card ---------- */
.vendor { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow); }
.vendor.changed { border-left-color: #C98A12; }
.vendor.call-first { border-left-color: #8C8A82; }
.vendor-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.vendor h3 { font-size: 1.45rem; margin: .25rem 0 .55rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0 0 10px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.facts div { min-width: 0; }
.facts dt { font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.vendor .note { color: var(--ink-2); font-size: .95rem; margin: 0 0 10px; }
.vendor .reqs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.vendor .reqs li { font-size: .82rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.vendor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.vendor-actions a.apply { font-weight: 600; }
.src { font-weight: 400; color: var(--ink-3); font-size: .85rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--green-tint); color: var(--green-ink); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.changed { background: var(--amber-tint); color: var(--amber); }
.badge.call-first { background: #ECEAE3; color: #4E4D47; }
.badge.final { background: var(--red-tint); color: var(--red); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--green-ink); }
.plan h3 { font-size: 1.8rem; margin-bottom: .2em; }
.price { font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 1; margin: .2em 0 .1em; }
.price small { font-size: 1.2rem; font-weight: 600; color: var(--ink-3); }
.price-sub { color: var(--ink-2); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 .55rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-ink); border-bottom: 2.5px solid var(--green-ink); transform: rotate(-45deg); }
.ticks li.no::before { border: 0; width: 12px; height: 2.5px; background: var(--ink-3); transform: none; top: .75em; }
.plan .btn { margin-top: auto; }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li { position: relative; padding: 0 0 18px 46px; }
.timeline li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-ink); color: #fff; font: 600 .9rem var(--mono); display: grid; place-items: center; }
.timeline li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-foot { background: var(--green-deep); color: #C9DDCB; padding: 40px 0 28px; font-size: .92rem; }
.site-foot a { color: #F6F4EE; }
.foot-grid { display: grid; gap: 22px; }
.site-foot .brand img { height: 30px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0; }
.foot-links a { display: inline-block; padding: 6px 0; }
.disclaimer { border-top: 1px solid rgba(201,221,203,.25); margin-top: 22px; padding-top: 16px; font-size: .82rem; line-height: 1.55; color: #A9C2AC; }

/* ---------- forms ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label, .legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .86rem; color: var(--ink-3); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff;
  font: 400 1rem var(--sans); color: var(--ink);
}
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,95,209,.18); }
.field.bad input { border-color: var(--red); }
.field .err { color: var(--red); font-size: .88rem; margin-top: 5px; display: none; }
.field.bad .err { display: block; }
.row-2 { display: grid; gap: 0 12px; }
.check, .field label.check { display: grid; font-weight: 400; margin-bottom: 0; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-bottom: 14px; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green-ink); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; background: var(--paper-2); border-radius: 6px; font: 500 .85rem var(--sans); cursor: pointer; }

.plan-pick { display: grid; gap: 10px; margin: 0 0 18px; border: 0; padding: 0; }
.plan-pick label { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.plan-pick input { width: 20px; height: 20px; accent-color: var(--green-ink); margin: 0; }
.plan-pick label:has(input:checked) { border-color: var(--green-ink); box-shadow: 0 0 0 1px var(--green-ink); background: #FBFDFB; }
.plan-pick .pp-name { font-weight: 600; }
.plan-pick .pp-sub { display: block; font-size: .86rem; color: var(--ink-3); font-weight: 400; }
.plan-pick .pp-price { font: 600 1.3rem var(--display); }

.summary { background: var(--paper); border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-weight: 600; font-family: var(--mono); font-size: .95rem; }
.summary .total { border-top: 1px solid var(--line-2); padding-top: 8px; font-weight: 700; color: var(--ink); }
.summary p { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }
#card-container { min-height: 90px; margin-bottom: 8px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-3); margin: 6px 0 16px; }

.notice { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; background: var(--green-tint); color: #123D1E; border: 1px solid #BFDDC3; }
.notice.warn { background: var(--amber-tint); color: #4D3200; border-color: #EBCF91; }
.notice.error { background: var(--red-tint); color: #5E1A12; border-color: #E9B7AD; }
.notice p:last-child { margin: 0; }
[hidden] { display: none !important; }

/* ---------- auth pages ---------- */
.auth { padding: 36px 0 56px; }
.auth .panel { max-width: 460px; margin: 0 auto; }
.auth h1 { font-size: 2.6rem; }
.join-grid { display: grid; gap: 22px; }
.join-grid .panel { max-width: none; margin: 0; }

/* ---------- member app ---------- */
.app-head .wrap { min-height: 60px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 60px; z-index: 15; }
.tabs a { flex: 0 0 auto; padding: 14px 14px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.app-main { padding: 22px 0 60px; }
.progress-card { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.meter { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.stage > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 4px 12px; align-items: center; padding: 16px; }
.stage > summary::-webkit-details-marker { display: none; }
.stage .s-num { font: 600 1.6rem var(--display); color: var(--green-ink); }
.stage .s-title { font: 600 1.35rem/1.15 var(--display); }
.stage .s-count { font: 500 .8rem var(--mono); color: var(--ink-3); }
.stage .s-bar { grid-column: 2 / -1; }
.stage-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.stage-intro { color: var(--ink-2); padding-top: 14px; }
.lesson { padding: 16px 0; border-top: 1px dashed var(--line); }
.lesson:first-of-type { border-top: 0; }
.lesson h3 { font-size: 1.3rem; }
.lesson .lnum { font: 500 .8rem var(--mono); color: var(--ink-3); margin-right: 6px; }
.lesson ul { padding-left: 1.2em; }
.lesson li { margin-bottom: .35em; }
.lesson-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 12px; font-size: .95rem; }
.checklist { list-style: none; padding: 12px; margin: 10px 0 0; background: var(--paper); border-radius: 8px; }
.checklist label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 6px 0; cursor: pointer; }
.checklist input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-ink); }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.goto-dir { margin-top: 8px; }

.filters { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.filters .row { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 500 .88rem var(--sans); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vendor-list { display: grid; gap: 12px; }
.count-line { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 10px; }
.track { display: inline-flex; gap: 6px; }
.track label { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper); }
.track input { width: 18px; height: 18px; margin: 0; accent-color: var(--green-ink); }
.empty { text-align: center; color: var(--ink-3); padding: 30px 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }

dialog { border: 0; border-radius: 14px; padding: 22px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--ink); }
dialog::backdrop { background: rgba(12,39,22,.55); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font: 600 2rem/1.1 var(--display); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #FBFAF6; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; background: var(--red); }
.dot.ok { background: var(--green); }
.history { list-style: none; padding: 0; margin: 0; font-size: .88rem; max-height: 260px; overflow: auto; }
.history li { padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* ---------- legal ---------- */
.legal { max-width: 760px; padding: 36px 0 64px; }
.legal h1 { font-size: 3rem; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .filters .row { display: contents; }
  .filters .chips { grid-column: 1 / -1; }
}
@media (min-width: 920px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
  .section { padding: 72px 0; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-head .brand img { height: 40px; }
  .join-grid { grid-template-columns: 1fr 360px; align-items: start; }
  .join-aside { position: sticky; top: 88px; }
  .vendor-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-head, .tabs, .site-foot, .btn { display: none !important; } body { background: #fff; } }
