/* Granger teaser site. Rebuilt from docs/design/landing.dc.html. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-600.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
}

:root {
  --bg: #0c0e11;
  --bg-terminal: #07080a;
  --text: #ece8e0;
  --text-2: #b4b9c0;
  --text-3: #a9aeb6;
  --muted: #8e949d;
  --muted-2: #7d838c;
  --accent: #c9ab6e;
  --link: #d9c08a;
  --link-hover: #efe2c2;
  --danger: #f0a39a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.14);
  --line-4: rgba(255, 255, 255, 0.18);
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 32px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.muted {
  color: var(--muted);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-3);
  font-size: 15px;
  text-decoration: none;
}

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

.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Shared section bits */

.section {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
}

.h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h2 .muted,
.hero-title .muted {
  color: var(--muted);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 120px;
  padding-bottom: 128px;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-title {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--link-hover);
  color: var(--bg);
}

.btn-primary[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.btn-secondary {
  border-color: var(--line-4);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--text);
}

/* Hero cloud (the large mark; animated by js/hero.js) */

.hero-visual {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 0;
}

.cloud {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
}

.cloud rect {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-status {
  width: 100%;
  max-width: 520px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Set by js/hero.js before first paint; without JS or with reduced motion the
   finished cloud is shown as is. */
.hero-anim .cloud rect {
  opacity: 0;
  transform: scale(0.4);
  fill: var(--text);
  transition: opacity 0.45s ease, transform 0.45s ease, fill 0.5s ease;
}

.hero-anim .cloud rect.on {
  opacity: 1;
  transform: none;
}

.hero-anim .cloud.is-elected rect.leader,
.hero-anim .cloud rect.pulse {
  fill: var(--accent);
}

.hero-anim .cloud rect.pulse {
  transform: scale(1.12);
}

/* Terminal */

.terminal {
  width: 100%;
  max-width: 760px;
  margin: 0;
  background: var(--bg-terminal);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.terminal-body {
  margin: 0;
  padding: 24px 22px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-2);
}

.terminal-body .prompt,
.terminal-body .dim {
  color: var(--muted-2);
}

.terminal-body .cmd {
  color: var(--text);
}

.terminal-body .ok {
  color: var(--accent);
}

.terminal-body .note,
.terminal-body .muted {
  color: var(--muted);
}

.terminal-body .error {
  color: var(--danger);
}

/* Terminal demo (WP3): fixed height, so playing it never shifts the layout. */

.terminal-how.demo {
  max-width: 860px;
}

.demo .terminal-bar {
  gap: 16px;
}

.demo .terminal-bar span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo .terminal-bar span:last-child {
  flex-shrink: 0;
}

.demo-body {
  height: 470px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.demo-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.demo-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.demo-body::-webkit-scrollbar-track,
.demo-body::-webkit-scrollbar-corner {
  background: transparent;
}

/* While the demo plays, its lines slide up (transform) instead of scrolling. */
.demo-body.is-playing {
  overflow-y: hidden;
}

.demo-track {
  display: block;
}

/* Commands wrap like typed input in a real terminal (at any character, so
   a word being typed never jumps to the next line); output lines scroll. */
.demo-body .cmd {
  white-space: pre-wrap;
  word-break: break-all;
}

.demo-body:focus-visible {
  outline-offset: -4px;
}

.terminal-body .marker {
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  line-height: 1.6;
  color: var(--accent);
}

.terminal-body .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--text-2);
  animation: demo-blink 1.1s steps(1) infinite;
}

@keyframes demo-blink {
  50% {
    opacity: 0;
  }
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 57px;
  padding: 6px 8px 6px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.demo-replay {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
}

.demo-replay:hover {
  color: var(--text);
  border-color: var(--muted-2);
}

.demo-replay[hidden] {
  display: inline-block;
  visibility: hidden;
}

/* How it works */

.how-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

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

.section-head p {
  margin: 0;
  max-width: 380px;
  color: var(--text-3);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card p {
  margin: 0;
  flex-grow: 1;
  color: var(--text-3);
  font-size: 16px;
}

.card-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 96px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat dd {
  margin: 0;
  color: var(--text-3);
  font-size: 16px;
}

/* Progress */

.progress-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The line through the nodes fades into brass towards the current milestone. */
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 0;
  top: 15px;
  height: 1px;
  background: linear-gradient(90deg, rgba(236, 232, 224, 0.35) 0%, rgba(236, 232, 224, 0.35) 88%, rgba(201, 171, 110, 0.6) 93%, rgba(201, 171, 110, 0) 100%);
}

.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tl-node {
  width: 18px;
  height: 18px;
  margin: 6px 0;
  border-radius: 4px;
  background: var(--text);
}

.timeline .is-current .tl-node {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 171, 110, 0.18);
}

.tl-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.is-current .tl-meta {
  color: var(--accent);
}

.timeline h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.timeline p {
  margin: 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
}

/* What's next */

.next-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.next-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-head .h2 {
  max-width: 720px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.roadmap li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px 8px 0;
}

.roadmap h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.roadmap p {
  margin: 0;
  color: var(--text-3);
  font-size: 16px;
}

/* Contact */

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.contact-head {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-head p:not(.eyebrow) {
  margin: 0;
  max-width: 420px;
  color: var(--text-3);
  font-size: 16px;
}

.contact-body {
  flex: 1 1 520px;
  min-width: 0;
}

.contact-fallback {
  margin: 0;
  font-size: 19px;
  color: var(--text-2);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.form-status {
  margin: 0;
  font-size: 16px;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--danger);
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px;
  border: 1px solid rgba(201, 171, 110, 0.4);
  border-radius: 12px;
  background: rgba(201, 171, 110, 0.06);
}

.form-success h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.form-success p {
  margin: 0;
  color: var(--text-2);
}

/* Footer */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 64px;
  font-size: 15px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  display: block;
  flex-shrink: 0;
}

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

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

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

/* Legal and error pages */

.prose-wrap {
  padding-top: 88px;
  padding-bottom: 112px;
}

.prose {
  max-width: 720px;
  color: var(--text-2);
}

.prose h1 {
  margin-bottom: 32px;
  color: var(--text);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose h2 {
  margin: 48px 0 12px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul,
.prose address {
  margin: 0 0 16px;
}

.prose address {
  font-style: normal;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 6px;
}

.prose .meta {
  color: var(--muted);
  font-size: 15px;
}

.error-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 140px;
  padding-bottom: 160px;
}

.error-page .lead {
  max-width: 520px;
}

@media (max-width: 960px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 38px;
  }

  .timeline::before {
    left: 8px;
    right: auto;
    top: 9px;
    bottom: 9px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(236, 232, 224, 0.35) 0%, rgba(236, 232, 224, 0.35) 86%, rgba(201, 171, 110, 0.6) 100%);
  }

  .timeline li {
    gap: 6px;
  }

  .tl-node {
    position: absolute;
    left: -38px;
    top: 0;
    margin: 0;
  }
}

/* Small screens */

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero-inner {
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .hero-copy,
  .hero-visual,
  .contact-head,
  .contact-body {
    flex-basis: 100%;
  }

  .lead {
    font-size: 18px;
  }

  .terminal-body {
    font-size: 13px;
  }

  .demo-body {
    height: 430px;
    padding: 18px 16px 22px;
  }

  .demo-caption {
    padding-left: 16px;
  }

  .how-inner,
  .progress-inner,
  .next-inner,
  .contact-inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .stats {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .stat dt {
    font-size: 48px;
  }

  .prose-wrap {
    padding-top: 56px;
    padding-bottom: 80px;
  }
}

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

  .hero-anim .cloud rect {
    opacity: 1;
    transform: none;
  }

  .hero-anim .cloud rect.leader {
    fill: var(--accent);
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
