/* ------------------------------------------------------------------
   Klawd — Swiss / minimalist landing
   Helvetica Neue · generous whitespace · asymmetric grid
   · thin 1px strokes · black / white / grey · ochre used sparingly
------------------------------------------------------------------ */

:root {
  --black: #000000;
  --ink: #111111;
  --grey-90: #1f1f1f;
  --grey-70: #474747;
  --grey-50: #757575;
  --grey-30: #a8a8a8;
  --grey-20: #d4d4d4;
  --grey-15: #e3e3e3;
  --grey-10: #ececec;
  --grey-05: #f5f5f5;
  --white: #ffffff;
  --accent: var(--ink);
  --font-sans:
    'Helvetica Neue', 'Neue Haas Grotesk', 'Inter', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:
    'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --container: 1280px;
  --border: 1px solid var(--grey-15);
  --border-strong: 1px solid var(--ink);
}

* {
  box-sizing: border-box;
}

*::selection {
  background: var(--ink);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
  /* Safety net against any stray element exceeding the viewport on
     small screens. `clip` (not `hidden`) so the sticky nav keeps working. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga';
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .container {
    padding: 0 24px;
  }

  /* Headlines step down below their desktop clamp floor so long words
     (the hero word-cycler "pull requests", the CTA line) fit a phone
     without forcing horizontal scroll. Caps at the desktop floor at
     720px so the transition is seamless. */
  .display {
    font-size: clamp(34px, 9vw, 52px);
  }

  .h1 {
    font-size: clamp(30px, 8vw, 44px);
  }
}

/* ------------------------------------------------------------------
   Type utilities — Swiss hierarchy: size + weight, not color
------------------------------------------------------------------ */

.display {
  font-size: clamp(52px, 8vw, 132px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
}

.h1 {
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey-70);
  margin: 0;
}

.body-sm {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-50);
  margin: 0;
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--grey-50);
  text-transform: uppercase;
}

.label-ink {
  color: var(--ink);
}

/* ------------------------------------------------------------------
   Nav
------------------------------------------------------------------ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 48px;
}

.brand {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  color: var(--grey-70);
  transition: color 120ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.link-muted {
  font-size: 14px;
  color: var(--grey-70);
}

.link-muted:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-row {
    height: 56px;
    gap: 16px;
  }

  /* Section anchors collapse on phones (the page is a single short
     scroll); the Download button stays the one obvious action. */
  .nav-links {
    display: none;
  }

  /* .nav-links was the flex spacer; without it the CTA needs to push
     itself to the right edge. */
  .nav-cta {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------------
   Buttons — square corners, thin borders, type-first
------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border: var(--border-strong);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
  white-space: nowrap;
  border-radius: 0;
  letter-spacing: -0.005em;
}

.btn:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding: 12px 0;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--grey-50);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------------
   Section scaffold — numbered, left-aligned, asymmetric
------------------------------------------------------------------ */

.section {
  padding: 160px 0;
  border-top: var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 80px;
  align-items: baseline;
  margin-bottom: 96px;
}

.section-head h2 {
  max-width: 760px;
}

.section-head .deck {
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey-70);
  margin: 0;
  align-self: end;
}

@media (max-width: 900px) {
  .section {
    padding: 100px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }
}

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

.hero {
  padding: 140px 0 120px;
  border-top: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
}

.hero-grid .hero-marker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grey-50);
  line-height: 1.5;
}

.hero-grid .hero-marker em {
  display: block;
  font-style: normal;
  color: var(--ink);
}

.hero-body {
  max-width: 1100px;
}

.hero-body .display {
  margin-bottom: 40px;
}

.hero-body .display .accent {
  color: var(--accent);
}

/* ---- Headline word cycler ---- */

/* Each word-cell is 1.15em tall so descenders (g, p, q, y) fit inside
   the overflow:hidden viewport without being clipped. Translating by
   1.15em per step keeps the cells aligned. */

.word-cycler {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15;
  position: relative;
}

