:root {
  --bg: #f5f1e8;          /* limestone */
  --panel: #fffdf8;
  --ink: #1b2630;
  --muted: #5d6b75;
  --line: #e2dccf;
  --lake: #1e4d68;        /* Green Bay at dusk */
  --lake-soft: #e3edf2;
  --cherry: #a8323f;      /* Door County cherry */
  --cherry-soft: #f6e4e4;
  --pine: #2f5d47;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,38,48,.06), 0 8px 24px rgba(27,38,48,.06);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191f; --panel: #19222a; --ink: #eef1f2; --muted: #9aa8b2; --line: #2a3640;
    --lake: #7fb4d0; --lake-soft: #1d2f3b; --cherry: #e0707c; --cherry-soft: #3a2226; --pine: #8cc2a6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a.btn { text-decoration: none; color: var(--ink); }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--lake); }
button, input, select, textarea { font: inherit; color: inherit; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cherry); box-shadow: 6px -4px 0 -1px var(--pine); }
.btn { border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: .92rem; }
.btn:hover { border-color: var(--lake); }
.btn-primary { background: var(--lake); color: #fff; border-color: var(--lake); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0e1a22; } }
.btn-primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }

.layout { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; gap: 16px; } }

.intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 12px; }
.intro p { color: var(--muted); margin: 0 0 18px; }
.hosts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (max-width: 860px) { .hosts { grid-template-columns: repeat(2, 1fr); } .intro p.lede-extra { display: none; } }
.host { display: flex; gap: 10px; align-items: flex-start; }
.host b { display: block; font-size: .95rem; }
.host span { color: var(--muted); font-size: .85rem; line-height: 1.35; display: block; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-family: var(--serif); }
.avatar.kate { background: var(--lake); } .avatar.sam { background: var(--pine); } .avatar.lena { background: var(--cherry); } .avatar.walt { background: #8a6a2f; }
@media (prefers-color-scheme: dark) { .avatar { color: #10181e; } .avatar.walt { background: #d6b06a; } }
.intro .promise { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--cherry); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .promise { display: none; } }

.chat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: min(78vh, 760px); min-height: 480px; overflow: hidden; }
@media (max-width: 860px) { .chat { height: 72vh; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head .who b { display: block; font-size: .95rem; }
.chat-head .who span { font-size: .8rem; color: var(--muted); }
.log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; max-width: 100%; }
.msg .avatar { width: 30px; height: 30px; font-size: .85rem; }
.bubble { padding: 10px 14px; border-radius: 16px; max-width: min(560px, 85%); overflow-wrap: break-word; }
.msg.bot > div:last-child { min-width: 0; max-width: min(560px, 85%); }
.msg.bot .bubble { max-width: 100%; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin-bottom: 0; }
.msg.bot .bubble { background: var(--lake-soft); border-top-left-radius: 4px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--lake); color: #fff; border-top-right-radius: 4px; }
@media (prefers-color-scheme: dark) { .msg.user .bubble { color: #0e1a22; } }
.msg .name { font-size: .75rem; color: var(--muted); margin: 0 0 3px 2px; }
.msg.error .bubble { background: var(--cherry-soft); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; color: var(--ink); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card h3 { margin: 0; font-size: 1rem; font-family: var(--serif); font-weight: 600; }
.card .meta { font-size: .8rem; color: var(--muted); }
.card p { font-size: .9rem; margin: 6px 0 8px; }
.tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--cherry); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.card-actions a, .card-actions button { font-size: .85rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; text-decoration: none; color: var(--lake); cursor: pointer; }
.card-actions a.primary { background: var(--lake); color: #fff; border-color: var(--lake); }
@media (prefers-color-scheme: dark) { .card-actions a.primary { color: #0e1a22; } }

.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; display: grid; gap: 8px; color: var(--ink); }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .contact .row { grid-template-columns: 1fr; } }
.contact small { color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lake); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; min-height: 64px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.suggestions button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; color: var(--ink); }
.suggestions button:hover { border-color: var(--lake); color: var(--lake); }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; }
.composer button { flex: none; border-radius: 50%; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }

.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 0 20px 28px; display: flex; gap: 18px; font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Simple content pages */
.page { max-width: 720px; margin: 0 auto; padding: 8px 20px 48px; }
.page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 10px; }
.page h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 28px 0 8px; }
.page .lede { color: var(--muted); font-size: 1.05rem; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 5px; font-size: .9rem; font-weight: 500; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--lake-soft); }
.notice.err { background: var(--cherry-soft); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 8px; }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tier h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; }
.tier .price { color: var(--cherry); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.tier ul { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--muted); }

.handoff { align-self: center; font-size: .82rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; text-align: center; max-width: 90%; }
.handoff b { color: var(--ink); }
