/* Homepage only. Design tokens and card/chat composition from lchotfix-new-site. */
@font-face { font-family: 'TB Home Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../../fonts/home-inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'TB Home Display'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../../fonts/home-space-grotesk-latin.woff2') format('woff2'); }
.home-paths-section { padding: 88px 24px; background: #f4f3f1; color: #0f172a; font-family: 'TB Home Inter', sans-serif; }
.tb-paths-shell { max-width: 1232px; margin: auto; }
.tb-paths-heading { display: grid; grid-template-columns: 1fr .48fr; align-items: end; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid #cbd5e1; }
.home-paths-section .tb-home-eyebrow { color: #be123c; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; line-height: 1.7; }
.home-paths-section h2 { margin: 16px 0 0; font-family: 'TB Home Display', sans-serif; font-size: clamp(36px, 4.2vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; text-transform: uppercase; color: #0f172a; }
.home-paths-section h2 em { color: #f43f5e; font-style: italic; }
.tb-paths-intro > p { font-size: 15px; line-height: 1.85; color: #475569; }
.tb-paths-text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 2px solid #f43f5e; padding-bottom: 5px; margin-top: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.tb-paths-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tb-path-card { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 12px 36px #0e162a0d; transition: transform .25s, border-color .25s, box-shadow .25s; }
.tb-path-card:hover { transform: translateY(-4px); border-color: #f43f5e; box-shadow: 0 18px 48px #0e162a1f; }
.tb-path-card__image { position: relative; display: flex; aspect-ratio: 5/4; padding: 22px; background: #fff; align-items: center; justify-content: center; }
.tb-path-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tb-path-card__number { position: absolute; top: 14px; left: 14px; background: #0f172a; color: #fff; border-radius: 30px; padding: 6px 11px; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.tb-path-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.tb-path-card h3 { margin-top: 12px; font-family: 'TB Home Display', sans-serif; font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; color: #0f172a; }
.tb-path-card__description { flex: 1; margin-top: 14px; color: #475569; font-size: 13px; line-height: 1.85; }
.tb-path-card__link { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #e2e8f0; padding-top: 16px; margin-top: 24px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.tb-path-card__link:hover, .tb-paths-text-link:hover { color: #be123c; }
.tb-paths-quote { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding: 24px 32px; border-left: 4px solid #f43f5e; background: #0f172a; color: #fff; }
.tb-paths-quote .tb-home-eyebrow { color: #fb7185; }
.tb-paths-quote h3 { font: 700 21px/1.3 'TB Home Display', sans-serif; color: #fff; margin-top: 8px; }
.tb-paths-quote button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; padding: 16px 24px; background: #be123c; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.tb-paths-quote button:hover { background: #9f1239; }
.home-paths-section :focus-visible, #tb-home-footer :focus-visible, .tb-home-ai :focus-visible { outline: 3px solid #f43f5e; outline-offset: 4px; }

/* Same chat layout as the reference AIChatWidget; existing streaming API retained. */
.tb-home-ai { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 99999; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; max-width: calc(100vw - 32px); color: #0f172a; font: 400 14px/1.5 'TB Home Inter', sans-serif; }
.tb-home-ai *, .tb-home-ai *::before, .tb-home-ai *::after { box-sizing: border-box; }
.tb-home-ai [hidden] { display: none !important; }
.tb-home-ai svg { display: block; flex-shrink: 0; }
.tb-home-ai button, .tb-home-ai input, .tb-home-ai textarea { font-family: inherit; }
.tb-home-ai button { cursor: pointer; }
.tb-home-ai button:disabled { opacity: .6; cursor: wait; }
/* Original blue launcher, including its mobile sizes and hover treatment, is preserved. */
.tb-home-ai .tb-ai__launcher { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 7px 20px 7px 8px; border: 0; border-radius: 999px; background: #182889; color: #fff !important; box-shadow: 0 14px 38px rgba(14,31,102,.3); cursor: pointer; font-family: 'DM Sans', Arial, sans-serif; font-size: 16px; font-weight: 750; letter-spacing: -.01em; line-height: normal; transition: transform .18s ease, box-shadow .18s ease; }
.tb-home-ai .tb-ai__launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(14,31,102,.36); }
.tb-home-ai .tb-ai__launcher:focus-visible { outline: 3px solid rgba(23,108,245,.35); outline-offset: 3px; }
.tb-home-ai .tb-ai__launcher-label { color: #fff !important; }
.tb-home-ai.tb-ai--open .tb-ai__launcher { display: none !important; pointer-events: none; }
.tb-home-ai .tb-ai__launcher-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: linear-gradient(145deg, #2787ff, #075be8); }
.tb-home-ai .tb-ai__launcher-icon svg { width: 29px; height: 29px; fill: #fff; }
.tb-home-ai .tb-ai__launcher-icon .tb-ai__spark { fill: #bfe1ff; }
.tb-home-ai .tb-ai__panel { display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(680px, calc(100vh - 48px)); height: min(680px, calc(100dvh - 48px)); border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 25px 55px #0f172a40; overflow: hidden; }
.tb-home-ai .tb-ai__header { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 16px 20px; background: #0f172a; color: #fff; }
.tb-home-ai .tb-ai__brand-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #ffffff1a; border-radius: 16px; }
.tb-home-ai .tb-ai__header h2 { margin: 0; font: 700 20px/1.2 'TB Home Display', sans-serif; color: #fff; }
.tb-home-ai .tb-ai__header p { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; }
.tb-home-ai .tb-ai__header p span { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.tb-home-ai .tb-ai__close { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px; flex-shrink: 0; padding: 8px; color: #fff; border-radius: 50%; }
.tb-home-ai .tb-ai__close:hover { background: #ffffff1a; }
.tb-home-ai .tb-ai__gate { flex: 1; min-height: 0; padding: 30px 32px; overflow-y: auto; }
.tb-home-ai .tb-ai__intro-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 16px; background: #fff1f2; color: #be123c; }
.tb-home-ai .tb-ai__gate h3 { margin: 0 0 8px; color: #0f172a; font: 700 26px/1.25 'TB Home Display', sans-serif; text-align: center; }
.tb-home-ai .tb-ai__intro { margin: 0 0 24px; color: #475569; font-size: 14px; line-height: 1.65; text-align: center; }
.tb-home-ai .tb-ai__gate label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.tb-home-ai .tb-ai__gate input { width: 100%; height: 48px; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; color: #0f172a; background: #fff; font-size: 14px; }
.tb-home-ai .tb-ai__gate input:focus { border-color: #be123c; outline: 2px solid #fff1f2; outline-offset: 2px; }
.tb-home-ai .tb-ai__start { width: 100%; margin-top: 24px; padding: 16px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tb-home-ai .tb-ai__start:hover { background: #be123c; }
.tb-home-ai .tb-ai__privacy { margin: 20px 0 0; color: #64748b; font-size: 11px; line-height: 1.65; text-align: center; }
.tb-home-ai .tb-ai__privacy a { text-decoration: underline; text-underline-offset: 2px; }
.tb-home-ai .tb-ai__form-error { color: #be123c; font-size: 13px; margin-top: 12px; }
.tb-home-ai .tb-ai__chat { display: flex; flex-direction: column; min-height: 0; flex: 1; background: #f8fafc; }
.tb-home-ai .tb-ai__messages { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.tb-home-ai .tb-ai__message { width: fit-content; max-width: 85%; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #334155; font-size: 13px; line-height: 1.65; }
.tb-home-ai .tb-ai__message--user { margin-left: auto; background: #0f172a; border-color: #0f172a; color: #fff; }
.tb-home-ai .tb-ai__message-label { display: block; margin-bottom: 4px; color: #be123c; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tb-home-ai .tb-ai__message p, .tb-home-ai .tb-ai__message-content { color: inherit; margin: 0; overflow-wrap: anywhere; line-height: 1.65; }
.tb-home-ai .tb-ai__message-content p + p { margin-top: 10px; }
.tb-home-ai .tb-ai__message-content ul, .tb-home-ai .tb-ai__message-content ol { margin: 8px 0; padding-left: 20px; list-style: revert; }
.tb-home-ai .tb-ai__message-content a { color: #be123c; text-decoration: underline; }
.tb-home-ai .tb-ai__message--user a { color: #fff; }
.tb-home-ai .tb-ai__suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: #fff; border-top: 1px solid #e2e8f0; }
.tb-home-ai .tb-ai__suggestions button { text-align: left; padding: 7px 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; font-size: 11px; }
.tb-home-ai .tb-ai__suggestions button:hover { border-color: #be123c; color: #be123c; }
.tb-home-ai .tb-ai__composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px 4px; background: #fff; }
.tb-home-ai .tb-ai__composer textarea { min-height: 48px; max-height: 96px; flex: 1; min-width: 0; padding: 12px 14px; resize: none; border: 1px solid #cbd5e1; border-radius: 12px; color: #0f172a; background: #fff; font-size: 14px; line-height: 1.5; }
.tb-home-ai .tb-ai__composer button { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 12px; background: #0f172a; color: #fff; }
.tb-home-ai .tb-ai__composer button:hover { background: #be123c; }
.tb-home-ai .tb-ai__chat-status { padding: 0 16px; color: #be123c; background: #fff; font-size: 11px; }
.tb-home-ai .tb-ai__disclaimer { padding: 8px 16px 14px; color: #64748b; background: #fff; font-size: 10px; line-height: 1.5; text-align: center; }
.tb-home-ai .tb-ai__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; }
.tb-home-ai .tb-ai__unavailable { display: grid; place-content: center; gap: 18px; flex: 1; padding: 32px; text-align: center; }
.tb-home-ai .tb-ai__unavailable h3 { font: 700 24px/1.25 'TB Home Display', sans-serif; }
.tb-home-ai .tb-ai__unavailable p { font-size: 14px; color: #475569; }
.tb-home-ai .tb-ai__unavailable a { padding: 14px; background: #0f172a; color: #fff; border-radius: 12px; font-size: 12px; font-weight: 700; }
.tb-home-ai .tb-ai__message--loading .tb-ai__message-content::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid #e2e8f0; border-top-color: #be123c; border-radius: 50%; animation: tb-home-spin .7s linear infinite; }
@keyframes tb-home-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .tb-paths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-paths-heading { grid-template-columns: 1fr .65fr; gap: 32px; } }
@media (max-width: 640px) {
  .home-paths-section { padding: 56px 24px; }
  .tb-paths-heading { grid-template-columns: 1fr; gap: 24px; }
  .tb-paths-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .tb-path-card__image { aspect-ratio: 5/3; padding: 24px; }
  .tb-paths-quote { align-items: stretch; flex-direction: column; padding: 24px; }
  .tb-home-ai .tb-ai__gate { padding: 24px; }
  .tb-home-ai input, .tb-home-ai textarea { font-size: 16px !important; }
}
@media (max-width: 600px) {
  .tb-home-ai { right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .tb-home-ai .tb-ai__launcher { min-height: 54px; padding-right: 17px; font-size: 14px; }
  .tb-home-ai .tb-ai__launcher-icon { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tb-path-card, .tb-home-ai *, .home-paths-section * { transition: none; animation: none; scroll-behavior: auto; } }
