/* Callboard landing — self-contained, no build step, no external requests. */

:root {
  --paper: #ffffff;
  --ground: #f7f9fc;
  --ink: #0b1220;
  --ink-soft: #223049;
  --muted: #4d5c74;
  --hairline: #e3e8f0;
  --hairline-strong: #cfd7e4;
  --call: #2563eb;
  --call-strong: #1d4ed8;
  --call-wash: #eff4ff;

  --font-sans: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono",
    "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius-lg: 1.125rem;
  --spine: 0.3125rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1220;
    --ground: #080d18;
    --ink: #e9eef8;
    --ink-soft: #c3cddd;
    --muted: #96a4bd;
    --hairline: #1c2740;
    --hairline-strong: #2c3a58;
    --call: #74a6ff;
    --call-strong: #9dc1ff;
    --call-wash: #12203a;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

p { margin: 0 0 1rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--call-wash);
  color: var(--call-strong);
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--call);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- type */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.display {
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 1.75rem;
}

.h2 {
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 2.25rem;
}

.section__lede {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 3rem;
}

/* -------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

@supports (backdrop-filter: blur(8px)) {
  .topbar {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.mark__pin {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.15rem;
  background: var(--call);
  display: inline-block;
  flex: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2vw, 1.75rem);
  font-size: 0.875rem;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
}

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

.topnav a.topnav__cta {
  color: var(--call);
  font-weight: 600;
}

@media (max-width: 48rem) {
  .topnav a:not(.topnav__cta) { display: none; }
}

/* ------------------------------------------------------------- section */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--hairline);
}

.section--ground { background: var(--ground); }

/* ---------------------------------------------------------------- hero */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }

.hero .eyebrow { margin-bottom: clamp(2rem, 5vw, 3rem); }

/* Signature: the subject of the headline, drawn as an actual gap. */
.gap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.625rem;
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.3vw, 0.8125rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 46rem;
}

.gap__state { flex: 0 1 auto; }

.gap__rail {
  position: relative;
  flex: 1 1 4rem;
  height: 1px;
  background: var(--hairline-strong);
}

.gap__rail::before,
.gap__rail::after {
  content: "";
  position: absolute;
  top: -2.5px;
  width: 1px;
  height: 6px;
  background: var(--hairline-strong);
}
.gap__rail::before { left: 0; }
.gap__rail::after { right: 0; }

.gap__mark {
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 1px;
  background: var(--call);
  animation: mark-travel 2.2s cubic-bezier(0.6, 0.02, 0.2, 1) 0.25s both;
}

@keyframes mark-travel {
  0%   { left: 0%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 50%; opacity: 1; }
}

.gap__caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--call);
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 46rem;
  text-align: center;
}

/* Narrow screens: the rail stands up rather than overflowing. */
@media (max-width: 44rem) {
  .gap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .gap__rail {
    flex: none;
    width: 1px;
    height: 2.25rem;
    margin-left: 0.375rem;
  }
  .gap__rail::before,
  .gap__rail::after {
    top: auto;
    left: -2.5px;
    right: auto;
    width: 6px;
    height: 1px;
  }
  .gap__rail::before { top: 0; }
  .gap__rail::after { bottom: 0; }
  .gap__mark {
    left: -3.5px;
    top: 50%;
    margin-left: 0;
    margin-top: -4px;
    animation-name: mark-travel-v;
  }
  .gap__caption { text-align: left; }
}

@keyframes mark-travel-v {
  0%   { top: 0%; opacity: 0; }
  15%  { opacity: 1; }
  100% { top: 50%; opacity: 1; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.375rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--call);
  color: #ffffff;
}
.btn--primary:hover { background: var(--call-strong); }

