/* Arbos — arbos.life
   Light and dark landing that follows the apps (page #FCFCFC/#141414, cards #F2F2F2/#202020, system font, D79 initials avatars).
   Tokens follow a 4 px grid; section rhythm and type scale match the reference layout. */


:root {
  /* light (app: page #FCFCFC, cards #F2F2F2, user bubble #191919) */
  --bg: #FCFCFC;
  --bg-85: rgba(252, 252, 252, 0.85);
  --bg-rgb: 252, 252, 252;
  --card: #F2F2F2;
  --card-2: #ECECEC;
  --card-3: #E4E4E4;
  --card-hover: #ECECEC;
  --fg: #3A3A3C;
  --heading: #111111;
  --muted: #6E6E73;
  --border: rgba(0, 0, 0, 0.06);
  --border-2: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.1);
  --fg-10: rgba(0, 0, 0, 0.08);
  --fg-06: rgba(0, 0, 0, 0.05);
  --accent: #191919;
  --accent-contrast: #ffffff;
  --bubble-user: #191919;
  --bubble-user-fg: #ffffff;
  --bubble-agent: #F2F2F2;
  --green: #34C759;
  --blue: #006CEB;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  --content: 64rem;       /* 1024 px: copy column */
  --wide: 77rem;          /* 1232 px: cards, frames, nav */
  --header-h: 4rem;
  --radius-xl: 1.5rem;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --dur: 0.6s;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* dark (app: page #141414, cards #202020) */
    --bg: #141414;
    --bg-85: rgba(20, 20, 20, 0.85);
    --bg-rgb: 20, 20, 20;
    --card: #202020;
    --card-2: #262626;
    --card-3: #2E2E2E;
    --card-hover: #262626;
    --fg: #D5D5D9;
    --heading: #ffffff;
    --muted: #95959B;
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.1);
    --fg-10: rgba(255, 255, 255, 0.1);
    --fg-06: rgba(255, 255, 255, 0.06);
    --accent: #ffffff;
    --accent-contrast: #141414;
    --bubble-user: #2A2A2A;
    --bubble-user-fg: #ffffff;
    --bubble-agent: #202020;
    --green: #34C759;
    --blue: #0A84FF;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; margin: 0; }
