/* Launchpad site styles (LAUN-240). One file, no web font, no image, no
   third-party request. Dark first; light follows prefers-color-scheme or the
   visitor's choice (data-theme on <html>, set by /assets/theme.js). */

:root {
  color-scheme: dark;
  /* palette: dark */
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #181d24;
  --line: #262d36;
  --line-strong: #36404c;
  --text: #eceff3;
  --muted: #a1abb8;
  --accent: #5eead4;       /* mint: text, links, rings */
  --accent-fill: #5eead4;  /* mint: button fill */
  --accent-ink: #04211c;   /* text on the fill */
  --sec: #b4a9ff;          /* violet: secondary */
  --danger: #ff9aa8;
  --header-bg: rgba(11, 13, 16, .72);
  --glow-a: rgba(94, 234, 212, .16);
  --glow-b: rgba(138, 120, 255, .14);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  /* spacing scale (4px base) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  /* type scale */
  --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.1875rem; --t-xl: 1.5rem;
  --t-2xl: clamp(1.75rem, 3.2vw, 2.25rem);
  --t-hero: clamp(2.5rem, 7vw, 4.75rem);
  --radius: 14px; --radius-sm: 8px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #fafbfb; --surface: #ffffff; --surface-2: #f1f5f5;
    --line: #dfe6e6; --line-strong: #c3cfcf;
    --text: #0e1a1a; --muted: #4a5858;
    --accent: #0a6f5d; --accent-fill: #0a6f5d; --accent-ink: #ffffff;
    --sec: #5440c8; --danger: #b3001f;
    --header-bg: rgba(250, 251, 251, .78);
    --glow-a: rgba(20, 184, 150, .16); --glow-b: rgba(110, 90, 240, .12);
    --shadow: 0 30px 70px -35px rgba(15, 40, 40, .35);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafbfb; --surface: #ffffff; --surface-2: #f1f5f5;
  --line: #dfe6e6; --line-strong: #c3cfcf;
  --text: #0e1a1a; --muted: #4a5858;
  --accent: #0a6f5d; --accent-fill: #0a6f5d; --accent-ink: #ffffff;
  --sec: #5440c8; --danger: #b3001f;
  --header-bg: rgba(250, 251, 251, .78);
  --glow-a: rgba(20, 184, 150, .16); --glow-b: rgba(110, 90, 240, .12);
  --shadow: 0 30px 70px -35px rgba(15, 40, 40, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--t-md)/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:not([class]):focus-visible { border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-fill); color: var(--accent-ink); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; font-weight: 640; margin: 0 0 var(--s4); }
h1 { font-size: var(--t-2xl); letter-spacing: -.035em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); letter-spacing: -.015em; }
p { margin: 0 0 var(--s4); }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
pre { font-family: var(--mono); font-size: var(--t-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4); overflow-x: auto; line-height: 1.7; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* skip link */
.skip { position: absolute; left: -999px; top: var(--s2); padding: var(--s2) var(--s4); background: var(--accent-fill); color: var(--accent-ink); border-radius: var(--radius-sm); z-index: 20; font-weight: 600; }
.skip:focus { left: var(--s2); }

/* ---------- shell: header ---------- */
header.site { position: sticky; top: 0; z-index: 10; background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
header.site .bar { max-width: 72rem; margin: 0 auto; padding: var(--s3) var(--s5); display: flex; align-items: center; gap: var(--s3) var(--s5); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -.02em; font-size: var(--t-lg); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { height: 26px; width: auto; flex: none; display: block; }
header.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); align-items: center; }
header.site nav a { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); text-decoration: none; padding: var(--s1) var(--s3); border-radius: 999px; font-size: var(--t-sm); font-weight: 500; white-space: nowrap; transition: color .15s, background-color .15s; }
header.site nav a:hover { color: var(--text); background: var(--surface-2); }
header.site nav .soon { margin-top: -2px; } /* the link text sits high in its line box; this centres the badge on the letters */
header.site nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.theme { display: inline-flex; align-items: center; gap: var(--s2); font: inherit; font-size: var(--t-sm); line-height: 1; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: var(--s1) var(--s3); cursor: pointer; transition: color .15s, border-color .15s; }
.theme:hover { color: var(--text); border-color: var(--line-strong); }
.theme svg { display: block; width: 16px; height: 16px; flex: none; }
.theme .i { display: none; width: 16px; height: 16px; flex: none; line-height: 0; }
.theme .theme-label { display: block; min-width: 2.6em; line-height: 1; }
:root:not([data-theme]) .theme .i-auto, :root[data-theme="light"] .theme .i-light, :root[data-theme="dark"] .theme .i-dark { display: flex; }