.word-track {
  display: block;
  /* 4 distinct words + a repeat of the first at index 5 so the cycle
     loops back without a visible jump. 16s total = ~3s readable per
     word. */
  animation: klawd-cycle 16s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.word-track .word {
  display: block;
  height: 1.15em;
  line-height: 1.15;
  white-space: nowrap;
}

@keyframes klawd-cycle {
  0%, 20% {
    transform: translateY(0);
  }
  25%, 45% {
    transform: translateY(-1.15em);
  }
  50%, 70% {
    transform: translateY(-2.3em);
  }
  75%, 95% {
    transform: translateY(-3.45em);
  }
  100% {
    transform: translateY(-4.6em);
  }
}

/* Respect reduced motion — lock to the first word */
@media (prefers-reduced-motion: reduce) {
  .word-track {
    animation: none;
  }
}

.hero-body .deck {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--grey-70);
  margin: 0 0 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero {
    padding: 64px 0 88px;
  }

  /* Single column: the marker stacks above the headline instead of
     holding a fixed 120px column that squeezes the h1. */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-body .display {
    margin-bottom: 28px;
  }

  .hero-body .deck {
    font-size: 17px;
    margin-bottom: 32px;
  }

  .hero-screen {
    margin-top: 56px;
  }
}

/* ------------------------------------------------------------------
   Hero screen — loader pill → canvas thumbnail overview
   13s loop. Analyze phase (pill + progress), then populate the
   overview with page thumbnails.
------------------------------------------------------------------ */

.hero-screen {
  margin-top: 112px;
  border: var(--border-strong);
  background: var(--white);
  overflow: hidden;
}

.screen-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink);
}

.screen-chrome .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}

.screen-stage {
  position: relative;
  padding: 48px 56px;
  background: var(--white);
  min-height: 560px;
}

/* Loader pill — centered, visible during analysis, then fades */
.screen-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 999px;
  z-index: 2;
  animation: klawd-loader 13s ease-in-out infinite;
}

@keyframes klawd-loader {
  0%, 28%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  33%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
}

.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  animation: klawd-loader-dot 1.4s ease-in-out infinite;
}

@keyframes klawd-loader-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.loader-steps {
  display: inline-grid;
  grid-template-columns: 1fr;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  min-width: 140px;
}

.loader-steps > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation-duration: 13s;
  animation-iteration-count: infinite;
}

.loader-steps > span:nth-child(1) { animation-name: klawd-step-1; }
.loader-steps > span:nth-child(2) { animation-name: klawd-step-2; }

@keyframes klawd-step-1 { 0%, 1%   { opacity: 0; } 3%, 13%  { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes klawd-step-2 { 0%, 15%  { opacity: 0; } 17%, 28% { opacity: 1; } 30%, 100% { opacity: 0; } }

.loader-bar {
  display: block;
  width: 72px;
  height: 6px;
  background: var(--white);
  border: 1px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}

.loader-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: klawd-fill 13s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes klawd-fill {
  0%   { transform: scaleX(0); }
  27%  { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}

/* Overview — small B&W wireframe thumbnails in 4 labeled sections */
.screen-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.canvas-section {
  position: relative;
  padding: 22px 16px 16px;
  border: 1px dashed var(--ink);
  opacity: 0;
  animation-duration: 13s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.section-label {
  position: absolute;
  top: -8px;
  left: 14px;
  padding: 0 8px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 88px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb-chrome {
  height: 9px;
  background: var(--white);
  border-bottom: 1px solid var(--ink);
  position: relative;
  flex-shrink: 0;
}

.thumb-chrome::before,
.thumb-chrome::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.thumb-chrome::before { left: 5px; }
.thumb-chrome::after  { left: 11px; }

.thumb-body {
  padding: 8px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
}

.thumb-body .bar {
  height: 2px;
  background: var(--ink);
  display: block;
}

.thumb-body .bar.short {
  width: 55%;
}

.thumb-body .block {
  height: 14px;
  background: var(--white);
  border: 1px solid var(--ink);
  display: block;
  margin: 2px 0;
}

.thumb-label {
  padding: 5px 9px 6px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}

.thumb-label .seq {
  color: var(--ink);
}

.screen-overview .canvas-section:nth-child(1) { animation-name: klawd-section-1; }
.screen-overview .canvas-section:nth-child(2) { animation-name: klawd-section-2; }
.screen-overview .canvas-section:nth-child(3) { animation-name: klawd-section-3; }
.screen-overview .canvas-section:nth-child(4) { animation-name: klawd-section-4; }

@keyframes klawd-section-1 { 0%, 34% { opacity: 0; transform: translateY(10px); } 39%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(-2px); } }
@keyframes klawd-section-2 { 0%, 40% { opacity: 0; transform: translateY(10px); } 45%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(-2px); } }
@keyframes klawd-section-3 { 0%, 46% { opacity: 0; transform: translateY(10px); } 51%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(-2px); } }
@keyframes klawd-section-4 { 0%, 52% { opacity: 0; transform: translateY(10px); } 57%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .screen-loader { display: none; }
  .canvas-section,
  .loader-fill,
  .loader-dot,
  .loader-steps > span {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .loader-fill { transform: scaleX(1); }
  .loader-steps > span:nth-child(1) { opacity: 0; }
  .loader-steps > span:nth-child(2) { opacity: 1; }
}

@media (max-width: 720px) {
  .screen-stage { padding: 28px 24px; min-height: 420px; }
  .screen-overview { gap: 22px; }
  .thumb { width: 80px; }
  .loader-bar { width: 56px; }
  .loader-steps { min-width: 120px; font-size: 11px; }
}

/* ------------------------------------------------------------------
   How it works — 3 numbered steps, horizontal rule separators
------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--border);
}

.step {
  padding: 48px 0 48px 40px;
  position: relative;
  border-right: var(--border);
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  border-right: none;
  padding-right: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-50);
  margin-bottom: 28px;
}

.step h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-70);
  margin: 0;
  max-width: 300px;
}

.step code {
  background: var(--grey-10);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 40px 0;
    border-right: none;
    border-bottom: var(--border);
  }

  .step:last-child {
    border-bottom: none;
  }
}

/* ------------------------------------------------------------------
   Auto Discovery — asymmetric 2-col feature spotlight
------------------------------------------------------------------ */

.discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

.discovery-copy .h2 {
  margin-bottom: 32px;
}

.discovery-copy .lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--grey-70);
  margin: 0 0 40px;
  max-width: 460px;
}

.discovery-points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: var(--border);
}

