/* KubeGlance landing — tokens first. Flat color only: no gradients anywhere. */
:root {
  --paper: #f7f8f6;
  --paper-raised: #ffffff;
  --ink: #111a14;
  --ink-soft: #45524a;
  --ink-faint: #8a958d;
  --line: #dde3dd;
  --spruce: #1b5e43;
  --spruce-deep: #12452f;
  /* status — used only as status, never decoration */
  --ok: #23a55a;
  --warn: #b4690e;
  --err: #c93b2e;
  --prod-red: #e5484d;
  /* the dark app window */
  --win-bg: #0f1512;
  --win-raised: #161d19;
  --win-line: #232c26;
  --win-ink: #dfe7e1;
  --win-dim: #7c877f;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --measure: 62ch;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--spruce); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--spruce); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--font-mono); font-size: 0.85em; background: #e9eee9; padding: 1px 6px; border-radius: 5px; }
.mono { font-family: var(--font-mono); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  max-width: 1200px; margin: 0 auto;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark svg { color: var(--spruce); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.cta {
  display: inline-block;
  background: var(--spruce); color: #fff;
  font-weight: 600; font-size: 16px;
  padding: 12px 22px; border-radius: 10px;
}
.cta:hover { background: var(--spruce-deep); text-decoration: none; }
.cta-small { padding: 8px 16px; font-size: 14px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) var(--pad) 34px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--spruce); font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 84px);
  font-weight: 700;
  max-width: 24ch;
}
.lede {
  margin-top: 26px; max-width: var(--measure);
  font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft);
}
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--ink-faint); }

