/* ==========================================================================
   Sections used by the "AI for small business" pages: lead form, FAQ, example table.
   Built from the site's existing tokens; no new colours, fonts or libraries.
   ========================================================================== */
html:has(#form) { scroll-behavior: smooth; }
#form { scroll-margin-top: 24px; }

/* ----- lead form ----- */
.lead-form-section { background: var(--brand); border-block: 2.5px solid var(--ink-900); }
.lead-form-inner {
  max-width: 1120px; margin: 0 auto; padding: 56px 32px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start;
}
.lead-form-copy h2 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(30px, 5vw, 46px); margin: 14px 0 12px; color: var(--ink-900);
}
.lead-form-copy p { font-family: var(--font-body); font-size: 18px; color: var(--ink-800); max-width: 40ch; margin: 0; }
.lead-form-wrap { min-width: 0; }
.lead-form-privacy { font-family: var(--font-body); font-size: 13px; color: var(--ink-800); margin: 14px 0 0; max-width: 56ch; }
.lead-form-privacy a { font-weight: 600; }
.lead-form-checks { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lead-form-checks legend { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-900); padding: 0; margin-bottom: 4px; }
.lead-form-check { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 15px; color: var(--ink-800); cursor: pointer; }
.lead-form-check input { width: 18px; height: 18px; accent-color: var(--ink-900); flex: none; }

/* ----- FAQ ----- */
.faq-section { max-width: 820px; margin: 0 auto; padding: 56px 32px; }
.faq-section h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin: 12px 0 20px; color: var(--ink-900); }
.faq-list { border-top: 1.5px solid var(--grey-200); }
.faq-item { border-bottom: 1.5px solid var(--grey-200); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink-900);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }
.faq-question:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.faq-chevron { flex: none; transition: transform 0.15s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink-800); margin: 0; max-width: 68ch; }

/* ----- example table ----- */
.example-section { max-width: 1120px; margin: 0 auto; padding: 56px 32px; }
.example-inner { min-width: 0; }
.example-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink-900); color: var(--grey-50); border-radius: var(--radius-pill); padding: 5px 12px;
}
.example-section h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin: 14px 0 8px; color: var(--ink-900); }
.example-note { font-family: var(--font-body); font-size: 15px; color: var(--grey-600); max-width: 64ch; margin: 0 0 20px; }
.example-table-wrap { overflow-x: auto; border: 1.5px solid var(--grey-200); border-radius: var(--radius-md); background: var(--white); }
.example-table-wrap:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.example-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.example-table-wrap thead th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-500);
  text-align: left; padding: 12px 16px; border-bottom: 1.5px solid var(--grey-200); background: var(--grey-50); white-space: nowrap;
}
.example-table-wrap tbody th, .example-table-wrap td {
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink-800); text-align: left;
  padding: 14px 16px; border-bottom: 1px solid var(--grey-200); vertical-align: top;
}
.example-table-wrap tbody th { font-weight: 600; color: var(--ink-900); }
.example-table-wrap tbody tr:last-child th, .example-table-wrap tbody tr:last-child td { border-bottom: none; }
.example-table-wrap td.is-cheapest { background: var(--brand); color: var(--ink-900); }
.cheapest-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; margin-left: 4px; }

@media (max-width: 760px) {
  .lead-form-inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 20px; }
  .faq-section, .example-section { padding: 44px 20px; }
}

/* headings used where the original design used a label or h3 (same look, correct outline) */
h2.section-label { font-weight: 400; line-height: inherit; }
.book-author h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink-900);
}

/* ----- text sections with a heading / button, card links, hero button pair ----- */
.about-bio h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.1;
  margin: 28px 0 16px; color: var(--ink-900);
}
.about-bio p strong { color: var(--ink-900); }
.about-bio .about-bio-cta { margin: 6px 0 22px; }
.open-to-grid--pair { grid-template-columns: repeat(2, 1fr); }
.open-to-grid--single { grid-template-columns: minmax(0, 560px); }
.open-to-card .open-to-link { margin-top: 14px; }
.open-to-card .open-to-link a { font-weight: 700; }
.open-to-footnote { font-family: var(--font-body); font-size: 15px; color: var(--grey-600); margin: 20px 0 0; max-width: 64ch; }
.intro-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 760px) {
  .open-to-grid--pair { grid-template-columns: 1fr; }
}

/* link at the end of an Expertise pillar */
.pillar-link a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pillar-dark .pillar-link a { color: var(--brand); }

/* four linked cards: 2 x 2 (e.g. Home "Four ways I show up") */
.pillar-cards.pillar-cards--quad { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .pillar-cards.pillar-cards--quad { grid-template-columns: 1fr; } }

/* a dark last section (e.g. Expertise pillar 04) meets the dark footer: keep a subtle divider */
main:has(> .pillar-dark:last-child) + .site-footer { border-top: 1.5px solid var(--ink-700); }

/* ==========================================================================
   Visual layer: framed "app window" illustrations, split layouts, icons, key facts
   ========================================================================== */

