/*
 * The lab page's stylesheet, carried over from reachpad.dev's design system
 * (app/styles/*.css in the reachpad app) by hand: the tokens, the 1160px
 * column, the sticky bar, the pane the page sits in, the hero type and the
 * rise. No Tailwind, because a two-page static site does not need a build.
 */
:root {
  --rp-paper: #f3f3f1;
  --rp-paper-2: #ffffff;
  --rp-inset: #ebebe8;
  --rp-surface: #ffffff;
  --rp-ink: #171716;
  --rp-ink-2: #6f6f6a;
  --rp-muted: #686863;
  --rp-faint: #686863;
  --rp-hairline: #e6e6e3;
  --rp-line-2: #dcdcd9;
  --rp-accent: #00714a;
  --rp-accent-hover: #005635;
  --rp-signal: #006a42;
  --rp-blocked: #b3261e;
  --rp-primary: #191918;
  --rp-primary-ink: #ffffff;
  --rp-primary-hover: #32322f;
  --rp-r: 12px;
  --rp-r-sm: 8px;
  --rp-r-lg: 16px;
  --rp-shadow-sm: 0 1px 2px rgba(23, 23, 22, 0.05);
  --rp-shadow-lg: 0 1px 2px rgba(23, 23, 22, 0.03), 0 10px 30px rgba(23, 23, 22, 0.04);
  --rp-dur: 0.18s;
  --rp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  background: var(--rp-paper);
  color-scheme: light;
  scrollbar-gutter: stable;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--rp-paper);
  color: var(--rp-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--rp-signal) 22%, transparent);
  color: var(--rp-ink);
}

:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 2px;
}

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

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

.wrap-rp {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .wrap-rp {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rp-paper);
  border-bottom: 1px solid var(--rp-hairline);
}

.nav-bar {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 18px;
}

@media (min-width: 640px) {
  .nav-bar {
    gap: 24px;
    padding: 0 24px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--rp-muted);
}

@media (min-width: 640px) {
  .nav-links {
    gap: 28px;
  }
}

.nav-links a {
  margin: -12px;
  padding: 12px;
  transition: color var(--rp-dur) var(--rp-ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--rp-ink);
}

.nav-links .wide {
  display: none;
}

@media (min-width: 640px) {
  .nav-links .wide {
    display: inline;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rp-ink);
  justify-self: start;
}

.logo .mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--rp-r);
  border: 1px solid var(--rp-line-2);
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-sm);
  transition: border-color var(--rp-dur) var(--rp-ease);
}

.logo:hover .mark {
  border-color: var(--rp-muted);
}

.logo .mark img {
  width: 34px;
  height: 34px;
}

.logo .word {
  font-size: 18px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.035em;
}

.logo.compact .word {
  display: none;
}

@media (min-width: 640px) {
  .logo.compact .word {
    display: inline;
  }
}

.nav-end {
  justify-self: end;
}

.pane-rp {
  flex: 1;
  margin: 10px;
  border: 1px solid var(--rp-hairline);
  border-radius: var(--rp-r-lg);
  background: var(--rp-paper-2);
  box-shadow: var(--rp-shadow-lg);
}

.hero {
  display: flex;
  min-height: calc(100dvh - 58px);
  flex-direction: column;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 84px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 44px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 56px;
  }
  .hero-figure {
    order: -1;
  }
}

.hero-figure img {
  width: 100%;
  max-width: 520px;
}

.h0-rp {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.026em;
  text-wrap: balance;
  color: var(--rp-ink);
  max-width: 20ch;
}

.h1-rp {
  margin: 0;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--rp-ink);
}

.lede-rp {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--rp-ink-2);
  max-width: 580px;
  text-wrap: pretty;
}

.body-rp {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--rp-ink-2);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}

.btn-rp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--rp-r-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-rp-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
}

.btn-rp-primary {
  background: var(--rp-primary);
  color: var(--rp-primary-ink);
}

.btn-rp-primary:hover {
  background: var(--rp-primary-hover);
}

.link-rp {
  color: var(--rp-accent);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--rp-accent) 35%, transparent);
  text-underline-offset: 3px;
}

.link-rp:hover {
  color: var(--rp-accent-hover);
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-rp {
    transition:
      background-color var(--rp-dur) var(--rp-ease),
      border-color var(--rp-dur) var(--rp-ease),
      color var(--rp-dur) var(--rp-ease),
      transform var(--rp-dur) var(--rp-ease);
  }
  .btn-rp:active {
    transform: scale(0.97);
    transition-duration: 60ms;
  }
  .rise {
    animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The pilot form. Label over control, nothing else; the fields are the copy. */
.section {
  padding-top: 56px;
  padding-bottom: 104px;
}

@media (min-width: 1024px) {
  .section {
    padding-top: 84px;
  }
}

.form-rp {
  display: grid;
  gap: 18px;
  max-width: 520px;
  margin-top: 36px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-ink);
}

.field .optional {
  font-weight: 400;
  color: var(--rp-faint);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--rp-ink);
  background: var(--rp-surface);
  border: 1px solid var(--rp-line-2);
  border-radius: var(--rp-r-sm);
  box-shadow: var(--rp-shadow-sm);
  padding: 0 12px;
  height: 40px;
  transition: border-color var(--rp-dur) var(--rp-ease);
}

.field textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--rp-muted);
}

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

.form-rp .actions {
  margin-top: 6px;
}

.notice {
  margin: 24px 0 0;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: var(--rp-r-sm);
  border: 1px solid color-mix(in srgb, var(--rp-blocked) 30%, var(--rp-hairline));
  background: color-mix(in srgb, var(--rp-blocked) 6%, var(--rp-surface));
  color: var(--rp-ink);
  font-size: 14px;
}

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

footer {
  color: var(--rp-ink);
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 44px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-blurb {
  margin: 14px 0 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rp-muted);
}

.footer-head {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rp-faint);
}

.footer-col {
  margin-top: 14px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--rp-ink-2);
  transition: color var(--rp-dur) var(--rp-ease);
}

.footer-col a:hover {
  color: var(--rp-accent);
}

.footer-rule {
  border-top: 1px solid var(--rp-hairline);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 24px;
  font-size: 13px;
  color: var(--rp-faint);
}

.footer-bottom p {
  margin: 0;
}

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

.footer-bottom nav a:hover {
  color: var(--rp-ink);
}
