:root {
  --ink: #f4efe6;
  --ink-soft: #c9c1b3;
  --ink-faint: #8f877a;
  --bg: #0f0e0c;
  --panel: #1a1815;
  --line: #2e2a24;
  --gold: #c8a96a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
button { font: inherit; cursor: pointer; }

/* Landing */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0 0 auto 0; height: 72svh; background: url('/hero.jpg') center 22% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0 0 auto 0; height: 72svh; background: linear-gradient(180deg, rgba(15,14,12,.15) 0%, rgba(15,14,12,.3) 35%, rgba(15,14,12,.85) 62%, var(--bg) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 20px 48px; }
.brand { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); opacity: .9; z-index: 2; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 11vw, 64px); line-height: 1; margin: 0 0 14px; letter-spacing: -.01em; }
.sub { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin: 0 0 28px; }

form.intake { display: grid; gap: 12px; }
.field label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.field input, .field select {
  width: 100%; background: rgba(244,239,230,.08); border: 1px solid rgba(244,239,230,.32); color: var(--ink);
  font: 16px var(--sans); padding: 14px 14px; border-radius: 10px; outline: none; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--gold); background: rgba(244,239,230,.12); }
.field select option { background: var(--bg); color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.btn { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 16px 22px; font-weight: 600; font-size: 16px; letter-spacing: .02em; width: 100%; margin-top: 6px; transition: opacity .2s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.err { color: #e7a38f; font-size: 14px; min-height: 18px; margin: 2px 0 0; }
.fine { color: var(--ink-faint); font-size: 12px; text-align: center; margin: 10px 0 0; }

/* Chat */
.chat { display: none; flex-direction: column; height: 100svh; max-width: 640px; margin: 0 auto; }
.chat.on { display: flex; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.chat-head b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.chat-head span { font-size: 12px; color: var(--ink-faint); }
.log { flex: 1; overflow-y: auto; padding: 24px 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 86%; line-height: 1.55; font-size: 16px; white-space: pre-wrap; animation: rise .25s ease; }
.msg.a { align-self: flex-start; color: var(--ink); }
.msg.u { align-self: flex-end; background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 4px 16px; color: var(--ink); }
.typing { align-self: flex-start; color: var(--ink-faint); font-size: 22px; letter-spacing: 2px; }
.typing i { animation: blink 1.2s infinite; font-style: normal; } .typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.compose { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.compose textarea { flex: 1; resize: none; background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: 14px; padding: 12px 14px; font: 16px/1.4 var(--sans); max-height: 140px; outline: none; }
.compose textarea:focus { border-color: var(--gold); }
.compose button { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; width: 46px; height: 46px; align-self: flex-end; font-size: 18px; }
.compose button:disabled { opacity: .4; }
.done-bar { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.finish-link { background: none; border: 0; color: var(--ink-faint); font-size: 13px; text-decoration: underline; padding: 6px 20px 0; align-self: center; }

/* ISO page */
.iso-wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 64px; }
.iso-top { position: relative; height: 300px; margin: 0 -20px; overflow: hidden; }
.iso-top .hero-img { background: url('/eye.jpg') center 48% / cover no-repeat; left: 38%; height: 100%; transform: none; }
.iso-top .hero-shade { background: linear-gradient(90deg, var(--bg) 30%, rgba(15,14,12,.35) 70%, rgba(15,14,12,.1)), linear-gradient(180deg, rgba(15,14,12,0) 50%, var(--bg)); }
.iso-top .brand { text-align: left; left: 20px; }
.iso-top + .eyebrow { margin-top: -150px; position: relative; font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 6px 0 10px; }
.iso-wrap h1 { font-size: clamp(34px, 8vw, 50px); margin-bottom: 18px; }
.dream { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--ink); margin: 0 0 24px; }
.rider { color: var(--ink-soft); margin: 0 0 28px; font-size: 15px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 28px; }
.specs div { background: var(--panel); padding: 14px 16px; }
.specs dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 4px; }
.specs dd { margin: 0; font-size: 15px; }
.lists h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin: 22px 0 8px; }
.lists ul { margin: 0; padding-left: 18px; line-height: 1.7; color: var(--ink-soft); }
.meta { color: var(--ink-faint); font-size: 14px; margin: 26px 0 0; }
.ready { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 24px 0 8px; }
.ready p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.5; }
.ready .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ready .btn { margin: 0; padding: 13px 12px; font-size: 14px; }
.seller { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; color: var(--ink-soft); line-height: 1.6; }
.seller b { color: var(--ink); font-weight: 600; }
.made { text-align: center; color: var(--ink-faint); font-size: 13px; margin-top: 40px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.on { opacity: 1; }
@media (max-width: 380px) { .specs { grid-template-columns: 1fr; } .ready .row { grid-template-columns: 1fr; } }
.iso-wrap > *:not(.iso-top) { position: relative; }