/* ---------- the living window ---------- */
.window-wrap { max-width: 1200px; margin: 0 auto; padding: 10px var(--pad) 20px; }
.window {
  background: var(--win-bg); color: var(--win-ink);
  border: 1px solid var(--win-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(17, 26, 20, 0.45);
}
.titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: var(--win-raised);
  border-bottom: 1px solid var(--win-line);
}
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a453e; }
.lights i:nth-child(1) { background: #e5484d; }
.lights i:nth-child(2) { background: #d9a10a; }
.lights i:nth-child(3) { background: #23a55a; }
.titlebar .title { font-size: 13px; color: var(--win-dim); font-weight: 500; }
.searchfield {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: #0b100d; border: 1px solid var(--win-line);
  border-radius: 8px; padding: 5px 10px;
  color: var(--win-dim);
}
.chip {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.chip-q { background: #1e352a; color: #8fd6b0; }
.caret { width: 1px; height: 14px; background: var(--win-dim); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.window-body { display: flex; }
.sidebar {
  width: 172px; flex: none;
  padding: 14px 14px 18px;
  border-right: 1px solid var(--win-line);
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12.5px; color: var(--win-dim);
}
.side-h {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #55605a; margin: 8px 0 1px; font-weight: 600;
}
.side-h:first-child { margin-top: 0; }
.side-active { color: #fff; background: #24312a; margin: 0 -8px; padding: 3px 8px; border-radius: 6px; }
.side-ctx { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-ok { background: #6d7f76; }
.dot-prod { background: var(--prod-red); }

.table { flex: 1; min-width: 0; font-size: 13px; }
.tr {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 0.5fr 0.9fr 0.9fr 0.5fr 0.8fr;
  gap: 10px; align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #1a221d;
}
.tr:nth-child(even):not(.th) { background: #121915; }
.th {
  font-size: 11px; text-transform: none; color: var(--win-dim);
  font-weight: 600; border-bottom: 1px solid var(--win-line);
}
.tr .mono { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { font-weight: 600; font-size: 12.5px; }
.st-ok { color: var(--ok); }
.st-err { color: var(--err); }
.st-warn { color: #d9a10a; }
.st-done { color: var(--win-dim); }
.cchip {
  font-style: normal; font-family: var(--font-mono); font-size: 10.5px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.cchip-prod { background: var(--prod-red); color: #fff; }
.cchip-stg { background: #26313a; color: #9fb6c6; }
#row-flaky.is-bad { background: #2a1512; }
#row-flaky.is-bad .st { color: var(--err); }

.logstrip { border-top: 1px solid var(--win-line); background: #0b100d; padding: 10px 16px 12px; }
.logstrip-title { font-size: 11px; color: var(--win-dim); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.chip-live { background: #1e352a; color: #8fd6b0; }
.loglines { font-size: 11.5px; line-height: 1.75; color: #b9c4bc; min-height: 63px; overflow: hidden; }
.loglines .lv, .logcard .lv { font-weight: 700; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.lv-info { color: #8fd6b0; background: #17281f; }
.lv-warn { color: #ecc06a; background: #2b2211; }
.lv-err { color: #f1958b; background: #301713; }
.window-caption {
  text-align: center; font-size: 13.5px; color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- strip ---------- */
.strip { background: var(--ink); color: #e9efe9; }
.strip-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 44px var(--pad);
  font-size: clamp(18px, 2vw, 23px);
  font-family: var(--font-display); font-weight: 500; line-height: 1.45;
}
.strip strong { color: #9fd8b9; font-weight: 600; }

/* ---------- sections shared ---------- */
section h2 {
  font-size: clamp(30px, 4vw, 48px); font-weight: 700;
}
.section-lede { margin-top: 14px; color: var(--ink-soft); max-width: var(--measure); }

/* ---------- features ---------- */
.features { max-width: 1200px; margin: 0 auto; padding: 88px var(--pad) 30px; }
.grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}
.grid article {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 28px;
}
.ic {
  width: 26px; height: 26px; stroke: var(--spruce); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.grid h3 { font-size: 19px; margin: 14px 0 8px; font-weight: 600; }
.grid p { font-size: 15px; color: var(--ink-soft); }

/* ---------- compare ---------- */
.compare { max-width: 1200px; margin: 0 auto; padding: 78px var(--pad) 30px; }
.table-scroll { overflow-x: auto; margin-top: 36px; }
.compare table {
  width: 100%; min-width: 640px; border-collapse: collapse;
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  font-size: 15px;
}
.compare th, .compare td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 16px; }
.compare thead th:nth-child(2) { color: var(--spruce); }
.compare tbody th { font-weight: 600; color: var(--ink-soft); width: 26%; }
.compare td:nth-child(2) { font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.fineprint { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- logs section ---------- */
.logs {
  max-width: 1200px; margin: 0 auto; padding: 78px var(--pad);
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.logs-copy p { margin-top: 16px; color: var(--ink-soft); }
.ticks { margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--spruce); border-bottom: 2.5px solid var(--spruce);
  transform: rotate(-45deg);
}
.logcard {
  background: var(--win-bg); color: #b9c4bc;
  border: 1px solid var(--win-line); border-radius: 14px;
  padding: 20px 20px; font-size: 12px; line-height: 2.05;
  box-shadow: 0 24px 48px -28px rgba(17, 26, 20, 0.4);
  overflow-x: auto;
}
.logcard p { white-space: nowrap; }
.lp { font-weight: 600; }
.lp-a { color: #7cc4de; }
.lp-b { color: #e0b568; }
.lp-c { color: #a5a2e8; }
.dim { color: #66716a; }
.pinned { background: #1c1710; margin: 0 -20px; padding: 0 20px; border-left: 3px solid #d9a10a; }
.pin { color: #d9a10a; font-size: 10px; margin-right: 8px; font-weight: 700; }

/* ---------- stance ---------- */
.stance { background: var(--ink); color: #e9efe9; }
.stance-inner { max-width: 860px; margin: 0 auto; padding: 84px var(--pad); text-align: center; }
.ic-big { width: 34px; height: 34px; stroke: #9fd8b9; }
.stance h2 { margin-top: 18px; }
.stance p { margin: 20px auto 0; max-width: 58ch; color: #b9c6bc; }
.stance em { color: var(--prod-red); font-style: normal; font-weight: 600; }

/* ---------- ios ---------- */
.ios-note { max-width: 1200px; margin: 0 auto; padding: 84px var(--pad) 40px; }
.ios-inner {
  display: grid; grid-template-columns: minmax(300px, 1.3fr) minmax(200px, 0.7fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.ios-note p { margin-top: 16px; color: var(--ink-soft); max-width: 52ch; }
.phone {
  justify-self: center;
  width: 210px; padding: 12px;
  background: var(--win-bg); border-radius: 34px; border: 1px solid var(--win-line);
  box-shadow: 0 24px 48px -28px rgba(17, 26, 20, 0.4);
}
.phone-screen { background: #121915; border-radius: 24px; padding: 18px 14px 22px; }
.p-title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.p-tile {
  background: var(--win-raised); border: 1px solid var(--win-line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px;
}
.p-tile span { color: var(--win-dim); font-size: 11px; }
.p-tile strong { color: #fff; font-family: var(--font-mono); font-size: 13px; }
.bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: #26312a; position: relative; }
.bar::after { content: ""; position: absolute; inset: 0; border-radius: 2px; }
.bar-ok::after { background: var(--ok); width: 100%; }
.bar-warn::after { background: var(--warn); width: 88%; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: 60px var(--pad) 30px; }
.faq dl { margin: 36px 0 0; display: grid; gap: 26px; }
.faq dt { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.faq dd { margin: 8px 0 0; color: var(--ink-soft); max-width: var(--measure); }

/* ---------- closing / footer ---------- */
.closing { text-align: center; padding: 90px var(--pad) 100px; }
.closing .cta { margin-top: 28px; font-size: 18px; padding: 15px 30px; }
footer { border-top: 1px solid var(--line); }
.foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 26px var(--pad);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-faint);
}
.wordmark-foot { font-size: 15px; color: var(--ink-soft); }
.foot-inner a:last-child { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .sidebar { display: none; }
  .tr { grid-template-columns: minmax(140px, 1.6fr) 0.6fr 1fr 0.6fr; }
  .tr span:nth-child(4), .tr span:nth-child(6) { display: none; }
  .logs, .ios-inner { grid-template-columns: 1fr; }
  .phone { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}

/* platforms row (hero) */
.platforms {
  margin-top: 26px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.platforms span { display: inline-flex; align-items: center; gap: 7px; }
.pic {
  width: 17px; height: 17px; stroke: var(--spruce); fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.platforms-note { color: var(--ink-faint); font-weight: 400; }

/* the overlapping live iPhone in the hero */
.stage { position: relative; }
.hero-phone {
  position: absolute; right: -10px; bottom: -44px;
  width: 200px; z-index: 2;
}
.hero-phone-screen {
  background: var(--win-bg); border: 1px solid var(--win-line);
  border-radius: 26px; padding: 14px 12px 10px;
  box-shadow: 0 24px 48px -24px rgba(17, 26, 20, 0.55);
}
.hp-title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 4px 10px; }
.hp-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 6px; border-top: 1px solid #1a221d;
}
.hp-row b { display: block; color: var(--win-ink); font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; }
.hp-row small { color: var(--win-dim); font-size: 9.5px; font-family: var(--font-mono); }
.hp-bad { color: var(--err); }
.pdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pdot-ok { background: var(--ok); }
.pdot-err { background: var(--err); }
.pdot-done { background: #55605a; }
.hero-phone-label {
  margin-top: 12px; font-size: 12.5px; line-height: 1.45;
  color: var(--ink-soft); text-align: center;
}
.prod-word { color: var(--prod-red); font-style: normal; font-weight: 600; }
.ios-note .ticks { margin-top: 20px; }

@media (max-width: 1180px) {
  .hero-phone { position: static; margin: 18px auto 0; }
  .window-wrap { padding-bottom: 20px; }
}
@media (min-width: 1181px) {
  .window-wrap { padding-bottom: 72px; }
}

/* ---------- phone-first hero + device bezels ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(320px, 1.3fr) minmax(250px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-split h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 15ch; }

/* A real device outline around real screenshots: bezel, corner radius, side
   buttons — flat color, no gradients. */
.iphone-frame {
  margin: 0; position: relative;
  width: min(300px, 78vw);
  padding: 11px;
  background: #0a0c0b;
  border: 1px solid #313b34;
  border-radius: 52px;
  box-shadow: 0 34px 64px -32px rgba(17, 26, 20, 0.55);
}
.iphone-frame img {
  display: block; width: 100%; height: auto;
  border-radius: 41px;
  background: #000;
}
.iphone-frame::before {
  /* volume buttons */
  content: ""; position: absolute; left: -3px; top: 118px;
  width: 3px; height: 56px; background: #313b34; border-radius: 2px 0 0 2px;
  box-shadow: 0 72px 0 #313b34;
}
.iphone-frame::after {
  /* side button */
  content: ""; position: absolute; right: -3px; top: 150px;
  width: 3px; height: 86px; background: #313b34; border-radius: 0 2px 2px 0;
}
.hero-iphone { justify-self: end; }
.ios-iphone { justify-self: center; }

.window-lead { margin: 26px 0 14px; }
.window-lead .eyebrow { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-iphone { justify-self: center; margin-top: 8px; }
}

/* real Mac screenshot card */
.mac-shot {
  margin: 0;
  border: 1px solid var(--win-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--win-bg);
  box-shadow: 0 30px 60px -30px rgba(17, 26, 20, 0.45);
}
.mac-shot img { display: block; width: 100%; height: auto; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px var(--pad) 90px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal-date { margin-top: 10px; color: var(--ink-faint); font-size: 14px; }
.legal h2 { font-size: 21px; margin-top: 38px; }
.legal p { margin-top: 12px; color: var(--ink-soft); }
