/* =====================================================================
   Repo Deck — landing page styles (mono dark, paper accent)
   Sits on top of repo-deck.css for tokens + base type.
   ===================================================================== */

/* Force the landing into mono-dark regardless of body class */
html, body.landing {
  --bg:           #0E0E0F;
  --bg-panel:     #161617;
  --bg-raised:    #1D1D1F;
  --bg-soft:      #1A1A1B;
  --border:       #262628;
  --border-soft:  #1F1F21;
  --text:         #E7E7E8;
  --text-muted:   #8B8B8E;
  --text-dim:     #56565A;
  --accent:       #E7E7E8;
  --accent-soft:  rgba(231,231,232,0.08);
  --pass:         oklch(0.78 0.09 152);
  --warn:         oklch(0.80 0.10 80);
  --fail:         oklch(0.68 0.14 25);
}

body.landing {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,15,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-mark {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--text);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.nav-logo {
  max-height: 56px;
  height: auto;
  width: auto;
  max-width: min(360px, 48vw);
  display: block;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex; gap: 10px;
}

.btn-land {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 120ms ease;
}
.btn-land:hover { border-color: var(--text); }
.btn-land.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-land.primary:hover { filter: brightness(0.92); }
.btn-land.lg { padding: 14px 22px; font-size: 12px; }

/* ============ Section helpers ============ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow.amber { color: var(--warn); }
.eyebrow .num { color: var(--text-muted); }

.h1 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
}
.h1 .dim { color: var(--text-dim); }
.h1 .accent { color: var(--text); border-bottom: 4px solid var(--warn); padding-bottom: 4px; }

.h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h2 .dim { color: var(--text-dim); }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.section { padding: 96px 0; border-top: 1px solid var(--border-soft); }
.section.tight { padding: 64px 0; }
.section.first { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head .right { padding-bottom: 6px; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
}

/* ============ HERO ============ */

.hero {
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(232,181,71,0.06), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(231,231,232,0.04), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pass);
}
.hero-eyebrow .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--pass); opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0;   }
}

.hero h1 { margin: 0 0 28px; }
.hero .lede { margin-bottom: 36px; }

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.hero-trust .pip {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
}

/* Hero terminal/preview card */

.hero-art {
  position: relative;
  min-height: 460px;
}
.preview-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8),
              0 1px 0 rgba(255,255,255,0.04) inset;
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.preview-head .traffic {
  display: flex; gap: 6px;
}
.preview-head .traffic span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.preview-head .url {
  margin-left: 8px;
  letter-spacing: 0.04em;
}

/* ASCII / terminal-style portfolio diagram in hero */
.term {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 22px 24px;
  white-space: pre;
}
.term .k { color: var(--text); }
.term .ok { color: var(--pass); }
.term .wn { color: var(--warn); }
.term .er { color: var(--fail); }
.term .dim { color: var(--text-dim); }
.term .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--text);
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Floating fix-PR ticket */
.pr-ticket {
  position: absolute;
  right: -28px;
  bottom: -20px;
  width: 280px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  z-index: 2;
}
.pr-ticket .ticket-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 8px;
}
.pr-ticket .ticket-title {
  color: var(--text);
  font-size: 12.5px;
  margin-bottom: 10px;
}
.pr-ticket ul {
  list-style: none;
  padding: 0; margin: 0;
  color: var(--text-muted);
}
.pr-ticket li {
  padding: 3px 0;
  display: flex; align-items: center; gap: 8px;
}
.pr-ticket li::before {
  content: "+"; color: var(--pass); flex: none;
}

@media (max-width: 1100px) {
  .pr-ticket { position: static; width: 100%; margin-top: -8px; }
}

/* ============ Problem strip ============ */

