/* BizHubby — site styles. Brand tokens documented in ../company/brand.md */
:root {
  /* Brand */
  --ink: #0A0A0A;          /* primary: text, primary buttons, logo */
  --paper: #FFFFFF;        /* background */
  --accent: #2D57F7;       /* accent: links, highlights, focus, the hub dot */
  --accent-hover: #1E44DB;
  --accent-soft: #EEF2FF;

  /* Neutrals */
  --gray-50: #F7F8FA;
  --gray-100: #EFF1F5;
  --gray-200: #E3E6EC;
  --gray-500: #646B78;
  --gray-700: #3A404B;

  --success: #12865B;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06);

  --container: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tint { background: var(--gray-50); }
.section--ink { background: var(--ink); color: var(--paper); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; font-weight: 700; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--gray-700); max-width: 620px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .lede { margin-top: 16px; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font);
  padding: 16px 24px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #262626; }
.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--gray-200); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { font-size: 21px; font-weight: 800; letter-spacing: -0.04em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--gray-700); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }

/* Hero form card */
.hero .form { scroll-margin-top: 90px; }
.form__title { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.form .eyebrow { margin-bottom: 8px; font-size: 12px; }
.form__intro { color: var(--gray-500); font-size: 15px; margin-bottom: 20px; }
.hero__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.hero__services b { display: block; font-size: 15px; }
.hero__services span { font-size: 13px; color: var(--gray-500); }

/* Problem */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--gray-700); margin-top: 10px; font-size: 16px; }
.card__quote { font-size: 15px; font-style: italic; color: var(--gray-500); margin-top: 14px !important; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-100); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 22px; height: 22px; stroke: var(--ink); }

