/* Halo website. One stylesheet for every page; no build step. */

:root {
  color-scheme: light dark;
  --bg: #fcfbf5;
  --bg-2: #f2f0e6;
  --bg-3: #e7e4d6;
  --ink: #1c1916;
  --ink-2: #3b3732;
  --muted: #5f5a51;
  --line: rgba(28, 25, 22, 0.12);
  --line-2: rgba(28, 25, 22, 0.2);
  --deep: #1d1946;
  --deep-2: #2a2560;
  --night: #16151b;
  --on-dark: #f6f3e9;
  --on-dark-muted: #c7c2dd;
  --lav: #e2daff;
  --lav-2: #d2c6ff;
  --peach: #ffd9bf;
  --mint: #c9f0dc;
  --sky: #d3e6ff;
  --violet: #6b5cff;
  --link: #4a3bd6;
  --btn-ink: #1c1916;
  --shot-shadow: 0 1px 2px rgba(28, 25, 22, 0.06), 0 30px 80px -30px rgba(40, 30, 90, 0.35);
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-xl: 48px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e13;
    --bg-2: #19181f;
    --bg-3: #24222c;
    --ink: #f3f0e6;
    --ink-2: #dcd8cc;
    --muted: #aaa5b5;
    --line: rgba(243, 240, 230, 0.12);
    --line-2: rgba(243, 240, 230, 0.22);
    --deep: #1c1849;
    --deep-2: #2a2566;
    --night: #1b1a23;
    --link: #b9afff;
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.display, .h2, .h3, .prose h1, .prose h2 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.7rem, 6.6vw, 5.1rem); line-height: 1.04; letter-spacing: -0.04em; }
.h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.15; letter-spacing: -0.025em; }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 500; }
.eyebrow { display: block; font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.5; font-weight: 500; color: var(--ink-2); max-width: 36rem; text-wrap: pretty; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 0.97rem/1 var(--sans); color: var(--btn-ink); text-decoration: none;
  background: var(--lav); border: 1.5px solid var(--btn-ink); border-radius: 10px;
  cursor: pointer; transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--lav-2); transform: translateY(-1px); box-shadow: 0 3px 0 var(--btn-ink); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); box-shadow: none; }
.on-dark .btn-ghost { color: var(--on-dark); border-color: rgba(246, 243, 233, 0.35); }
.on-dark .btn-ghost:hover { background: rgba(246, 243, 233, 0.08); }
.btn.is-pending, .dl-card.is-pending { opacity: 0.55; pointer-events: none; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.textlink::after { content: "\203A"; font-size: 1.2em; line-height: 1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .cta-row { justify-content: center; }
.note-line { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.note-line a { color: inherit; }

/* Announcement and nav */
.announce { background: var(--deep); color: var(--on-dark); font-size: 0.875rem; font-weight: 500; text-align: center; padding: 10px 16px; }
.announce a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; margin-left: 8px; white-space: nowrap; }
.nav-shell { position: sticky; top: 12px; z-index: 50; padding-inline: 12px; margin-top: 12px; }
.nav {
  max-width: 880px; margin-inline: auto; display: flex; align-items: center; gap: 8px;
  min-height: 58px; padding: 9px 10px 9px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 30px -18px rgba(28, 25, 22, 0.35);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; border-radius: 8px; }
.brand img { display: block; }
.brand .wm { height: 22px; width: auto; }
.wm-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .wm-light { display: none !important; } .wm-dark { display: block !important; } }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
@media (max-width: 719px) {
  .nav-links .opt { display: none; }
  .nav .btn-sm .lbl-long { display: none; }
}
@media (min-width: 720px) { .nav .btn-sm .lbl-short { display: none; } }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 0; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 50% 62%, rgba(107, 92, 255, 0.22), transparent 70%),
    radial-gradient(30% 30% at 26% 72%, rgba(255, 170, 120, 0.2), transparent 70%),
    radial-gradient(30% 30% at 76% 70%, rgba(80, 200, 235, 0.16), transparent 70%);
}
.hero .lead { margin-top: 26px; }
.h2 + .lead, .h2 + .lead.reveal { margin-top: 28px; }
.hero .cta-row { margin-top: 32px; }
.stage { position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1120px; padding-inline: 16px; padding-bottom: 96px; }
.ring { position: absolute; left: 50%; top: 46%; width: min(1040px, 110%); aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, transparent 64%, rgba(107, 92, 255, 0.28) 70%, rgba(143, 168, 255, 0.14) 74%, transparent 80%); filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { .ring { animation: breathe 9s ease-in-out infinite; } }
@keyframes breathe { 50% { scale: 1.04; opacity: 0.75; } }
.shot { display: block; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shot-shadow); outline: 1px solid var(--line); outline-offset: -1px; }
.shot img { display: block; width: 100%; height: auto; }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.platforms span { display: inline-flex; align-items: center; gap: 6px; }
.platforms svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Bands with the rounded overlap */
.band { position: relative; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1); padding: clamp(72px, 10vw, 120px) 0; }
.band.round-bottom { border-radius: var(--r-xl); }
.on-dark { color: var(--on-dark); }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.on-dark .lead { color: var(--on-dark-muted); }
.night { background: var(--night); }
.deep { background: var(--deep); }
.cream { background: var(--bg); }
@media (max-width: 719px) { :root { --r-xl: 28px; } }

