/* Chat-first landing page. Shared navigation and support styles remain in style.css. */
.discovery-home { background: #fafaf8; color: #10261b; }
.discovery-home .site-header { background: #fbfbf9; border-bottom: 1px solid #bd832f; box-shadow: none; }
.discovery-home .nav-shell { min-height: 5rem; }
.discovery-home .landing-shell { width: min(1400px, calc(100% - 4rem)); }
.discovery-hero { background: #fafaf8; overflow: hidden; }
.discovery-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(2rem, 4vw, 4.8rem); align-items: center; min-height: 38rem; padding-block: 3.4rem; }
.discovery-intro { align-self: stretch; display: flex; position: relative; flex-direction: column; justify-content: center; padding-bottom: 4rem; }
.discovery-intro h1 { position: relative; z-index: 1; max-width: 11ch; margin: 0; font: 500 clamp(3.3rem, 5.2vw, 5.15rem)/1.02 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.discovery-intro > p { position: relative; z-index: 1; max-width: 28rem; margin: 1.4rem 0 0; color: #223028; font-size: clamp(1.12rem, 1.65vw, 1.45rem); line-height: 1.45; }
.discovery-leaf { position: absolute; left: -5rem; bottom: -3.4rem; width: min(29rem, 105%); height: 13rem; background: url('/static/discovery-leaf.png') bottom left / contain no-repeat; pointer-events: none; }
.discovery-chat { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d8dcd5; border-radius: 15px; box-shadow: 0 12px 30px rgba(21, 38, 28, .08); }
.discovery-chat__header { min-height: 3.5rem; padding: .7rem 1.35rem; display: flex; align-items: center; gap: .75rem; background: #173d2a; color: #fff; }
.discovery-chat__header svg { width: 25px; height: 25px; flex: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.discovery-chat__header h2 { margin: 0; font: 600 1.18rem/1.2 var(--font-display); }
.discovery-reset { margin-left: auto; border: 0; background: none; color: #e5eee5; text-decoration: underline; font: 500 .8rem var(--font-ui); cursor: pointer; }
.discovery-chat__header [data-discovery-stop] { margin-left: .25rem; color: #ffe2cb; }
.discovery-chat__body { padding: 1.65rem; }
.discovery-chat__log { display: grid; gap: 1rem; max-height: 28rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b9c8bd transparent; }
.discovery-message { display: flex; gap: .9rem; align-items: flex-start; min-width: 0; }
.discovery-message__avatar { display: grid; place-items: center; flex: none; width: 2.7rem; height: 2.7rem; color: #183e2b; background: #edf1e9; border-radius: 50%; font-size: 1.3rem; }
.discovery-message > div { min-width: 0; max-width: 100%; border-radius: .9rem; padding: .9rem 1.1rem; background: #f2f3f0; }
.discovery-message p { margin: 0; color: #253228; font: 400 1rem/1.52 var(--font-ui); white-space: pre-wrap; overflow-wrap: anywhere; }
.discovery-message__author { display: block; margin-bottom: .3rem; color: #365347; font-size: .73rem; font-weight: 700; }
.discovery-message--user { justify-content: flex-end; }
.discovery-message--user > div { background: #e6f0e9; }
.discovery-message--user .discovery-message__avatar { display: none; }
.discovery-suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.discovery-suggestions[hidden] { display: none; }
.discovery-suggestions button { min-height: 5rem; padding: .8rem; border: 1px solid #ccd6cb; border-radius: .75rem; background: #fff; color: #23342a; text-align: left; font: 500 .88rem/1.35 var(--font-ui); cursor: pointer; }
.discovery-suggestions button:hover { background: #f5f8f4; border-color: #668475; }
.discovery-composer { display: flex; align-items: flex-end; gap: .5rem; margin-top: 1.5rem; padding: .35rem; border: 1px solid #bfcac0; border-radius: .75rem; background: #fff; }
.discovery-composer:focus-within { outline: 2px solid #4e8772; outline-offset: 2px; }
.discovery-composer textarea { display: block; width: 100%; min-height: 2.65rem; max-height: 8rem; padding: .63rem .7rem; resize: vertical; border: 0; outline: 0; background: transparent; color: #19271f; font: 400 1rem/1.4 var(--font-ui); }
.discovery-composer textarea::placeholder { color: #66746b; }
.discovery-send { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border: 0; border-radius: .45rem; background: #173d2a; color: #fff; cursor: pointer; }
.discovery-send svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.discovery-send:hover { background: #286145; }
.discovery-send:disabled { opacity: .55; cursor: not-allowed; }
.discovery-captcha { margin-top: .8rem; }
.discovery-status { color: #4b5d52; font: 500 .875rem/1.4 var(--font-ui); }
.discovery-status:not(:empty) { margin-top: .7rem; }
.discovery-status[data-error="true"] { color: #973b32; }
.discovery-retry { display: inline-block; margin-top: .6rem; padding: 0; border: 0; background: transparent; color: #285e46; text-decoration: underline; font: 600 .85rem var(--font-ui); cursor: pointer; }
.discovery-retry[hidden] { display: none; }
.discovery-signup { display: flex; gap: .6rem; align-items: baseline; margin: 1.15rem 0 0; color: #45554b; font: 400 .875rem/1.45 var(--font-ui); }
.discovery-signup span { color: #b77a20; font-size: 1.3rem; }
.discovery-signup a, .discovery-explore a { color: #185137; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.discovery-company { margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid #d7e0d7; }
.discovery-company h3 { margin: 0; font: 600 1rem/1.3 var(--font-ui); }
.discovery-company p { margin-top: .3rem; font-size: .87rem; }
.discovery-company a { color: #17573b; overflow-wrap: anywhere; }
.discovery-save { display: inline-flex; align-items: center; justify-content: center; margin-top: .7rem; padding: .5rem .8rem; border: 1px solid #718d7c; border-radius: .45rem; background: #fff; color: #173d2a; font: 600 .82rem var(--font-ui); text-decoration: none; cursor: pointer; }
.discovery-save:hover { background: #f1f6f1; }
.discovery-save:disabled { opacity: .65; cursor: wait; }
.discovery-history { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid #e0e7e0; color: #33483a; }
.discovery-history summary { cursor: pointer; font-weight: 650; }
.discovery-history__item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid #e9eee8; }
.discovery-history__item a { min-width: 0; color: #17573b; overflow-wrap: anywhere; }
.discovery-history__item button, .discovery-shortlist button { flex: none; padding: .35rem .55rem; border: 1px solid #bdcbbf; border-radius: .35rem; background: #fff; color: #31463a; font: 600 .75rem var(--font-ui); cursor: pointer; }
.discovery-shortlist { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid #e0e7e0; }
.discovery-shortlist summary { cursor: pointer; color: #173d2a; font: 500 1.35rem var(--font-display); }
.discovery-shortlist p { color: #52655a; }
.discovery-shortlist__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .7rem; padding: .7rem 0; border-top: 1px solid #e9eee8; }
.discovery-shortlist__item h4, .discovery-shortlist__item p { grid-column: 1; margin: 0; overflow-wrap: anywhere; }
.discovery-shortlist__item h4 { font-size: .9rem; }
.discovery-shortlist__item a { grid-column: 1; color: #17573b; overflow-wrap: anywhere; }
.discovery-shortlist__item button { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.discovery-process { padding: 3.5rem 0 2.7rem; background: #fff; }
.discovery-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.discovery-steps article { display: flex; align-items: start; gap: 1rem; }
.discovery-steps article > span { flex: none; padding-right: .85rem; border-right: 1px solid #be8637; color: #b77a20; font: 400 1.55rem/1.2 var(--font-display); }
.discovery-steps h2 { margin: 0; font: 500 clamp(1.8rem, 2.5vw, 2.35rem)/1.1 var(--font-display); letter-spacing: -.025em; }
.discovery-steps p { margin: .9rem 0 0; max-width: 22rem; color: #3b4a40; font: 400 1rem/1.55 var(--font-ui); }
.discovery-explore { margin: 2.8rem 0 0; text-align: center; color: #27382d; font: 400 1.1rem/1.4 var(--font-display); }
.discovery-contact { padding: 1.4rem 0; border-top: 1px solid #d8e0d8; background: #f4f7f3; }
.discovery-contact .landing-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.discovery-contact p { margin: 0; font-weight: 600; }
.discovery-contact button, .discovery-contact a { border: 0; padding: 0; background: none; color: #185137; text-decoration: underline; text-underline-offset: 3px; font: 600 .9rem var(--font-ui); cursor: pointer; }
.discovery-home footer { padding: 1.25rem 2rem; color: #e2ebe5; background: #173d2a; text-align: center; font-size: .85rem; }
.discovery-home footer p { margin: 0; }
.discovery-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.discovery-home button:focus-visible, .discovery-home a:focus-visible { outline: 3px solid #258d82; outline-offset: 3px; }
@media (max-width: 850px) {
  .discovery-home .landing-shell { width: min(100% - 2rem, 700px); }
  .discovery-layout { grid-template-columns: 1fr; gap: 1.7rem; min-height: 0; padding-block: 3rem; }
  .discovery-intro { padding-bottom: 0; }
  .discovery-intro h1 { max-width: 14ch; font-size: clamp(2.8rem, 8vw, 4.2rem); }
  .discovery-leaf { display: none; }
  .discovery-chat__body { padding: 1.2rem; }
  .discovery-chat__header { flex-wrap: wrap; }
  .discovery-steps { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .discovery-layout { padding-block: 2.25rem; }
  .discovery-intro > p { margin-top: 1rem; }
  .discovery-suggestions { grid-template-columns: 1fr; gap: .5rem; margin-top: 1rem; }
  .discovery-suggestions button { min-height: 0; padding: .7rem .8rem; }
  .discovery-message__avatar { width: 2.2rem; height: 2.2rem; }
  .discovery-message > div { padding: .75rem; }
  .discovery-steps { grid-template-columns: 1fr; gap: 2rem; }
  .discovery-shortlist__item { grid-template-columns: 1fr; }
  .discovery-shortlist__item button { grid-column: 1; grid-row: auto; justify-self: start; }
  .discovery-steps p { margin-top: .55rem; }
  .discovery-process { padding-block: 2.5rem; }
  .discovery-explore { margin-top: 2rem; }
}
