/* BC10 Workspace site. Tokens: the central "Liquid Glass" theme (assets/theme-default.json in the
   app). Colours live only in the two token blocks below. */
:root {
  --brand-primary: #6C4BD8;
  --brand-primary-soft: #8E6BF5;
  --brand-leaf: #3C9D63;
  --brand-amber: #E0892F;

  --background: #eef0f7;
  --foreground: #211E2B;
  --muted-foreground: #6B6577;
  --primary: #6C4BD8;
  --primary-foreground: #ffffff;
  --action: var(--brand-primary);          /* buttons: white text stays AA in both modes */
  --action-foreground: #ffffff;
  --ring: #6C4BD8;
  --glass: rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.74);
  --glass-bd: rgba(255,255,255,.6);
  --line: rgba(40,30,80,.09);
  --line-2: rgba(40,30,80,.14);
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -14px rgba(45,30,90,.45);
  --shadow-float: 0 20px 50px -18px rgba(45,30,90,.5);
  --wall-base: #f1f2f8;
  --wall-1: rgba(124,90,230,.16);
  --tint-butter: rgba(248,222,120,.5);
  --tint-sky: rgba(120,180,235,.42);
  --tint-mint: rgba(110,205,150,.4);
  --tint-lav: rgba(160,130,245,.4);
  --mark-fg: #ffffff;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --letter-spacing: -0.01em;
  --measure: 1080px;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #14111f;
    --foreground: #F3F0FA;
    --muted-foreground: #A39CB8;           /* #8B84A0 from the theme, lifted for body text on the wall */
    --primary: #A88BFF;
    --ring: #8E6BF5;
    --glass: rgba(255,255,255,.09);
    --glass-strong: rgba(40,34,60,.55);
    --glass-bd: rgba(255,255,255,.16);
    --line: rgba(255,255,255,.1);
    --line-2: rgba(255,255,255,.16);
    --shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 16px 40px -16px rgba(0,0,0,.7);
    --shadow-float: 0 24px 60px -16px rgba(0,0,0,.8);
    --wall-base: #141220;
    --wall-1: rgba(124,90,230,.22);
    --tint-butter: rgba(220,180,70,.26);
    --tint-sky: rgba(90,150,220,.3);
    --tint-mint: rgba(70,180,120,.26);
    --tint-lav: rgba(150,115,245,.32);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(60vw 50vw at 95% -10%, var(--wall-1), transparent 60%),
    radial-gradient(50vw 45vw at -10% 40%, var(--tint-sky), transparent 65%),
    var(--wall-base);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: .5rem 1rem; border-radius: var(--radius-sm); background: var(--action); color: var(--action-foreground); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(46rem + var(--gutter) * 2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--glass-strong); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; min-height: 60px; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--foreground); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; flex: none; }
.mark .tile { fill: var(--brand-primary); }
.mark .dot { fill: var(--mark-fg); }
.mark .dot-soft { fill: var(--mark-fg); opacity: .55; }
.nav { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: .4rem .7rem; border-radius: 999px; color: var(--muted-foreground); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: var(--foreground); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--foreground); background: var(--glass); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: var(--letter-spacing); text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--action); color: var(--action-foreground); box-shadow: var(--shadow-float); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-quiet { background: var(--glass); color: var(--foreground); border-color: var(--glass-bd); }
.btn-lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.125rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* Glass card */
.card { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); padding: 1.5rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { padding-top: clamp(1rem, 3vw, 2rem); }
.eyebrow { color: var(--primary); font-weight: 600; font-size: .875rem; letter-spacing: .02em; }
.h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-top: .5rem; }
.lede { color: var(--muted-foreground); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); margin-top: 1rem; max-width: 40rem; text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4rem); text-align: center; }
.hero .mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; filter: drop-shadow(0 14px 24px var(--wall-1)); }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -.035em; }
.hero .lede { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.fine { color: var(--muted-foreground); font-size: .875rem; margin-top: 1rem; }

/* App tiles */
.grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.app h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1rem; }
.app p { color: var(--muted-foreground); margin-top: .5rem; }
.app .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--foreground); }
.app .icon svg { width: 24px; height: 24px; }
.t-butter { background: var(--tint-butter); }
.t-mint { background: var(--tint-mint); }
.t-lav { background: var(--tint-lav); }
.t-sky { background: var(--tint-sky); }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon { flex: none; }
.feature h3 { margin-top: .1rem; font-size: 1.125rem; }

/* Lists and steps */
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--brand-leaf); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; }
.steps li::before { content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--action); color: var(--action-foreground); font-weight: 600; font-size: .9rem; }
.muted { color: var(--muted-foreground); }
.kbd { font-weight: 600; }
.file { overflow-wrap: anywhere; }
.prose > *, .grid > * { min-width: 0; }

/* Prose pages */
.page-head { padding-block: clamp(3rem, 8vw, 5rem) 1.5rem; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 800; }
.prose { display: grid; gap: 1rem; }
.prose section { scroll-margin-top: 80px; }
.prose h2 { font-size: 1.5rem; font-weight: 700; }
.prose h2 + * { margin-top: .75rem; }
.prose p + p, .help-title + p { margin-top: .75rem; }
.prose ul { padding-left: 1.2rem; margin: .75rem 0 0; }
.prose li + li { margin-top: .35rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toc a { display: block; padding: .4rem .85rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-bd);
  color: var(--foreground); text-decoration: none; font-size: .9375rem; }
.toc a:hover { border-color: var(--line-2); }
.help-title { display: flex; align-items: center; gap: .75rem; }
.help-title .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.help-title .icon svg { width: 20px; height: 20px; }
:target > .card, section:target.card { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Download */
.download-hero { text-align: center; padding: clamp(2rem, 5vw, 3rem) 1.5rem; }
.download-hero .btn { margin-top: 1.5rem; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 1rem 0 0; }
.spec dt { color: var(--muted-foreground); }
.spec dd { margin: 0; }
.callout { border-left: 3px solid var(--brand-amber); padding-left: 1rem; margin-top: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2rem; color: var(--muted-foreground); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { color: var(--muted-foreground); text-decoration: none; }
.site-footer a:hover { color: var(--foreground); text-decoration: underline; }
