/*
 * airboss.dev. Looks like the app: zinc greys, Geist, hairline borders, no colour of its own. Dark by default like the
 * app; the light theme is there for readers who pick it. The screenshots carry the colour.
 */

@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #09090b;          /* zinc-950 */
  --soft: #111113;
  --fg: #fafafa;
  --text: #d4d4d8;        /* zinc-300 */
  --muted: #a1a1aa;       /* zinc-400 */
  --line: #27272a;        /* zinc-800 */
  --line-strong: #3f3f46; /* zinc-700 */
  --invert-fg: #09090b;
  --sans: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #ffffff; --soft: #f4f4f5; --fg: #09090b; --text: #3f3f46; --muted: #71717a; --line: #e4e4e7; --line-strong: #d4d4d8;
  --invert-fg: #ffffff; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--fg); color: var(--invert-fg); padding: 6px 12px; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 24px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; margin-right: auto; }
.brand b { font-weight: 600; font-size: 16px; letter-spacing: -.005em; }
.brand .tag { font-size: 15px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--fg); color: var(--invert-fg); }
.mark svg { width: 16px; height: 16px; }
.toplinks { display: flex; gap: 4px; margin-right: 8px; }
.toplinks a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 6px; }
.toplinks a:hover { color: var(--fg); }
button.theme, button.menu {
  font: inherit; font-size: 14px; color: var(--fg); cursor: pointer; background: transparent;
  border: 1px solid var(--line-strong); border-radius: 6px; height: 34px; padding: 0 12px;
}
button.theme { width: 34px; padding: 0; position: relative; }
button.theme::before { content: ''; position: absolute; inset: 0; margin: auto; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
button.menu { display: none; }
button.theme:hover, button.menu:hover { background: var(--soft); }

/* ---------- Docs shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.sidebar { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 32px 16px 24px 24px; border-right: 1px solid var(--line); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 15px; }
.sidebar a:hover { color: var(--fg); }
.sidebar a[aria-current='page'] { color: var(--fg); font-weight: 600; background: var(--soft); }

main { display: grid; grid-template-columns: minmax(0, 700px) 200px; gap: 64px; padding: 48px 40px 80px; justify-content: center; }
article { min-width: 0; }
.page-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
h1, h2, h3 { color: var(--fg); font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: 42px; line-height: 1.12; margin: 0 0 12px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 34em; }
h2 { font-size: 26px; line-height: 1.25; margin: 52px 0 12px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; margin: 32px 0 8px; }
h2, h3 { position: relative; }
.anchor { position: absolute; left: -22px; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
li::marker { color: var(--muted); }
strong { color: var(--fg); font-weight: 600; }
code { font: .85em/1.5 var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; color: var(--fg); }
pre { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }

.table { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
th { color: var(--fg); font-weight: 600; border-bottom-color: var(--line-strong); }
td:first-child { white-space: nowrap; }

.callout { margin: 24px 0; padding: 14px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.callout p:last-child { margin-bottom: 0; }

.toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 8px; color: var(--fg); font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--fg); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.pager a { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); font-weight: 600; }
.pager a:hover { border-color: var(--line-strong); background: var(--soft); }
.pager span { font-weight: 400; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }

.frame img, figure.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #09090b; }
figure.shot { margin: 28px 0 32px; }
figure.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.phones { display: flex; gap: 16px; justify-content: center; margin: 28px 0 32px; }
.phones img { width: 31%; max-width: 230px; height: auto; border-radius: 26px; border: 1px solid var(--line); }

.foot { padding: 28px 24px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

.btn, .button { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 7px; font-weight: 550; font-size: 15px; text-decoration: none; border: 1px solid var(--fg); color: var(--fg); }
.btn.primary, .button { background: var(--fg); color: var(--invert-fg); }
.btn.primary:hover, .button:hover { opacity: .88; }
.btn.ghost:hover { background: var(--soft); }

/* 404 */
.notfound main { display: block; max-width: 560px; margin: 18vh auto 0; padding: 0 16px; }
.notfound .code { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.button { margin-top: 12px; }

/* ---------- Landing ---------- */
.landing { display: block; padding: 0; }
.landing .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.landing section { border-top: 1px solid var(--line); padding: 96px 0; }
.landing section.hero { border-top: 0; padding: 104px 0 112px; overflow: hidden; }
.landing h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; }
.hero .wrap { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 56px; align-items: center; }
.hero .bleed { margin-right: -32px; }
.hero .bleed img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.landing h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin: 0 0 16px; }
.landing h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.005em; }
.landing .lead { font-size: 18px; max-width: 32em; margin: 0 0 32px; }
.landing p { color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.landing section.trio-row { border-top: 0; padding: 0 0 32px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.trio > div { padding: 28px; border-left: 1px solid var(--line); }
.trio > div:first-child { border-left: 0; }
.trio p { margin: 0; font-size: 15px; }

.feat { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feat > div:first-child p { margin: 0 0 20px; }
.feat ul { color: var(--muted); padding-left: 20px; margin: 0 0 20px; font-size: 16px; }
a.more { font-weight: 550; }
.feat .phones { margin: 0; justify-content: flex-start; }
.feat .phones img { flex: 1 1 0; min-width: 0; width: auto; max-width: 220px; }

.limits { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; }
.limits dl { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin: 0; }
.limits dt { color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.limits dd { margin: 0; color: var(--muted); font-size: 16px; }

.final p { margin: 0 0 32px; }

/* ---------- Narrow ---------- */
@media (max-width: 1180px) {
  main { grid-template-columns: minmax(0, 700px); }
  .toc { display: none; }
}
@media (max-width: 980px) {
  .feat, .limits, .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero .bleed { margin-right: 0; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio > div { border-left: 0; border-top: 1px solid var(--line); }
  .trio > div:first-child { border-top: 0; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  button.menu { display: inline-block; }
  .brand .tag { display: none; }
  .sidebar { display: none; position: fixed; inset: 64px 0 auto 0; height: auto; max-height: calc(100vh - 64px); background: var(--bg); z-index: 4; padding: 12px 16px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar.open { display: block; }
  main { padding: 32px 16px 64px; }
  .anchor { display: none; }
}
@media (max-width: 600px) {
  .top { padding: 0 16px; }
  .toplinks a:not(:first-child) { display: none; }
  .landing .wrap { padding: 0 16px; }
  .landing section { padding: 64px 0; }
  .landing section.hero { padding: 64px 0 56px; }
  .trio > div { padding: 20px; }
  .limits dl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  h1 { font-size: 34px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
}
