/* BotsInTheModel — shared styles */
/* Page = dark night; cards = warm beige. Tokens re-map inside light surfaces. */
:root {
  --ink: #f8fafc;          /* main text on the page */
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --orange-text: #fbbf24;  /* orange text on dark: high contrast */
  --amber-wash: rgba(245, 158, 11, .14);
  --blue: #3b82f6;
  --bg: #0b0f19;
  --bg-2: #111827;
  --card: #f3efe8;
  --border: #1f2937;
  --on-orange: #0f172a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .28);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Pixelify Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
  color-scheme: dark;
}
/* Light (beige) surfaces */
.card, .faq details, .credit-band {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --orange-text: #b45309;
  --amber-wash: #fbe3bd;
  --border: #e0d7c6;
  --bg-2: #e8e1d4;
  color: var(--ink);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.card a:not(.btn), .faq a { color: var(--orange-text); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 15, 25, .85);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 19px; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; }
.brand .wordmark span { color: var(--orange-text); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-links .btn { margin-left: 6px; }
@media (max-width: 640px) {
  .nav-links a.hide-sm { display: none; }
  .nav-links a { padding: 8px 9px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font: 600 15px/1.2 var(--font);
  color: var(--on-orange); background: var(--orange);
  border: 1px solid var(--orange); border-radius: 10px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--on-orange); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; border-color: #334155; color: var(--ink); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--soft); color: var(--ink); }
.card .btn.ghost { border-color: #cfc5b2; }
.btn.lg { padding: 15px 28px; font-size: 16px; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.nav-links .btn.sm { color: var(--on-orange); background: var(--orange); }
.nav-links .btn.sm:hover { background: var(--orange-dark); }

/* ---------- Type ---------- */
h1, h2 { font-family: var(--display); letter-spacing: 0; line-height: 1.1; font-weight: 600; }
[class], h1, h2, .brand, .pain b, .price, .balance, .credit-math b { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
h3 { font-family: var(--font); line-height: 1.25; }
h1 { font-size: clamp(36px, 6.2vw, 62px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 13px/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em;
  color: var(--orange-text);
}
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin: 12px 0 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--orange-text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--soft); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Night-shift visual: a queue window with the bot */
.queue {
  background: #111a2c; color: #e2e8f0; border-radius: 18px; border: 1px solid #1f2a40;
  padding: 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  position: relative; font-size: 14px;
}
.queue-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.queue-top .dots { display: flex; gap: 6px; }
.queue-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.queue-top .clock { font: 400 12px var(--pixel); color: #94a3b8; letter-spacing: .05em; }
.queue-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.queue-title img { width: 36px; height: 36px; image-rendering: pixelated; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.q-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: #1a2438; margin-top: 8px;
}
.q-row .f { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.q-row .v { color: #94a3b8; font-size: 12px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.tag.done { background: rgba(34, 197, 94, .15); color: #4ade80; }
.tag.run { background: rgba(245, 158, 11, .18); color: #fbbf24; }
.tag.wait { background: rgba(148, 163, 184, .15); color: #94a3b8; }
.q-bar { height: 4px; background: #334155; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 62%; background: var(--orange); border-radius: 4px; animation: fill 3.5s ease-in-out infinite alternate; }
@keyframes fill { from { width: 38%; } to { width: 84%; } }
.queue-foot { display: flex; justify-content: space-between; margin-top: 14px; color: #94a3b8; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .queue-title img, .q-bar i { animation: none; }
}

/* ---------- Problem strip ---------- */
.strip { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain div { padding: 4px 0; }
.pain b { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; margin-bottom: 8px; color: var(--ink); }
.pain p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .pain { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px;
  background: var(--amber-wash); color: var(--orange-text); border-radius: 9px;
  font: 400 14px var(--pixel);
}
.feature-ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-wash); color: var(--orange-text); margin-bottom: 16px;
}
.feature-ic svg { width: 22px; height: 22px; }

/* ---------- Credits teaser ---------- */
.credit-band {
  background: var(--card); border-radius: 22px; padding: 48px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.credit-band h2 { margin: 12px 0 14px; }
.credit-band p { color: var(--muted); }
.credit-math { display: grid; gap: 12px; }
.credit-math div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 18px; background: #0f172a; border-radius: 12px;
}
.credit-math b { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--orange); }
.credit-math span { color: #cbd5e1; font-size: 15px; text-align: right; }
@media (max-width: 860px) { .credit-band { grid-template-columns: 1fr; padding: 32px 22px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange), var(--shadow); }
.plan .badge {
  position: absolute; top: -11px; left: 22px; background: var(--orange); color: var(--on-orange);
  font: 400 11px/1 var(--pixel); padding: 6px 9px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase;
}
.plan h3 { font-size: 17px; }
.plan .price { font-family: var(--display); font-size: 38px; font-weight: 600; margin: 14px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.plan .per { font-size: 14px; color: var(--soft); min-height: 22px; }
.plan ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { font-size: 15px; color: var(--muted); padding-left: 24px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px;
  background: var(--orange); border-radius: 2px;
}
.draft-flag {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--orange-text);
  background: var(--amber-wash); padding: 3px 8px; border-radius: 6px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--font); color: var(--orange-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 15px; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final img { width: 72px; height: 72px; image-rendering: pixelated; margin: 0 auto 20px; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final .lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--soft); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.card a:not(.btn), .faq a { color: var(--orange-text); }
.foot em { font-style: normal; color: var(--orange-text); font-weight: 600; }

/* ---------- Forms / portal ---------- */
.portal-main { min-height: calc(100vh - 64px - 120px); padding: 48px 0 72px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.tabs button {
  border: 0; background: transparent; padding: 10px; border-radius: 8px; cursor: pointer;
  font: 600 14px var(--font); color: var(--muted);
}
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.field { margin-top: 14px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; font: 16px var(--font); color: #0f172a;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
}
.field input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: 13px; color: var(--soft); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: #b45309; width: 16px; height: 16px; flex-shrink: 0; }
.form-actions { margin-top: 22px; display: grid; gap: 10px; }
.linkish { background: none; border: 0; padding: 0; font: 500 14px var(--font); color: var(--orange-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }
.msg { margin-top: 14px; font-size: 14px; display: none; padding: 10px 12px; border-radius: 8px; }
.msg.ok { display: block; color: #166534; background: #ecfdf3; }
.msg.error { display: block; color: #991b1b; background: #fef2f2; }
.msg.info { display: block; color: var(--orange-text); background: var(--amber-wash); }

.dash { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } }
.dash-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.dash-hello img { width: 52px; height: 52px; image-rendering: pixelated; }
.dash-hello h1 { font-size: clamp(26px, 4vw, 34px); }
.balance { font-family: var(--display); font-size: 64px; font-weight: 600; line-height: 1; color: var(--ink); }
.balance-label { font-size: 14px; color: var(--soft); margin-top: 6px; }
.meter { height: 8px; background: var(--bg-2); border-radius: 8px; margin: 20px 0 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--orange); border-radius: 8px; width: 0; transition: width .6s ease; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span:first-child { color: var(--soft); }
.kv span:last-child { font-weight: 600; text-align: right; word-break: break-all; }
.list-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 8px; }
.list-steps li { counter-increment: s; position: relative; padding-left: 36px; font-size: 15px; color: var(--muted); }
.list-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  display: grid; place-items: center; background: var(--amber-wash); color: var(--orange-text);
  border-radius: 6px; font: 400 12px var(--pixel);
}
.stack > * + * { margin-top: 18px; }
.hidden { display: none !important; }

/* ---------- Legal-ish page ---------- */
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 8px 0 0 20px; }
.prose li { margin: 6px 0; }

:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 2px; }

/* small-screen fixes */
.hero-grid > *, .dash > *, .credit-band > * { min-width: 0; }
@media (max-width: 440px) {
  .nav-links a.hide-xs { display: none; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .nav-links { gap: 2px; }
}
