/* Homepage narrative presentation only. Shared shell and controls stay in style.css. */
.hn-main { color: #142b38; background: #fff; }
.hn-main * { box-sizing: border-box; }
.hn-shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.hn-main p { margin: 0; line-height: 1.65; }
.hn-main a, .hn-text-button { color: #075c64; text-underline-offset: .25em; }
.hn-main a:hover, .hn-text-button:hover { text-decoration-thickness: 2px; }
.hn-main :focus-visible { outline: 3px solid #9b5100; outline-offset: 5px; }
.hn-kicker { color: #075c64; font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.hn-hero { padding: clamp(2rem, 5vw, 4.5rem) 0; background: #f3f6f2; border-bottom: 1px solid #cbd9d2; }
.hn-hero h1 { max-width: 1000px; margin: 1.2rem 0; color: #142b38; font-size: clamp(2.15rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.hn-hero .hn-lead { max-width: 650px; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.5rem; }
.hn-actions > a { font-weight: 700; }
.hn-main .hn-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .8rem 1.15rem; min-height: 48px; max-width: 100%; color: #fff; background: #075c64; border: 2px solid #075c64; border-radius: 3px; font-weight: 700; text-decoration: none; }
.hn-main .hn-button:hover { color: #fff; background: #123d44; border-color: #123d44; }
.hn-section { padding: clamp(2.2rem, 4.5vw, 4rem) 0; }
.hn-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem 5rem; align-items: start; }
.hn-main h2 { margin: 0; color: inherit; font-size: clamp(1.65rem, 2.7vw, 2.35rem); line-height: 1.2; letter-spacing: -.03em; }
.hn-main h3 { margin: 0; color: inherit; font-size: 1.2rem; line-height: 1.35; }
.hn-split > p, .hn-copy, .hn-evidence p { max-width: 60ch; }
.hn-focus { background: #eaf2ef; border-block: 1px solid #cbd9d2; }
.hn-focus h2 { margin: .6rem 0 .85rem; font-size: clamp(2.4rem, 4vw, 3.4rem); }
.hn-copy > * + * { margin-top: 1rem; }
.hn-copy > a { display: inline-block; font-weight: 700; }
.hn-note { font-size: .95rem; color: #3e5559; border-left: 2px solid #628d83; padding-left: 1rem; }
.hn-main .home-status { margin: .6rem 0 0; padding: .25rem .55rem; font-size: .85rem; font-weight: 650; letter-spacing: 0; color: #204f4d; background: #f4f8f5; border: 1px solid #9ebdb2; border-radius: 3px; }
.hn-section-head { margin-bottom: 1.5rem; }
.hn-section-head h2 { margin-top: .6rem; }
.hn-product-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem 5rem; padding: 1.3rem 0; border-top: 1px solid #ccd8d5; }
.hn-product-row:last-child { border-bottom: 1px solid #ccd8d5; }
.hn-product-row h3 a { color: inherit; }
.hn-product-row h3 span { color: #075c64; }
.hn-text-button { display: inline-block; min-height: 44px; margin-top: .25rem; padding: .4rem 0; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.hn-audience { padding-top: 1rem; }
.hn-evidence { background: #142b38; color: #fff; }
.hn-evidence p { color: #e0e9e8; }
.hn-evidence a { color: #d4efe1; }
.hn-evidence :focus-visible { outline-color: #ffce88; }
.hn-evidence-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.2rem; }
.hn-evidence-links a { padding-block: .5rem; }
.hn-contact { text-align: center; padding-block: clamp(2.7rem, 5vw, 4.5rem); }
.hn-contact p { margin: 1rem 0 1.4rem; }
@media (max-width: 700px) {
  .hn-shell { width: calc(100% - 2rem); }
  .hn-split, .hn-product-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .hn-hero h1 { max-width: 19ch; }
  .hn-main h2 br { display: none; }
  .hn-actions { gap: .7rem 1.3rem; }
  .hn-product-row { padding-block: 1.3rem; }
  .hn-audience { padding-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hn-main *, .hn-main *::before, .hn-main *::after { animation: none; transition: none; scroll-behavior: auto; }
}

/* Homepage Assistant: supersede the legacy ID sizing only on this page.
   The panel includes its border; messages, not the header/composer, shrink. */
#chatbot-box.home-chatbot {
  box-sizing: border-box;
  width: min(320px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(480px, calc(100vh - 2rem));
  max-height: min(480px, calc(100dvh - 2rem));
}
#chatbot-box.home-chatbot > .home-chatbot-header,
#chatbot-box.home-chatbot > .home-chatbot-boundary,
#chatbot-box.home-chatbot > .home-chatbot-controls { flex-shrink: 0; }
#chatbot-box.home-chatbot > .home-chatbot-messages {
  min-height: 0;
  flex: 1 1 140px;
  overflow-y: auto;
}
@media (max-width: 720px) {
  #chatbot-box.home-chatbot {
    width: min(320px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    max-height: min(480px, calc(100vh - 1rem));
    max-height: min(480px, calc(100dvh - 1rem));
  }
}
