:root{
  --bg:#faf6f1; --surface:#fff; --ink:#2b1d14; --muted:#6f5b4b;
  --espresso:#3b2418; --crema:#c8894b; --crema-soft:#f3e3d1; --line:#e7d9ca;
  --radius:14px; --max:1080px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);line-height:1.6}
a{color:var(--espresso)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
header.site{background:var(--espresso);color:#fff}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:1.25rem;letter-spacing:.2px}
.logo .puck{width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#e0a86a,#8a5a33 60%,#4a2c1b);box-shadow:inset 0 0 0 3px #2a180f}
nav a{color:#f3e3d1;text-decoration:none;margin-left:18px;font-size:.95rem}
nav a:hover,nav a[aria-current]{color:#fff;text-decoration:underline}
.hero{padding:64px 0 40px;background:linear-gradient(180deg,var(--crema-soft),var(--bg))}
.hero h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.1;margin:0 0 12px;color:var(--espresso)}
.hero p.lead{font-size:1.15rem;color:var(--muted);max-width:640px;margin:0 0 24px}
.btn{display:inline-block;background:var(--crema);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-weight:700;font-size:1rem;text-decoration:none;cursor:pointer}
.btn:hover{background:#b4773c}
.btn.ghost{background:transparent;color:var(--espresso);border:2px solid var(--espresso)}
section{padding:40px 0}
h2{color:var(--espresso);font-size:1.6rem;margin:0 0 16px}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.card .num{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--crema-soft);color:var(--espresso);font-weight:800;margin-bottom:8px}
.card h3{margin:4px 0 6px;font-size:1.1rem}
.card p{margin:0;color:var(--muted)}
.builder{display:grid;grid-template-columns:minmax(260px,1fr) 2fr;gap:20px}
@media (max-width:820px){.builder{grid-template-columns:1fr}nav a{margin-left:12px}}
label{display:block;font-weight:600;margin:12px 0 6px;font-size:.95rem}
select,input,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff;color:var(--ink)}
fieldset{border:0;padding:0;margin:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips label{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:500;background:var(--crema-soft);padding:6px 12px;border-radius:999px;cursor:pointer}
.chips input{width:auto}
.chat{display:flex;flex-direction:column;min-height:420px}
.log{flex:1;overflow-y:auto;max-height:460px;padding:4px;display:flex;flex-direction:column;gap:10px}
.msg{padding:10px 14px;border-radius:12px;max-width:88%;white-space:pre-wrap}
.msg.bot{background:var(--crema-soft);align-self:flex-start}
.msg.user{background:var(--espresso);color:#fff;align-self:flex-end}
.msg.note{background:#fff7e6;border:1px dashed var(--crema);align-self:stretch;max-width:100%;font-size:.92rem}
.composer{display:flex;gap:8px;margin-top:12px}
.composer input{flex:1}
.fine{font-size:.85rem;color:var(--muted);margin:10px 0 0}
.notice{background:#fff;border-left:4px solid var(--crema);padding:12px 16px;border-radius:8px;color:var(--muted)}
.prose{max-width:760px}
.prose h1{color:var(--espresso)}
.empty{text-align:center;padding:48px 20px;border:2px dashed var(--line);border-radius:var(--radius);background:#fff}
.todo{background:#fff3cd;padding:2px 6px;border-radius:4px;font-family:ui-monospace,monospace;font-size:.9em}
footer.site{border-top:1px solid var(--line);margin-top:40px;padding:28px 0;color:var(--muted);font-size:.9rem}
footer.site .links a{margin-right:14px}