@media (prefers-color-scheme: dark) {
  .btn--primary { color: #08101f; }
}

.btn--ghost {
  border-color: var(--hairline-strong);
  color: var(--ink);
  background: var(--paper);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--invert {
  background: var(--paper);
  color: var(--ink);
  flex: none;
}
.btn--invert:hover { background: var(--ground); }

/* --------------------------------------------------------- run of show */

.run {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.run::before {
  content: "";
  position: absolute;
  left: var(--spine);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline-strong);
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stop:first-child { border-top: 0; }

/* The spine segment for this stop; lights as the stop is reached. */
.stop::after {
  content: "";
  position: absolute;
  left: var(--spine);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--call);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stop::before {
  content: "";
  position: absolute;
  left: var(--spine);
  top: 1.75rem;
  width: 0.5625rem;
  height: 0.5625rem;
  margin-left: -0.28125rem;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--hairline-strong);
  z-index: 1;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.stop.is-lit::after { transform: scaleY(1); }

.stop.is-lit::before {
  background: var(--call);
  border-color: var(--call);
}

/* Progressive enhancement: dimming only happens once JS is observing. */
.run.is-observing .stop:not(.is-lit) {
  opacity: 0.4;
  transform: translateY(6px);
}

.stop__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.3125rem 0 0 1.125rem;
}

.stop__title {
  grid-column: 2;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.375rem;
  line-height: 1.3;
}

/* Stacked layout: the body sits under the title, not in the number column. */
.stop__body {
  grid-column: 2;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

@media (min-width: 60rem) {
  .stop {
    grid-template-columns: 3rem 15rem 1fr;
    gap: 0 2rem;
    padding: 1.75rem 0;
    align-items: start;
  }
  .stop__title { margin-bottom: 0; padding-top: 0.0625rem; }
  .stop__body { grid-column: 3; }
}

/* --------------------------------------------------------- screenshots */

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 4vw, 3.25rem);
  margin-top: 2.5rem;
}

.shot { margin: 0; }

.frame {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 14px 34px -18px rgba(11, 18, 32, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot:hover .frame {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 24px 50px -20px rgba(11, 18, 32, 0.42);
}

/* Browser frames are windows onto longer pages: one crop keeps the row even. */
.frame > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
}

.frame--phone > img {
  aspect-ratio: auto;
  object-fit: fill;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--ground);
  border-bottom: 1px solid var(--hairline);
}

.frame__dots {
  display: inline-flex;
  gap: 0.3125rem;
  flex: none;
}

.frame__dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hairline-strong);
}

.frame__url {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame--phone {
  border-radius: 1.75rem;
  border-width: 6px;
  border-color: #0b1220;
  max-width: 15.5rem;
  margin-inline: auto;
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 20px 42px -22px rgba(11, 18, 32, 0.55);
}

.shot figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 56ch;
}

.shot__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

@media (min-width: 62rem) {
  .shots {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .shot--wide { grid-column: span 8; }
  .shot--phone { grid-column: span 4; }
  .shots > .shot:not(.shot--wide):not(.shot--phone) { grid-column: span 6; }
  .frame--phone { margin-inline: 0; }
}

/* -------------------------------------------------------- built honest */

.truths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.truth {
  background: var(--paper);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.truth p { margin: 0; color: var(--muted); }

.truth__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.truth__title::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 0.1rem;
  background: var(--call);
  flex: none;
}

@media (min-width: 48rem) {
  .truths { grid-template-columns: 1fr 1fr; }
}

.notyet {
  margin-top: 2rem;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.notyet__kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.875rem;
}

.notyet__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.notyet__list strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 62rem) {
  .notyet__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* -------------------------------------------------------- judges strip */

.judges {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.judges__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.judges__kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 62%, var(--ink));
  margin: 0 0 0.5rem;
}

.judges__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.875rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.6vw, 0.875rem);
}

.judges__line span { display: inline-flex; align-items: center; }

.judges__line span + span::before {
  content: "·";
  margin-right: 0.875rem;
  color: color-mix(in srgb, var(--paper) 45%, var(--ink));
}

/* -------------------------------------------------------------- footer */

.footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  margin: 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.footer__nav a { color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; }

.footer__note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.footer__fine {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 78ch;
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .run.is-observing .stop:not(.is-lit) { opacity: 1; transform: none; }
  .btn:hover,
  .shot:hover .frame { transform: none; }
}
