@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 600; font-display: swap; }
/* Only the icons the page uses (a subset made with Google Fonts, Apache 2.0): see assets/material-symbols-icons.txt. */
@font-face { font-family: "Material Symbols Rounded"; src: url("assets/material-symbols-rounded-subset.woff2") format("woff2"); font-style: normal; font-weight: 300; font-display: block; }

:root {
  color-scheme: light;
  --ink: #182e34; --muted: #5b7279; --teal: #286c7b; --teal-dark: #174c59; --line: #d5e2e4; --paper: #f3f7f7; --white: #fff; --soft: #e8f0f1; --warn: #a1281b;
  --font: "DM Sans", Arial, sans-serif; --mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1100px 520px at 50% -140px, #e3eff0 0%, transparent 70%), var(--paper); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 5; padding: 8px 12px; background: var(--white); border-radius: 8px; }
.symbol { font-family: "Material Symbols Rounded"; font-weight: 300; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; user-select: none; }

/* The background: a blueprint grid that fades out from the box, a glow that breathes behind it, and rings that spread from it.
   Only transform and opacity move, so it costs the page almost nothing. It speeds up while someone is typing. */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --cx: 50%; --cy: 42%; }
.aurora::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(40,108,123,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(40,108,123,.10) 1px, transparent 1px); background-size: 44px 44px; background-position: center; -webkit-mask-image: radial-gradient(640px 440px at var(--cx) var(--cy), #000 0%, transparent 80%); mask-image: radial-gradient(640px 440px at var(--cx) var(--cy), #000 0%, transparent 80%); }
.aurora::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 62% at var(--cx) var(--cy), transparent 30%, rgba(24,60,70,.16) 100%); }
.aurora b { position: absolute; left: var(--cx); top: var(--cy); width: min(900px, 130vw); height: min(520px, 70vh); translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,130,150,.52), rgba(80,185,205,.26) 52%, transparent 78%); filter: blur(30px); will-change: scale, opacity; animation: breathe 6.5s ease-in-out infinite; }
.aurora i { position: absolute; left: var(--cx); top: var(--cy); width: min(760px, 120vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px solid rgba(40,130,150,.5); opacity: 0; will-change: scale, opacity; animation: ring 7.5s cubic-bezier(.2,.6,.3,1) infinite; }
.aurora i:nth-of-type(2) { animation-delay: 2.5s; }
.aurora i:nth-of-type(3) { animation-delay: 5s; }
@keyframes breathe { 0%, 100% { scale: .9; opacity: .62; } 50% { scale: 1.1; opacity: 1; } }
@keyframes ring { 0% { scale: .3; opacity: 0; } 14% { opacity: .55; } 100% { scale: 1.55; opacity: 0; } }
body:has(.composer:focus-within) .aurora b { animation-duration: 3.6s; }
body:has(.composer:focus-within) .aurora i { animation-duration: 4.8s; }
body:has(.composer:focus-within) .aurora i:nth-of-type(2) { animation-delay: 1.6s; }
body:has(.composer:focus-within) .aurora i:nth-of-type(3) { animation-delay: 3.2s; }
body.in-chat .aurora { --cy: 52%; opacity: .55; }
body.is-sent .aurora b { animation-duration: 10s; }
@media (prefers-reduced-motion: reduce) { .aurora b { animation: none; opacity: .8; } .aurora i { animation: none; opacity: 0; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(18px, 4vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; letter-spacing: -.02em; }
.brand img { display: block; width: auto; height: 30px; object-fit: contain; flex: none; }
.brand b { font-weight: 500; color: var(--teal); }
.login { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; }
.login:hover { background: var(--white); border-color: #9ec0c7; }

main { width: min(720px, 100% - 36px); margin: 0 auto; padding: clamp(24px, 8vh, 84px) 0 40px; flex: 1; }
.hero { text-align: center; margin-bottom: 30px; }
.eyebrow { margin: 0 0 18px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
h1 { margin: 0; font-size: clamp(38px, 7vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.lede { margin: 16px auto 0; max-width: 34em; font-size: 18px; color: var(--muted); text-wrap: balance; }
body.in-chat .hero { margin-bottom: 18px; }
body.in-chat h1 { font-size: 22px; letter-spacing: -.02em; }
body.in-chat .eyebrow, body.in-chat .lede, body.in-chat .chips, body.in-chat .human { display: none; }

.thread { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; animation: rise .22s ease both; }
.msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 15px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .35; animation: dot 1.1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.composer { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 12px; box-shadow: 0 1px 2px rgba(24,46,52,.04), 0 18px 44px -22px rgba(24,46,52,.22); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: #8fb7bf; box-shadow: 0 1px 2px rgba(24,46,52,.04), 0 22px 54px -24px rgba(40,108,123,.4); }
textarea { display: block; width: 100%; min-height: 76px; max-height: 240px; padding: 2px 4px; border: 0; outline: 0; resize: none; background: transparent; font-size: 18px; line-height: 1.5; }
textarea:focus-visible { outline: none; }
textarea::placeholder { color: #8aa0a6; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.actions { display: inline-flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px 9px 16px; border: 1px solid var(--teal); border-radius: 999px; background: transparent; color: var(--teal); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.pill:hover { background: var(--teal); color: #fff; }
.pill .symbol { font-size: 18px; }
.contact .link { margin-top: 10px; }
.ghost { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; }
.ghost:hover { background: var(--soft); color: var(--ink); }
.round { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--teal); color: #fff; transition: background .15s, transform .15s, opacity .15s; }
.round:hover:not(:disabled) { background: var(--teal-dark); transform: translateY(-1px); }
.round:disabled { opacity: .3; cursor: default; }
.files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; }
.files:empty { display: none; }
.files li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.files button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.files button:hover { background: #d3e3e6; color: var(--ink); }
.files .symbol { font-size: 16px; }
.problem { margin: 8px 4px 2px; font-size: 14px; color: var(--warn); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: 14.5px; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--white); border-color: #9ec0c7; }

.link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; color: var(--teal); font-size: 15px; font-weight: 500; }
.link:hover { color: var(--teal-dark); text-decoration: underline; }
.link .symbol { font-size: 18px; }

.contact { margin-top: 20px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; animation: rise .25s ease both; }
.contact h2, .done h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.contact > p { margin: 0 0 18px; color: var(--muted); }
.fields { display: grid; gap: 14px; margin-bottom: 18px; }
.fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.fields .l em { font-style: normal; font-weight: 400; color: var(--muted); }
.fields input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; font-size: 16px; }
.fields input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 20px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 500; }
.primary:hover:not(:disabled) { background: var(--teal-dark); }
.primary:disabled { opacity: .55; cursor: progress; }

.done { margin-top: 20px; padding: 32px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 24px; animation: rise .25s ease both; }
.done .symbol { font-size: 44px; color: var(--teal); }
.done p { margin: 0; color: var(--muted); }

.human { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.human img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.human p { margin: 0; display: grid; text-align: left; line-height: 1.4; }
.human strong { color: var(--ink); font-weight: 500; }
.human a { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--teal); font-weight: 500; text-decoration: none; }
.human a:hover { color: var(--teal-dark); text-decoration: underline; }
.human a .symbol { font-size: 16px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .composer { border-radius: 20px; padding: 14px 14px 10px; }
  .ghost span { display: none; }
  .msg { max-width: 94%; }
  .contact, .done { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
.review-label { display:block; margin:0 0 24px; }
.review-label textarea { display:block; width:100%; margin-top:10px; min-height:140px; padding:14px; resize:vertical; border:1px solid var(--line); border-radius:12px; background:var(--white); line-height:1.6; }

.intake-consent { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.6; margin:20px 0 10px; }
.intake-consent input { width:20px; height:20px; flex-shrink:0; }