/* ----- framed app window (screenshot or built-in example) ----- */
.tool-visual { margin: 0 6px 6px 0; min-width: 0; }
.tool-frame {
  position: relative; background: var(--white); border: 2.5px solid var(--ink-900); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--brand); overflow: hidden;
}
.tool-frame__bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--grey-100); border-bottom: 1.5px solid var(--grey-200);
}
.tool-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-300); }
.tool-frame__bar span:first-child { background: var(--ink-900); }
.tool-frame__bar span:nth-child(2) { background: var(--brand); }
.tool-frame__bar em {
  margin-left: 10px; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--grey-500);
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-pill); padding: 2px 12px; flex: 1; max-width: 220px;
}
.tool-frame__body { position: relative; padding: 14px 16px 16px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink-800); }
.tool-frame__body--img { padding: 0; line-height: 0; }
.tool-frame__body--img img { display: block; width: 100%; height: auto; }
.tool-badge {
  margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: var(--ink-900); color: var(--grey-50); border-radius: var(--radius-pill); padding: 3px 9px;
}
.tool-visual figcaption { font-family: var(--font-body); font-size: 13px; color: var(--grey-600); margin: 14px 0 0; }

.tool-visual .mock-title { font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink-900); margin: 0 0 6px; }
.mock-name { font-weight: 600; color: var(--ink-900); }
.mock-chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; border: 1.5px solid var(--ink-900); border-radius: var(--radius-pill);
  padding: 2px 9px; white-space: nowrap; background: var(--white); color: var(--ink-900);
}
.mock-chip--best { background: var(--brand); }
.mock-arrow { color: var(--grey-500); }

/* price list: cheapest now */
.mock-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--grey-200); }
.mock-line:last-child { border-bottom: 0; }
.mock-line .mock-name { flex: 1 1 100%; }
.mock-price { margin-left: auto; font-variant-numeric: tabular-nums; }
.mock-price s { color: var(--grey-500); margin-right: 4px; }
.mock-price b { color: var(--success); font-weight: 800; font-size: 14px; }
.mock-add { font-family: var(--font-mono); font-size: 10px; background: var(--ink-900); color: var(--grey-50); border-radius: var(--radius-pill); padding: 3px 10px; }

/* comparison table */
.mock-row { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--grey-200); font-variant-numeric: tabular-nums; }
.mock-row:last-child { border-bottom: 0; }
.mock-row > span:not(.mock-name) { text-align: center; }
.mock-row--head { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-500); padding-top: 4px; }
.mock-row .is-best { background: var(--brand); color: var(--ink-900); font-weight: 800; border-radius: 6px; padding: 4px 4px; }

/* shopping list */
.mock-group { margin-top: 12px; }
.tool-visual .mock-group-name { font-family: var(--font-mono); font-size: 10px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 4px; }
.mock-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--grey-200); }
.mock-item .mock-name { flex: 1; }
.mock-check { width: 14px; height: 14px; border: 1.5px solid var(--ink-900); border-radius: 4px; flex: none; }
.mock-qty { font-family: var(--font-mono); font-size: 11px; color: var(--grey-600); }

/* four supplier tabs */
.mock-tabs { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; }
.mock-tab {
  display: flex; align-items: center; gap: 10px; margin-left: calc(var(--i) * 16px); padding: 10px 12px; background: var(--white);
  border: 1.5px solid var(--ink-900); border-radius: 10px; box-shadow: 3px 3px 0 var(--grey-300);
}
.mock-tab-name { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-900); white-space: nowrap; }
.mock-tab-line { flex: 1; height: 6px; border-radius: 3px; background: var(--grey-200); }
.mock-tab-price { font-weight: 700; color: var(--grey-500); font-variant-numeric: tabular-nums; }

/* ----- split layouts: text + visual ----- */
.about-bio.about-bio--split { max-width: 1120px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 32px 36px; }
.about-bio--split .about-bio-text h2:first-child { margin-top: 0; }
.about-bio--visual-left .about-bio-visual { order: -1; }
.about-bio-visual { min-width: 0; }

.intro-split { max-width: 1120px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-bottom: 28px; }
.intro-split .intro-copy { min-width: 0; }
.intro-split .intro-visual { min-width: 0; }

/* ----- key facts ----- */
.stat-row { max-width: 1120px; margin: 0 auto; padding: 8px 32px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.stat-card { background: var(--white); border: 2.5px solid var(--ink-900); border-radius: var(--radius-lg); box-shadow: 5px 5px 0 var(--ink-900); padding: var(--space-5); }
.stat-icon, .open-to-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--ink-900); color: var(--ink-900); margin-bottom: 12px;
}
.open-to-icon--cross { background: var(--grey-100); }
.stat-value { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-900); margin: 0; }
.stat-label { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--grey-700); margin: 8px 0 0; }

/* ----- gallery of tool screens ----- */
.tool-showcase { max-width: 1120px; margin: 0 auto; padding: 12px 32px 56px; }
.tool-showcase h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink-900); }
.tool-showcase-text { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--grey-700); max-width: 64ch; margin: 0 0 24px; }
.tool-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
@media (min-width: 900px) { .tool-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

@media (max-width: 860px) {
  .about-bio.about-bio--split, .intro-split { grid-template-columns: 1fr; gap: 28px; }
  .about-bio--visual-left .about-bio-visual { order: 0; }
  .about-bio.about-bio--split { padding: 24px 20px 28px; }
}
@media (max-width: 760px) {
  .stat-row, .tool-showcase { padding-left: 20px; padding-right: 20px; }
}
