/* vibeos.top. Light and dark follow the system; the switch in the header overrides it (data-theme on <html>). */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --surface: #ffffff;
  --line: #e3e5ea;
  --text: #15171c;
  --muted: #5b6170;
  --faint: #8a90a0;
  --tile: #ffffff;
  --tile-line: #e3e5ea;
  --code-bg: #f4f5f8;
  --accent: #2f4b86;
  --brand: #1E2D4A;
  --shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 8px 28px rgba(20, 22, 28, .08);
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318; --bg-soft: #171a20; --surface: #1b1e25; --line: #2a2e37; --text: #eceef3; --muted: #a6acb9;
    --faint: #7c8392; --tile: #2a2d33; --tile-line: #353943; --code-bg: #1b1e25; --accent: #a8b8e6; --brand: #dfe5f2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111318; --bg-soft: #171a20; --surface: #1b1e25; --line: #2a2e37; --text: #eceef3; --muted: #a6acb9;
  --faint: #7c8392; --tile: #2a2d33; --tile-line: #353943; --code-bg: #1b1e25; --accent: #a8b8e6; --brand: #dfe5f2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 Roboto, "Roboto Flex", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
:not(pre) > code { background: var(--code-bg); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.accent-text { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.logo { height: 34px; width: auto; }
.logo-d { display: none; }
:root[data-dark] .logo-l { display: none; }
:root[data-dark] .logo-d { display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.theme { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 40px; height: 40px;
  border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
:root[data-dark] .theme .sun { display: block; }
:root[data-dark] .theme .moon { display: none; }
.chat-btn { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 40px;
  height: 40px; border-radius: 12px; place-items: center; flex: none; margin-right: -10px; }
.chat-btn svg { width: 21px; height: 21px; }
.chat-btn:hover { text-decoration: none; background: var(--bg-soft); }
.chat-btn[aria-current="page"] { background: var(--bg-soft); border-color: var(--muted); }
@media (max-width: 760px) {
  .nav .hide-s { display: none; }
  .chat-btn { display: grid; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .nav .hide-xs { display: none; }
}

/* hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; background: var(--surface); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px color-mix(in srgb, #3ddc84 25%, transparent); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 40em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 13px 22px; border-radius: 14px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.outline { border: 2px solid var(--text); background: transparent; color: var(--text); }
.btn svg { width: 18px; height: 18px; }

.phone { justify-self: center; width: min(330px, 78vw); aspect-ratio: 1080 / 2280; border-radius: 35px; padding: 11px;
  background: #0b0c0f; box-shadow: 0 0 0 2px #2c2f36, 0 30px 80px rgba(10, 12, 20, .35); position: relative; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #000; }
.phone::after { content: ""; position: absolute; top: 21px; right: 8.5%; width: 15px; height: 15px; border-radius: 50%; background: #050506; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 56px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat b { display: block; white-space: nowrap; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 16px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
/* a cell may be narrower than its widest line: long commands scroll inside their box, not the page */
.grid > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); margin: .4em 0 0; padding-left: 1.1em; }
.card li { margin: .25em 0; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); }
.card .ic svg { width: 22px; height: 22px; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.app { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.app img { width: 52px; height: 52px; flex: none; }
.app b { display: block; }
.app span { color: var(--muted); font-size: .92rem; line-height: 1.45; display: block; }
.app em { font-style: normal; color: var(--faint); font-size: .8rem; }

/* screenshots */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px;
  margin: 0 auto; max-width: calc(var(--wrap) + 0px); scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; width: 210px; scroll-snap-align: start; }
.shots img { width: 210px; aspect-ratio: 540 / 1200; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.shots figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 10px; font-weight: 600; }
.shots figure.wide { width: 370px; }
.shots figure.wide img { width: 370px; aspect-ratio: 2560 / 1600; }

/* sizes table */
.sizes { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sizes th, .sizes td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.sizes th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.sizes td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 4px; background: var(--brand); min-width: 2px; }

/* devices */
.device { display: flex; flex-direction: column; gap: 6px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); align-self: flex-start; }
.badge.ok { color: #1a9b55; border-color: color-mix(in srgb, #3ddc84 50%, var(--line)); background: color-mix(in srgb, #3ddc84 12%, transparent); }
.badge.wip { color: #b7791f; border-color: color-mix(in srgb, #ffb000 50%, var(--line)); background: color-mix(in srgb, #ffb000 12%, transparent); }

/* agent band */
.band { border-radius: 28px; padding: 44px; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand); }
.band .grid { align-items: center; }

/* docs (agents page) */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 48px 20px 80px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .92rem; }
.toc b { display: block; color: var(--faint); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); padding: 5px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.prose { min-width: 0; max-width: 780px; }
.prose h2 { margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 84px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto; line-height: 1.5; margin: 0 0 1.2em; position: relative; }
/* the Copy button gets a band of its own above the first line */
pre:has(.copy) { padding-top: 42px; }
pre .copy { position: absolute; top: 8px; right: 8px; font: 600 .75rem/1 system-ui, sans-serif; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
pre .copy:hover { color: var(--text); }
.note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.2em; }
.note p:last-child { margin: 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { padding-left: 1.8em; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05em; height: 1.05em; border-radius: 5px; border: 2px solid var(--accent); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer p { margin: 0 0 .5em; }
footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }

@media (max-width: 960px) {
  .hero .wrap.hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; }
  .stat b { font-size: 1.55rem; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* a phone never scrolls the page sideways: inline code such as a long function name wraps anywhere, and anything that
   still pokes out is clipped at the edge rather than widening the page (clip, unlike hidden, keeps the sticky header) */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
:not(pre) > code { overflow-wrap: anywhere; }

/* what's new */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news li { display: grid; grid-template-columns: 9.5em 1fr; gap: 18px; padding: 18px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); }
.news time { color: var(--muted); font-weight: 600; font-size: .95rem; padding-top: 1px; }
.news li div { color: var(--muted); }
.news li b { color: var(--text); }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; } }
