/* Magnum BI website — plain CSS, no build step.
   Colours follow the app's default themes, Aloha and Aloha night (backend/src/themes.rs):
   sand, a red Ferrari 308 for the accent, an aloha shirt for the charts — a nod to Magnum, P.I. */
:root {
  --bg: #fff6e9;
  --bg-soft: #fdeed6;
  --surface: #fffdf8;
  --border: #efd9b8;
  --text: #2a1a12;
  --text-muted: #6e4f3a;
  --accent: #c8102e;
  --accent-strong: #a00d25;
  --accent-soft: #fde3e1;
  --on-accent: #ffffff;
  --code-bg: #fbe7c9;
  --ok: #13795b;
  --sky-top: #fde3e1;
  --sky-mid: #ffe8c4;
  --silhouette: #2a1a12;
  --on-tint: #ffffff;
  /* the aloha shirt: lagoon, hibiscus, pineapple, ocean, plumeria, palm, sunset, orchid */
  --p1: #0a8a9e; --p2: #d62839; --p3: #a87800; --p4: #1f5fa8;
  --p5: #c9327d; --p6: #2b8a3e; --p7: #d4580a; --p8: #7a3fa0;
  --shadow: 0 1px 2px rgba(42, 26, 18, .06), 0 10px 28px rgba(110, 79, 58, .10);
  --radius: 12px;
  --max: 1120px;
  color-scheme: light;
}
/* Aloha night: a Pacific night, coral and turquoise */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a2b; --bg-soft: #0f2135; --surface: #11243a; --border: #244463;
    --text: #f7efe2; --text-muted: #b9c6d3; --accent: #ff6b6b; --accent-strong: #ff8a80;
    --accent-soft: #3d2232; --on-accent: #0b1a2b; --code-bg: #0d1f33; --ok: #4cd38a;
    --sky-top: #3d2232; --sky-mid: #1b2442; --silhouette: #000000; --on-tint: #0b1a2b;
    --p1: #2ec4b6; --p2: #ff6b6b; --p3: #ffb703; --p4: #5aa9ff;
    --p5: #ff70a6; --p6: #8ac926; --p7: #fb8b24; --p8: #b39cff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a2b; --bg-soft: #0f2135; --surface: #11243a; --border: #244463;
  --text: #f7efe2; --text-muted: #b9c6d3; --accent: #ff6b6b; --accent-strong: #ff8a80;
  --accent-soft: #3d2232; --on-accent: #0b1a2b; --code-bg: #0d1f33; --ok: #4cd38a;
  --sky-top: #3d2232; --sky-mid: #1b2442; --silhouette: #000000; --on-tint: #0b1a2b;
  --p1: #2ec4b6; --p2: #ff6b6b; --p3: #ffb703; --p4: #5aa9ff;
  --p5: #ff70a6; --p6: #8ac926; --p7: #fb8b24; --p8: #b39cff;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.3);
  color-scheme: dark;
}
/* a sunset stripe from the palette, as in the app's top bar */
:root { --stripe: linear-gradient(90deg, var(--p1), var(--p2), var(--p3), var(--p4), var(--p5), var(--p6), var(--p7)); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace; font-size: .88em; }
:not(pre) > code { background: var(--code-bg); padding: .1em .4em; border-radius: 5px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stripe); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--accent); }
.site-header .brand span::after { content: " 🌺"; font-size: .8em; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-muted); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.icon-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-muted); }
.menu-btn { display: none; margin-left: auto; }

/* after downloading the macOS app: how to open an unsigned app */
.download-note {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 48px 16px 18px; font-size: .92rem;
}
.download-note p { margin: 8px 0 0; color: var(--text-muted); }
.download-note code { display: block; margin-top: 6px; padding: 6px 8px; white-space: nowrap; overflow-x: auto; }
.download-note > a { display: inline-block; margin-top: 10px; }
.download-note .icon-btn { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; }
@media (max-width: 480px) { .download-note { left: 16px; max-width: none; } }