/* Works with marquee */
.works { padding-bottom: calc(clamp(72px, 10vw, 120px) + var(--r-xl)); }
.works .eyebrow { text-align: center; margin-bottom: 32px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: clamp(40px, 6vw, 80px); margin: 0; padding: 0 clamp(20px, 3vw, 40px); list-style: none; }
.marquee li { font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; color: rgba(246, 243, 233, 0.92); }
.marquee li:nth-child(even) { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: slide 38s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .marquee-track { width: auto; justify-content: center; } .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 20px; } .marquee ul[aria-hidden] { display: none; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sync diagram section */
.sync .h2 { max-width: 15ch; margin-inline: auto; }
.flow { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; text-align: left; }
.flow-card { background: rgba(246, 243, 233, 0.06); border: 1px solid rgba(246, 243, 233, 0.16); border-radius: var(--r-md); padding: 26px 26px 28px; }
.flow-card.is-server { border-style: dashed; background: rgba(107, 92, 255, 0.12); }
.flow-step { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav-2); margin-bottom: 14px; }
.flow-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; color: var(--on-dark); }
.flow-card p { margin: 0; color: var(--on-dark-muted); font-size: 0.97rem; line-height: 1.55; }
.flow-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; color: var(--lav-2); font-size: 0.78rem; white-space: nowrap; }
.flow-link i { position: relative; width: 64px; height: 2px; background: currentColor; border-radius: 2px; }
.flow-link i::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
@media (max-width: 899px) {
  .flow { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .flow-link { flex-direction: row-reverse; gap: 12px; padding: 12px 0; }
  .flow-link i { width: 2px; height: 28px; }
  .flow-link i::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
}
.facts { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { border-radius: var(--r-md); padding: 22px 22px 20px; background: rgba(246, 243, 233, 0.06); border: 1px solid rgba(246, 243, 233, 0.12); }
.facts strong { display: block; font: 400 1.6rem/1.15 var(--serif); margin-bottom: 6px; color: var(--on-dark); }
.facts span { color: var(--on-dark-muted); font-size: 0.95rem; }

/* Feature tour with sticky list */
.tour-head { margin-bottom: clamp(48px, 7vw, 88px); }
.tour { display: grid; gap: 40px; }
@media (min-width: 960px) { .tour { grid-template-columns: 200px 1fr; gap: 56px; } }
.tour-nav { display: none; }
@media (min-width: 960px) {
  .tour-nav { display: block; position: sticky; top: 120px; align-self: start; }
  .tour-nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .tour-nav a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 3px solid transparent; font: 400 1.15rem/1.3 var(--serif); color: var(--muted); text-decoration: none; transition: color 0.25s, border-color 0.25s; }
  .tour-nav a:hover { color: var(--ink); }
  .tour-nav a.is-active { color: var(--ink); border-left-color: var(--violet); }
}
.feature { scroll-margin-top: 110px; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.media { position: relative; border-radius: var(--r-lg); padding: clamp(18px, 4vw, 48px) clamp(18px, 4vw, 48px) 0; overflow: hidden; isolation: isolate; }
.media .shot { border-radius: 12px 12px 0 0; }
.media.lav { background: linear-gradient(150deg, #e9e3ff, #d9ccff 60%, #f3d9ff); }
.media.peach { background: linear-gradient(150deg, #ffe6d3, #ffd0b5 55%, #ffe9c9); }
.media.mint { background: linear-gradient(150deg, #dcf6e8, #bfe9d8 55%, #d9f1ff); }
.media.sky { background: linear-gradient(150deg, #dbe9ff, #c7d9ff 55%, #e6dcff); }
.media.ink { background: linear-gradient(150deg, #2b2463, #16133a 60%, #0b0a1c); }
@media (prefers-color-scheme: dark) {
  .media.lav { background: linear-gradient(150deg, #2c2566, #1f1a4a 60%, #33204d); }
  .media.peach { background: linear-gradient(150deg, #4a2c22, #3a2219 55%, #40301c); }
  .media.mint { background: linear-gradient(150deg, #173a2c, #12302a 55%, #142d3d); }
  .media.sky { background: linear-gradient(150deg, #19294a, #15223f 55%, #251f4a); }
}
.feature-text { display: grid; gap: 12px 48px; margin-top: 28px; }
@media (min-width: 760px) { .feature-text { grid-template-columns: 1fr 1.2fr; } }
.feature-text p { color: var(--ink-2); font-size: 1.06rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }

/* Small feature grid */
.grid2 { display: grid; gap: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 > :nth-child(even) { margin-top: 96px; } }
.tile { display: grid; gap: 22px; }
.vignette { min-height: 210px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.tile p { color: var(--ink-2); margin: 10px 0 0; max-width: 34rem; }
.layouts { display: flex; gap: 14px; }
.lay { width: 92px; height: 64px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); display: grid; gap: 4px; padding: 6px; }
.lay i { display: block; border-radius: 3px; background: var(--bg-3); }
.lay.side { grid-template-columns: 26% 1fr; }
.lay.side i:first-child { background: var(--lav-2); }
.lay.compact { grid-template-rows: 10px 1fr; }
.lay.compact i:first-child { background: var(--lav-2); }
.lay.top { grid-template-rows: 7px 7px 1fr; }
.lay.top i:nth-child(-n+2) { background: var(--lav-2); }
.lay-cap { display: flex; gap: 14px; margin-top: 8px; font-size: 0.78rem; color: var(--muted); }
.lay-cap span { width: 92px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 500; }
.chips li.hot { background: var(--lav); border-color: transparent; color: var(--btn-ink); }
.fix { width: 100%; max-width: 330px; display: grid; gap: 10px; }
.fix p { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 0.95rem; }
.fix s { color: var(--muted); }
.fix .after { border-color: var(--violet); }
.fix small { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); margin-bottom: 4px; }
.wave { display: inline-flex; align-items: center; gap: 4px; padding: 12px 18px; border-radius: 999px; background: var(--ink); }
.wave i { display: block; width: 4px; border-radius: 2px; background: var(--bg); height: 10px; }
.wave i:nth-child(3n) { height: 22px; } .wave i:nth-child(4n) { height: 30px; } .wave i:nth-child(5n) { height: 16px; }
@media (prefers-reduced-motion: no-preference) { .wave i { animation: talk 1.4s ease-in-out infinite; } .wave i:nth-child(2n) { animation-delay: -0.4s; } .wave i:nth-child(3n) { animation-delay: -0.8s; } }
@keyframes talk { 50% { transform: scaleY(0.45); } }
.profiles { display: grid; gap: 8px; width: 100%; max-width: 260px; }
.profiles span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 500; }
.profiles b { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.profiles span:nth-child(2) b { background: #e8833a; } .profiles span:nth-child(3) b { background: #2fae7a; }
.keys { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
kbd, .key { display: inline-flex; align-items: center; justify-content: center; min-width: 2em; padding: 0.15em 0.5em; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg); font: 500 0.85em/1.5 var(--sans); }
.keys .key { font-size: 1.2rem; min-width: 52px; min-height: 52px; border-radius: 12px; }

/* Trust card */
.trust { display: grid; gap: 24px; align-items: center; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .trust { grid-template-columns: 1fr 1.3fr 1fr; gap: 48px; } }
.trust p { color: var(--ink-2); }
.seals { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.seals li { display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: 0.95rem; }
.seals svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--line-2); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Agents section cards */
.agents-grid { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .agents-grid { grid-template-columns: repeat(6, 1fr); } .c-wide { grid-column: span 4; } .c-tall { grid-column: span 2; } .c-third { grid-column: span 2; } }
.card { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); color: var(--btn-ink); display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.card .quote { font: 400 clamp(1.45rem, 2.3vw, 1.9rem)/1.15 var(--serif); margin: 0; }
.card small { font-size: 0.85rem; font-weight: 500; opacity: 0.75; margin-top: auto; }
.card.lav { background: var(--lav); } .card.peach { background: var(--peach); } .card.mint { background: var(--mint); } .card.sky { background: var(--sky); } .card.paper { background: #f6f3e9; }
.card.shotcard { padding: 0; overflow: hidden; background: #e9e3ff; justify-content: flex-end; }
.card.shotcard .shot { border-radius: 0; box-shadow: none; outline: 0; margin: 24px 0 0 24px; border-top-left-radius: 12px; }
.code { position: relative; font: 500 0.85rem/1.6 var(--mono); background: #121118; color: #ece9ff; border-radius: 12px; padding: 16px 18px; overflow-x: auto; white-space: pre; margin: 0; }
.card .code { margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tools li { font: 500 0.78rem/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: rgba(28, 25, 22, 0.08); }

/* FAQ */
.faq-box { position: relative; margin-top: clamp(40px, 6vw, 64px); border-radius: var(--r-lg); background: var(--bg-2); padding: 10px; }
.faq-box details { border-radius: 14px; }
.faq-box summary { list-style: none; cursor: pointer; padding: 16px 18px; border-radius: 12px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq-box details[open] summary::after { content: "\2212"; }
.faq-box .answer { padding: 0 18px 18px; color: var(--ink-2); }
.faq-box .answer p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .faq-box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 540px; padding: 12px; }
  .faq-list { background: var(--deep); border-radius: 18px; padding: 12px; color: var(--on-dark); }
  .faq-box summary { color: var(--on-dark-muted); }
  .faq-box summary::after { content: none; }
  .faq-box summary:hover { color: var(--on-dark); background: rgba(246, 243, 233, 0.06); }
  .faq-box details[open] summary { color: var(--on-dark); background: rgba(246, 243, 233, 0.1); }
  .faq-box .answer { position: absolute; top: 12px; right: 12px; width: calc(52.4% - 12px); padding: 36px 36px 24px; color: var(--ink-2); font-size: 1.06rem; }
  .faq-box .answer::before { content: attr(data-q); display: block; font: 400 1.9rem/1.12 var(--serif); color: var(--ink); margin-bottom: 18px; }
}

/* Closing CTA */
.closing { margin: clamp(80px, 10vw, 120px) 12px 0; border-radius: var(--r-xl); overflow: hidden; position: relative; isolation: isolate; padding: clamp(96px, 14vw, 180px) 0; text-align: center; background: #0b0a1d; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(36% 52% at 50% 112%, rgba(233, 251, 255, 0.55), rgba(143, 168, 255, 0.45) 30%, rgba(107, 92, 255, 0.35) 52%, transparent 75%),
    radial-gradient(60% 60% at 15% 0%, rgba(107, 92, 255, 0.35), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(255, 160, 120, 0.22), transparent 70%); }
.closing .h2 { color: #f6f3e9; font-size: clamp(2.8rem, 7.5vw, 6.4rem); }
.closing .lead { color: #d9d4ee; margin: 24px auto 0; }
.closing .cta-row { margin-top: 36px; justify-content: center; }

/* Footer */
.footer { padding: clamp(64px, 8vw, 96px) 0 32px; }
.prod { display: grid; gap: 12px; margin-bottom: 56px; }
@media (min-width: 760px) { .prod { grid-template-columns: 1fr 1fr; } }
.prod a { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); text-decoration: none; transition: background 0.2s; }
.prod a:hover { background: var(--bg-3); }
.prod img { width: 64px; height: 64px; border-radius: 14px; }
.prod strong { display: block; font-weight: 600; }
.prod span { color: var(--muted); font-size: 0.9rem; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(4, 1fr); } }
.cols h2 { font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cols a { text-decoration: none; font-size: 0.93rem; color: var(--ink-2); }
.cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.giant { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 36px); margin: clamp(56px, 8vw, 96px) 0 28px; }
.giant img { display: block; height: clamp(84px, 17vw, 230px); width: auto; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.legal p { margin: 0; }

/* Reveal motion (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Download page */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); }
.dl-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
.dl-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s; }
.dl-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.dl-card .os { font: 400 1.9rem/1.1 var(--serif); }
.dl-card .meta { color: var(--muted); font-size: 0.92rem; }
.dl-card .go { margin-top: 18px; align-self: flex-start; }
.dl-card .sum { font: 0.72rem/1.4 var(--mono); color: var(--muted); word-break: break-all; margin-top: 6px; }
.release { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.release a { color: var(--link); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.split > * { min-width: 0; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.panel { border-radius: var(--r-lg); background: var(--bg-2); padding: clamp(24px, 4vw, 40px); }
.panel h2 { font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--serif); margin: 0 0 16px; }
.panel h3 { font-size: 1rem; margin: 20px 0 8px; }
.panel ol, .panel ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.callout { border-left: 3px solid var(--violet); background: var(--bg); border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 16px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.callout p:last-child { margin: 0; }
.section-pad { padding: clamp(64px, 8vw, 104px) 0; }

/* Docs */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 96px; }
@media (min-width: 960px) { .docs { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 56px; } }
.side { font-size: 0.93rem; }
@media (min-width: 960px) { .side { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding: 2px 4px 24px 2px; } .side summary { display: none; } }
.side summary { cursor: pointer; padding: 12px 16px; border-radius: 12px; background: var(--bg-2); font-weight: 600; list-style: none; }
.side summary::-webkit-details-marker { display: none; }
.side summary::after { content: " \25BE"; color: var(--muted); }
.search { position: relative; margin: 12px 0 14px; }
.search input { width: 100%; min-height: 42px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.side .grp { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px 10px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.side li a:hover { background: var(--bg-2); color: var(--ink); }
.side li a[aria-current="page"] { background: var(--lav); color: var(--btn-ink); font-weight: 600; }
.results { margin: 0 0 8px; padding: 0; list-style: none; }
.results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.results a:hover, .results a:focus-visible { background: var(--bg-2); }
.results small { display: block; color: var(--muted); font-size: 0.78rem; }
.results mark { background: var(--lav); color: var(--btn-ink); border-radius: 3px; }
.prose { max-width: 46rem; font-size: 1.04rem; color: var(--ink-2); }
.prose h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); margin-bottom: 18px; }
.prose .lead { margin-bottom: 32px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 48px 0 14px; }
.prose h3 { font-size: 1.08rem; color: var(--ink); margin: 28px 0 8px; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 1.1em; }
.prose code { font: 0.88em var(--mono); background: var(--bg-2); padding: 0.12em 0.36em; border-radius: 5px; word-break: break-word; }
.prose pre { position: relative; margin: 0 0 1.2em; }
.prose pre code { display: block; padding-right: 76px !important; background: #121118; color: #ece9ff; padding: 16px 18px; border-radius: 12px; overflow-x: auto; white-space: pre; word-break: normal; font-size: 0.85rem; line-height: 1.6; }
.copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(236, 233, 255, 0.25); background: #1e1c28; color: #ece9ff; font: 500 0.75rem/1.5 var(--sans); cursor: pointer; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.prose figure { margin: 8px 0 28px; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--bg-2); text-decoration: none; color: var(--ink); max-width: 48%; }
.pager a small { color: var(--muted); font-size: 0.78rem; }
.pager .next { margin-left: auto; text-align: right; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { width: 120px; height: 120px; margin-bottom: 24px; }

/* Team invitation page */
.invite-card { max-width: 520px; margin: clamp(48px, 9vw, 110px) auto; padding: 40px 36px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.invite-card img { border-radius: 14px; margin-bottom: 18px; }
.invite-card h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; margin: 10px 0 12px; }
.invite-card .lead { margin: 0 auto; max-width: 30rem; }
.invite-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.invite-card .small { font-size: 0.85rem; margin-top: 18px; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
