/* Palette mirrors src/renderer/styles.css so the site looks like the app. */
:root {
  color-scheme: dark;
  --surface: #101216;
  --sidebar: #0b0d10;
  --raised: #171a20;
  --selected: #1a1d23;
  --border: #1e2128;
  --control-border: #343a45;
  --text: #dcdfe5;
  --muted: #9299a7;
  --bright: #eef0f3;
  --accent: #7aa2ff;
  --green: #3dd68c;
  --agent: #c39bff;
  --attention: #e8c47f;
  --danger: #f28b91;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --surface: #faf9f6;
    --sidebar: #f0efec;
    --raised: #fffefa;
    --selected: #e3e5e9;
    --border: #dedfdf;
    --control-border: #c0c5ce;
    --text: #23262b;
    --muted: #656c78;
    --bright: #23262b;
    --accent: #4269c2;
    --green: #237a51;
    --agent: #7f4fc2;
    --attention: #896017;
    --danger: #b53847;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--surface);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .9em; }
kbd {
  font-size: .85em;
  padding: 1px 6px;
  border: 1px solid var(--control-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--raised);
  white-space: nowrap;
}
.muted { color: var(--muted); }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--bright); font-weight: 600; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 20px; font-size: 14px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--bright); text-decoration: none; }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0 24px; }
h1, h2, h3 { color: var(--bright); line-height: 1.2; }
h2 { font-size: 28px; margin: 0 0 28px; }
h3 { font-size: 17px; margin: 0 0 8px; }

.hero { text-align: center; padding-top: 80px; }
.hero-icon { border-radius: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 20px 0 16px; letter-spacing: -.02em; }
.lede { max-width: 640px; margin: 0 auto; font-size: 19px; color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 12px; }
.button {
  display: inline-block; padding: 11px 20px;
  border: 1px solid var(--control-border); border-radius: 10px;
  color: var(--bright); font-weight: 500;
}
.button:hover { background: var(--selected); text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #0b0d10; }
.button.primary:hover { filter: brightness(1.08); background: var(--accent); }
@media (prefers-color-scheme: light) { .button.primary { color: #fff; } }
.fine { font-size: 13px; color: var(--muted); }

/* Mock app window */
.window {
  display: flex; text-align: left;
  margin: 56px auto 0; max-width: 900px; height: 380px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  font-size: 13px;
}
.win-sidebar {
  width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 10px; background: var(--sidebar); border-right: 1px solid var(--border);
}
.lights { display: flex; gap: 8px; padding: 0 6px 22px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights span:nth-child(2) { background: #febc2e; }
.lights span:nth-child(3) { background: #28c840; }
.win-heading {
  display: flex; justify-content: space-between; padding: 0 8px 8px;
  color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.win-tab { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.win-tab.active { background: var(--selected); color: var(--bright); }
.win-tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.win-tab-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tab-text b { font-weight: 400; }
.win-tab-text b::before { content: ' · '; color: var(--muted); }
.win-tab[data-status=working] b { color: var(--accent); }
.win-tab[data-status=blocked] b { color: var(--attention); }
.win-tab[data-status=done] b { color: var(--green); }
.win-tab svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.win-tab.active svg { color: var(--accent); }
.win-tab.agent svg { color: var(--agent); }
.win-version { margin-top: auto; padding: 0 8px; font-size: 11px; color: var(--muted); }
.win-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.win-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--bright); }
.win-term { flex: 1; margin: 0; padding: 16px; font-size: 12.5px; line-height: 1.55; overflow: hidden; }
.win-term .p { color: var(--accent); }
.win-term .g { color: var(--green); }
.branch-actions { display: inline-flex; gap: 2px; vertical-align: middle; color: var(--muted); }
.branch-actions i { display: inline-flex; padding: 1px 2px; border-radius: 4px; }
.branch-actions .hover { background: var(--raised); color: var(--danger); }
.branch-actions .copied { color: var(--green); }
.branch-actions svg { width: 13px; height: 13px; }
.win-term .deleted { color: var(--muted); text-decoration: line-through; }
.cursor { background: var(--text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.intro { max-width: 720px; margin: -12px 0 28px; color: var(--muted); font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid article {
  padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised);
}
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

table { width: 100%; max-width: 640px; border-collapse: collapse; }
td { padding: 10px 0; border-bottom: 1px solid var(--border); }
td:first-child { width: 45%; }

.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.code {
  padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--sidebar); font-size: 14px; overflow-x: auto;
}

footer { margin-top: 72px; padding: 32px 24px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 680px) {
  .nav nav a:not(:last-child) { display: none; }
  .win-sidebar { display: none; }
  .win-header .muted { display: none; }
}
