/* maxnines.com, "Signal": white ground, plum accent (the complement of the app's
   mint), wide Archivo headings and Martian Mono for labels and code. The app's
   screenshots are dark, so they always sit on an ink panel. */

:root {
  --ground: #fbfbfc;
  --ink: #1a1420;
  --ink-raised: #241b2a;
  --ink-line: #3a2f40;
  --text: #1a1420;
  --text-soft: #3e3545;
  --muted: #5c5263;
  --plum: #6d2a5e;
  --plum-dark: #4f1d44;
  --plum-line: #d9c3d3;
  --blush: #f4eef3;
  --mint: #9cf0b3;
  --rose: #e7a6d6;
  --on-ink: #f3eef4;
  --on-ink-soft: #c9bccd;
  --good: #1d7a45;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --page: 1280px;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: var(--plum); }
a:hover { color: var(--plum-dark); }

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

h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 16px; }

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

/* Early access banner */

.banner { padding-top: 18px; }
.banner-box {
  border: 1.5px solid var(--plum);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 15px;
}
.banner-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: var(--plum);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
}
.banner a { font-weight: 600; }

/* Navigation */

.nav {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover { color: var(--plum); }
.nav-links a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links .nav-cta { background: var(--ink); color: #ffffff; padding: 10px 18px; border-radius: 8px; }
.nav-links .nav-cta:hover { background: var(--plum); color: #ffffff; }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.btn-primary { background: var(--plum); color: #ffffff; }
.btn-primary:hover { background: var(--plum-dark); color: #ffffff; }
.btn-secondary { color: var(--plum); border: 1.5px solid var(--plum-line); }
.btn-secondary:hover { border-color: var(--plum); }

/* Hero */

.hero-title {
  padding-block: 56px 32px;
}
.hero-title h1 {
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.92;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
}
.hero {
  padding-block: 0 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.hero-copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.lead { font-size: 21px; color: var(--text-soft); }
.hero-shot { flex: 1.6 1 600px; min-width: 0; }

.code {
  background: var(--blush);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
}
.code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #2b2230;
}
.code-note { font-size: 14px; color: var(--muted); }

/* Screenshots always sit on an ink panel, since the app is dark */

.shot {
  margin: 0;
  background: var(--ink);
  border-radius: 16px;
  padding: 12px;
}
.shot img { border-radius: 8px; width: 100%; }
.shot-lifted { box-shadow: 0 24px 50px -24px rgba(109, 42, 94, 0.5); }
.shot figcaption {
  color: var(--on-ink-soft);
  font-size: 14px;
  padding: 12px 6px 2px;
}

/* How it works */

.dark { background: var(--ink); color: var(--on-ink); }
.dark .label { color: var(--mint); }
.how {
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 44em; }
.section-head h2, .h2 {
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.03em;
}
.section-head p { color: var(--text-soft); font-size: 19px; }
.dark .section-head p { color: var(--on-ink-soft); }

.flow { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.flow-node {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-node strong { font-size: 20px; }
.flow-node span:last-child { color: var(--on-ink-soft); }
.flow-node .who { font-family: var(--mono); font-size: 13px; color: var(--mint); }
.flow-node.is-server { border-color: var(--mint); background: var(--ink-raised); }
.flow-node.is-you .who { color: var(--rose); }
.flow-link {
  flex: 0 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--on-ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}
.flow-link svg { width: 120px; height: 16px; max-width: 100%; }
.flow-link .down { display: none; font-size: 22px; line-height: 1; }
.flow-link .down.is-mint { color: var(--mint); }
.flow-link .down.is-rose { color: var(--rose); }
@media (max-width: 700px) {
  .flow-link { flex-basis: 100%; flex-direction: row; gap: 12px; }
  .flow-link svg { display: none; }
  .flow-link .down { display: inline; }
}

/* Feature grid */

.features {
  padding-block: 96px 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 32px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}
.feature .figure {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
}
.feature strong { font-size: 19px; }
.feature span:last-child { color: #4a4150; }

/* Split: text beside a screenshot */

.split {
  padding-block: 48px 96px;
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 48px;
  align-items: center;
}
.split-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split-copy h2 {
  font-size: 36px;
  line-height: 1.06;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
}
.split-copy p { color: #4a4150; }
.split .shot { flex: 1.6 1 600px; min-width: 0; }

/* Roadmap */

.roadmap { background: var(--blush); }
.roadmap .wrap { padding-block: 80px; display: flex; flex-direction: column; gap: 32px; }
.roadmap-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.roadmap-col {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roadmap-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.roadmap-col.is-next { outline: 2px solid var(--plum); }
.roadmap-col .label.built { color: var(--good); }
.roadmap-col .label.next { color: var(--plum); }
.roadmap-col .label.later { color: var(--muted); }
.roadmap-note { color: var(--text-soft); max-width: 46em; }

/* Closing call to action */

.closing {
  padding-block: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.closing p { color: var(--text-soft); max-width: 36em; margin-top: 10px; }

/* Footer */

.footer {
  border-top: 1px solid #e6e0e6;
}
.footer .wrap {
  padding-block: 32px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Features page */

.page-head { padding-block: 56px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 52em; }
.page-head h1 {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 56px;
  margin: 0;
  list-style: none;
}
.toc a {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--plum-line);
  color: var(--text);
}
.toc a:hover { border-color: var(--plum); color: var(--plum); }

.area {
  padding-block: 64px;
  border-top: 3px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 64px;
  scroll-margin-top: 16px;
}
@media (max-width: 860px) {
  .area { grid-template-columns: minmax(0, 1fr); }
}
.area-intro { display: flex; flex-direction: column; gap: 12px; }
.area-intro h2 {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
}
.area-intro p { color: var(--text-soft); }
.area-intro .label { color: var(--plum); }
.area-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 32px;
}
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-size: 17px; }
.facts span { color: #4a4150; }
.soon {
  font-size: 15px;
  color: var(--text-soft);
  background: var(--blush);
  border-radius: 10px;
  padding: 12px 16px;
}
.soon .label { color: var(--plum); margin-right: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--blush);
  color: #2b2230;
}

.check-group { display: flex; flex-direction: column; gap: 14px; }
.check-group-title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.check-count {
  font-size: 11.5px; padding: 1px 7px; border-radius: 999px;
  background: var(--blush); color: var(--plum);
}
.check-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1.5px #2f8a4f; }
.check-dot.is-soon { background: transparent; box-shadow: 0 0 0 1.5px var(--plum); }
.check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.check {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border: 1px solid #e6e0e6; border-radius: 10px; background: #fff;
  font-size: 14.5px; color: #4a4150;
}
.check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.check-head strong { font-size: 16px; color: var(--ink); }
.check-tag {
  flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}
.check.is-soon { background: var(--blush); border-style: dashed; border-color: #d9c4d4; }
.check.is-soon .check-tag { color: var(--plum); }

.table-scroll { overflow-x: auto; }
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.table th, .table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid #e6e0e6; vertical-align: top; }
.table th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table td:first-child { font-weight: 600; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