.discovery-points li {
  padding: 18px 0;
  border-bottom: var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
}

.discovery-points .bullet {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-50);
  letter-spacing: 0.02em;
}

.discovery-points strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 500;
}

.discovery-points span {
  font-size: 14px;
  color: var(--grey-70);
  line-height: 1.5;
}

/* Illustration — clean bordered canvas view */

.discovery-visual {
  padding: 40px;
  border: var(--border-strong);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.discovery-origin {
  display: flex;
  align-items: center;
  gap: 20px;
}

.origin-file {
  padding: 14px 18px;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
}

.origin-file .name {
  color: var(--grey-50);
  margin-right: 4px;
}

.arrow {
  color: var(--ink);
}

.discovery-canvas {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.canvas-node {
  border: var(--border);
  padding: 14px 18px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
}

.canvas-node .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-50);
  margin-right: 8px;
}

.canvas-node.main {
  max-width: 160px;
}

.canvas-group {
  position: relative;
  padding: 22px 16px 16px;
  border: 1px dashed var(--grey-30);
}

.canvas-group-label {
  position: absolute;
  top: -9px;
  left: 16px;
  padding: 0 8px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--grey-50);
}

.canvas-row {
  display: flex;
  gap: 12px;
}

.canvas-row .canvas-node {
  flex: 1;
}

@media (max-width: 900px) {
  .discovery-grid {
    /* minmax(0, …) lets the single column shrink to the container; a
       plain 1fr grows to the min-content of the nowrap illustration,
       pushing the whole section past the viewport on phones. */
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .discovery-copy,
  .discovery-visual {
    min-width: 0;
  }

  /* Tighter bullet column on small screens — 80px steals too much of
     the text's width. */
  .discovery-points li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }

  /* The B&W illustration boxes use nowrap/fixed-width inner nodes; clip
     them to the card rather than let them force horizontal scroll. */
  .discovery-visual {
    overflow: hidden;
  }
}

/* ------------------------------------------------------------------
   Features — 3-col grid with stroke-line illustrations
------------------------------------------------------------------ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  border-top: var(--border);
  border-left: var(--border);
}

.feature {
  display: grid;
  /* Fixed preview height so borders line up across the grid regardless
     of illustration content. Body fills the remaining space. */
  grid-template-rows: 240px 1fr;
  border-right: var(--border);
  border-bottom: var(--border);
  background: var(--white);
  overflow: hidden;
}

.feature-preview {
  position: relative;
  padding: 32px;
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-50);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-70);
  margin: 0;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Preview illustrations (pure black strokes) ---------- */