h2 { font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1rem; line-height: 1.625; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.9em; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--accent-contrast); border-radius: 999px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.container, .container-wide { width: 100%; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.container { max-width: calc(var(--content) + 2rem); }
.container-wide { max-width: calc(var(--wide) + 2rem); }
@media (min-width: 640px) {
  .container, .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; }
  .container { max-width: calc(var(--content) + 3rem); }
  .container-wide { max-width: calc(var(--wide) + 3rem); }
  h2 { font-size: 2.25rem; line-height: 1.11; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  height: 2.25rem; padding: 0 1rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 400; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
@media (min-width: 768px) { .btn { height: 2.75rem; padding: 0 1.5rem; font-size: 1rem; } }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { opacity: 0.88; }
.btn-version { opacity: .6; font-weight: 400; font-variant-numeric: tabular-nums; margin-left: .35em; }
.btn-secondary { background: var(--card-2); color: var(--heading); }
.btn-secondary:hover { background: var(--card-3); }
.btn-outline { background: transparent; color: var(--heading); border: 1px solid var(--line); height: 2.5rem; padding: 0 1.125rem; font-size: 0.875rem; font-weight: 500; }
.btn-outline:hover { border-color: var(--muted); }
.btn-nav-secondary { background: var(--card-2); color: var(--heading); height: 2.5rem; padding: 0 1.125rem; font-size: 0.875rem; font-weight: 500; }
.btn-nav-secondary:hover { background: var(--card-3); }
.btn-nav-primary { background: var(--accent); color: var(--accent-contrast); height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 999px; }
.btn-nav-primary:hover { opacity: 0.88; }
.btn-block { width: 100%; margin-top: 1.5rem; }
.btn-badge { background: var(--accent); color: var(--accent-contrast); border: 1px solid transparent; gap: 0.5rem; padding-left: 0.875rem; padding-right: 1.125rem; }
.btn-badge:hover { opacity: 0.88; }
.btn-badge .iphone { width: 1.1em; height: 1.1em; flex: none; }
.badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.badge-top { font-size: 0.875em; font-weight: 500; }
.badge-sub { font-size: 0.65em; opacity: 0.65; letter-spacing: 0.01em; }
.dl-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.625rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.75rem; font-weight: 500; color: var(--heading); white-space: nowrap; }
.btn .apple { width: 0.85em; height: 1em; margin-top: -0.1em; }
@media (max-width: 639px) { .hero-actions .btn { flex: 1 1 auto; } .hero-actions .btn-badge { order: 3; flex-basis: 100%; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); }
.header-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg-85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.2s;
}
.site-header.is-scrolled .header-bg, .site-header.is-open .header-bg { opacity: 1; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--heading); }
.brand-mark { width: 1.625rem; height: 1.625rem; }
.brand-name { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; }
.nav-links { display: none; align-items: center; margin-left: 1.5rem; }
.nav-links a { display: inline-block; padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500; color: var(--heading); border-radius: 999px; transition: color 0.2s; }
.nav-links a:hover { color: var(--muted); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .btn-nav-secondary { display: none; }
.split { position: relative; display: flex; align-items: stretch; }
.split-toggle {
  display: none; align-items: center; justify-content: center; width: 2rem; height: 2.25rem;
  background: var(--accent); color: var(--accent-contrast); border-radius: 0 999px 999px 0; border-left: 1px solid rgba(128,128,128,0.35);
}
.split-toggle svg { width: 0.875rem; height: 0.875rem; transition: transform 0.2s; }
.split-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 13.5rem; padding: 0.5rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.875rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.menu-label { padding: 0.5rem 0.75rem 0.25rem; font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.menu a { display: flex; align-items: baseline; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--heading); }
.menu a:hover { background: var(--fg-06); }
.menu-sub { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.ext { font-size: 0.75em; color: var(--muted); }
.menu-button { position: relative; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--card-2); }
.menu-button span { position: absolute; left: 0.75rem; right: 0.75rem; height: 1.5px; background: var(--heading); transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
.menu-button span:first-child { top: 0.95rem; }
.menu-button span:last-child { top: 1.45rem; }
.menu-button[aria-expanded="true"] span:first-child { top: 1.2rem; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 1.2rem; transform: rotate(-45deg); }
.mobile-menu {
  position: absolute; top: var(--header-h); left: 0; right: 0; padding: 0.5rem 1rem 1.25rem;
  background: var(--bg); border-bottom: 1px solid var(--border); display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { padding: 0.75rem 0.25rem; font-size: 1.0625rem; font-weight: 500; color: var(--heading); border-bottom: 1px solid var(--border); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; }
.mobile-menu-actions .btn { height: 2.75rem; font-size: 1rem; }
@media (min-width: 640px) { .btn-nav-primary { padding: 0 0.75rem 0 1rem; border-radius: 999px 0 0 999px; } .split-toggle { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions .btn-nav-secondary { display: inline-flex; }
  .menu-button { display: none; }
}

/* ---------- Hero ---------- */
#hero { padding: 8rem 0 5rem; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 3rem; text-align: center; padding-bottom: 2rem; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.launch-pill {
  display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%;
  padding: 0.375rem 0.25rem 0.375rem 0.5rem; margin-bottom: 1rem; border-radius: 999px;
  background: var(--card); transition: background-color 0.2s;
}
.launch-pill:hover { background: var(--card-2); }
.launch-text { font-size: 0.8125rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--heading); }
.launch-text strong { font-weight: 600; }
.launch-more { display: none; }
.launch-more .dot { color: var(--muted); }
.launch-arrow { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--fg-06); font-size: 0.7rem; color: var(--heading); }
.display {
  font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; perspective: 1200px;
}
.display .word { display: inline-block; position: relative; }
.word-mark { vertical-align: bottom; }
.h1-mark { display: inline-block; width: 1em; height: 1em; margin: 0 -0.08em 0 -0.02em; transform: translateY(0.1em); color: var(--heading); }
.lede { margin-top: 1rem; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
@media (min-width: 640px) {
  #hero { padding: 9.25rem 0 7rem; }
  .hero-inner { gap: 4rem; }
  .launch-pill { gap: 0.625rem; padding: 0.375rem 0.375rem 0.375rem 0.625rem; margin-bottom: 1.25rem; }
  .launch-more { display: inline; }
  .display { font-size: 3rem; }
  .lede { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; }
  .hero-actions { margin-top: 1.75rem; }
}
@media (min-width: 768px) { .hero-actions { gap: 0.75rem; } }
@media (min-width: 1024px) { .display { font-size: 3.75rem; } }

/* Framed media (hero and demo) */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border-2); text-align: left; }
.media-frame img { display: block; width: 100%; height: auto; }
.media-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(237,236,236,0.025); pointer-events: none; }
.hero-frame-wrap { width: 100%; }


