:root{
  --bg:#0f172a;
  --card:#111827;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --line:#1f2937;
  --accent:#2563eb;
  --accent-2:#1d4ed8;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.landing-wrap,.auth-wrap,.app-wrap{max-width:760px;margin:0 auto;padding:16px}
.hero-card,.auth-card,.chat-card,.recent-strip{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
}
.hero-card,.auth-card,.chat-card{padding:18px}
.hero-card{margin-top:24px}
.brand-line{font-size:12px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
h1{font-size:28px;line-height:1.1;margin:0 0 10px}
.subtitle{color:var(--muted);margin:0 0 18px}
.price-box{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 16px}
.price-label{font-size:13px;color:var(--muted)}
.price-value{font-size:30px;font-weight:700;margin:4px 0}
.price-note{font-size:14px;color:var(--muted)}
.cta-group{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:10px;border:0;cursor:pointer}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-2)}
.btn-secondary{background:#1f2937;color:#fff}
.btn-link{background:transparent;color:#cbd5e1;padding:0}
.disclaimer{margin-top:18px;font-size:13px;color:var(--muted)}
.form-stack{display:flex;flex-direction:column;gap:12px}
.form-stack label{display:flex;flex-direction:column;gap:6px}
.form-stack input,.chat-form textarea{width:100%;padding:12px;border-radius:10px;border:1px solid #334155;background:#0b1220;color:#fff}
.turnstile-placeholder{border:1px dashed #475569;border-radius:10px;padding:12px;color:var(--muted);text-align:center}
.status-box{margin-top:12px;padding:10px 12px;border-radius:10px;background:#0b1220;border:1px solid #334155}
.status-box.ok{border-color:#166534;background:#052e16}
.status-box.error{border-color:#7f1d1d;background:#450a0a}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 14px}
.topbar-title{font-size:20px;font-weight:700}
.topbar-user{display:flex;align-items:center;gap:12px;color:var(--muted)}
.recent-strip{padding:12px 14px;margin-bottom:14px}
.recent-title{font-size:13px;color:var(--muted);margin-bottom:8px}
.recent-results{font-size:14px}
.chat-messages{display:flex;flex-direction:column;gap:10px;min-height:280px;max-height:55vh;overflow:auto;margin-bottom:12px}
.message{max-width:92%;padding:10px 12px;border-radius:12px;border:1px solid var(--line)}
.message.user{align-self:flex-end;background:#172554}
.message.assistant{align-self:flex-start;background:#111827}
.chat-form{display:flex;flex-direction:column;gap:10px}
@media (max-width:640px){
  h1{font-size:24px}
  .landing-wrap,.auth-wrap,.app-wrap{padding:12px}
  .hero-card,.auth-card,.chat-card{padding:14px}
  .price-value{font-size:26px}
}
