/* chat-pilot.ai — one stylesheet, no framework. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-deep: #0b1b33;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-soft: #e8efff;
  --accent: #f59e0b;
  --ok: #059669;
  --warn-bg: #fff7e6;
  --warn-line: #f5c46b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-soft: #111a2c;
    --bg-deep: #060d1a;
    --card: #131d31;
    --ink: #e5e9f2;
    --ink-soft: #b4bdcc;
    --ink-faint: #8a95a8;
    --line: #233049;
    --brand: #5b8cff;
    --brand-ink: #0b1220;
    --brand-soft: #18264a;
    --warn-bg: #2a2110;
    --warn-line: #7a5a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-soft: #111a2c; --bg-deep: #060d1a; --card: #131d31;
  --ink: #e5e9f2; --ink-soft: #b4bdcc; --ink-faint: #8a95a8; --line: #233049;
  --brand: #5b8cff; --brand-ink: #0b1220; --brand-soft: #18264a;
  --warn-bg: #2a2110; --warn-line: #7a5a17;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font: .9em var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav a.btn { color: var(--brand-ink); background: var(--brand); margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); filter: none; }

/* sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); color: #e8edf6; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: #b9c3d6; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-deep .eyebrow { color: #fbbf24; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .section { padding: 52px 0; } }

/* hero */
.hero { padding: 64px 0 56px; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.hero-text { text-align: center; max-width: 52rem; margin: 0 auto 44px; }
.hero-text .apps, .hero-text .hero-cta { justify-content: center; }
.hero-text .lead { margin-left: auto; margin-right: auto; }
.hero-shot { max-width: 1120px; margin: 0 auto; }
@media (max-width: 600px) { .hero-shot { max-width: 320px; border-radius: 24px; } }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: .92rem; color: var(--ink-faint); margin-top: 16px; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.apps li { font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); overflow: hidden; }
.shot img { width: 100%; }
.shot-phone { max-width: 300px; border-radius: 28px; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--ink-faint); margin-top: 10px; }

/* grids + cards */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; font-size: 1.25rem; }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-deep .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-deep .card h3 { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.section-deep .ticks li::before { border-color: #34d399; }

/* split feature rows */
/* Feature rows: text on top, the screenshot under it at full width, so UI text stays readable
   (side-by-side halved the screenshots). A row whose second child is a card (not a shot) stays two columns. */
.split { display: grid; gap: 28px; grid-template-columns: 1fr; }
.split > :first-child { max-width: 46rem; }
.split > .shot { max-width: 1100px; }
@media (min-width: 900px) { .split.cols { grid-template-columns: 1fr 1fr; align-items: start; } .split.cols > :first-child { max-width: none; } }
.split + .split { margin-top: 88px; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: s; position: relative; padding: 20px 20px 20px 68px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; background: var(--card); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); font-weight: 600; }

/* callouts */
.note { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 18px 20px; }
.note p:last-child { margin-bottom: 0; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--ink-faint); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .a p:last-child { margin-bottom: 0; }

/* waitlist */
.beta { max-width: 640px; margin: 0 auto; text-align: center; }
.beta-form { display: flex; gap: 10px; margin: 24px auto 10px; max-width: 520px; }
.beta-form input[type="email"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font: 1rem var(--font); }
.beta-form input::placeholder { color: #93a0b8; }
.beta-form input:focus { outline: 2px solid #fbbf24; outline-offset: 1px; }
.beta-form .btn { min-height: 48px; background: #fbbf24; color: #1a1300; }
.beta-form .hp { position: absolute; left: -9999px; }
.beta-msg { min-height: 1.6em; font-size: .95rem; }
.beta-msg.ok { color: #6ee7b7; }
.beta-msg.err { color: #fca5a5; }
.beta-fine { font-size: .85rem; color: #93a0b8; }
.beta-fine a { color: #c7d2fe; }
@media (max-width: 520px) { .beta-form { flex-direction: column; } }

/* page head */
.page-head { padding: 64px 0 24px; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* changelog */
.log-day { border-left: 2px solid var(--line); padding: 0 0 8px 24px; position: relative; max-width: 46rem; }
.log-day::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.log-day h2 { font-size: 1.05rem; color: var(--ink-faint); font-weight: 600; }
.log-day ul { margin: 0 0 24px; padding-left: 1.1em; }
.log-day li { margin-bottom: 6px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--bg); }
.foot-in { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.2fr 1fr; } }
.foot-brand p { color: var(--ink-soft); max-width: 28rem; margin-top: 10px; font-size: .95rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; align-content: start; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; font-size: .95rem; }
.foot-nav a:hover { color: var(--ink); }
.fine { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-faint); margin: 8px 0 0; }

/* blog */
.post-date { color: var(--ink-faint); font-size: .95rem; }
.post-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.post-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; color: var(--ink); }
.post-list a:hover h2 { color: var(--brand); }
.post-list h2 { font-size: 1.4rem; margin-bottom: .2em; }
.post .prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.2em 0; }
