/* Checkpoint's marketing page: sage green and a warm orange dot. Shared layout comes from the
   portfolio's showcase.css; this file adds only the accent, the worked example and two lists. */
body {
  --accent: #526d55;
  --accent-2: #e4935f;
  --tint: #e6ece2;
  --stage: #18201c;
  --stage-ink: #eef2ea;
  --piper-consent-bg: var(--card);
  --piper-consent-fg: var(--ink);
  --piper-consent-border: var(--line);
  --piper-consent-accent: var(--accent-strong);
}
@media (prefers-color-scheme: dark) {
  body {
    --accent: #8fae92;
    --accent-2: #e4935f;
    --tint: #1f2a23;
  }
}

code {
  color: var(--ink);
  font: 600 0.9em var(--mono);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
}
.tile.inverse code {
  color: var(--stage-ink);
  background: #ffffff1a;
}

/* The worked example: a terminal with four steps. Without JavaScript every step shows in order. */
.term {
  border-radius: 18px;
  background: #111813;
  color: #eef2ea;
  border: 1px solid #ffffff1a;
  overflow: hidden;
  text-align: left;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #ffffff14;
  font: 600 13px var(--body);
  color: #c9d3c8;
}
.term .lights {
  display: inline-flex;
  gap: 6px;
}
.term .lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff2e;
}
.term pre {
  margin: 0;
  padding: 6px 18px 20px;
  font: 400 14px / 1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term b {
  color: #fff;
}
.term .p {
  color: #e4935f;
}
.term .ok {
  color: #9fd8a4;
}
.term .warn {
  color: #f0c36a;
}
.term .dim {
  color: #aab7ab;
}
.ask-term {
  max-width: 860px;
  margin: 0 auto;
}
.ask-steps {
  display: flex;
  flex-wrap: wrap;
  margin: 14px 16px 0;
  border-radius: 16px;
}
.ask-steps[hidden] {
  display: none;
}
.ask-steps button {
  flex: 1 1 auto;
}
.ask-step {
  border-top: 1px solid #ffffff10;
}
.ask-step:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -3px;
}
.ask-why {
  margin: 0;
  padding: 16px 18px 4px;
  font-size: 15px;
  line-height: 1.6;
  color: #dfe7dd;
}
.demo-note {
  max-width: 860px;
  margin: 16px auto 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--stage-ink) 78%, transparent);
  text-align: center;
}

/* Screens: a phone and a Mac side by side. */
.screens {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 0;
}
.screens figure {
  margin: 0;
}
.device-phone img,
.device-mac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Where it runs: one row per surface, with its status in words. */
.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.platforms li {
  display: grid;
  grid-template-columns: minmax(150px, 220px) auto minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}
.pf-name {
  font: 800 18px var(--display);
}
.pf-status {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pf-status.is-on {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
}
.pf-status.is-soon {
  border: 1px dashed var(--line);
  color: var(--muted);
}
.platforms p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* On your iPhone: three numbered steps. */
.iphone-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.iphone-steps li {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--tint);
}
.iphone-steps h3 {
  font: 800 22px / 1.2 var(--display);
  margin: 8px 0;
}
.iphone-steps p {
  margin: 0;
  color: var(--muted);
}
.iphone-steps a {
  overflow-wrap: anywhere;
}

footer .footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 980px) {
  .screens {
    grid-template-columns: 1fr;
  }
  .platforms li {
    grid-template-columns: 1fr auto;
  }
  .platforms p,
  .platforms .text-link {
    grid-column: 1 / -1;
  }
  .iphone-steps {
    grid-template-columns: 1fr;
  }
}