/* ---------- shell: footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: var(--s9); }
footer.site .bar { max-width: 72rem; margin: 0 auto; padding: var(--s6) var(--s5) var(--s7); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; font-size: var(--t-sm); color: var(--muted); }
footer.site p { margin: 0; max-width: 34rem; }
footer.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* ---------- layout ---------- */
main.wide, main.narrow { overflow-x: clip; max-width: 72rem; margin: 0 auto; padding: var(--s7) var(--s5) 0; }
main.narrow { max-width: 44rem; }
main.wide > h1 { font-size: var(--t-hero); letter-spacing: -.045em; margin-bottom: var(--s4); }
.lead { font-size: var(--t-lg); color: var(--muted); max-width: 40rem; }
main.wide section { margin-top: var(--s8); }
main.wide section > h2 { font-size: var(--t-2xl); letter-spacing: -.03em; }

/* ---------- buttons, badges ---------- */
.cta, .ghost { display: inline-flex; align-items: center; gap: var(--s2); padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: var(--t-md); text-decoration: none; transition: transform .15s, box-shadow .2s, background-color .15s, border-color .15s; }
.cta { background: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 10px 30px -10px var(--glow-a); }
.cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 14px 40px -8px var(--accent-fill); }
.ghost { color: var(--text); border: 1px solid var(--line-strong); }
.ghost:hover { text-decoration: none; background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 0; }
.soon { display: inline-block; border: 1px solid var(--sec); color: var(--sec); border-radius: 999px; padding: 0 .55rem; font-size: .72rem; line-height: 1.5; font-weight: 600; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: var(--s2); border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .2rem .8rem; font-size: var(--t-sm); margin-bottom: var(--s5); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-fill); }
button { font: inherit; }
button:disabled { cursor: not-allowed; color: var(--muted); background: transparent; border: 1px dashed var(--line-strong); border-radius: 999px; padding: .7rem 1.25rem; }
button:not(:disabled):not(.theme) { cursor: pointer; background: var(--accent-fill); color: var(--accent-ink); border: 0; border-radius: 999px; padding: .7rem 1.25rem; font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: var(--s7) 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -6rem; width: 100%; max-width: 70rem; height: 36rem; transform: translateX(-50%); background: radial-gradient(40% 50% at 35% 40%, var(--glow-a), transparent 70%), radial-gradient(40% 50% at 68% 45%, var(--glow-b), transparent 70%); pointer-events: none; }
.hero h1 { font-size: var(--t-hero); letter-spacing: -.045em; max-width: 14ch; margin: 0 auto var(--s5); background: linear-gradient(180deg, var(--text) 45%, var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto; }
.hero .actions { justify-content: center; }
.hero > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero > :nth-child(2) { animation-delay: .06s; } .hero > :nth-child(3) { animation-delay: .12s; } .hero > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- product mock-up (sample data, pure HTML and CSS) ---------- */
.mock-wrap { margin: var(--s8) auto 0; max-width: 56rem; animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
.mock { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; font-size: var(--t-sm); }
.mock-top { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.mock-dots { display: flex; gap: 6px; } .mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-team { font-weight: 600; color: var(--text); } .mock-tab { margin-left: auto; display: flex; gap: var(--s2); }
.mock-tab span { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.mock-tab span:first-child { background: var(--bg); color: var(--text); }
.mock-group { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600; }
.mock-group b { font-weight: 500; opacity: .85; }
.mock-row { display: grid; grid-template-columns: 1.4rem 4.2rem minmax(0, 1fr) auto auto auto; align-items: center; gap: var(--s3); padding: .65rem var(--s4); border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-id { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.mock-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tags { display: flex; gap: var(--s2); }
.tag { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.tag.mr { color: var(--accent); border-color: var(--accent); }
.tag.agent { color: var(--sec); border-color: var(--sec); }
.st { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); position: relative; justify-self: center; }
.st.triage { border-style: dashed; }
.st.review { border-color: var(--sec); }
.st.review::after, .st.test::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; }
.st.review::after { background: var(--sec); clip-path: inset(0 50% 0 0); }
.st.test { border-color: var(--accent); } .st.test::after { background: var(--accent); }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: #0b0d10; background: linear-gradient(135deg, #5eead4, #b4a9ff); }
.av.b { background: linear-gradient(135deg, #f7c873, #ff9aa8); } .av.c { background: linear-gradient(135deg, #8bc6ff, #b4a9ff); }
.pr { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.pr i { width: 3px; background: var(--muted); border-radius: 1px; } .pr i:nth-child(1) { height: 5px; } .pr i:nth-child(2) { height: 8px; } .pr i:nth-child(3) { height: 12px; opacity: .35; }
.mock-note { text-align: center; color: var(--muted); font-size: var(--t-sm); margin: var(--s3) 0 0; }

/* ---------- cards and rows ---------- */
.cards { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s4); }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); transition: border-color .2s, transform .2s; }
.cards li:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cards h3 { margin-bottom: var(--s2); }
.cards p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.cards .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: var(--s4); color: var(--accent); background: var(--surface-2); border: 1px solid var(--line); }
.cards .ic svg { width: 18px; height: 18px; }

main.wide section > ul:not(.cards), main.wide section > ol { list-style: none; margin: var(--s5) 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
main.wide section > ul:not(.cards) > li, main.wide section > ol > li { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
main.wide section > ul:not(.cards) > li:last-child, main.wide section > ol > li:last-child { border-bottom: 0; }
main.wide section > ol { counter-reset: step; }
main.wide section > ol > li { counter-increment: step; position: relative; padding-left: 3.5rem; }
main.wide section > ol > li::before { content: counter(step); position: absolute; left: var(--s5); top: var(--s4); width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
main.wide section > ul:not(.cards) strong { color: var(--text); }
main.wide section li p:last-child, main.wide section li pre { margin-bottom: 0; }
main.wide section li pre { margin-top: var(--s3); }

.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sec); border-radius: var(--radius-sm); padding: var(--s4) var(--s5); margin: var(--s7) 0 0; color: var(--muted); }
.notice strong { color: var(--text); }
.panel { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s7) var(--s5); position: relative; overflow: hidden; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 0, var(--glow-a), transparent 70%); }
.panel h2 { margin-bottom: var(--s3); }
.panel p { color: var(--muted); margin-left: auto; margin-right: auto; max-width: 34rem; }
.panel .actions { justify-content: center; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: var(--s8) 0 0; }
.nf .code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; margin: 0 0 var(--s3); background: linear-gradient(135deg, var(--accent), var(--sec)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: var(--t-2xl) !important; letter-spacing: -.03em; }
.nf .lead { margin: 0 auto; }
.nf .actions { justify-content: center; }

/* ---------- account and legal pages (shared shell, same classes as before) ---------- */
main.narrow h1 { font-size: var(--t-2xl); }
main.narrow section { margin-top: var(--s6); }
.note { font-size: var(--t-sm); color: var(--muted); }
.error { color: var(--danger); }
.secret { display: block; padding: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--mono); word-break: break-all; margin: var(--s2) 0; }
label { display: block; font-weight: 600; }
input { font: inherit; width: 100%; padding: .65rem .8rem; margin: var(--s1) 0 var(--s3); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .5rem; }
.draft { border: 1px solid var(--danger); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface); padding: var(--s4); }
.todo { background: #fff3b0; color: #000; padding: 0 .25rem; border-radius: 3px; }
nav.legal { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
table { display: block; overflow-x: auto; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3); border: 1px solid var(--line); }
th { background: var(--surface-2); }

/* ---------- small screens ---------- */
@media (max-width: 40rem) {
  header.site .bar { padding: var(--s3) var(--s4); }
  header.site nav { order: 3; flex-basis: 100%; }
  header.site nav ul { flex-wrap: wrap; row-gap: var(--s1); }
  header.site nav .soon { font-size: .65rem; padding: 0 .4rem; }
  main.wide, main.narrow { padding: var(--s6) var(--s4) 0; }
  main.wide section { margin-top: var(--s7); }
  .mock-row { grid-template-columns: 1.2rem 3.6rem minmax(0, 1fr) auto; }
  .mock-row .mock-tags, .mock-row .pr { display: none; }
  .mock-tab { display: none; }
  footer.site .bar { padding: var(--s6) var(--s4); }
  footer.site { margin-top: var(--s8); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
main.wide section > ul + p, main.wide section > ol + p { margin-top: var(--s5); }