/* Live from GitHub — commit card → arrow → doc */
.preview-github {
  display: flex;
  align-items: center;
  gap: 16px;
}

.commit-card {
  border: var(--border);
  padding: 12px 14px;
  width: 140px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-50);
}

.commit-card .row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.commit-card .row:last-child {
  margin-bottom: 0;
}

.commit-card .bar {
  height: 1px;
  background: var(--grey-15);
  flex: 1;
}

.commit-card .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

.mini-browser {
  border: var(--border);
  width: 140px;
  background: var(--white);
}

.mini-browser .bar {
  height: 16px;
  background: var(--grey-10);
  border-bottom: var(--border);
}

.mini-browser .body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-browser .line {
  height: 1px;
  background: var(--grey-15);
}

.mini-browser .line.short {
  width: 60%;
}

.mini-browser .line.strong {
  background: var(--ink);
  width: 30%;
  height: 2px;
}

/* Pin-based comments */
.preview-screen {
  position: relative;
  border: var(--border);
  width: 240px;
  height: 150px;
  background: var(--white);
  overflow: hidden;
}

.preview-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: var(--grey-10);
  border-bottom: var(--border);
}

.preview-screen .line {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--grey-15);
}

.preview-screen .line.l1 {
  top: 42px;
}

.preview-screen .line.l2 {
  top: 62px;
  width: 50%;
}

.preview-screen .block {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 86px;
  height: 40px;
  border: var(--border);
}

.preview-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Archive */
.preview-thread {
  position: relative;
  border: var(--border);
  padding: 14px;
  width: 260px;
  background: var(--white);
}

.preview-thread.resolved {
  opacity: 0.5;
}

.preview-thread .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.preview-thread .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-thread .head-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}

.preview-thread .head-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-50);
}

.preview-thread .archive-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  padding: 2px 8px;
  border: var(--border-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-thread .line {
  height: 1px;
  background: var(--grey-15);
  margin-bottom: 5px;
}

.preview-thread .line.short {
  width: 55%;
}

/* URL */
.preview-url {
  border: var(--border);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  max-width: 320px;
}

.preview-url .base {
  color: var(--grey-50);
  white-space: nowrap;
}

.preview-url .token {
  color: var(--ink);
  font-weight: 500;
}

.preview-url .params {
  color: var(--ink);
  background: var(--grey-10);
  padding: 1px 6px;
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar history */
.preview-sidebar {
  border: var(--border);
  padding: 16px;
  width: 260px;
  background: var(--white);
}

.preview-sidebar .title {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--grey-50);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.preview-sidebar .tabs {
  display: flex;
  gap: 16px;
  border-bottom: var(--border);
  margin-bottom: 14px;
}

.preview-sidebar .tab {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-50);
  padding-bottom: 10px;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
}

.preview-sidebar .tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.preview-sidebar .tab .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-30);
}

.preview-sidebar .tab.active .count {
  color: var(--grey-70);
}

.preview-sidebar .row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  align-items: flex-start;
}

.preview-sidebar .row .avatar {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.preview-sidebar .row .lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-sidebar .row .line {
  height: 1px;
  background: var(--grey-15);
}

.preview-sidebar .row .line.short {
  width: 60%;
}

/* Flow */
.preview-flow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flow-link {
  border: var(--border);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-50);
}

.flow-link .token {
  color: var(--ink);
  font-weight: 500;
}

.flow-arrow {
  color: var(--ink);
}

.flow-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--border-strong);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------
   Pricing — the $0 joke (giant zero + dashed thermal receipt)
------------------------------------------------------------------ */

.pricing-nada {
  max-width: 720px;
  margin: 0 auto;
}

.pricing-headline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 0.85;
  margin: 24px 0 56px;
  gap: 8px;
  color: var(--ink);
}

.pricing-headline .currency {
  font-size: 56px;
  font-weight: 500;
  padding-top: 28px;
  letter-spacing: -0.02em;
}

.pricing-headline .zero {
  font-size: 260px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.pricing-receipt {
  list-style: none;
  padding: 24px 28px 20px;
  margin: 0 auto 48px;
  max-width: 520px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-family: var(--font-mono);
}

.pricing-receipt .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ink);
  font-size: 12px;
  color: var(--ink);
  gap: 16px;
  letter-spacing: 0.02em;
}

.pricing-receipt .row:last-child {
  border-bottom: none;
}

.pricing-receipt .row .amount {
  white-space: nowrap;
}

