/* devBoard — landing styles.
   Palette is GitHub Primer dark, the same one the app uses (docs/UI.md):
   greys do the structural work, one blue accent, one 1px border weight. */

:root {
  --bg:        #0b0e14;
  --panel:     #0d1117;
  --panel-2:   #11161f;
  --panel-3:   #161b22;
  --border:    #21262d;
  --border-2:  #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --muted-2:   #6e7681;

  --accent:    #58a6ff;
  --accent-em: #1f6feb;
  --green:     #3fb950;
  --purple:    #bc8cff;
  --orange:    #d29922;
  --red:       #f85149;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1; /* tabular figures, like the app */
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-2);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 3px 10px;
}

/* --- type --------------------------------------------------------------- */

h1, h2, h3 { letter-spacing: -.022em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
p  { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.6; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px;
}
code, .mono { font-family: var(--mono); }
kbd {
  font-family: var(--mono); font-size: .85em; color: var(--text);
  background: var(--panel-3); border: 1px solid var(--border-2);
  border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px;
}

/* --- layout bands ------------------------------------------------------- */

.band { padding: 88px 0; border-top: 1px solid var(--border); }
.band-head { max-width: 660px; margin-bottom: 44px; }
.band-head .lede { margin-top: 14px; }

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

.hero { padding: 86px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(88,166,255,.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 720px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .dim { color: var(--muted-2); }
.hero .lede { max-width: 620px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 550; padding: 11px 18px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-em); color: #fff; border-color: #388bfd66; }
.btn-primary:hover { background: #2b7ffc; }
.btn-ghost { background: var(--panel-3); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: #1c232c; border-color: #444c56; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

.platforms { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted-2); font-size: 13.5px; }
.platforms span { display: inline-flex; align-items: center; gap: 7px; }

/* --- app mock ----------------------------------------------------------- */

.mock-frame {
  margin-top: 56px; border: 1px solid var(--border-2); border-radius: 14px;
  background: var(--panel); overflow: hidden;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--panel-2);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-title { margin-left: 10px; font-size: 12.5px; color: var(--muted-2); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 208px 1fr; min-height: 430px; }

.side { border-right: 1px solid var(--border); padding: 14px 10px; background: var(--panel-2); }
.side-switch {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px;
  border: 1px solid var(--border-2); font-size: 13px; margin-bottom: 14px;
}
.side-switch .sq { width: 17px; height: 17px; border-radius: 5px; background: var(--accent-em); flex: none; }
.side-switch .chev { margin-left: auto; color: var(--muted-2); font-size: 10px; }
.side-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 7px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 1px;
}
.side-row .cap { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.side-row.on { background: #1f6feb26; color: var(--text); }
.side-rule { height: 1px; background: var(--border); margin: 13px 4px; }
.side-ico { width: 15px; color: var(--muted-2); flex: none; }

.board { padding: 16px; overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.board-head h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: block; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.col-head {
  display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
  font-size: 12px; color: var(--muted); font-weight: 550;
}
.col-head b { font-family: var(--mono); font-size: 11px; color: var(--muted-2); font-weight: 400; margin-left: auto; }
.card {
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel-3);
  padding: 9px 10px 10px; margin-bottom: 8px; position: relative; overflow: hidden;
}
.card .lbl { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; }
.card-key { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-bottom: 5px; }
.card-key .epic { margin-left: 0; color: var(--purple); }
.card-t { font-size: 13px; line-height: 1.4; margin-bottom: 9px; }
.card-foot { display: flex; align-items: center; gap: 6px; }
.av { width: 19px; height: 19px; border-radius: 50%; font-size: 9.5px; display: grid; place-items: center; color: #06090f; font-weight: 650; }
.chip {
  margin-left: auto; font-family: var(--mono); font-size: 10px; padding: 2px 7px;
  border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted);
}

/* --- feature grid ------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cell { background: var(--panel); padding: 26px 24px 28px; }
.cell .ico { width: 20px; height: 20px; color: var(--accent); margin-bottom: 14px; display: block; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* --- split -------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.klist { list-style: none; margin: 26px 0 0; padding: 0; }
.klist li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14.5px; }
.klist li:first-child { border-top: none; }
.klist kbd { flex: none; min-width: 34px; text-align: center; }

.palette { border: 1px solid var(--border-2); border-radius: 12px; background: var(--panel); overflow: hidden; box-shadow: 0 18px 50px -18px rgba(0,0,0,.75); }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.palette-in .cursor { width: 1.5px; height: 17px; background: var(--accent); animation: blink 1.15s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.palette-row { display: flex; align-items: center; gap: 11px; padding: 9px 16px; font-size: 13.5px; color: var(--muted); }
.palette-row.on { background: #1f6feb1f; color: var(--text); }
.palette-row .k { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }

/* --- platforms band ----------------------------------------------------- */

.plat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 8px; }
.plat {
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel);
  padding: 22px 16px; text-align: center;
}
.plat svg { color: var(--muted); margin-bottom: 11px; }
.plat b { display: block; font-size: 14px; font-weight: 550; }
.plat span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-top: 5px; }
.note { margin-top: 26px; color: var(--muted-2); font-size: 14px; }

/* --- faq ---------------------------------------------------------------- */

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 550; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted-2); font-family: var(--mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); font-size: 15px; margin-top: 12px; }

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

.foot { border-top: 1px solid var(--border); padding: 44px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot-links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a, .foot small { color: var(--muted-2); font-size: 13.5px; }
.sib { color: var(--muted-2); font-size: 13.5px; }

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

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .plat-grid { grid-template-columns: repeat(3, 1fr); }
  .mock-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .cols { grid-template-columns: 1fr; }
  .cols .col:nth-child(n+2) { display: none; }
}
@media (max-width: 640px) {
  .band { padding: 62px 0; }
  .hero { padding: 56px 0 48px; }
  .grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .foot-links { margin-left: 0; }
}

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

/* --- legal / doc pages -------------------------------------------------- */

.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.doc .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-bottom: 40px; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.doc p { margin: 12px 0; }
.doc ul { padding-left: 20px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; color: var(--muted); vertical-align: top; }
.doc th { background: var(--panel-2); color: var(--text); font-weight: 550; }
.doc strong { color: var(--text); font-weight: 550; }

/* a band whose only child is its heading should not pay for the gap after it */
.band-head:last-child { margin-bottom: 0; }
