/* trybachat.com: one stylesheet, no scripts, no trackers. Brand tokens match lib/app/theme. */
@font-face { font-family: Manrope; src: url(fonts/Manrope-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --brand: #1F4BFF; --mint: #3DF2C2; --navy: #0D1633;
  --bg: #F4F7FF; --surface: #FFFFFF; --ink: #0D1633; --muted: #4A5578; --line: #E2E7F5;
  --link: #1F4BFF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #070B1A; --surface: #121A33; --ink: #F3F5FF; --muted: #A9B4D6; --line: #222C4D; --link: #8FA6FF; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 48px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -1.6px; font-weight: 800; margin: 18px 0 16px; }
h1 em { font-style: normal; color: var(--brand); }
@media (prefers-color-scheme: dark) { h1 em { color: var(--mint); } }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 22px; border-radius: 16px; }
@media (prefers-color-scheme: dark) { .btn { background: var(--brand); } }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: 0.75; line-height: 1.1; }
.note { color: var(--muted); font-size: 14px; }
.hero-art { justify-self: center; position: relative; width: min(360px, 80vw); aspect-ratio: 1; border-radius: 36%;
  background: radial-gradient(60% 60% at 50% 45%, rgba(61, 242, 194, 0.35), transparent 70%); display: grid; place-items: center; }
.hero-art img { width: 62%; border-radius: 28%; box-shadow: 0 30px 60px rgba(13, 22, 51, 0.25); }

/* Sections */
section { padding: 36px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; letter-spacing: -0.3px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 242, 194, 0.18); font-size: 20px; }
.promise { background: var(--navy); color: #fff; border-radius: 28px; padding: 32px; }
.promise h2 { color: #fff; }
.promise ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.promise li { padding-left: 30px; position: relative; color: #D7DDF5; }
.promise li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); }
.promise b { color: #fff; }

/* Long-form pages (privacy, terms, support) */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-top: 8px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc h3 { font-size: 18px; margin: 24px 0 4px; }
.doc p, .doc li { color: var(--ink); }
.doc .meta { color: var(--muted); font-size: 15px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin: 20px 0; }
.box p:first-child { margin-top: 0; } .box p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
details p, details ol, details ul { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; text-align: left; }
  .hero-art { order: -1; width: 200px; }
  .cards { grid-template-columns: 1fr; }
  .promise ul { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 14px; }
}
@media (max-width: 420px) { .nav a.hide-sm { display: none; } }
.promise-sub { margin: 0; color: #D7DDF5; }
.promise-link { margin: 22px 0 0; }
.promise-link a { color: var(--mint); }
.lead.wide { max-width: none; }
