:root {
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f3f1ec; --text: #1c1b19; --muted: #5f5b53;
  --line: #e4e0d7; --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #e3f2ef; --code: #f3f1ec;
  --warn-bg: #fff4e5; --warn-line: #f0c27a;
  --shadow: 0 1px 2px rgba(28,27,25,.05), 0 8px 24px rgba(28,27,25,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --surface: #1c1c1a; --surface-2: #232320; --text: #eceae4; --muted: #a8a49a;
    --line: #34332f; --accent: #2dd4bf; --accent-ink: #0b1f1d; --accent-soft: #15302c; --code: #232320;
    --warn-bg: #2d2416; --warn-line: #7a5a26;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
code { background: var(--code); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.center { text-align: center; }

header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-weight: 700; letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; display: block; }
.nav nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn.full { width: 100%; }

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 16px 0; }
.page-title { font-size: clamp(28px, 4vw, 38px); margin: 8px 0 20px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.center .lead { margin-left: auto; margin-right: auto; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 42em; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.eyebrow.soon { color: var(--muted); background: var(--surface-2); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }

/* hero */
.hero { padding: 64px 20px 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.trust span::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* chat demo */
@media (prefers-reduced-motion: reduce) { .msg { animation: none; opacity: 1; transform: none; } }

/* flow diagram */

/* cards and grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.asks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ask { font: inherit; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ask small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }

/* install illustration */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step b { color: var(--text); }
.mock { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 12px; font-size: 13px; min-height: 132px; }
.mock .search { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--surface); color: var(--muted); margin-bottom: 10px; }
.mock .search b { color: var(--text); font-weight: 600; }
.mock .row { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.mock .drop { border: 2px dashed var(--accent); border-radius: 10px; padding: 18px 10px; text-align: center; color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.mock .file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; margin-bottom: 10px; }
.mock .file::before { content: ""; width: 14px; height: 17px; border-radius: 3px; background: var(--accent); display: inline-block; }
.mock .ok { color: var(--accent); font-weight: 700; }
.install-alt { margin-top: 18px; }
.prompt { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; margin: 8px 0 12px; word-break: break-word; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, 1fr); }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 19px; }
.price { margin: 6px 0 14px; color: var(--muted); }
.price b { font-size: 36px; color: var(--text); letter-spacing: -.02em; margin-right: 4px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.ticks li { padding: 5px 0 5px 26px; position: relative; color: var(--muted); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pill-accent { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* security, faq, status */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks b { display: block; }
.checks span { color: var(--muted); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 14px; color: var(--muted); }
.status-box { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; }
.status-box.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.big-tick { width: 72px; height: 72px; border-radius: 50%; margin: 24px auto 8px; display: grid; place-items: center; font-size: 38px; color: var(--accent-ink); background: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .grid3, .asks, .checks, .steps, .plans, .plans-2, .how { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .wrap .btn { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .prompt { font-size: 13px; }
  .flow { padding: 16px 8px; }
  .flow svg:not(.flow-vertical) { display: none; }
  .flow .flow-vertical { display: block; }
}

/* ---- live demo ---- */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-top .dots { display: flex; gap: 6px; }
.demo-top .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-title { font-weight: 600; color: var(--text); }
.sample { margin-left: auto; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.demo-chat { height: 330px; overflow-y: auto; padding: 16px; font-size: 15px; scroll-behavior: smooth; }
.demo-pick { border-top: 1px solid var(--line); padding: 12px 16px 16px; background: var(--bg); }
.demo-hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-write { border-style: dashed; }
.msg { padding: 11px 14px; border-radius: 12px; margin-bottom: 10px; animation: pop .35s ease both; }
.msg.you { background: var(--accent-soft); margin-left: 18%; min-height: 1.6em; }
.msg.ai { border: 1px solid var(--line); background: var(--surface); }
.msg.tool { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 7px 12px; display: flex; align-items: center; gap: 8px; }
.msg.tool.done { color: var(--accent); border-style: solid; border-color: var(--accent-soft); }
.msg table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.msg td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.msg td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.msg .tag { font-size: 12px; color: var(--muted); }
.msg .tag.late { color: #b45309; font-weight: 600; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.confirm { display: flex; gap: 8px; margin-top: 10px; }
.confirm .btn { padding: 8px 14px; font-size: 14px; }
.bars { margin: 10px 0; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 76px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--muted); border-radius: 6px; animation: grow .9s ease both; }
.bar.cost i { background: #d6a35c; }
.bar.profit i { background: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { width: 0; } }

/* ---- old vs new ---- */
section.tight { padding-top: 40px; }
.toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.versus .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; max-width: 720px; animation: pop .3s ease both; }
.oldsteps { margin: 0; padding-left: 22px; color: var(--muted); display: grid; gap: 6px; }
.oldsteps li::marker { color: #b45309; font-weight: 700; }
.onestep { display: grid; gap: 10px; }
.bubble { padding: 11px 14px; border-radius: 12px; max-width: 520px; }
.bubble.you { background: var(--accent-soft); justify-self: end; }
.bubble.ai { border: 1px solid var(--line); }
.clock { margin: 16px 0 0; font-size: 17px; }

/* ---- video ---- */
.video-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 16 / 9; max-width: 960px; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---- how it works ---- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: how; }
.how-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.how-step h3 { margin: 12px 0 6px; font-size: 20px; }
.how-step p { margin: 0; color: var(--muted); }
.how-icon { font-size: 40px; line-height: 1; }
.how-step .num { position: absolute; top: 18px; right: 18px; }

/* ---- plan picker ---- */
.picker { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; }
.picker p { margin: 0 0 10px; }
.picker-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.picker-out { margin: 12px 0 0 !important; min-height: 1.6em; }
.plan { transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan.picked { transform: translateY(-4px); box-shadow: var(--shadow); border: 2px solid var(--accent); }

.ask { cursor: pointer; transition: border-color .15s; }
.ask:hover { border-color: var(--accent); }
.ask.static { cursor: default; }
.ask.static:hover { border-color: var(--line); }
section.final { text-align: center; }
section.final .lead { margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .demo-chat { height: 300px; }
  .how { grid-template-columns: 1fr; }
  .msg.you { margin-left: 8%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
