/* Flockbox splash page. The app's palette: dark navy and periwinkle. */
:root {
  --bg: #0d0f13;
  --navy: #232b52;
  --card: #161920;
  --border: #272c37;
  --text: #ffffff;
  --body: #c3c9d4;
  --muted: #8c94a3;
  --accent: #8fa8ff;
  --ok: #4ade80;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(143, 168, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, var(--navy), transparent 70%),
    var(--bg);
}

::selection { background: rgba(143, 168, 255, 0.3); }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1152px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.pill { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

/* Hero */
.hero { display: grid; gap: 56px; align-items: center; padding-top: 32px; padding-bottom: 80px; }
@media (min-width: 768px) { .hero { padding-top: 64px; padding-bottom: 112px; } }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.1fr auto; } }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
h1 { font-size: clamp(40px, 6.6vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; }
.accent { white-space: nowrap; }
.accent { color: var(--accent); }
.lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; color: var(--body); max-width: 52ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 56ch; }
.chips li {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; color: #dbe3ff;
  background: rgba(143, 168, 255, 0.08); border: 1px solid rgba(143, 168, 255, 0.22);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 12px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 12px;
  background: var(--accent); color: var(--bg); font-size: 15px; font-weight: 650;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { transform: translateY(-2px); background: #a9bcff; }
.cta svg { width: 16px; height: 16px; }
.note { font-size: 13px; color: var(--muted); }

/* Phone */
.phone {
  justify-self: center; width: 290px; padding: 10px; border-radius: 42px;
  background: #1d212a; border: 1px solid var(--border);
  box-shadow: 0 40px 120px -30px rgba(143, 168, 255, 0.35);
}
@media (min-width: 1024px) { .phone { justify-self: end; } }
.screen { border-radius: 33px; overflow: hidden; background: var(--bg); }
.status { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; font-size: 11px; color: var(--muted); }
.notch { width: 64px; height: 16px; border-radius: 999px; background: #000; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; }
.app-head b { font-size: 17px; }
.app-head span { font-size: 12px; color: var(--muted); }
.agents { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 16px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.agent i { width: 24px; text-align: center; font-style: normal; font-size: 17px; color: var(--accent); }
.agent span { flex: 1; min-width: 0; }
.agent b { display: block; font-size: 13px; font-weight: 600; }
.agent small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent em { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.add { margin-top: 4px; padding: 12px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 650; background: var(--accent); color: var(--bg); }

/* Features */
.features { display: grid; gap: 12px; padding-bottom: 80px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); padding-bottom: 112px; } }
.features article { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: rgba(22, 25, 32, 0.7); border: 1px solid var(--border); }
.ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(143, 168, 255, 0.12); color: var(--accent); }
.ico svg { width: 20px; height: 20px; }
.features h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.features p { font-size: 14px; line-height: 1.65; color: var(--muted); }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Closing */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-bottom: 96px; }
.closing img { border-radius: 22px; box-shadow: 0 20px 60px -15px rgba(143, 168, 255, 0.5); }
.closing h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; max-width: 18ch; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 18px; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 14px; color: var(--body); padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(143, 168, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(143, 168, 255, 0.12); }
@media (max-width: 520px) { .nav a { padding: 8px 8px; font-size: 13px; } .top .pill { display: none; } }

/* Store buttons (until the listings exist they say "Coming soon") */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  background: #000; border: 1px solid #3a4150; color: var(--text); min-width: 180px;
}
.store svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.store b { font-size: 15.5px; font-weight: 600; }
.store[aria-disabled="true"] { opacity: 0.75; cursor: default; }

/* Install box: tabs per OS, one command, a copy button */
.install { border-radius: 16px; background: rgba(22, 25, 32, 0.85); border: 1px solid var(--border); overflow: hidden; max-width: 680px; }
.install .tabs { display: flex; border-bottom: 1px solid var(--border); }
.install .tabs button {
  flex: 0 0 auto; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px;
  padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent;
}
.install .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.install .cmd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.install code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13px; color: #dbe3ff; }
.install .copy {
  flex: 0 0 auto; background: rgba(143, 168, 255, 0.12); color: var(--accent); border: 1px solid rgba(143, 168, 255, 0.3);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.install .hint { padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }

/* Sections on the home page */
.section { padding-bottom: 88px; }
.section > h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 10px; }
.section > p.sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 60ch; margin-bottom: 28px; }
.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { list-style: none; padding: 24px; border-radius: 16px; background: rgba(22, 25, 32, 0.7); border: 1px solid var(--border); counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.steps h3 { font-size: 16.5px; margin-bottom: 8px; }
.steps p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.grid3 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid3 article { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: rgba(22, 25, 32, 0.7); border: 1px solid var(--border); }
.grid3 h3 { font-size: 16px; }
.grid3 p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.agents-list { display: flex; flex-wrap: wrap; gap: 10px; }
.agents-list span { padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 14px; }
.agents-list b { color: var(--accent); font-weight: 600; }

/* Docs and guide: a contents column and prose */
.doc { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 96px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px minmax(0, 1fr); } }
.toc { font-size: 14px; }
@media (min-width: 960px) { .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; } }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--body); }
.toc a:hover { background: rgba(143, 168, 255, 0.08); color: var(--text); }
.prose { max-width: 760px; color: var(--body); font-size: 15.5px; line-height: 1.75; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 14px; }
.prose h2 { color: var(--text); font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h3 { color: var(--text); font-size: 17px; margin: 28px 0 8px; scroll-margin-top: 24px; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose .install, .prose .callout { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose :not(pre) > code { font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: rgba(143, 168, 255, 0.1); color: #dbe3ff; }
.prose pre { padding: 14px 16px; border-radius: 12px; background: #0a0c10; border: 1px solid var(--border); overflow-x: auto; font-size: 13px; line-height: 1.6; color: #dbe3ff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; white-space: nowrap; }
.prose td code { white-space: nowrap; }
.callout { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(143, 168, 255, 0.3); background: rgba(143, 168, 255, 0.07); font-size: 14.5px; }
.callout.warn { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); }
.lede { font-size: 17px; color: var(--body); }
