/* plue.life — design tokens from the Plue app's board UI, structure after skill-issue.in */

@font-face {
  font-family: 'InterVariable';
  src: url('assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(0.205 0 0);          /* the app's dark canvas */
  --page: oklch(0.16 0 0);         /* behind the card */
  --fg: oklch(0.985 0 0);
  --muted: oklch(0.708 0 0);
  --border: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 20%);
  --hover: oklch(1 0 0 / 6%);
  --accent: #2563eb;               /* the one saturated colour in the app */
  --card-shadow: 0 20px 80px -40px rgba(0, 0, 0, 0.55);
  --sans: 'InterVariable', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

html.light {
  --bg: #ffffff;
  --page: oklch(0.975 0 0);
  --fg: oklch(0.145 0 0);
  --muted: oklch(0.47 0 0);
  --border: oklch(0.145 0 0 / 10%);
  --border-strong: oklch(0.145 0 0 / 22%);
  --hover: oklch(0.145 0 0 / 4%);
  --card-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------------------------------------------------------------- shell */

.shell {
  --gutter: clamp(1.25rem, 4vw, 4.25rem);
  width: min(86.75rem, calc(100% - 1.5rem));
  margin: clamp(0.75rem, 2vw, 1.5rem) auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* -------------------------------------------------------------- topbar */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.lockup { display: inline-flex; align-items: center; gap: 8px; }
.lockup-glyph { width: 24px; height: 24px; }
.lockup-word { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.nav { display: flex; gap: 22px; margin-left: 16px; }
.nav a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--fg); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.theme-btn:hover { background: var(--hover); color: var(--fg); }
.theme-btn .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; }
html.light .icon-sun { display: block; }
html.light .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.985); }
.btn-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- hero */

.hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--gutter) clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  background-image: radial-gradient(52rem 22rem at 50% -6rem, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sub {
  margin: 18px auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.075rem);
  line-height: 1.55;
}

/* --------------------------------------------------------- status board */

.board {
  margin: clamp(2rem, 5vw, 3.25rem) auto 0;
  max-width: 40rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.board-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 12px;
  color: var(--muted);
}
.board-title { font-size: 12.5px; font-weight: 600; color: var(--fg); }
.board-sub { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 55%, white); }
html.light .board-sub { color: var(--accent); }

.livedot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: livepulse 2s ease-out infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.board-head + .board-row { border-top: 0; }

.capsule {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 12%);
}
.board-ident { flex: none; width: 88px; font-size: 13.5px; font-weight: 600; }
.board-task {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-right { flex: none; display: flex; align-items: center; gap: 10px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: color-mix(in srgb, var(--sc) 20%, transparent);
  color: color-mix(in srgb, var(--sc) 50%, white);
  border: 1px solid color-mix(in srgb, var(--sc) 52%, transparent);
}
html.light .status-chip {
  background: color-mix(in srgb, var(--sc) 12%, white);
  color: color-mix(in srgb, var(--sc) 60%, black);
  border-color: color-mix(in srgb, var(--sc) 50%, transparent);
}
.status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sc);
  animation: dotpulse 1.6s ease-in-out infinite;
}
@keyframes dotpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.board-caption {
  margin: 14px auto 0;
  max-width: 40rem;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------ sections */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 1px solid var(--border);
  scroll-margin-top: 16px;
}

.section-head { max-width: 40rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: 62ch;
  color: var(--muted);
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1rem; color: var(--muted); font-size: 15.5px; }
.prose p:first-child { color: var(--fg); }
.prose p:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 62ch;
  font-size: 14px;
  color: var(--muted);
}
.facts li { position: relative; padding-left: 18px; }
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.facts strong { color: var(--fg); font-weight: 600; }

/* ------------------------------------------------------ capability rows */

.rows { display: grid; gap: 10px; max-width: 62rem; }

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.row:hover { border-color: var(--border-strong); background: var(--hover); }

.ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.18s ease;
}
.row:hover .ico { color: var(--fg); }
.ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-main { flex: 1; min-width: 0; }
.row-title { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.row-desc { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hue); }

/* --------------------------------------------------------------- stack */

.stack-rows { display: grid; }

.stack-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 8px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.stack-label {
  padding-top: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack-models { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arrow { color: var(--muted); font-size: 12px; }
.stack-desc { grid-column: 2; margin: 6px 0 0; max-width: 58ch; color: var(--muted); font-size: 14px; }

code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--fg);
  background: var(--hover);
}

/* --------------------------------------------------------------- trust */

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1rem;
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.trust-card .status-chip { align-self: flex-start; }
.trust-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.autonomy,
.denials {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}
.autonomy { display: flex; flex-direction: column; gap: 10px; }

.autonomy-label,
.denials-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.autonomy-note { margin: 0; max-width: 60ch; color: var(--muted); font-size: 13.5px; }

.mono-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mono-chips code { font-size: 12px; }

.quote {
  margin: 2rem 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  max-width: 34ch;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ------------------------------------------------------------ numbers */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--border);
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gutter) 0;
  overflow: hidden;
}
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-line { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { color: var(--muted); font-size: 13px; transition: color 0.15s ease; }
.foot-nav a:hover { color: var(--fg); }
.foot-copy { margin: 0; color: var(--muted); font-size: 12.5px; }

.ghost {
  margin-top: 1.25rem;
  font-size: clamp(4.5rem, 15vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.82;
  text-align: center;
  color: var(--fg);
  opacity: 0.045;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* -------------------------------------------------------------- motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .livedot,
  .status-live::before { animation: none; }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .trust-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { gap: 16px; }
}

@media (max-width: 640px) {
  .board-row {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    grid-template-areas:
      'cap ident right'
      'cap task  task';
    align-items: center;
    row-gap: 2px;
    column-gap: 10px;
  }
  .capsule { grid-area: cap; }
  .board-ident { grid-area: ident; width: auto; }
  .board-right { grid-area: right; }
  .board-task { grid-area: task; }

  .row { flex-wrap: wrap; align-items: flex-start; }
  .row-main { flex-basis: calc(100% - 54px); }
  .tag { margin-left: 54px; }

  .stack-row { grid-template-columns: 1fr; gap: 8px; }
  .stack-desc { grid-column: 1; }
  .stack-label { padding-top: 0; }

  .foot-right { align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .board-task { white-space: normal; }
}