.problem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 96px;
}
.problem .col {
  padding: 36px 24px;
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.problem .col:last-child { border-right: 0; }
.problem .num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.problem .num.warn { color: var(--warn); }
.problem .num.fail { color: var(--fail); }
.problem .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.problem .meta {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}
@media (max-width: 880px) {
  .problem { grid-template-columns: repeat(2, 1fr); }
  .problem .col:nth-child(2) { border-right: 0; }
  .problem .col:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
}

/* ============ How it works ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-panel);
}
.steps .step {
  padding: 36px 32px 32px;
  border-right: 1px solid var(--border-soft);
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.steps .step:last-child { border-right: 0; }
.steps .step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}
.steps .step h3 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.steps .step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.steps .step .step-visual {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}
.steps .step .step-visual .k { color: var(--text); }
.steps .step .step-visual .ok { color: var(--pass); }
.steps .step .step-visual .wn { color: var(--warn); }
.steps .step .step-visual .er { color: var(--fail); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps .step { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .steps .step:last-child { border-bottom: 0; }
}

/* ============ Checks grid ============ */

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-panel);
}
.check {
  padding: 28px 30px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: start;
}
.check:nth-child(2n) { border-right: 0; }
.check:nth-last-child(-n+2):not(:nth-child(odd)) { border-bottom: 0; }
.check:last-child { border-bottom: 0; }
.check:nth-last-child(2) { border-bottom: 0; }

.check .glyph {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text);
}
.check h4 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.check p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.check .weight {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .checks { grid-template-columns: 1fr; }
  .check { border-right: 0; }
  .check, .check:nth-child(2n) { border-right: 0; }
}

/* ============ Auto-fix showcase ============ */

.fix-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1000px) {
  .fix-section { grid-template-columns: 1fr; gap: 32px; }
}
.fix-section ul.bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.fix-section ul.bullets li {
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.fix-section ul.bullets li:first-child { border-top: 0; padding-top: 8px; }
.fix-section ul.bullets li .label-tiny {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  margin-top: 4px;
  white-space: nowrap;
}
.fix-section ul.bullets li b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.fix-section ul.bullets li span {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* PR diff card */
.pr-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow: hidden;
}
.pr-card .pr-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.pr-card .pr-head .pr-num {
  color: var(--text-dim);
}
.pr-card .pr-head .pr-status {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--pass) 18%, transparent);
  color: var(--pass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pr-card .pr-title {
  padding: 0 20px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--border-soft);
}
.pr-files {
  padding: 12px 20px 18px;
  color: var(--text-muted);
}
.pr-files .pr-file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 6px 0;
  align-items: center;
}
.pr-files .pr-file .glyph {
  font-size: 11px;
  width: 14px;
  text-align: center;
}
.pr-files .pr-file.add .glyph { color: var(--pass); }
.pr-files .pr-file.mod .glyph { color: var(--warn); }
.pr-files .stat {
  font-size: 11px;
  color: var(--text-dim);
}
.pr-files .pr-file .stat .pos { color: var(--pass); }
.pr-files .pr-file .stat .neg { color: var(--fail); }
.pr-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
  display: flex; gap: 10px; align-items: center;
  font-size: 11px;
  color: var(--text-dim);
}
.pr-foot .check-pill {
  color: var(--pass);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============ Self-host ============ */

.host {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1000px) {
  .host { grid-template-columns: 1fr; gap: 32px; }
}

.code-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}
.code-block .c-comment { color: var(--text-dim); }
.code-block .c-key { color: var(--warn); }
.code-block .c-str { color: var(--pass); }
.code-block .c-cmd { color: var(--text); }
.code-block .c-prompt { color: var(--text-dim); }

.host-list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
}
.host-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.host-list li:first-child { border-top: 0; }
.host-list li b {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.host-list .tick {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--pass);
  margin-top: 2px;
}

/* ============ FAQ ============ */

.faq { display: grid; gap: 0; border-top: 1px solid var(--border-soft); }
.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { content: "−"; color: var(--text); }
.faq details p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-bottom: 22px;
  max-width: 70ch;
}
.faq details p code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text);
}

/* ============ Final CTA ============ */

.final-cta {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232,181,71,0.06), transparent 60%);
  pointer-events: none;
}
.final-cta h2 {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  position: relative;
}
.final-cta h2 .dim { color: var(--text-dim); }
.final-cta .lede {
  margin: 0 auto 36px;
  position: relative;
}
.final-cta .hero-actions { justify-content: center; }

/* ============ Footer ============ */

.foot {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 60px;
  color: var(--text-dim);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.foot-brand a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.foot-brand a:hover { color: var(--text); }
@media (max-width: 800px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
.foot h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.foot ul {
  list-style: none;
  padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.foot ul a {
  font-size: 13px;
  color: var(--text-muted);
}
.foot ul a:hover { color: var(--text); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