/* Chat bubbles (thread card) */
.msg { max-width: 34rem; line-height: 1.5; font-size: 0.875rem; }
.msg-user { align-self: flex-end; padding: 0.625rem 0.875rem; border-radius: 1rem; background: var(--bubble-user); color: var(--bubble-user-fg); }
.msg-agent { align-self: flex-start; padding: 0.625rem 0.875rem; border-radius: 1rem; background: var(--bubble-agent); color: var(--heading); }
.working-line { display: flex; align-items: center; gap: 0.5rem; background: none; padding: 0; color: var(--muted); }
.working-dots { display: inline-flex; gap: 0.2rem; }
.working-dots i { width: 0.3rem; height: 0.3rem; border-radius: 50%; background: currentColor; animation: dots 1.2s ease-in-out infinite; }
.working-dots i:nth-child(2) { animation-delay: 0.15s; }
.working-dots i:nth-child(3) { animation-delay: 0.3s; }
.app-composer { display: flex; align-items: center; justify-content: space-between; margin: 0.5rem 1.25rem 1.25rem; padding: 0.75rem 1rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.composer-mic { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); }

/* Approval card (shared) */
.card { border-radius: 1rem; background: var(--bg); border: 1px solid var(--border); }
.approval { align-self: flex-start; max-width: 30rem; padding: 0.875rem 1rem; }
.approval-head { display: flex; align-items: center; gap: 0.5rem; color: var(--heading); font-weight: 500; }
.approval-tag { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(255,159,10,0.18); color: #c77700; }
.approval-body { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.approval-quote { margin-top: 0.5rem; padding: 0.625rem 0.75rem; border-left: 2px solid var(--line); color: var(--fg); font-size: 0.875rem; }
.approval-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.chip { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8125rem; color: var(--fg); }
.chip-solid { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.chip-ghost { border-color: transparent; color: var(--muted); }

/* ---------- Statement ---------- */
#statement { padding: 1rem 0 3rem; }
.statement-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--card);
  box-shadow: 0 0 0 1px var(--border-2); padding: 3rem 2rem 0; min-height: 24rem;
}
.statement-copy { position: relative; z-index: 1; max-width: 26rem; }
.statement-copy h2 { max-width: 42rem; }
.statement-copy p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.625; color: var(--muted); }
.statement-shot { display: block; position: relative; margin: 2rem auto 0; width: 15rem; height: 17rem; object-fit: cover; object-position: top; border-radius: 2.2rem 2.2rem 0 0; box-shadow: var(--shadow); }
@media (min-width: 640px) { .statement-shot { position: absolute; margin: 0; height: auto; object-fit: fill; border-radius: 2.2rem; } }
@media (min-width: 640px) {
  #statement { padding: 2rem 0 4rem; }
  .statement-card { padding: 4rem 3rem; min-height: 26rem; display: flex; align-items: center; }
  .statement-copy { max-width: 42rem; }
  .statement-copy p { max-width: 28rem; }
  .statement-copy p { font-size: 1.125rem; }
  .statement-shot { right: 3rem; top: 3rem; width: 17rem; }
}
@media (min-width: 1024px) {
  .statement-card { padding: 4rem 3rem; min-height: 28rem; }
  .statement-shot { right: 5rem; top: 3rem; width: 19rem; }
}

/* ---------- Sections ---------- */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head p { margin-top: 1rem; max-width: 42rem; font-size: 1rem; line-height: 1.625; color: var(--heading); text-wrap: pretty; }
.section-head .btn { margin-top: 1.5rem; }
@media (min-width: 640px) { .section-head p { font-size: 1.125rem; } }

