:root {
  --bg: #0b0d12;
  --panel: #12151c;
  --line: #222733;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #4cc38a;
  --accent-2: #e8a33d;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #182033 0%, var(--bg) 60%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; display: block; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 17px; }
.mark { width: 26px; height: 26px; color: var(--accent); }
.top nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; font-weight: 700; }
.lead { max-width: 720px; margin: 22px auto 0; font-size: 18px; color: var(--muted); }
.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.button:hover { border-color: #39414f; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #07140d; }
.button.primary:hover { filter: brightness(1.06); }

/* The laptop: the bezel sits over the screenshot. The screen inside the bezel
   image is transparent and runs from 9.45% to 90.5% of its width and from
   10.65% to 89.3% of its height, with the notch in the top 2.9% of that; the
   console sits under a menu-bar strip the notch's height, as a window would. */
.laptop { position: relative; margin: 56px auto 0; width: min(100%, 1120px); aspect-ratio: 2000 / 1333; }
.laptop .bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.laptop .screen {
  position: absolute;
  left: 9.45%; top: 10.65%; width: 81.1%; height: 78.65%;
  background: #0d0f14;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.laptop .shot { width: 100%; height: 97.1%; object-fit: cover; object-position: top; }

.features { max-width: var(--max); margin: 0 auto; padding: 88px 24px 0; }
.features h2, .hardware h2, .console h2 { font-size: clamp(24px, 3vw, 34px); max-width: 760px; }
.grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.grid li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px; }
.grid h3 { font-size: 16px; margin-bottom: 8px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

.hardware { max-width: var(--max); margin: 0 auto; padding: 88px 24px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 32px; }
.cards figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cards img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cards figcaption { padding: 16px 18px 20px; color: var(--muted); font-size: 15px; }
.cards strong { color: var(--text); }
.note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

.console { max-width: var(--max); margin: 0 auto; padding: 88px 24px 0; }
.console p { max-width: 760px; color: var(--muted); font-size: 17px; margin: 16px 0 0; }

footer { max-width: var(--max); margin: 96px auto 0; padding: 28px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 0; }

/* Inner pages: a heading, a lead and sections of plain content. */
.page { max-width: 820px; margin: 0 auto; padding: 40px 24px 0; }
.page.wide { max-width: var(--max); }
.page h1 { font-size: clamp(28px, 4vw, 42px); }
.page .lead { margin: 18px 0 0; max-width: 680px; }
.page h2 { font-size: 22px; margin: 48px 0 12px; }
.page h3 { font-size: 16px; margin: 24px 0 6px; }
.page p, .page li { color: var(--muted); }
.page p { margin: 12px 0 0; }
.page li { margin: 6px 0; }
.page ul, .page ol { margin: 12px 0 0; padding-left: 22px; }
.page strong { color: var(--text); }
.page a { color: var(--accent); }
.page .button { color: var(--text); }
.page .button.primary { color: #07140d; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
pre { margin: 14px 0 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; color: var(--text); }
pre code { background: none; border: 0; padding: 0; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 24px; }
.plan.featured { border-color: var(--accent); }
.page .plan h2 { margin: 0; font-size: 20px; }
.plan .price { margin: 14px 0 0; font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .about { margin: 10px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan .button { text-align: center; }

.tiers { width: 100%; margin: 16px 0 0; border-collapse: collapse; font-size: 15px; }
.tiers th, .tiers td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tiers th { font-size: 13px; font-weight: 600; color: var(--muted); }
.tiers td { color: var(--text); }
.tiers th:last-child, .tiers td:last-child { text-align: right; }
.tiers tbody tr:last-child td { border-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 24px; margin-top: 28px; }
.panel > :first-child { margin-top: 0; }
form.licence { display: grid; gap: 16px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
label small { font-weight: 400; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; resize: none; word-break: break-all; }
button.button { cursor: pointer; font-family: inherit; }
.button[aria-disabled="true"] { opacity: 0.6; cursor: default; }
button.button:disabled { opacity: 0.6; cursor: default; }
.summary { margin: 0; font-size: 15px; color: var(--text); min-height: 1.5em; }
.status { min-height: 1.5em; margin: 0; font-size: 15px; color: var(--muted); }
.status.error { color: var(--accent-2); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }
.keys { display: grid; gap: 14px; margin-top: 18px; }
.keys .panel { margin-top: 0; }
.keys .key-value { margin-top: 12px; }
.keys .row { margin-top: 12px; }
[hidden] { display: none !important; }

footer a { color: var(--text); }

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 8px; }
  .top nav { gap: 18px; flex-wrap: wrap; }
  .page { padding-top: 24px; }
  .lead { font-size: 16px; }
}

.cmds { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; align-items: baseline; font-size: 15px; }
.cmds dt { margin: 0; }
.cmds dd { margin: 0; color: var(--muted); }
.page .codes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.page .codes li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 8px 8px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.codes code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; font-size: 15px; }
.codes .button { padding: 7px 12px; font-size: 14px; flex: none; }
input[type="number"] { max-width: 140px; }

/* The install command field: the command in a rounded box whose thin border
   has a teal light sweeping round it, a copy button at the right. field.js
   types the command once and handles the button. */
@property --sweep { syntax: "<angle>"; initial-value: 200deg; inherits: false; }
@keyframes sweep { to { --sweep: 560deg; } }
@keyframes blink { 50% { opacity: 0; } }
.field {
  position: relative;
  max-width: 560px;
  padding: 1px;
  border-radius: 14px;
  background: conic-gradient(from var(--sweep), transparent 0deg 120deg, #4cc38a 250deg, #2dd4bf 320deg, transparent 360deg), var(--line);
  animation: sweep 5s linear infinite;
  text-align: left;
}
.field-inner { display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 18px; border-radius: 13px; background: var(--field, var(--panel)); }
.field .prompt { color: #666b75; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; user-select: none; }
.field .cmd { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: #e6e8ec; overflow-wrap: anywhere; }
.field .pipe { color: #2dd4bf; white-space: nowrap; }
.field .cmd.typing::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: #2dd4bf; animation: blink 1s steps(1) infinite; }
.field .copy { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8b919c; cursor: pointer; }
.field .copy:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.field .copy:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 1px; }
.field .copy svg { grid-area: 1 / 1; width: 17px; height: 17px; }
.field .copy .check { display: none; color: #2dd4bf; }
.field .copy.done .check { display: block; }
.field .copy.done .copy-icon { display: none; }
.field-caption { margin: 12px 0 0; font-size: 13px; color: #6f747e; }
@media (prefers-reduced-motion: reduce) {
  .field { animation: none; }
  .field .cmd.typing::after { animation: none; }
}

/* The home page: near-black, one narrow centred column for the hero, a bare
   header. */
body.home { --bg: #141414; --panel: #1b1b1b; --line: #2c2c2c; --muted: #8e9096; --field: #181818; background: var(--bg); }
.home .top { max-width: 1200px; padding: 22px 28px; }
.home .top nav { gap: 26px; color: #7d8088; }
.home .hero { max-width: 608px; margin: 0 auto; padding: clamp(72px, 19vh, 210px) 24px 72px; text-align: center; min-height: calc(100svh - 76px); }
.home .hero h1 { font-size: clamp(46px, 7vw, 68px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 5px 6px 5px 6px; border: 1px solid #2f3136; border-radius: 999px; font-size: 13px; line-height: 1.3; color: #b4b7be; text-decoration: none; text-align: left; transition: border-color 0.2s, color 0.2s; }
.pill:hover { border-color: #4b4f57; color: #e6e8ec; }
.pill .badge { flex: none; padding: 2px 7px; border-radius: 999px; background: rgba(240, 150, 40, 0.14); color: #f0a043; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.pill .go { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #25272c; color: #c6c9d0; }
.pill .go svg { width: 10px; height: 10px; margin-left: 1px; }
.home .blurb { margin: 26px auto 0; max-width: 560px; font-size: 16px; color: var(--muted); }
.home .field { margin: 34px auto 0; }
.home .field-caption { text-align: center; }
.page .field { margin: 22px 0 0; }
.page .field-caption { margin-top: 12px; }

.home .showcase { max-width: var(--max); margin: 0 auto; padding: 24px 24px 0; }
.home .laptop { margin-top: 0; }
.home .features { padding-top: 120px; }
.closing { max-width: 560px; margin: 0 auto; padding: 120px 24px 0; text-align: center; }
.closing h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 400; line-height: 1.25; }
.closing p { margin: 12px 0 0; color: var(--muted); }
.closing .links { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .home .top { flex-direction: row; align-items: center; padding: 18px 16px; }
  .home .top nav { gap: 14px; font-size: 13px; flex-wrap: nowrap; }
  .home .hero { padding: 64px 16px 56px; min-height: calc(100svh - 62px); }
  .pill { font-size: 12.5px; }
  .home .blurb { font-size: 15px; }
  .field .cmd, .field .prompt { font-size: 12.5px; }
  .field-inner { padding-left: 14px; }
  .home .features { padding-top: 72px; }
}
