/* wickplot — developer landing page
   Design tokens are drawn directly from ChartColors.kt: this page's own
   hairlines, ticks, and highlight colour are the same values the library
   uses to draw grids, axes, and legends on a real chart. */

:root {
  --bg: #0F1115;
  --surface: #14171D;
  --surface-2: #191D25;
  --grid: #9AA3B2;
  --border: rgba(154, 163, 178, 0.12);
  --border-strong: rgba(154, 163, 178, 0.22);
  --up: #4C9E82;
  --down: #E0605E;
  --axis-text: #9AA3B2;
  --legend-text: #E6E9EF;
  --accent: #3FB950;
  --accent-dim: rgba(63, 185, 80, 0.14);

  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --measure: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --surface: #F6F7F9;
    --surface-2: #EFF1F4;
    --grid: #6B7180;
    --border: rgba(107, 113, 128, 0.12);
    --border-strong: rgba(107, 113, 128, 0.24);
    --up: #2E9E74;
    --down: #D46A62;
    --axis-text: #6B7180;
    --legend-text: #1B1F2A;
    --accent: #16A34A;
    --accent-dim: rgba(22, 163, 74, 0.10);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--legend-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--legend-text);
  text-decoration: none;
}
a.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 0.2em;
}
a.link:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

code, .mono { font-family: var(--font-mono); }

p code, li code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: var(--legend-text);
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.measure { max-width: var(--measure); }

/* ---------- Wordmark (signature element) ----------
   The candle glyph sits where a punctuation mark would, borrowing the
   product's own visual vocabulary — a wick and a body — for its own name. */

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.candle {
  position: relative;
  display: inline-block;
  width: 0.42em;
  height: 0.85em;
  margin: 0 0.06em;
  vertical-align: middle;
  flex: none;
}
.candle::before {
  /* wick */
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--accent);
}
.candle::after {
  /* body */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26%;
  height: 48%;
  background: var(--accent);
  border-radius: 1px;
}
.wordmark:hover .candle::after { opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .candle::after { transition: opacity 0.15s ease; }
}

.nav-wordmark { font-size: 1.15rem; }
.hero-wordmark { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.hero-wordmark .candle { width: 0.4em; }

/* ---------- Structural motif: axis-tick hairlines ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--axis-text);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 0.9em;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 28px;
  height: 2px;
  background: var(--accent);
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.nav-links a { color: var(--axis-text); }
.nav-links a:hover { color: var(--legend-text); }
.nav-links a.cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.4em 0.9em;
  border-radius: 3px;
  font-weight: 600;
}
.nav-links a.cta:hover { opacity: 0.9; }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--legend-text);
  max-width: 42rem;
  margin: 1.4rem 0 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.install-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.55em 0.9em;
  color: var(--legend-text);
}
.install-chip .chip-prompt { color: var(--accent); }
.install-chip .str { color: var(--up); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6em 1em;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--legend-text);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

.hero-figure {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.hero-figure img { width: 100%; height: auto; }
.figure-tab {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--axis-text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 0.2em 0.6em;
  border-radius: 3px;
}

/* ---------- Definition callout ---------- */

.callout {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--legend-text);
  max-width: var(--measure);
}

/* ---------- Features ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.feature-list li {
  border-top: 1px solid var(--border);
  padding: 1.15rem 0 1.15rem 1.1rem;
  position: relative;
  max-width: var(--measure);
}
.feature-list li:first-child { border-top: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 8px;
  height: 2px;
  background: var(--grid);
  opacity: 0.7;
}

/* ---------- Screenshot pair ---------- */

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 2rem;
}
.shot {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.shot img { width: 100%; height: auto; }
.shot-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--axis-text);
  padding: 0.6em 0.85em;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .shot-pair { grid-template-columns: 1fr; }
}

/* ---------- Pull quote (philosophy) ---------- */

.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  max-width: var(--measure);
  margin: 0;
  color: var(--legend-text);
}
.pull-quote::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--up);
  margin-bottom: 1.1rem;
}

.prose {
  max-width: var(--measure);
  color: var(--legend-text);
}
.prose + .prose { margin-top: 1rem; }

/* ---------- Code blocks ---------- */

.code-block {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.1rem 0;
}
.code-block .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--axis-text);
  padding: 0.55em 0.9em;
  border-bottom: 1px solid var(--border);
}
.code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--legend-text);
  overflow-x: auto;
}
.code-block code { background: none; border: none; padding: 0; font-size: inherit; }

/* minimal, palette-only syntax highlighting */
.tok-kw   { color: var(--accent); }
.tok-type { color: var(--legend-text); font-weight: 600; }
.tok-str  { color: var(--up); }
.tok-num  { color: var(--axis-text); }
.tok-com  { color: var(--axis-text); opacity: 0.75; font-style: italic; }

figcaption.code-caption {
  font-size: 0.9rem;
  color: var(--axis-text);
  margin-top: -0.4rem;
  margin-bottom: 1.5rem;
  max-width: var(--measure);
}

/* ---------- Roadmap ---------- */

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}
.roadmap-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}
.roadmap-list li:first-child { border-top: none; }
.roadmap-list .tick {
  font-family: var(--font-mono);
  color: var(--axis-text);
  flex: none;
  padding-top: 0.1rem;
}

/* ---------- Platforms strip ---------- */

.platforms {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--axis-text);
  letter-spacing: 0.02em;
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.platforms .seg { color: var(--legend-text); }
.platforms .sep { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 3rem;
  color: var(--axis-text);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.footer-links a { color: var(--axis-text); }
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .nav-links span.sep-dot { display: none; }
}