.pricing-receipt .total {
  border-top: 1px solid var(--ink);
  border-bottom: none;
  margin-top: 6px;
  padding-top: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-promise {
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--grey-70);
  line-height: 1.55;
  text-align: center;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .pricing-headline { margin: 16px 0 40px; gap: 4px; }
  .pricing-headline .zero { font-size: 160px; }
  .pricing-headline .currency { font-size: 40px; padding-top: 18px; }
  .pricing-receipt { padding: 18px 20px 14px; }
  .pricing-receipt .row { font-size: 11px; padding: 10px 0; }
  .pricing-promise { font-size: 15px; }
}

/* ------------------------------------------------------------------
   FAQ
------------------------------------------------------------------ */

.faq-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

.faq-grid .faq-aside .label {
  margin-bottom: 16px;
  display: block;
}

.faq-grid .faq-aside h2 {
  max-width: 220px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: var(--border);
}

.faq-list details {
  border-bottom: var(--border);
}

.faq-list summary {
  list-style: none;
  padding: 28px 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink);
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--grey-70);
  line-height: 1.55;
  max-width: 640px;
}

.faq-list details code {
  background: var(--grey-10);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ------------------------------------------------------------------
   Final CTA — big type, no chrome
------------------------------------------------------------------ */

.cta-section {
  padding: 160px 0;
  border-top: var(--border);
}

.cta-body h2 {
  max-width: 900px;
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cta-section {
    padding: 100px 0;
  }
}

/* ------------------------------------------------------------------
   Footer — minimal, typographic
------------------------------------------------------------------ */

.site-footer {
  padding: 48px 0;
  border-top: var(--border);
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-50);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--grey-70);
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    gap: 20px;
  }
}

/* ------------------------------------------------------------------
   Added visuals — folder sync, publish, dev handoff (same B&W system)
------------------------------------------------------------------ */

/* Live from your folder — folder card of filenames → arrow → doc.
   Reuses .commit-card box; overrides the row layout for file rows. */
.folder-card .row {
  justify-content: flex-start;
  color: var(--ink);
  gap: 8px;
}

.fdot {
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  background: var(--white);
  flex-shrink: 0;
}

/* Publish to colleagues — local (dashed) → arrow → published (solid) */
.preview-publish {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.pub-node {
  border: var(--border);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--white);
  white-space: nowrap;
}

.pub-node.local {
  border: 1px dashed var(--grey-30);
  color: var(--grey-50);
}

.pub-node.published {
  border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pub-node .check {
  color: var(--ink);
}

/* Dev handoff visual — MCP command + HANDOFF.md doc with token rows */
.handoff-visual {
  gap: 20px;
}

.handoff-cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  border: var(--border);
  padding: 12px 16px;
  background: var(--white);
}

.handoff-cmd .at {
  color: var(--grey-50);
}

.handoff-doc {
  border: var(--border);
  background: var(--white);
  padding: 18px;
}

.handoff-doc-head {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-50);
  margin-bottom: 14px;
}

.handoff-doc .hline {
  height: 2px;
  background: var(--grey-15);
  margin-bottom: 8px;
}

.handoff-doc .hline.strong {
  background: var(--ink);
  width: 40%;
  height: 3px;
}

.handoff-doc .hline.short {
  width: 60%;
}

.token-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  margin-top: 10px;
}

.token-row .swatch {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.token-row .swatch.s1 {
  background: var(--ink);
}

.token-row .swatch.s2 {
  background: var(--grey-50);
}

.token-row .swatch.s3 {
  background: var(--white);
}

.token-row .tok-name {
  flex: 1;
}

.token-row .tok-val {
  color: var(--grey-50);
}

/* How-it-works — section eyebrow + per-step visuals */
.section-title .label {
  display: block;
  margin-bottom: 20px;
}

.step-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin-bottom: 32px;
}

.sv-chip {
  border: var(--border);
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  background: var(--white);
}

.sv-chip.strong {
  border: var(--border-strong);
}

.sv-arrow {
  color: var(--ink);
  flex-shrink: 0;
}

.sv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border: var(--border);
  padding: 5px;
}

.sv-grid i {
  width: 13px;
  height: 9px;
  border: 1px solid var(--ink);
  display: block;
}

/* Footer fine-print disclaimer — quietly self-aware */
.footer-note {
  max-width: 640px;
  margin: 28px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey-50);
}

