/* 606 Systems — site styles
   ---------------------------------------------------------------
   COMPLIANCE FLAG
   Set --bb01-display to "inline" the day Form BB01 clears. This
   reveals "Registered Illinois Business Broker" in every footer.

   Design rules live in /CLAUDE.md.
   --------------------------------------------------------------- */
:root {
  --bb01-display: none; /* none | inline */

  /* Brand: navy-black from the logo, cream, royal blue */
  --night: #010810;      /* header, footer; matches the logo's own background */
  --night-2: #06121d;    /* dark bands */
  --paper: #f4f0e8;      /* light bands */
  --paper-2: #ebe6db;    /* alternate light band */
  --royal: #3f63d8;
  --royal-hover: #4a6fe7;
  --royal-on-dark: #7b96f2;

  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 3px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--paper); color: #0e1822; font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--royal); color: #fff; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--royal); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Themed bands ------------------------------------------------ */
.band { padding: clamp(64px, 8.5vw, 112px) 0; background: var(--bg); color: var(--fg); }
.dark { --bg: var(--night-2); --fg: #f4f0e8; --soft: #b6bfc8; --rule: rgba(244,240,232,.16); --accent: var(--royal-on-dark); --field: rgba(244,240,232,.06); }
.light { --bg: var(--paper); --fg: #0e1822; --soft: #46525e; --rule: rgba(14,24,34,.16); --accent: var(--royal); --field: #ffffff; }
.alt { --bg: var(--paper-2); --fg: #0e1822; --soft: #46525e; --rule: rgba(14,24,34,.18); --accent: var(--royal); --field: #ffffff; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent, var(--royal)); outline-offset: 3px; }

/* Type -------------------------------------------------------- */
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; color: var(--fg); letter-spacing: -0.022em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.012em; }
h1 .hl { color: var(--accent); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--soft); max-width: 38em; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 1.5rem; }
.eyebrow::before { content: ""; width: 26px; border-top: 1px solid currentColor; }
.small { font-size: 0.9rem; color: var(--soft); }

/* Header ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid rgba(244,240,232,.12); color: #f4f0e8; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); align-items: center; }
.nav a { white-space: nowrap; font-family: var(--head); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 8px 0; color: #c9d0d8; border-bottom: 1px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--royal-on-dark); }
.nav a.nav-cta { background: var(--royal); color: #fff; padding: 11px 20px; border-radius: var(--radius); font-weight: 600; border: 0; }
.nav a.nav-cta:hover { background: var(--royal-hover); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(244,240,232,.3); color: #f4f0e8; font: inherit; font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; border-radius: var(--radius); }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid rgba(244,240,232,.12); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 0.86rem; border-bottom: 1px solid rgba(244,240,232,.1); }
  .nav a.nav-cta { margin-top: 16px; text-align: center; padding: 15px; border-bottom: 0; }
}

/* Buttons ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 16px 28px; border: 1px solid var(--royal); background: var(--royal); color: #fff; cursor: pointer; border-radius: var(--radius); min-height: 52px; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--royal-hover); border-color: var(--royal-hover); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-line { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 2rem; }
.link { font-family: var(--head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.link:hover { color: var(--accent); }

/* Hero -------------------------------------------------------- */
.hero { padding: clamp(64px, 9vw, 120px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.hero .lede { margin-top: 1.7rem; }
.glance { background: var(--paper); color: #0e1822; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); --accent: var(--royal); --rule: rgba(14,24,34,.16); --soft: #46525e; margin-top: 6px; }
.glance .eyebrow { margin-bottom: 1rem; }
.glance dl { margin: 0; }
.glance dl div { padding: 15px 0; border-top: 1px solid var(--rule); }
.glance dt { font-family: var(--head); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); font-weight: 600; margin-bottom: 3px; }
.glance dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.12rem; line-height: 1.35; letter-spacing: -0.01em; color: #0e1822; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); }
.stat { padding: 28px 28px 32px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stat, .stat + .stat { padding: 18px 0; border-left: 0; } .stat + .stat { border-top: 1px solid var(--rule); } }

.page-head { padding: clamp(64px, 8.5vw, 108px) 0 clamp(52px, 7vw, 88px); }
.page-head h1 { max-width: 15em; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.page-head .lede { margin-top: 1.5rem; }

/* Split: label left, content right ---------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (min-width: 801px) { .split > :first-child { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.band-head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 52px); }

/* Three paths: bold columns with a top bar -------------------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.path { display: flex; flex-direction: column; text-decoration: none; background: #fff; border-top: 4px solid var(--royal); padding: 30px 28px 26px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 1px 0 rgba(14,24,34,.08); transition: transform .2s, box-shadow .2s; min-height: 290px; }
.path:hover, .path:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(14,24,34,.12); }
.path .tag { font-family: var(--head); font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.path h3 { font-size: 1.6rem; margin: 1rem 0 0.7rem; }
.path p { color: var(--soft); font-size: 0.98rem; }
.path .go { margin-top: auto; padding-top: 1rem; font-family: var(--head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; } }

/* Ledger rows: title left, text right ------------------------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rows > li, .rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rows h3 { font-size: 1.3rem; }
.rows p, .rows dd { margin: 0; color: var(--soft); }
.rows dt { font-family: var(--head); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.015em; color: var(--fg); }
.rows dd { margin: 0; }
@media (max-width: 700px) { .rows > li, .rows > div { grid-template-columns: 1fr; } }

/* Flow: numbered process in a row ----------------------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: f; border-top: 1px solid var(--rule); }
.flow li { counter-increment: f; padding: 28px 28px 8px 0; }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.flow li::before { content: "0" counter(f); display: block; font-family: var(--head); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.flow h3 { margin-bottom: 0.5rem; }
.flow p { color: var(--soft); font-size: 0.97rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow li:nth-child(3) { border-left: 0; padding-left: 0; } .flow li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 24px; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow li, .flow li + li { padding: 24px 0 6px; border-left: 0; } .flow li + li { border-top: 1px solid var(--rule); } }

/* Numbered stack ---------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--rule); }
.lede + .steps { margin-top: 2rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 72px 1fr; gap: 6px 16px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s); font-family: var(--head); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.steps h3 { margin-bottom: 0.4rem; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--soft); }

.spec { margin: 0; border-top: 1px solid var(--rule); }
.spec div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); font-weight: 600; padding-top: 5px; }
.spec dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.15rem; line-height: 1.4; letter-spacing: -0.01em; }
.spec.sm dd { font-size: 1rem; }
@media (max-width: 640px) { .spec div { grid-template-columns: 1fr; gap: 4px; } }

.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--rule); }
.ticks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--rule); position: relative; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 14px; border-top: 2px solid var(--accent); }

.callout { border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; margin: 2rem 0 0; max-width: 40em; }
.callout p { margin: 0; font-family: var(--head); font-weight: 500; font-size: 1.25rem; line-height: 1.45; letter-spacing: -0.012em; color: var(--fg); }

/* FAQ ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-family: var(--head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--soft); max-width: 44em; }

/* Table -------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-top: 1.6rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 640px; }
caption { text-align: left; font-size: 0.88rem; color: var(--soft); padding-bottom: 12px; }
th { text-align: left; font-family: var(--head); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); padding: 14px 16px 14px 0; border-top: 2px solid var(--fg); border-bottom: 1px solid var(--rule); }
td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.status { display: inline-block; font-family: var(--head); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 2px; }

/* Forms -------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.lede + .form { margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.88rem; color: var(--fg); padding: 0; font-weight: 500; }
.field .opt { color: var(--soft); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--fg); background: var(--field); border: 1px solid rgba(14,24,34,.32); border-radius: var(--radius); padding: 13px 14px; width: 100%; min-height: 52px; }
.dark .field input, .dark .field select, .dark .field textarea { border-color: rgba(244,240,232,.3); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230E1822' stroke-width='1.5' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 2px var(--royal); }
.field input:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.field fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.field fieldset legend { margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chip span { display: inline-block; padding: 12px 18px; border: 1px solid rgba(14,24,34,.32); border-radius: var(--radius); background: #fff; font-size: 0.95rem; }
.chip input:checked + span { background: var(--royal); border-color: var(--royal); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--royal); outline-offset: 2px; }
.more { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more summary { cursor: pointer; padding: 16px 0; font-weight: 500; color: var(--accent); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+  "; }
.more[open] summary::before { content: "\2013  "; }
.more .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; padding: 4px 0 24px; }
.form .note { grid-column: 1 / -1; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-error { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border: 1px solid #c0392b; border-radius: var(--radius); font-size: 0.95rem; }
.form-done { background: #fff; border-top: 4px solid var(--royal); border-radius: 0 0 var(--radius) var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-done:focus { outline: none; }
.form-done h3 { font-size: 1.7rem; margin-bottom: 0.5rem; color: #0e1822; }
.form-done p { margin: 0; color: #46525e; }
@media (max-width: 640px) { .form, .more .inner { grid-template-columns: 1fr; } }

/* About portrait slot ----------------------------------------- */
.portrait { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Closing CTA --------------------------------------------------- */
.cta h2 { max-width: 16em; font-size: clamp(2rem, 4vw, 3.1rem); }
.cta .lede { margin-top: 1.3rem; }

/* Footer -------------------------------------------------------- */
.site-footer { background: var(--night); color: #aab3bc; padding: 60px 0 44px; font-size: 0.92rem; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #f4f0e8; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-img { height: 38px; margin-bottom: 16px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244,240,232,.12); font-size: 0.82rem; }
.bb01 { display: var(--bb01-display); }
@media (max-width: 700px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Mobile action bar: flat, 1px top rule, safe-area padding ------ */
.mbar { display: none; }
@media (max-width: 700px) {
  .mbar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--night); border-top: 1px solid rgba(244,240,232,.22); }
  .mbar .btn { padding: 11px 10px; min-height: 46px; font-size: 0.76rem; }
  .mbar .btn-line { color: #f4f0e8; border-color: rgba(244,240,232,.4); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); background: var(--night); }
}

/* Motion ---------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .path, .btn { transition: none; }
}