/* Solution */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; letter-spacing: .06em; }
.step p { color: var(--gray-700); font-size: 16px; margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.list-card { border-radius: var(--radius); padding: 28px; }
.list-card--yes { background: var(--ink); color: var(--paper); }
.list-card--no { background: var(--gray-50); border: 1px solid var(--gray-200); }
.list-card--alt { background: var(--accent-soft); }
.list-card--alt li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.list-card--alt li { color: var(--gray-700); }
.list-card h3 { margin-bottom: 16px; }
.list-card ul { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.list-card li { display: flex; gap: 10px; }
.list-card--yes li::before { content: "✓"; color: #8EA6FF; font-weight: 700; }
.list-card--no li::before { content: "✕"; color: var(--gray-500); font-weight: 700; }
.list-card--no li { color: var(--gray-700); }

/* Example call */
.callout {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center;
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: 36px;
}
.callout p { color: var(--gray-700); margin-top: 10px; }
.chat { display: grid; gap: 10px; font-size: 15px; }
.chat__line { padding: 12px 14px; border-radius: 14px; max-width: 92%; }
.chat__line small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; opacity: .7; }
.chat__line--ai { background: var(--paper); border: 1px solid var(--gray-200); }
.chat__line--home { background: var(--ink); color: var(--paper); justify-self: end; }

/* Results */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,.14); }
.stat__num { font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .accent { color: #8EA6FF; }
.stat h3 { margin-top: 14px; font-size: 17px; }
.stat p { color: #B9BEC8; font-size: 15px; margin-top: 6px; }
.section--ink .lede { color: #C9CDD5; }
.section--ink .eyebrow { color: #8EA6FF; }
.results__quote { margin-top: 36px; max-width: 760px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; font-weight: 500; border-left: 3px solid #8EA6FF; padding-left: 20px; }
.results__quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: #B9BEC8; }
.results__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.results__foot p { color: #B9BEC8; font-size: 15px; max-width: 520px; }
.btn--on-ink { background: var(--paper); color: var(--ink); }
.btn--on-ink:hover { background: var(--gray-100); }

.form { background: var(--paper); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 16px var(--font); color: var(--ink);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 13px 14px; background: var(--paper); width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__fine { font-size: 13px; color: var(--gray-500); margin-top: 12px; text-align: center; }
.form__status { margin-top: 14px; font-size: 15px; font-weight: 600; text-align: center; }
.form__status--ok { color: var(--success); }
.form__status--err { color: #C0362C; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ (centered cards) */
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-size: 17px; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--gray-700); padding: 0 24px 22px; font-size: 16px; }

/* Final CTA band */
.final { background: var(--ink); color: var(--paper); padding: 72px 0; }
.final__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { max-width: 620px; }
.final .eyebrow { color: #8EA6FF; }
.final__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost-ink { border-color: rgba(255,255,255,.35); color: var(--paper); background: transparent; }
.btn--ghost-ink:hover { border-color: var(--paper); }
.form__fine a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--gray-100); font-size: 15px; color: var(--gray-500); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .callout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--gray-200); padding: 8px var(--gutter) 20px;
  }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--gray-100); font-size: 17px; }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .steps, .split, .form__row { grid-template-columns: 1fr; }
  .callout { padding: 24px; }
  .form { padding: 22px; }
  .hero__services { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Alignment + mobile polish ===== */
/* Equal-height cards: push the last line (quote / description) to a shared baseline */
.card, .stat, .step { display: flex; flex-direction: column; }
.card__quote { margin-top: auto !important; padding-top: 14px; }
.card p:not(.card__quote) { margin-bottom: 0; }
.stat p { margin-top: auto; padding-top: 6px; }
.stats, .cards-3, .steps, .split { align-items: stretch; }
.hero__grid { align-items: center; }
.list-card ul { font-size: 16px; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 56px; }
  .hero h1 { margin-bottom: 16px; }
  .hero__ctas { margin: 24px 0 24px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__services { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 18px; }
  .hero__services b { font-size: 14px; }
  .hero__services span { display: none; }
  .hero__grid { gap: 32px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .card, .stat, .list-card { padding: 22px; }
  .steps { gap: 28px; }
  .callout { margin-top: 32px; gap: 20px; }
  .split { margin-top: 32px; }
  .faq summary { padding: 18px 48px 18px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; }
  .final { padding: 56px 0; }
  .final__ctas, .final__ctas .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__links { gap: 0 20px; }
  .footer__links a { display: inline-block; padding: 11px 0; }
  .form__fine a { display: inline-block; padding: 10px 0; }
  .logo { min-height: 44px; }
}
@media (max-width: 380px) {
  .hero__services b { font-size: 13px; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}

/* ================================================================
   MOBILE DESIGN (≤ 760px): designed for the phone, not shrunk
   Principles: one idea per screen, fewer boxes, more air,
   one primary action, scannable numbers.
   ================================================================ */
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; line-height: 1.6; }
  h1 { font-size: 38px; line-height: 1.04; letter-spacing: -0.035em; }
  h2 { font-size: 30px; line-height: 1.1; }
  h3 { font-size: 18px; }
  .lede { font-size: 17px; line-height: 1.55; }
  .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head .lede { margin-top: 14px; }

  /* Nav */
  .nav__inner { height: 64px; }
  .nav__links { top: 64px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__text { font-size: 20px; }

  /* Hero: headline, one line of copy, one clear action */
  .hero { padding: 40px 0 0; }
  .hero__grid { gap: 40px; }
  .hero h1 { margin-bottom: 18px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 4px; margin: 28px 0 0; }
  .hero__ctas .btn { flex: none; }
  .hero__ctas .btn--primary { padding: 18px 24px; font-size: 17px; }
  .hero__ctas .btn--ghost { border: 0; background: none; color: var(--gray-700); font-weight: 600; padding: 14px; }
  .hero__services { display: none; }

  /* Form: a calm full-width panel, not a box on a box */
  .hero .form {
    margin: 0 calc(var(--gutter) * -1);
    border: 0; border-radius: 28px 28px 0 0; box-shadow: none;
    background: var(--gray-50);
    padding: 36px var(--gutter) 44px;
  }
  .form__title { font-size: 26px; }
  .form__intro { font-size: 15px; margin-bottom: 24px; }
  .field { margin-bottom: 14px; }
  .form__row { gap: 0; }
  .field input, .field select { padding: 15px 16px; border-radius: 12px; border-color: var(--gray-200); }
  .form .btn--block { padding: 18px; font-size: 17px; margin-top: 6px; }
  .form__fine { margin-top: 14px; }

  /* Problem: clean list rows instead of three boxes */
  #problem { background: var(--paper); }
  .cards-3 { gap: 0; }
  .card {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start;
    background: none; border: 0; border-radius: 0; padding: 24px 0;
    border-top: 1px solid var(--gray-200);
  }
  .card:last-child { border-bottom: 1px solid var(--gray-200); }
  .card__icon { grid-row: 1 / span 2; margin: 2px 0 0; width: 44px; height: 44px; }
  .card h3, .card p { grid-column: 2; }
  .card p { margin-top: 6px; font-size: 15.5px; }
  .card__quote { display: none; }

  /* Steps: numbered rows with generous space */
  #how { background: var(--gray-50); }
  .steps { gap: 0; }
  .step { border-top: 1px solid var(--gray-200); padding: 22px 0; }
  .step:first-child { border-top: 2px solid var(--ink); }
  .step::before { margin-bottom: 8px; }
  .step p { font-size: 15.5px; margin-top: 6px; }

  /* Example call: just the conversation */
  .callout { margin-top: 40px; padding: 28px 20px; gap: 18px; border-radius: 24px; background: var(--paper); border: 1px solid var(--gray-200); }
  .callout > div:first-child p { display: none; }
  .callout h3 { font-size: 18px; }
  .chat { font-size: 15px; gap: 8px; }
  .chat__line { max-width: 88%; padding: 11px 14px; }
  .chat__line--ai { background: var(--gray-50); border-color: var(--gray-100); }

  /* What you get / Why different */
  .split { margin-top: 20px; gap: 12px; }
  .list-card { padding: 26px 24px; border-radius: 24px; }
  .list-card h3 { margin-bottom: 14px; }
  .list-card ul { gap: 12px; font-size: 15.5px; }

  /* Results: scannable number rows */
  .stats { gap: 0; }
  .stat {
    display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: center;
    border: 0; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0; padding: 22px 0;
  }
  .stat:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat__num { grid-row: 1 / span 2; font-size: 40px; }
  .stat h3 { margin: 0; font-size: 16px; }
  .stat p { margin: 2px 0 0; padding: 0; font-size: 14px; }
  .results__quote { margin-top: 36px; font-size: 18px; padding-left: 16px; }
  .results__foot { margin-top: 28px; }
  .results__foot .btn { width: 100%; }
  .results__foot p { font-size: 14px; }

  /* FAQ */
  .section-head--center { text-align: left; }
  .faq { gap: 10px; }
  .faq details { border-radius: 16px; }

  /* Final CTA */
  .final { padding: 64px 0; }
  .final h2 { font-size: 30px; }
  .final__ctas { flex-direction: column; gap: 10px; }

  /* Footer */
  .footer { padding: 32px 0 40px; }
}