#features { padding: 5rem 0 3rem; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
.feature-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 24rem;
  padding: 1.5rem; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border-2);
}
.feature-card p { margin-top: 0; color: var(--heading); font-size: 1rem; line-height: 1.625; }
.illus { flex: 1; position: relative; margin: 1.5rem -1.5rem -1.5rem; min-height: 11rem; }
@media (min-width: 640px) { .feature-card { padding: 2rem; } .illus { margin: 1.5rem -2rem -2rem; } }
@media (min-width: 768px) {
  #features { padding: 7rem 0 4rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
  .feature-card { min-height: 25rem; }
}

/* Feature illustrations */
.mini-panel { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0; padding: 1rem 1.125rem 1.25rem; border-radius: 1rem 1rem 0 0; background: var(--bg); border: 1px solid var(--border); border-bottom: 0; font-size: 0.8125rem; }
@media (min-width: 640px) { .mini-panel { left: 2rem; right: 2rem; } }
.mini-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; color: var(--heading); border-bottom: 1px solid var(--border); }
.mini-row:last-of-type { border-bottom: 0; }
.mini-head { font-weight: 500; padding-top: 0; }
.mini-muted { color: var(--muted); text-align: right; }
.pill-state { font-size: 0.6875rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(52,199,89,0.16); color: #1f9d49; }
.mini-bar { height: 0.25rem; margin-top: 0.75rem; border-radius: 999px; background: var(--card-3); overflow: hidden; }
.mini-bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--accent); animation: grow 6s var(--ease) infinite alternate; }


.illus-group { display: flex; flex-direction: column; justify-content: center; gap: 0.625rem; padding: 0 1.5rem 1.5rem; }
@media (min-width: 640px) { .illus-group { padding: 0 2rem 2rem; } }
.relay-line { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; padding: 0.3rem 0.75rem 0.3rem 0.35rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted); }
.relay-line strong { color: var(--heading); font-weight: 500; }
.relay-line:nth-child(2) { align-self: center; }
.relay-line:nth-child(3) { align-self: flex-end; }
.relay-line:nth-child(4) { align-self: center; }
.av-stack { display: flex; justify-content: center; margin-top: 0.5rem; }
.av-stack .ini { box-shadow: 0 0 0 3px var(--card); }
.av-stack .ini + .ini { margin-left: -0.4rem; }

.illus-approve { display: flex; align-items: flex-end; justify-content: center; padding: 0 1.5rem; }
.approval-lg { max-width: 100%; width: 26rem; border-radius: 1rem 1rem 0 0; border-bottom: 0; }

