/* tandem-terminal.com — same palette as the app and the icon, so the site and
   the thing it sells look like one product. No build step and no dependencies;
   this is a static page on S3. */

:root {
  --bg: #0b0b0f;
  --panel: #14141a;
  --line: #24242e;
  --ink: #ececf2;
  --dim: #9c9caa;
  --faint: #6a6a78;
  --green: #6ee7a0;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 16px; }
.mark { width: 26px; height: 26px; display: block; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--ink); }
/* `.nav nav a` outranks `.btn`, which left the Download button with dim green
   text on a green fill. Restate it at matching specificity. */
.nav nav a.btn { color: #08150e; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--green);
  color: #08150e;
  font-weight: 650;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.small { padding: 7px 14px; font-size: 13.5px; }
.btn.big { padding: 15px 30px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #3a3a48; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { max-width: 1040px; margin: 0 auto; padding: 88px 28px 40px; text-align: center; }
.kicker {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 700;
}
h1 .dim { color: var(--faint); }
.lede { font-size: clamp(16px, 1.9vw, 20px); color: var(--dim); max-width: 40em; margin: 0 auto 30px; }
.lede em { color: var(--green); font-style: normal; font-weight: 600; }
.narrow { max-width: 34em; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fineprint { color: var(--faint); font-size: 13px; margin-top: 16px; }

/* ── demo window ─────────────────────────────────────────────────────────── */
.demo {
  position: relative;
  margin: 56px auto 0;
  max-width: 780px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #191920;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.chrome .title { margin-left: 10px; color: var(--faint); font-size: 12.5px; font-family: var(--mono); }
.pill {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #26262e;
  color: #b9b9c4;
}
.pill.live { background: #1d3a2a; color: var(--green); }
.screen {
  margin: 0;
  padding: 20px 22px 46px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d5dae4;
  background: #101014;
  white-space: pre;
  overflow-x: auto;
}
.screen .p { color: #86c5ff; }
.screen .ok { color: var(--green); }
.cursor { color: var(--green); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.chatbubble {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(330px, 62%);
  background: rgba(22, 22, 28, 0.97);
  border: 1px solid #2f2f39;
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}
.chatbubble .row { margin: 3px 0; }
.chatbubble .row span { color: var(--dim); }

/* ── bands and sections ──────────────────────────────────────────────────── */
.band { border-block: 1px solid var(--line); background: #0e0e13; margin-top: 70px; }
.three {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.three h3 { font-size: 15px; margin: 0 0 6px; color: var(--ink); }
.three p { margin: 0; color: var(--dim); font-size: 14.5px; }

.section { max-width: 1040px; margin: 0 auto; padding: 76px 28px; }
.section.alt { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 0 0 18px; }

/* The flow diagram. Replaces ASCII art, which looked like a code comment
   rather than a graphic. Scales with the column; text sizes are absolute in
   viewBox units so they stay legible when it shrinks. */
.flow { width: 100%; height: auto; display: block; margin: 34px 0 44px; }
.flow .eyebrow { font: 700 11px var(--mono); letter-spacing: .14em; fill: #6a6a78; }
.flow .name { font: 650 15px -apple-system, sans-serif; fill: var(--ink); }
.flow .mono { font: 13px var(--mono); fill: #cfd4e0; }
.flow .mono.sm { font-size: 11.5px; fill: #7c7c88; }
.flow .cap { font: 12px -apple-system, sans-serif; fill: var(--faint); text-anchor: middle; }
.flow .cap.l { text-anchor: start; }
.flow .lbl { font: 11.5px var(--mono); fill: #6a6a78; text-anchor: middle; letter-spacing: .04em; }

.diagram {
  font-family: var(--mono);
  font-size: clamp(10.5px, 1.25vw, 14px);
  line-height: 1.6;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin: 30px 0 40px;
  overflow-x: auto;
  white-space: pre;
}
.diagram b { color: var(--green); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px; }
.card h4 { margin: 0 0 7px; font-size: 15px; }
.card p { margin: 0; color: var(--dim); font-size: 14.5px; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #1c1c24;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: #cfe3d6;
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.two h4 { font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 9px; }
.two h4:not(:first-child) { margin-top: 26px; }
.two p { color: var(--dim); margin: 0; font-size: 15px; }
.two em { color: var(--green); font-style: normal; font-weight: 600; }
.num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d3a2a;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
.note {
  margin-top: 34px;
  padding: 14px 18px;
  border-left: 3px solid #f0b46b;
  background: rgba(240, 180, 107, 0.06);
  color: var(--dim);
  font-size: 14.5px;
  border-radius: 0 8px 8px 0;
}

/* ── download ────────────────────────────────────────────────────────────── */
.download { text-align: center; border-top: 1px solid var(--line); }
.dl { margin: 26px 0 30px; }
.or { color: var(--faint); font-size: 13px; margin: 0 0 14px; }
.code {
  display: inline-block;
  text-align: left;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 16px 20px;
  color: #cfd4e0;
  overflow-x: auto;
}

/* ── footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  flex-wrap: wrap;
}
footer span { color: var(--faint); font-size: 14px; margin-left: 10px; }
footer nav { margin-left: auto; display: flex; gap: 20px; }
footer nav a { color: var(--dim); font-size: 14px; text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* ── narrow ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .three, .grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 8px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  /* The bubble would cover the prompt on a phone; put it under the terminal. */
  .chatbubble { position: static; width: auto; margin: 0 12px 12px; }
  .screen { padding-bottom: 20px; }
}

/* ── scripted demo ───────────────────────────────────────────────────────── */
/* Two fake machines replaying a timeline. Deliberately obvious that it is an
   illustration — the fineprint says so — because a fake terminal that pretends
   to be live is a cheap trick. */
.demo-section { border-top: 1px solid var(--line); }
.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 34px 0 18px;
}
.machine {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #191920;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.mlabel {
  font: 700 10px var(--mono);
  letter-spacing: 0.13em;
  color: var(--faint);
}
.d-pill {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #26262e;
  color: #b9b9c4;
  white-space: nowrap;
}
.d-pill.good { background: #1d3a2a; color: var(--green); }
.d-pill.warn { background: #3a2a1d; color: #f0b46b; }
.d-pill.url { font-family: var(--mono); color: #8f8f9c; }
.mscreen {
  margin: 0;
  padding: 14px 16px;
  height: 290px;
  overflow: hidden;
  background: #0e0e13;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  color: #d5dae4;
  white-space: pre-wrap;
  word-break: break-word;
}
.d-cursor { color: var(--green); animation: blink 1.05s steps(2, start) infinite; }
.mchat {
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  min-height: 62px;
  max-height: 92px;
  overflow-y: auto;
  font-size: 12.5px;
  background: #121218;
}
.d-msg { margin: 2px 0; color: var(--dim); }
.d-msg b { color: #f2a3c7; font-weight: 700; margin-right: 6px; }
.d-msg.mine b { color: var(--green); }
.dfoot {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--dim);
  font-size: 14px;
  min-height: 34px;
}

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .mscreen { height: 210px; }
}
