/* Bob — base styles. Mobile-first, system fonts, minimal. */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --accent: #3730a3;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --success: #047857;
  --radius: 12px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 900; font-size: 1.9rem; color: var(--text);
  letter-spacing: -0.04em; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 4px;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); align-self: flex-start; margin-top: 4px;
  position: relative;
}
.brand .dot::after {
  content: ""; position: absolute; inset: 2px;
  border-radius: 50%; background: #fbbf24;
}
@media (min-width: 768px) { .brand { font-size: 2.2rem; } }
.site-header .nav { height: 76px; }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: .9rem;
}
.mobile-menu {
  display: none; padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; color: var(--text);
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-bottom: 1.8em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.section-title { margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; max-width: 640px; }

/* Grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin-bottom: 12px; font-size: .95rem; }
.card a.card-link { font-weight: 600; font-size: .95rem; }
a.card-block { display: block; color: inherit; }
a.card-block:hover { text-decoration: none; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step-body h3 { margin-bottom: 4px; }
.step-body p { margin-bottom: 0; color: var(--muted); }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li {
  padding: 8px 0 8px 28px; position: relative; color: var(--text);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--success); font-weight: 700;
}

/* FAQ */
details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px;
}
details[open] { border-color: var(--accent); }
summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details > *:not(summary) { margin-top: 12px; color: var(--muted); }

/* Tag pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .85rem; font-weight: 500;
}
.pill:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 40px 0 30px;
  background: var(--bg-soft); color: var(--muted); font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  margin-bottom: 24px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--text); font-size: .95rem; margin-bottom: 12px; }
.footer-grid a { color: var(--muted); display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Utility */
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; }
.notice {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 8px; margin: 24px 0;
}
.notice strong { color: var(--accent); }

/* Forms */
.form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-success, .form-error {
  padding: 16px 18px; border-radius: 10px; margin-top: 16px; display: none;
}
.form-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-success.show, .form-error.show { display: block; }

/* Chat wizard */
.chat-box {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; max-width: 720px; margin: 0 auto;
  box-shadow: 0 6px 24px -12px rgba(15,23,42,.15);
}
.chat-feed {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px; max-height: 420px; overflow-y: auto;
  padding: 8px 4px 16px;
}
.chat-msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: .98rem; line-height: 1.5; animation: chatIn .25s ease; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.chat-options button {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font: inherit; font-size: .9rem; color: var(--text);
  transition: all .15s;
}
.chat-options button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-row { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 999px; font: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-input-row button {
  padding: 12px 20px; border-radius: 999px; border: none;
  background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-weight: 600;
}
.chat-result {
  margin-top: 16px; padding: 18px; background: var(--accent-soft);
  border-radius: 12px; border: 1px solid var(--accent);
}
.chat-result h3 { color: var(--accent); margin-bottom: 8px; }
.chat-result .cta-row { margin-top: 12px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingDot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* 404 */
.error-page { padding: 100px 0 80px; text-align: center; }
.error-page h1 { font-size: 6rem; margin-bottom: 0; color: var(--accent); }
