/*
  generic test case manager landing page. Same tokens as gtcm-web/src/index.css (the app's own light
  look): ink = surfaces, fog = text, star = accent. Direction A, approved 2026-09-19.
*/
:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ink-950: #eceef2;
  --ink-900: #f4f5f7;
  --ink-800: #ffffff;
  --ink-600: #e3e6eb;
  --ink-500: #d5d9e0;

  --fog-100: #131722;
  --fog-300: #3b4252;
  --fog-500: #5f6676; /* 5.1:1 on the page, 5.9:1 on white; the app's #6b7280 misses 4.5 on the page */

  --star-200: #164ba6;
  --star-300: #1d5fd1;

  --pass: #15803d;
  --fail: #b91c1c;
  --blocked: #7e22ce;
  --warn: #b54708;

  --dark-bg: #131722;
  --dark-fg: #eceff5;
  --dark-muted: #c3c8d3;
  --dark-eyebrow: #9aa1b0;

  --radius: 4px;
  --radius-lg: 8px;
  --gutter: 16px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--fog-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--star-300);
}
a:hover {
  color: var(--star-200);
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgb(29 95 209 / 0.45);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink-800);
  padding: 8px 12px;
  border: 1px solid var(--ink-500);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

.visually-hidden-target {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-500);
}
.eyebrow-dark {
  color: var(--dark-eyebrow);
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-500);
}
.mono {
  font-family: var(--font-mono);
}
.key {
  font-family: var(--font-mono);
  color: var(--star-300);
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--fog-300);
  max-width: 560px;
}
.fineprint {
  font-size: 13px;
  color: var(--fog-500);
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm {
  font-size: 14px;
  padding: 10px 16px;
}
.btn-primary {
  color: #ffffff;
  background: var(--star-300);
}
.btn-primary:hover {
  color: #ffffff;
  background: var(--star-200);
}
.btn-secondary {
  color: var(--fog-100);
  background: var(--ink-800);
  border-color: var(--ink-500);
}
.btn-secondary:hover {
  color: var(--fog-100);
  border-color: var(--fog-500);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.textlink {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Nav */
.nav {
  background: var(--ink-800);
  border-bottom: 1px solid var(--ink-600);
}
.nav-row {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fog-100);
  font-weight: 600;
  font-size: 18px;
}
.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--star-300);
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--fog-300);
  text-decoration: none;
  padding: 8px 0;
}
.nav-links a:hover {
  color: var(--fog-100);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--fog-300);
  text-decoration: none;
  padding: 10px 14px;
}

/* Hero and split sections */
.hero,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.hero {
  padding-top: 96px;
  padding-bottom: 72px;
}
.split {
  padding-top: 96px;
  padding-bottom: 96px;
}
.split-top {
  align-items: start;
}
.hero-copy,
.split-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-copy {
  gap: 24px;
}
.split-copy > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fog-300);
}
.bullets {
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fog-300);
}

/* Mockups */
.mock {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -32px rgb(19 23 34 / 0.35);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 13px;
  min-width: 0;
}
.mock-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mock-title {
  font-size: 18px;
  font-weight: 600;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink-600);
  border-radius: 6px;
  overflow: hidden;
}
.stat {
  padding: 16px;
  border-right: 1px solid var(--ink-600);
}
.stat:last-child {
  border-right: 0;
}
.stat-value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--fog-500);
}
.pass {
  color: var(--pass);
}
.fail {
  color: var(--fail);
}
.warn {
  color: var(--warn);
}
.blocked {
  color: var(--blocked);
}
.cycles,
.flaky {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flaky {
  border-top: 1px solid var(--ink-600);
  padding-top: 16px;
  gap: 10px;
}
.cycle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pct {
  font-weight: 600;
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--ink-600);
  overflow: hidden;
  display: flex;
}
.bar-pass {
  background: var(--pass);
}
.bar-fail {
  background: var(--fail);
}

.mock-jira {
  gap: 14px;
  padding: 20px 24px;
}
.jira-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--fog-500);
}
.rule {
  border-top: 1px solid var(--ink-600);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title {
  font-weight: 600;
  font-size: 14px;
}
.panel-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--fog-500);
}
.tc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tc .key {
  width: 70px;
  flex-shrink: 0;
}
.tc-name {
  flex-grow: 1;
  min-width: 0;
}
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--ink-500);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
  color: var(--fog-300);
}
.badge.pass {
  color: var(--pass);
  border-color: #b7e0c4;
}
.badge.fail {
  color: var(--fail);
  border-color: #f3b8b8;
}

/* Frameworks */
.frameworks {
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--ink-500);
  border-radius: var(--radius);
  background: var(--ink-800);
}

/* Features */
.features {
  background: var(--ink-800);
  border-top: 1px solid var(--ink-600);
  border-bottom: 1px solid var(--ink-600);
  padding: 72px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--star-300);
}
.feature h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fog-100);
}
.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fog-300);
}

/* Dark CI section */
.dark {
  background: var(--dark-bg);
  color: var(--dark-fg);
}
.dark .split {
  padding-top: 80px;
  padding-bottom: 80px;
}
.dark h2 {
  color: #ffffff;
}
.dark .split-copy > p:not(.eyebrow),
.dark .bullets {
  color: var(--dark-muted);
}
.terminal {
  margin: 0;
  background: #0b0e16;
  border: 1px solid #2a303c;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #dfe3ec;
  overflow-x: auto;
  min-width: 0;
}
.t-comment {
  color: #9aa1b0;
}
.t-prompt {
  color: #7ea7f0;
}
.t-ok {
  color: #6fd39a;
}

/* Import formats */
.formats {
  border-collapse: collapse;
  width: 100%;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
}
.formats th,
.formats td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-top: 1px solid var(--ink-600);
}
.formats thead th {
  border-top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fog-500);
}
.formats tbody th {
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
  color: var(--fog-100);
}
.formats td {
  color: var(--fog-300);
}

/* MCP note */
.mcp {
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.mcp p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fog-300);
}

/* Final CTA */
.cta-panel {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
}
.cta-copy {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-copy h2 {
  font-size: 32px;
}
.cta-copy p {
  color: var(--fog-300);
}

/* Beta request form */
.beta-form {
  flex: 1 1 360px;
  display: grid;
  gap: 14px;
}
.beta-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fog-100);
}
.beta-form input,
.beta-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--fog-100);
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.beta-form input:focus-visible,
.beta-form textarea:focus-visible {
  outline: 2px solid var(--star-300);
  outline-offset: 1px;
}
.beta-form button {
  justify-self: start;
}
.beta-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--fog-300);
}
.visually-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.legal h1 {
  font-size: 36px;
  margin: 8px 0;
}
.legal h2 {
  font-size: 22px;
  margin-top: 36px;
}
.legal h3 {
  font-size: 17px;
  margin-top: 20px;
}
.legal p,
.legal li {
  color: var(--fog-300);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding-top: 48px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--fog-500);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fog-100);
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer-links a {
  color: var(--fog-500);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--fog-100);
  text-decoration: underline;
}
.footer-note {
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .formats tbody th {
    white-space: normal;
  }
  .features-grid {
    gap: 36px;
  }
  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .split,
  .dark .split {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .nav-actions {
    margin-left: 0;
    width: 100%;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink-600);
  }
  .mock {
    padding: 16px;
  }
  .cta-panel {
    padding: 28px 20px;
  }
  .footer-note {
    margin-left: 0;
    flex-basis: 100%;
  }
}

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