/* ============================================================
   AI Being — lower pages in the TOP V2 language (2026-10-01)
   Loaded after css/top-v2.css (colour variables, header, footer, base type).
   Restyles the existing lower-page markup; no copy lives here.
   ============================================================ */

/* Old variable names still used by a few inline styles, mapped to V2. */
:root { --accent: var(--green); --text-muted: var(--muted); --text-sub: var(--ink); --text-main: var(--ink); --white: #fff; --type-caption: 12px; --type-meta: 13px; }

/* Header / footer details that TOP gets from top-v2-macro.css */
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.mobile-menu a[aria-current="page"] { font-weight: 700; }
.footer-links a { font-size: var(--type-meta); }
.footer-bottom { font-size: var(--type-caption); }
@media (max-width: 767px) { .footer { padding-top: 32px; } .footer-bottom { font-size: 12px; } }

/* ---------- base ---------- */
main { display: block; }
.container { width: min(1040px, calc(100% - 112px)); margin-inline: auto; }
main > section { padding: 88px 0; background: var(--paper); }
main > section.section-alt { background: #fff; }
main p + p { margin-top: 14px; }
main ul, main ol { padding-left: 1.3em; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
strong { font-weight: 700; }

/* ---------- page intro ---------- */
main > section.page-hero { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 56px; line-height: 1.3; letter-spacing: -.045em; max-width: 900px; }
.page-hero .lead { margin-top: 26px; max-width: 720px; font-size: 18px; line-height: 1.95; }
.page-hero p + p { margin-top: 12px; }

/* ---------- section headings ---------- */
.section-heading, main h2 { font-size: 36px; line-height: 1.4; letter-spacing: -.035em; }
.section-heading.center, .center { text-align: left; }
.section-sub { max-width: 760px; margin: 16px 0 40px; font-size: 16px; line-height: 1.9; color: var(--ink); }
.section-heading + .value-pillars, .section-heading + .service-cards, .section-heading + .flow-steps, .section-heading + .price-cards,
.section-heading + .compare-wrap, .section-heading + .faq-list, .section-heading + .cred-grid, .section-heading + .credentials,
.section-heading + .voice-list, .section-heading + .lead { margin-top: 36px; }
main h3 { font-size: 21px; line-height: 1.5; letter-spacing: -.02em; }

/* ---------- pillars / cards ---------- */
.value-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 2px solid var(--ink); padding-top: 28px; }
.pillar-icon, .cred-icon, .credential-mark { color: var(--green); }
.pillar h3 { margin: 12px 0 8px; }
.pillar p, .service-card p, .cred-card p { font-size: 15px; line-height: 1.9; }
.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.service-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card { padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.service-card h3 { margin-bottom: 8px; }
.service-card ul { margin: 8px 0 0; font-size: 15px; line-height: 1.9; }
.note-box { margin-top: 44px; padding: 24px 28px; background: #fff; border-left: 4px solid var(--green); }
.section-alt .note-box { background: var(--paper); }
.note-box h2, .note-box h3 { font-size: 19px; line-height: 1.5; margin-bottom: 10px; }
.note-box p, .note-box li { font-size: 15px; line-height: 1.9; }
.note-box ul { margin: 0; }

/* ---------- empathy / quotes ---------- */
.empathy .lead { max-width: 780px; margin-top: 28px; font-size: 17px; line-height: 2; }
.empathy strong { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.voice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.voice-item { padding: 16px 20px; background: #fff; border-left: 3px solid var(--yellow); font-size: 16px; line-height: 1.8; }
main p.voice-item + p.voice-item { margin-top: 0; }

/* ---------- steps ---------- */
.flow-steps { border-top: 2px solid var(--ink); counter-reset: none; }
.flow-step { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-number { font: 30px/1.1 Georgia, serif; color: var(--green); }
.step-body h3 { margin-bottom: 4px; }
.step-body p { font-size: 15px; line-height: 1.9; }

/* ---------- price ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.price-card { padding: 30px 32px 32px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line); }
.section-alt .price-card { background: var(--paper); }
.price-card.is-featured { border-top-color: var(--green); }
.price-card h3 { font-size: 24px; }
.price-lede { margin-top: 10px; font-size: 15px; line-height: 1.85; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 20px 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-kind { font-size: 14px; font-weight: 700; color: var(--muted); }
.price-value { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); }
.price-tax { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.price-terms { list-style: none; padding: 0; margin: 0; }
.price-terms li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; line-height: 1.75; }
.price-terms li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 2px; background: var(--green); }

/* ---------- tables ---------- */
.compare-wrap { max-width: 880px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.8; }
.section-alt .compare-table { background: var(--paper); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { border-bottom: 2px solid var(--ink); font-size: 14px; }
.compare-table tbody th { width: 30%; font-weight: 700; }
.compare-wrap + .note-box, .compare-wrap + p { margin-top: 28px; }

/* ---------- credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.cred-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cred-card h3 { font-size: 19px; margin-bottom: 6px; }
.cred-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.cred-strip-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cred-strip-item .icon { color: var(--green); width: 18px; height: 18px; }
.credentials { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.credential { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.85; }
.credential h3 { font-size: 18px; margin-bottom: 4px; }

/* ---------- region ---------- */
.region-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.region-inner .section-heading { grid-column: 1 / -1; }
.region-area { font-size: 20px; font-weight: 700; line-height: 1.7; }
.region-tags { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.region-tag { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; }

/* ---------- FAQ (native details) ---------- */
.faq-list { border-top: 2px solid var(--ink); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 16px 0; font-size: 17px; font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; flex-shrink: 0; font: 24px/1 Georgia, serif; color: var(--green); }
.faq-item[open] > .faq-question::after { content: "−"; }
.faq-question:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.faq-answer-inner { padding: 0 0 22px; max-width: 760px; }
.faq-answer-inner p, .faq-answer-inner li { font-size: 15px; line-height: 1.95; }
.faq-answer-inner ul { margin: 8px 0 0; }

/* ---------- CTAs ---------- */
main > section.final-cta { padding: 112px 0 120px; background: #eae8dc; border-top: 1px solid #d7d5c8; }
.final-cta h2 { font-size: 40px; max-width: 800px; }
.final-desc { margin-top: 20px; max-width: 680px; font-size: 16px; line-height: 1.9; }
.cta-trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 36px; }
.cta-trio-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 84px; padding: 18px 20px; background: #fff; border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; }
.cta-trio-item:hover { text-decoration: none; background: #f4f3ec; }
.cta-trio-item.is-primary { background: var(--green); border-color: var(--green); color: #fff; }
.cta-trio-item.is-primary:hover { background: #244633; }
.cta-trio-icon { display: inline-flex; }
.cta-trio-label { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.cta-trio-desc { display: block; margin-top: 3px; font-size: 13px; line-height: 1.55; }
.cta-trio-arrow { font-size: 18px; }
.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.cta-group.stack-cta { margin-top: 22px; }
.cta-btn, .back-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 60px; padding: 16px 28px; background: var(--green); color: #fff; border: 0; border-radius: 3px; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cta-btn:hover, .back-link:hover { background: #244633; text-decoration: none; }
.cta-btn:focus-visible, .back-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.btn-secondary, .btn-line { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 3px; background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-secondary:hover, .btn-line:hover { background: #f4f3ec; text-decoration: none; }
.cta-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); }

/* ---------- forms (consultation / contact) ---------- */
form { margin-top: 8px; }
.form-row { margin-bottom: 30px; }
.form-row > label, .form-row > .form-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.form-req, .form-any { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 2px; font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 2px; }
.form-req { background: var(--green); color: #fff; }
.form-any { border: 1px solid #8d928a; color: var(--muted); }
.form-hint { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }
main form input:not([type="checkbox"]), main form select, main form textarea { display: block; width: 100%; min-height: 54px; padding: 12px 14px; background: #fff; border: 1px solid #8d928a; border-radius: 3px; font: inherit; font-size: 16px; color: var(--ink); }
main form textarea { min-height: 170px; line-height: 1.8; resize: vertical; }
main form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
main form input:focus, main form select:focus, main form textarea:focus { outline: 3px solid rgba(49, 91, 67, .35); outline-offset: 0; border-color: var(--green); }
main form ::placeholder { color: #8d928a; }
.form-pref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-pref-item span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.form-row input[type="checkbox"] { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--green); }
.form-row label:has(input[type="checkbox"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; }

/* ---------- legal / privacy ---------- */
.legal-page { padding: 88px 0 104px; }
.legal-page h1 { font-size: 44px; line-height: 1.35; letter-spacing: -.04em; margin-bottom: 36px; }
.legal-body { max-width: 780px; }
.legal-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; line-height: 1.85; }
.legal-table tr { border-bottom: 1px solid var(--line); }
.legal-table th { width: 30%; padding: 16px 16px 16px 0; text-align: left; vertical-align: top; font-weight: 700; }
.legal-table td { padding: 16px 0; }
.legal-body h2 { margin: 44px 0 12px; padding-bottom: 8px; font-size: 22px; border-bottom: 1px solid var(--line); }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.95; }
.legal-body ul { margin: 8px 0 16px; }
.legal-body .note { margin-top: 36px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--line); font-size: 14px; line-height: 1.85; }
.legal-body a { overflow-wrap: anywhere; }
.legal-body .updated { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* ---------- thanks / 404 ---------- */
.thanks-page { padding: 120px 0 128px; }
.thanks-inner { width: min(640px, calc(100% - 40px)); margin-inline: auto; }
.thanks-icon { color: var(--green); margin-bottom: 20px; }
.thanks-icon .icon { width: 44px; height: 44px; }
.thanks-inner h1 { font-size: 40px; line-height: 1.4; letter-spacing: -.04em; margin-bottom: 20px; }
.thanks-inner p { font-size: 16px; line-height: 1.95; }
.thanks-inner .note { margin: 18px 0 34px; color: var(--muted); font-size: 14px; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .container { width: calc(100% - 72px); }
  .page-hero h1 { font-size: 46px; }
  .value-pillars { gap: 28px; }
  .cta-trio { grid-template-columns: 1fr; }
  .service-cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .container { width: calc(100% - 40px); }
  main > section { padding: 56px 0; }
  main > section.page-hero { padding: 52px 0 40px; }
  .page-hero h1 { font-size: 34px; line-height: 1.4; }
  .page-hero .lead { font-size: 16px; margin-top: 18px; }
  .page-hero .lead br { display: none; }
  .section-heading, main h2 { font-size: 27px; line-height: 1.5; }
  .section-sub { font-size: 15px; margin-bottom: 28px; }
  .section-sub br { display: none; }
  main h3 { font-size: 19px; }
  .value-pillars, .service-cards, .service-cards.cols-3, .price-cards, .cred-grid, .voice-list, .region-inner { grid-template-columns: 1fr; }
  .value-pillars { gap: 22px; }
  .flow-step { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 18px 0; }
  .step-number { font-size: 24px; }
  .price-card { padding: 24px 20px; }
  .price-value { font-size: 32px; }
  .note-box { padding: 20px 18px; margin-top: 32px; }
  .compare-wrap { overflow: visible; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table thead { display: none; }
  .compare-table tr { border-top: 1px solid var(--line); }
  .compare-table th, .compare-table td { border: 0; padding: 10px 14px; }
  .compare-table tbody th { width: 100%; background: #f1f0e8; }
  .compare-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .faq-question { font-size: 16px; min-height: 56px; }
  main > section.final-cta { padding: 64px 0 72px; }
  .final-cta h2 { font-size: 28px; }
  .cta-btn, .back-link { width: 100%; font-size: 16px; }
  .form-pref { grid-template-columns: 1fr; }
  .legal-page { padding: 52px 0 64px; }
  .legal-page h1 { font-size: 32px; }
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { padding: 14px 0 2px; }
  .legal-table td { padding: 0 0 14px; }
  .thanks-page { padding: 64px 0 72px; }
  .thanks-inner { width: calc(100% - 40px); }
  .thanks-inner h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* three price cards sit in one row; headings avoid a lone last character */
.price-cards:has(> .price-card:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-cards:has(> .price-card:nth-child(3)) .price-value { font-size: 30px; }
.page-hero h1, main h2, .final-cta h2, .legal-page h1, .thanks-inner h1 { text-wrap: balance; }
@media (max-width: 1023px) { .price-cards:has(> .price-card:nth-child(3)) { grid-template-columns: 1fr; } }

/* ---------- consultation / contact: intro + two-column form ---------- */
.page-kicker { margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.page-hero .lead + .lead { margin-top: 10px; }
.consult-methods { margin-top: 32px; max-width: 720px; }
.consult-methods-title { font-size: 14px; font-weight: 700; color: var(--muted); }
.consult-methods ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.consult-methods li { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.consult-methods li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.method-name { display: block; font-size: 20px; font-weight: 700; line-height: 1.4; }
.method-note { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.form-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 64px; align-items: start; }
.form-layout > .form-note { grid-column: 1; grid-row: 1; margin: 0; }
.form-layout > .form-other { grid-column: 1; grid-row: 2; margin: 24px 0 0; }
.form-layout > form { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.form-layout > .form-note h2, .form-layout > .form-other h2 { font-size: 18px; }
.form-layout .note-box li { margin-top: 6px; }
.form-layout .cta-group { margin-top: 14px; }
.form-row input[type="checkbox"] { width: 20px !important; height: 20px; }
@media (min-width: 1024px) { .form-layout > .form-note { position: sticky; top: 24px; } }
@media (max-width: 1023px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-layout > .form-note, .form-layout > .form-other, .form-layout > form { grid-column: 1; grid-row: auto; position: static; }
  .form-layout > form { margin-top: 36px; }
  .form-layout > .form-other { margin-top: 40px; }
}
@media (max-width: 767px) {
  .consult-methods ul { grid-template-columns: 1fr; }
  .consult-methods li, .consult-methods li + li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-left: 0; }
  .method-name { font-size: 18px; }
}

/* Section wrappers named by content; they share the base section spacing above. */
main > section.value, main > section.flow, main > section.faq, main > section.region { position: relative; }
.faq-answer { display: block; }
.cta-trio-item.is-line .cta-trio-icon { color: var(--green); }

/* ---------- answer-first facts (service / training) ---------- */
.page-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 900px; margin: 32px 0 0; border-top: 2px solid var(--ink); }
.page-facts > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.page-facts dt { font-size: 14px; font-weight: 700; color: var(--green); }
.page-facts dd { margin: 0; font-size: 15px; line-height: 1.75; }

/* ---------- related links ---------- */
main > aside.related-links { padding: 40px 0; background: var(--paper); border-top: 1px solid var(--line); }
.related-title { font-size: 14px; font-weight: 700; color: var(--muted); }
.related-links ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 36px; }
.related-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); }
@media (max-width: 767px) {
  .page-facts { grid-template-columns: 1fr; }
  .page-facts > div { grid-template-columns: 5.5em minmax(0, 1fr); }
  .related-links ul { flex-direction: column; gap: 4px; }
}
/* link rows on thanks / 404 get a full-size tap target */
.thanks-inner p a { display: inline-block; padding: 6px 2px; }

/* ---------- pre-launch cleanup: classes replacing old inline styles ---------- */
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.fine-print { font-size: 13px; color: var(--muted); }
.form-before { margin: 0 0 12px; }
.form-after { margin-top: 14px; }
.form-sub { margin: 16px 0 0; }