/* the Download menu in the top bar: desktop app, server, source */
.download-menu { position: relative; }
.download-menu summary { list-style: none; cursor: pointer; }
.download-menu summary::-webkit-details-marker { display: none; }
.download-menu summary::after { content: "▾"; margin-left: 6px; font-size: .8em; }
.download-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.download-group { display: flex; flex-direction: column; gap: 6px; }
.download-group b { color: var(--text); font-size: .95rem; }
.download-group span { color: var(--text-muted); font-size: .8rem; margin-bottom: 4px; }
.nav .download-group a { color: var(--text-muted); }
.nav .download-group a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav .btn { margin-top: 8px; justify-content: center; }
  .download-menu summary { display: flex; }
  .download-panel { position: static; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; box-shadow: none; }
  .nav .download-group a { padding: 6px 8px; }
  .site-header .wrap > .theme-toggle { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; border-color: var(--text-muted); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.small { padding: 7px 14px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta.downloads { margin: 16px 0; }
#lite .cta.downloads { margin-top: 24px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: .93rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
@media (max-width: 920px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* mock dashboard */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.mock-bar b { margin-left: 10px; font-weight: 600; color: var(--text-muted); font-size: 12px; }
.mock-body { padding: 14px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.kpi small { color: var(--text-muted); display: block; }
.kpi strong { font-size: 18px; display: block; }
.kpi em { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.mock-chart { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 6px; }
.mock-chart small { color: var(--text-muted); }
.mock-chart svg { display: block; width: 100%; height: auto; }
.mock-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.bars { display: grid; gap: 7px; padding-top: 8px; }
.bars div { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; color: var(--text-muted); font-size: 12px; }
.bars span { height: 10px; border-radius: 4px; background: var(--accent); }
.bars div:nth-child(1) span { background: var(--p1); }
.bars div:nth-child(2) span { background: var(--p4); }
.bars div:nth-child(3) span { background: var(--p5); }
.bars div:nth-child(4) span { background: var(--p3); }
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:nth-child(3) { display: none; }
  .mock-row { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { section { padding: 56px 0; } }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.card .icon {
  --tint: var(--accent);
  width: 42px; height: 42px; border-radius: 10px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 14%, var(--surface));
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint, var(--accent)); color: var(--on-tint); font-weight: 700; margin-bottom: 14px;
}
.step:nth-child(1) { --tint: var(--p1); }
.step:nth-child(2) { --tint: var(--p4); }
.step:nth-child(3) { --tint: var(--p2); }
.step p { color: var(--text-muted); font-size: .97rem; margin-bottom: 12px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }

/* code blocks */
.code {
  position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px;
  margin: 0 0 1.2em;
}
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
.code .label {
  display: block; padding: 8px 18px 0; font-size: .78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.copy {
  position: absolute; top: 8px; right: 8px; font: 600 .75rem/1 system-ui, sans-serif;
  padding: 6px 9px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity .15s;
}
.code:hover .copy, .copy:focus-visible { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.c { color: var(--text-muted); } /* comments in code */

/* split layout (text + code) */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
/* grid items may shrink below their content (a long code line scrolls inside its block instead) */
.split > *, .showcase > * { min-width: 0; }
.split + .split { margin-top: 64px; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text-muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.checks strong { color: var(--text); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* roles ladder */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.role { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.role h3 { font-size: 1rem; margin-bottom: 6px; }
.role p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.role:nth-child(1) { border-top: 4px solid var(--p1); }
.role:nth-child(2) { border-top: 4px solid var(--p4); }
.role:nth-child(3) { border-top: 4px solid var(--p8); }
.role:nth-child(4) { border-top: 4px solid var(--p5); }
.role:nth-child(5) { border-top: 4px solid var(--accent); }
@media (max-width: 920px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* connector chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .92rem; }
.chip.soon { color: var(--text-muted); border-style: dashed; font-weight: 500; }

/* roadmap */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.roadmap li { display: flex; gap: 14px; align-items: baseline; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.roadmap li span { color: var(--text-muted); font-size: .95rem; }
.roadmap li strong { white-space: nowrap; }
@media (max-width: 640px) { .roadmap li { flex-direction: column; gap: 2px; } .roadmap li strong { white-space: normal; } }

/* final CTA */
.cta-band { text-align: center; }
.cta-band .cta { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-muted); font-size: .92rem; }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }

/* ---------- docs page ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .93rem; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 20px; }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--border); color: var(--text-muted); }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.doc { max-width: 760px; }
.doc section { padding: 0; margin-bottom: 64px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.65rem; padding-top: 8px; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.note {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 1.2em; font-size: .97rem;
}
.note strong:first-child { color: var(--accent); }
@media (max-width: 920px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
  .toc details summary { cursor: pointer; font-weight: 600; }
}
@media (min-width: 921px) { .toc details > summary { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* UI / code / API flow */
.flow { margin-top: 40px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.flow-sources { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.flow-sources span { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.flow-arrow { color: var(--accent); font-size: 1.4rem; line-height: 1; }
.flow-core, .flow-store { padding: 14px 24px; border-radius: var(--radius); width: min(460px, 100%); }
.flow-core { background: var(--accent); color: var(--on-accent); }
.flow-store { border: 2px solid var(--accent); background: var(--accent-soft); }
.flow small { display: block; font-size: .88rem; opacity: .85; }

/* headline numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat strong { display: block; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; color: var(--accent); letter-spacing: -.02em; }
.stat span { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Aloha ---------- */
/* hero: a Honolulu sunset — sky, sun, a palm and the surf */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-sun {
  position: absolute; width: 520px; height: 520px; right: -90px; top: 40px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--p3) 55%, transparent), color-mix(in srgb, var(--p7) 35%, transparent) 45%, transparent 70%);
  pointer-events: none;
}
.hero-palm { position: absolute; left: -30px; bottom: 30px; width: 300px; height: auto; color: var(--silhouette); opacity: .11; pointer-events: none; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; pointer-events: none; }
.hero-waves .w1 { fill: var(--p1); opacity: .16; }
.hero-waves .w2 { fill: var(--p4); opacity: .12; }
.hero-waves .w3 { fill: var(--bg); }
@media (max-width: 920px) {
  .hero { padding: 48px 0 96px; }
  .hero-sun { width: 340px; height: 340px; right: -120px; top: -40px; }
  .hero-palm { width: 200px; left: auto; right: -40px; bottom: 40px; }
}
.mock { position: relative; }
.mock::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--stripe); }

/* each card's icon takes a colour from the shirt */
.grid .card:nth-child(6n+1) .icon { --tint: var(--p1); }
.grid .card:nth-child(6n+2) .icon { --tint: var(--p2); }
.grid .card:nth-child(6n+3) .icon { --tint: var(--p4); }
.grid .card:nth-child(6n+4) .icon { --tint: var(--p6); }
.grid .card:nth-child(6n+5) .icon { --tint: var(--p8); }
.grid .card:nth-child(6n+6) .icon { --tint: var(--p7); }
.stat { position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stripe); }
.tagline { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.tagline span { display: block; }
.tagline em { font-style: normal; }
.tagline span:nth-child(1) em { color: var(--accent); }
.tagline span:nth-child(2) em { color: var(--p1); }
.tagline span:nth-child(3) em { color: var(--p8); }
.cta-band h2 .aloha { color: var(--accent); }

/* behind the name: an aloha-shirt print behind a case file */
.shirt {
  --flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23d62839' fill-opacity='.10'%3E%3Cg transform='translate(30 32)'%3E%3Ccircle r='7' cy='-11'/%3E%3Ccircle r='7' cx='10.5' cy='-3.4'/%3E%3Ccircle r='7' cx='6.5' cy='9'/%3E%3Ccircle r='7' cx='-6.5' cy='9'/%3E%3Ccircle r='7' cx='-10.5' cy='-3.4'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%230a8a9e' fill-opacity='.10'%3E%3Cpath d='M78 96c4-22 18-34 34-38-12 8-22 20-26 38z'/%3E%3Cpath d='M70 88c-6-14-18-20-30-20 10 4 20 12 24 22z'/%3E%3C/g%3E%3Cg fill='%23a87800' fill-opacity='.12'%3E%3Ccircle cx='30' cy='32' r='3'/%3E%3Ccircle cx='95' cy='22' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background: var(--flower), var(--bg-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.case {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px; position: relative; overflow: hidden;
}
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stripe); }
.case-tag {
  display: inline-block; font: 700 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); border: 2px solid var(--accent); border-radius: 6px;
  padding: 6px 10px; transform: rotate(-2deg); margin-bottom: 18px;
}
.case > p { color: var(--text-muted); font-size: 1.08rem; max-width: 46em; }
.clues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.clue { border: 1px dashed var(--border); border-radius: 10px; padding: 18px; }
.clue h3 { font-size: 1rem; margin-bottom: 6px; }
.clue p { color: var(--text-muted); font-size: .93rem; margin: 0; }
.swatches { display: flex; gap: 6px; margin-bottom: 12px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.case > p.disclaimer { font-size: .85rem; margin: 20px 0 0; }
@media (max-width: 820px) { .clues { grid-template-columns: 1fr; } .case { padding: 24px; } }

.site-footer { border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stripe); }

/* ---------- compare page ---------- */
.compare-hero { padding-bottom: 72px; }
.compare-hero .wrap { grid-template-columns: 1fr; }
.compare-hero h1 { max-width: 18em; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.compare-list { display: grid; gap: 40px; max-width: 820px; }
.compare-list h2 { font-size: 1.5rem; }
.small-print { font-size: .85rem; }
a.chip { color: var(--text); }
a.chip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* alpha badge next to the brand, and the alpha note in the docs */
.alpha {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: -12px;
}
.alpha:hover { text-decoration: none; background: var(--accent-soft); }
.note.alpha-note { border-color: color-mix(in srgb, var(--p3) 55%, var(--border)); background: color-mix(in srgb, var(--p3) 12%, var(--surface)); }
.note.alpha-note strong:first-child { color: var(--text); }
pre.prompt { white-space: pre-wrap; }
.brand { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 14px; }
  .alpha { margin-left: -6px; }
}
@media (max-width: 400px) { .site-header .brand span::after { content: none; } }

/* the hero's "ask your agent" button: a sunset outline, so it reads as special but secondary */
.btn.agent-btn {
  cursor: pointer; font-family: inherit;
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--stripe) border-box;
}
.btn.agent-btn:hover { border-color: transparent; }
.cta-hint { font-size: .88rem; color: var(--text-muted); margin: 12px 0 0; }

/* phones: long inline code (addresses, settings) wraps */
.doc :not(pre) > code { overflow-wrap: anywhere; }

/* Docs: "In the app" / "In code" tabs on sections that have both, with screenshots */
.tabs { margin: 18px 0 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tab-list { display: flex; gap: 2px; padding: 4px 8px 0; border-bottom: 1px solid var(--border); }
.tab-list button {
  border: 0; background: none; padding: 9px 14px; margin-bottom: -1px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--text-muted); border-bottom: 2px solid transparent;
}
.tab-list button:hover { color: var(--text); }
.tab-list button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.tab-panel { padding: 16px 18px 4px; }
.tab-panel > :last-child { margin-bottom: 14px; }
.tab-panel .code { margin-bottom: 14px; }
html:not(.js) .tab-list { display: none; }
html:not(.js) .tab-panel::before { content: attr(data-label); display: block; font-weight: 700; margin-bottom: 8px; }
.shot { margin: 4px 0 16px; }
.shot img {
  display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); background: var(--bg-soft);
}
.shot figcaption { font-size: .85rem; color: var(--text-muted); margin-top: 7px; }

/* highlights: the features, one row each (index.html) */
.showcase { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
.showcase.flip .showcase-text { order: 2; }
.showcase h3 { font-size: 1.6rem; line-height: 1.2; margin: 8px 0 12px; }
.showcase-text > p { color: var(--text-muted); font-size: 1.08rem; margin: 0 0 18px; }
.showcase-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(10, 20, 40, .16); background: var(--surface); }
.showcase-shot img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: top left; }
.showcase-more { margin-top: 72px; text-align: center; color: var(--text-muted); font-size: 1.05rem; }
@media (max-width: 920px) {
  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .showcase.flip .showcase-text { order: 0; }
  .showcase + .showcase { margin-top: 56px; }
}