/* ---------- Use cases ---------- */
#projects { padding: 5rem 0 5rem; }
.usecases { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.chip-tab { display: inline-flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip-tab:hover { color: var(--heading); border-color: var(--muted); }
.chip-tab { padding-left: 0.4rem; }
.chip-tab.is-active { color: var(--heading); background: var(--fg-06); border-color: var(--muted); }
.usecase-panels { margin-top: 2rem; min-height: 4.5rem; max-width: 28rem; }
.usecase { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.usecase strong { color: var(--heading); font-weight: 500; }
.usecase[hidden] { display: none; }
.usecases-copy .btn { margin-top: 2.5rem; }
.thread-card { border-radius: var(--radius-xl); background: var(--bg); box-shadow: 0 0 0 1px var(--border-2); overflow: hidden; }
@media (min-width: 1024px) { .thread-card { min-height: 34rem; display: flex; flex-direction: column; } .thread-body { flex: 1; } }
.thread-head { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.thread-title { color: var(--heading); font-weight: 500; }
.thread-meta { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
.thread-body { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem; font-size: 0.875rem; }
@media (min-width: 1024px) {
  #projects { padding: 9.5rem 0 8rem; }
  .usecases { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Demo ---------- */
#demo { padding: 3rem 0 5rem; }

.demo-agent .working-dots { margin-right: 0.5rem; vertical-align: middle; color: var(--muted); }
@media (min-width: 640px) {
  #demo { padding: 10rem 0 7rem; }
  .demo-frame { height: 36rem; }
  .demo-stage { padding: 3rem 2rem 4rem; gap: 1.25rem; }
  .demo-msg { font-size: 1.0625rem; }
}
@media (min-width: 1024px) { .demo-frame { height: 43.3rem; } }

/* ---------- Pricing ---------- */
#pricing { padding: 3rem 0 5rem; }
#pricing .section-head .btn { margin-top: 1.25rem; }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
.price-card { padding: 1.5rem; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border-2); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price-top h3 { font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
.seg { display: inline-flex; padding: 0.125rem; border-radius: 999px; background: var(--card-2); }
.seg span { padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.seg-on { background: var(--accent); color: var(--accent-contrast); }
.seg-off { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 1rem; color: var(--heading); }
.amount { font-size: 2.25rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.per { font-size: 0.875rem; color: var(--muted); }
.billed { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }
.includes { margin-top: 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--heading); }
.feature-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li { position: relative; padding-left: 1.5rem; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.feature-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.3rem; width: 0.6rem; height: 0.35rem; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
.banner { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border-2); }
.banner-text { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--heading); }
.banner-mark { width: 1.125rem; height: 1.125rem; flex: none; }
.banner .btn { align-self: flex-start; }
@media (min-width: 768px) {
  #pricing { padding: 7rem 0 8rem; }
  .price-grid { grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
  .price-card { padding: 2rem; }
  .banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 1.25rem 1.5rem; }
  .banner .btn { align-self: auto; }
}

/* ---------- Download ---------- */
#download { padding: 3rem 0 4rem; }
.download { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.download-copy p { margin-top: 1rem; font-size: 1rem; line-height: 1.625; color: var(--muted); }
.download-list { display: flex; flex-direction: column; gap: 0.75rem; }
.dl-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 5rem; border-radius: 1rem; background: var(--card); transition: background-color 0.2s; }
.dl-row:hover { background: var(--card-2); }
.dl-icon { width: 1.25rem; height: 1.25rem; color: var(--heading); flex: none; }
.dl-text { display: flex; flex-direction: column; gap: 0.1rem; }
.dl-title { font-size: 0.875rem; font-weight: 500; color: var(--heading); }
.dl-sub { font-size: 0.75rem; color: var(--muted); }
.dl-arrow { margin-left: auto; width: 1rem; height: 1rem; color: var(--muted); flex: none; }
@media (min-width: 768px) {
  #download { padding: 7rem 0 7rem; }
  .download { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .download-copy p { font-size: 1.125rem; }
}

/* ---------- Open source ---------- */
#source { padding: 4rem 0 5rem; }
@media (min-width: 768px) { #source { padding: 7rem 0 7rem; } }

/* ---------- FAQs ---------- */
#faqs { padding: 4rem 0 5rem; }
.faqs { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer;
  padding: 1.25rem 0; font-size: 1rem; line-height: 1.5; color: var(--heading);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 0.875rem; height: 0.875rem; color: var(--muted);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 2.75rem 1.25rem 0; margin-top: -0.25rem; font-size: 1rem; line-height: 1.75; color: var(--heading); }
.faq-body p code { font-family: inherit; letter-spacing: 0.1em; }
@media (min-width: 768px) {
  #faqs { padding: 7rem 0 7rem; }
  .faqs { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Get started ---------- */
#get-started { position: relative; overflow: hidden; padding: 6rem 0 0; }
.get-started { text-align: center; position: relative; z-index: 1; }
.get-started p { margin-top: 0.75rem; font-size: 1rem; color: var(--heading); }
.get-started .hero-actions { margin-top: 1.5rem; }
@media (min-width: 768px) {
  #get-started { padding: 8rem 0 0; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.copyright { font-size: 0.6875rem; color: var(--muted); }
.built { display: inline-flex; align-self: flex-start; margin-top: auto; padding: 0.375rem 0.75rem 0.375rem 0.625rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.6875rem; font-weight: 500; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col h3 { font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.8125rem; line-height: 1.625; color: var(--heading); transition: color 0.2s; }
.footer-col a:hover { color: var(--muted); }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 17rem 1fr; gap: 4rem; padding-top: 4rem; padding-bottom: 6rem; }
  .footer-brand { border-right: 1px dashed var(--line); padding-right: 2rem; min-height: 17rem; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* ---------- Motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes dots { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-2px); opacity: 1; } }
@keyframes grow { from { width: 22%; } to { width: 68%; } }

/* Initial states exist only when JS is running, so the page is complete without it. */
.js [data-fade] { opacity: 0; filter: blur(12px); transform: translateY(10px); transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-fade].in { opacity: 1; filter: blur(0); transform: none; }
.js [data-words] .word { opacity: 0; transform: translateY(45%) rotateX(-40deg); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.js [data-words].in .word { opacity: 1; transform: none; }
.js [data-words].in .word:nth-child(2) { transition-delay: 0.08s; }
.js [data-words].in .word:nth-child(3) { transition-delay: 0.16s; }
.js [data-frame] { opacity: 0; transform: translateY(-20px); transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }
.js [data-frame].in { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .feature-grid [data-reveal]:nth-child(2), .js .price-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js .feature-grid [data-reveal]:nth-child(3), .js .price-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.js .feature-grid [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* Demo: messages arrive one by one while in view, then loop */
.js [data-demo] .demo-msg.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .js [data-fade], .js [data-words] .word, .js [data-frame], .js [data-reveal], .js [data-demo] .demo-msg { opacity: 1; filter: none; transform: none; }
}

/* ---------- D79 initials avatars ---------- */
.ini {
  --top: #FF845E; --bottom: #D45246;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(180deg, var(--top), var(--bottom));
  color: #fff; font-weight: 600; font-size: 0.89rem; line-height: 1; letter-spacing: 0;
  vertical-align: middle; user-select: none;
}
.ini-xs { width: 1.125rem; height: 1.125rem; font-size: 0.5rem; }
.ini-sm { width: 1.5rem; height: 1.5rem; font-size: 0.667rem; }
.ini-lg { width: 3rem; height: 3rem; font-size: 1.335rem; }
.ini-xl { width: 6rem; height: 6rem; font-size: 2.67rem; }
/* palette from GET https://relay.arbos.life/avatar-colors (index = sum of UTF-8 bytes of the id, mod 7) */
.c0 { --top: #FF845E; --bottom: #D45246; }
.c1 { --top: #FEBB5B; --bottom: #F68136; }
.c2 { --top: #B694F9; --bottom: #6C61DF; }
.c3 { --top: #9AD164; --bottom: #46BA43; }
.c4 { --top: #53EDD6; --bottom: #28C9B7; }
.c5 { --top: #5CAFFA; --bottom: #408ACF; }
.c6 { --top: #FF8AA5; --bottom: #E05F8E; }
@media (prefers-color-scheme: dark) {
  .c0 { --top: #FF693A; --bottom: #C83B2E; }
  .c1 { --top: #FEAC38; --bottom: #F46C14; }
  .c2 { --top: #9F72F7; --bottom: #5043D9; }
  .c3 { --top: #88C948; --bottom: #3CA03A; }
  .c4 { --top: #33EACE; --bottom: #22AB9C; }
  .c5 { --top: #399EF9; --bottom: #2F78BC; }
  .c6 { --top: #FF668A; --bottom: #DA4179; }
}

/* ---------- Screenshots ---------- */
.hero-shot { position: relative; margin: 0; }
.shot-mac { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow), 0 0 0 1px var(--border-2); }
.shot-phone { position: absolute; right: -0.25rem; bottom: -1.25rem; width: 22%; max-width: 15.5rem; height: auto; border-radius: 1.6rem; box-shadow: var(--shadow), 0 0 0 1px var(--border-2); }
@media (min-width: 640px) { .shot-phone { right: 0.5rem; bottom: -2.5rem; border-radius: 2.2rem; } }
@media (min-width: 1024px) { .shot-phone { right: -1.5rem; bottom: -3.5rem; border-radius: 2.6rem; } }
.twoup { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; align-items: center; }
.twoup figure { margin: 0; }
.twoup-phone { display: flex; justify-content: center; }
.twoup-phone img { width: 15rem; max-width: 70%; height: auto; border-radius: 2.2rem; box-shadow: var(--shadow), 0 0 0 1px var(--border-2); }
@media (min-width: 768px) {
  .twoup { grid-template-columns: 1fr 17rem; gap: 2rem; margin-top: 3rem; }
  .twoup-phone img { width: 15rem; max-width: none; }
}

/* ---------- Feature illustrations (D79) ---------- */
.mini-avatars { display: inline-flex; gap: 0.25rem; }
.handoff { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; font-size: 0.8125rem; color: var(--muted); }
.handoff strong { color: var(--heading); font-weight: 500; }
.thread-avatar { display: inline-flex; }
.illus-call { display: flex; align-items: flex-end; justify-content: center; padding: 0 1.5rem; }
.call-card { width: 26rem; max-width: 100%; padding: 1.25rem 1.25rem 1.25rem; border-radius: 1.25rem 1.25rem 0 0; background: var(--bg); border: 1px solid var(--border); border-bottom: 0; }
.call-head { display: flex; align-items: center; gap: 0.75rem; }
.call-name { font-weight: 600; color: var(--heading); }
.call-sub { font-size: 0.8125rem; color: var(--muted); }
.call-wave { display: flex; align-items: center; justify-content: center; gap: 0.25rem; height: 2.5rem; margin: 1rem 0; }
.call-wave i { width: 0.25rem; height: 30%; border-radius: 999px; background: var(--heading); opacity: 0.8; animation: wave 1.1s ease-in-out infinite; }
.call-wave i:nth-child(2n) { animation-delay: 0.15s; height: 60%; }
.call-wave i:nth-child(3n) { animation-delay: 0.3s; height: 90%; }
.call-wave i:nth-child(5n) { animation-delay: 0.45s; height: 45%; }
.call-actions { display: flex; justify-content: center; gap: 0.5rem; }
.call-btn { display: inline-flex; align-items: center; height: 2rem; padding: 0 0.875rem; border-radius: 999px; background: var(--card-2); color: var(--heading); font-size: 0.8125rem; font-weight: 500; }
.call-end { background: #FF3B30; color: #fff; }
.illus-memory { display: flex; align-items: flex-end; justify-content: center; padding: 0 1.5rem; }
.mem-card { width: 28rem; max-width: 100%; padding: 1rem 1.125rem 1.125rem; border-radius: 1rem 1rem 0 0; background: var(--bg); border: 1px solid var(--border); border-bottom: 0; font-size: 0.8125rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mem-line { display: flex; gap: 0.5rem; align-items: baseline; color: var(--heading); }
.mem-k { flex: none; font-size: 0.6875rem; font-weight: 500; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--fg-06); color: var(--muted); }
.mem-dim { color: var(--muted); }
.voice-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; padding-top: 0.625rem; border-top: 1px solid var(--border); color: var(--heading); }
.voice-pick { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--card-2); color: var(--heading); font-weight: 500; }
.chev { color: var(--muted); font-size: 0.9em; }
.illus-profile { display: flex; align-items: flex-end; justify-content: center; padding: 0 1.5rem; }
.profile-card { width: 24rem; max-width: 100%; padding: 1.25rem 1.25rem 1rem; border-radius: 1.25rem 1.25rem 0 0; background: var(--bg); border: 1px solid var(--border); border-bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 0.8125rem; }
.profile-name { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--heading); }
.profile-sub { color: var(--muted); }
.profile-members { display: flex; margin: 0.5rem 0; }
.profile-members .ini { box-shadow: 0 0 0 2px var(--bg); }
.profile-members .ini + .ini { margin-left: -0.35rem; }
.profile-row { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; background: var(--card); color: var(--heading); }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.lineup .ini { width: 4rem; height: 4rem; font-size: 1.78rem; box-shadow: var(--shadow); }
.lineup .ini:nth-child(odd) { transform: translateY(0.75rem); }
.lineup .ini:nth-child(5) { width: 5.5rem; height: 5.5rem; font-size: 2.45rem; transform: none; }
@media (min-width: 768px) {
  .lineup .ini { width: 6rem; height: 6rem; font-size: 2.67rem; }
  .lineup .ini:nth-child(odd) { transform: translateY(1.5rem); }
  .lineup .ini:nth-child(5) { width: 8rem; height: 8rem; font-size: 3.56rem; transform: none; }
  .lineup .ini:first-child, .lineup .ini:last-child { width: 4.5rem; height: 4.5rem; font-size: 2rem; transform: translateY(2rem); }
}
