/* Referral-only layout. Shared visual components come from data.mode.inc. */
html { scroll-padding-top: 2rem; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.brand { width: 184px; height: 48px; overflow: hidden; }
.brand-image { display: block; width: 263px; height: 68px; transform: scale(.7); transform-origin: left top; background: url('/bbd-assets/bizbuydata-logo.png') no-repeat; background-size: 950px auto; background-position: -552px -257px; filter: contrast(1.2); }
.header-inner { justify-content: space-between; }
.button-referral-highlight { background: #a7d7f4; color: var(--black); border-color: #a7d7f4; }
.button-referral-highlight:hover { background: #8ac7ed; border-color: #8ac7ed; }
.button, .header-cta, .calculator-link, .button-outline-light { border-radius: 0; }
.hero { grid-template-columns: minmax(0, 1.17fr) minmax(320px, .83fr); }
.hero h1 .heading-accent { color: var(--acid); }
.hero-support { max-width: 48ch; margin-block: 1.65rem 2rem; font: 400 clamp(1.125rem, 1.5vw, 1.375rem)/1.55 var(--sans); letter-spacing: normal; }
.hero > .hero-video { align-self: center; width: 100%; margin-top: 0; }
.text-link { display: inline-block; padding-bottom: .35rem; border-bottom: 1px solid currentColor; color: var(--acid); font: 500 .78rem/1.5 var(--mono); text-transform: uppercase; }
.text-link:hover { color: var(--white); }
.proof-number span { font-size: inherit; vertical-align: baseline; }
.spotlight { padding-block: clamp(4rem, 6vw, 6rem); background: var(--black); color: var(--white); }
.spotlight-heading { margin-bottom: clamp(2rem, 3vw, 3rem); }
.spotlight-heading h2 { max-width: none; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.18; letter-spacing: -.04em; text-wrap: initial; }
.spotlight-heading h2 > span { display: inline-block; white-space: nowrap; }
.spotlight-actions { display: flex; justify-content: center; margin-top: clamp(2rem, 3vw, 3rem); }
button.spotlight-video { width: 100%; padding: 0; }
#video-fallback { display: inline-block; margin: 0 1.25rem 1rem; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.opportunity .section-intro { grid-template-columns: 1fr; row-gap: 1.75rem; margin-bottom: 2rem; }
.opportunity .section-intro h2 { max-width: none; }
.opportunity-explanation { width: 100%; max-width: 62ch; color: #26362e; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.6; }
.opportunity-explanation p { margin: 0; }
.opportunity-explanation strong { color: var(--black); font-weight: 700; }
.fit-cta-mobile { display: none; }
/* The green proof band introduces one dark credibility section. */
.process, .faq { background: var(--cream); color: var(--black); }
.press-feature, .referral { background: var(--black-2); color: var(--white); border-color: #344036; }
.press-editorial > img { filter: brightness(0) invert(1); }
.press-feature .press-link { color: var(--acid); border-color: var(--acid); }
.press-article:hover .press-link { color: var(--white); border-color: var(--white); }
.press-article:focus-visible { outline-color: var(--acid); }
.process :focus-visible, .faq :focus-visible { outline-color: var(--black); }
.process-top h2 { max-width: 960px; margin: 0; font-size: clamp(3rem, 4.5vw, 5.15rem); line-height: 1.08; letter-spacing: -.06em; font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; margin: 3rem 0 0; padding: 0; }
.steps li { border-top: 1px solid #b9bdab; padding-top: 1.25rem; }
.step-number { color: #386747; font: 500 .78rem var(--mono); }
.steps h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.035em; line-height: 1.25; margin: 1.5rem 0 .8rem; }
.steps p { max-width: 350px; margin: 0; color: #44574a; font-size: 1rem; line-height: 1.65; }
.referral-recap em { font-style: normal; font-family: var(--sans); }
.referral { padding-block: clamp(5.2rem, 7vw, 8rem); }
.referral-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.referral-copy h2 { margin: 0; font-weight: 400; font-size: clamp(3rem, 4.5vw, 5.15rem); line-height: 1.08; letter-spacing: -.06em; }
.referral-copy > p { color: var(--gray); margin: 1.5rem 0; font-size: 1.05rem; line-height: 1.65; }
.referral-recap { display: flex; flex-direction: column; border-top: 1px solid #555; margin-top: 2rem; padding-top: 1.5rem; }
.referral-recap strong { display: block; font-weight: 400; font-size: clamp(2.5rem, 4vw, 4rem); color: var(--acid); letter-spacing: -.06em; line-height: 1.2; margin-bottom: .8rem; }
.referral-recap span { color: #ccc; font-size: .9rem; line-height: 1.7; }
.referral-copy > .text-link { margin-top: 1.75rem; }
.referral-account { padding: clamp(1.45rem, 2.5vw, 2.35rem); border: 1px solid #3a527a; background: var(--cobalt); color: var(--white); }
.referral-account h3 { margin: 0; font-size: clamp(1.85rem, 2.6vw, 2.45rem); line-height: 1.14; letter-spacing: -.043em; font-weight: 400; }
.form-intro { color: #cbd6e8; font-size: .94rem; margin: .8rem 0 0; }
fieldset { border: 0; padding: 0; margin: 1.7rem 0 0; min-width: 0; }
legend { padding: 0; margin-bottom: 1rem; color: var(--acid); font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .045em; }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.field { margin-bottom: 1rem; min-width: 0; }
.field label { font: 500 .75rem/1.4 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.field input { min-width: 0; }
.field input[aria-invalid=true] { border-color: #ffb79f; }
.field .field-error { color: #ffb79f; font: 400 .78rem/1.4 var(--sans); text-transform: none; letter-spacing: normal; }
.field-error:empty { display: none; }
.form-submit { margin-top: .75rem; }
.form-note, .draft-note { color: #cbd6e8; margin: 1rem 0 0; font-size: .78rem; line-height: 1.6; }
.draft-result { border-top: 1px solid #ffffff44; margin-top: 1.5rem; padding-top: 1.3rem; }
#form-status { margin: 0 0 1rem; font-size: 1rem; }
#form-status:focus { outline: none; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-outline-light { border: 1px solid #91a2be; background: transparent; color: white; }
.button-outline-light:hover { background: var(--acid); border-color: var(--acid); color: black; }
#copy-status { font-size: .8rem; color: var(--acid); }
#manual-copy { width: 100%; min-height: 170px; margin-top: 1rem; padding: 1rem; border: 1px solid #91a2be; border-radius: 0; background: #fff1; color: white; font: .85rem var(--sans); }
.faq-list a { text-decoration: underline; text-underline-offset: 3px; }
.faq-list, .faq-list details { border-color: #b9bdab; }
.faq-list summary::after { color: #386747; }
.faq-list details p { color: #44574a; }
.site-footer--about { padding-top: 0; border-top: 0; }
.footer-about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; padding-block: clamp(3rem, 5vw, 5rem); border-bottom: 1px solid #343e37; }
.footer-about h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.15; letter-spacing: -.05em; }
.footer-about-copy { max-width: 760px; }
.footer-about-copy p { margin: 0 0 1.6rem; color: #c1cbc5; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; }
.about-text-link { display: inline-block; padding-bottom: .4rem; border-bottom: 1px solid #6f8c76; color: #98ffba; font: 500 .875rem/1.5 var(--mono); }
.about-text-link:hover { color: #fff; border-color: #fff; }
.site-footer--about .footer-inner { padding-top: 2rem; gap: 1rem 1.8rem; }
.footer-inner { justify-content: space-between; flex-wrap: wrap; }
.footer-inner > span:first-child { font: 500 1.55rem/1 var(--sans); letter-spacing: -.065em; color: white; }
.footer-inner small { font: 400 .75rem var(--mono); letter-spacing: 0; margin-left: .4rem; }
@media(max-width:1000px) {
  .header-inner { gap: 1.5rem; }
  .header-nav { gap: 1rem; }
}
@media(max-width:850px) {
  .opportunity-heading-break { display: none; }
  .footer-about { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero, .referral-grid { grid-template-columns: 1fr; }
  .hero { gap: 2.5rem; }
  .fit-cta-desktop { display: none; }
  .fit-cta-mobile { display: inline-flex; width: 100%; }
  .fit-heading > p { margin-bottom: 0; }
  .steps { gap: 1.5rem; }
}
@media(max-width:600px) {
  .spotlight-actions .button { width: 100%; }
  .sticky-value-bar .sticky-value-cta { border-radius: 8px; }
  .brand { width: 132px; height: 34px; }
  .brand-image { transform: scale(.5); }
  .header-inner { gap: .75rem; }
  .hero h1 { font-size: clamp(2.8rem, 11.5vw, 4.5rem); }
  .header-actions { gap: .5rem; }
  .header-cta.button-referral-highlight { white-space: normal; line-height: 1.2; text-wrap: balance; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps h3 { margin: 1rem 0 .6rem; }
  .process-top h2, .referral-copy h2 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .referral-grid { gap: 2.5rem; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { gap: 1.25rem; }
  .footer-inner > span:first-child { width: 100%; }
}
@media(max-width:370px) {
  .brand { width: 110px; height: 29px; }
  .brand-image { transform: scale(.42); }
  .header-inner { gap: .5rem; }
  .header-cta { gap: .25rem; padding-inline: .5rem; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Live campaign integration: statuses and program terms. */
.program-terms { max-width:62ch; color:#adbab5; font-size:13px; line-height:1.7; padding-bottom:24px; }
#draft-error { color:#ffb9ad; line-height:1.6; }
.site-footer .referral-footnote { margin-top:1.2rem; margin-bottom:0; color:#929292; font:400 11px/1.6 var(--sans,Arial,sans-serif); overflow-wrap:anywhere; }
.referral-context { padding:12px 24px; background:#10271f; color:#b4ffd7; font-size:14px; }
.referral-context.is-error { background:#352020; color:#ffcec5; }

/* Account entry remains visible on small screens. */
.account-tools { margin:1.8rem 0; padding-left:1.2rem; color:#cbd6e8; line-height:1.7; }
.account-tools li+li { margin-top:.8rem; }
.referral-account>.button { width:100%; justify-content:space-between; }
.account-signin { color:#cbd6e8; margin:1.4rem 0 0; font-size:.95rem; }
.account-signin a { color:var(--acid); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:1100px) { .header-nav { display:none; } }
@media(max-width:720px),(pointer:coarse) { .header-cta { min-height:44px; }.site-footer .footer-inner a { display:inline-flex; align-items:center; min-height:44px; }.about-text-link { display:inline-flex; align-items:flex-end; min-height:44px; } }
/* Below 320px (WCAG 1.4.10 asks for 320): the header actions take their own row, the data grid one column, the heading halves may wrap. */
@media (max-width: 319px) {
  .header-inner, .header-actions { flex-wrap: wrap; }
  .header-inner { padding-block: .5rem; row-gap: .5rem; }
  .data-grid { grid-template-columns: minmax(0, 1fr); }
  .data-item:nth-child(even) { padding-left: 0; border-left: none; }
  .spotlight-heading h2 > span { white-space: normal; }
}
