/*
 * Every colour, size and curve the site uses, named once. Dark is the default
 * look (the brand guide, docs/brand.md); a visitor whose system asks for light
 * gets the light values. No other file names a colour.
 */
:root {
  color-scheme: dark;

  /* surfaces and ink, dark */
  --page: #0f0f12;
  --card: #18181b;
  --line: #27272a;
  --ink: #fafafa;
  --ink-2: #a1a1aa;
  --ink-3: #8b8b94;

  /* the brand: the fill carries white text; the mark and text values are lifted for this page */
  --brand-fill: #c24e00;
  --brand-fill-hover: #d95700;
  --brand-mark: #ee6000;
  --brand-text: #ee6000;
  --on-brand: #ffffff;
  --brand-soft: color-mix(in srgb, #c24e00 22%, var(--page));
  --brand-soft-2: color-mix(in srgb, #c24e00 40%, var(--page));

  --danger: #f87171;
  --rim: color-mix(in srgb, #fafafa 16%, transparent);
  --glass: color-mix(in srgb, #18181b 78%, transparent);
  --wash: color-mix(in srgb, #fafafa 8%, transparent);
  --shadow-ink: #000;
  --danger-soft: color-mix(in srgb, #f87171 14%, var(--page));

  /* the stage's own tones */
  --stage-top: color-mix(in srgb, #c24e00 16%, var(--page));
  --stage-glow: color-mix(in srgb, #ee6000 35%, transparent);
  --shadow: 0 1px 0 color-mix(in srgb, #fff 6%, transparent) inset, 0 18px 50px -24px #000;

  /* type */
  --font-body:
    'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial,
    sans-serif;
  --font-display: 'Bruno Ace', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', 'Cascadia Mono', Consolas, ui-monospace, monospace;

  /* shape */
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1240px;
  --gutter: 1rem;
  --measure: 70ch;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t-base: 0.45s;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --page: #f8f8fa;
    --card: #ffffff;
    --line: #e4e4e7;
    --ink: #18181b;
    --ink-2: #52525b;
    --ink-3: #6b6b75;
    --brand-mark: #b64900;
    --brand-text: #903600;
    --brand-soft: color-mix(in srgb, #c24e00 13%, var(--page));
    --brand-soft-2: color-mix(in srgb, #c24e00 24%, var(--page));
    --danger: #b91c1c;
    --rim: color-mix(in srgb, #18181b 14%, transparent);
    --glass: color-mix(in srgb, #ffffff 82%, transparent);
    --wash: color-mix(in srgb, #18181b 6%, transparent);
    --shadow-ink: color-mix(in srgb, #18181b 40%, transparent);
    --danger-soft: color-mix(in srgb, #b91c1c 10%, var(--page));
    --stage-top: color-mix(in srgb, #c24e00 9%, var(--page));
    --stage-glow: color-mix(in srgb, #c24e00 26%, transparent);
    --shadow: 0 1px 0 #fff inset, 0 18px 44px -26px color-mix(in srgb, #18181b 45%, transparent);
  }
}

:root[data-theme='light'] {
  color-scheme: light;
  --page: #f8f8fa;
  --card: #ffffff;
  --line: #e4e4e7;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #6b6b75;
  --brand-mark: #b64900;
  --brand-text: #903600;
  --brand-soft: color-mix(in srgb, #c24e00 13%, var(--page));
  --brand-soft-2: color-mix(in srgb, #c24e00 24%, var(--page));
  --danger: #b91c1c;
  --rim: color-mix(in srgb, #18181b 14%, transparent);
  --glass: color-mix(in srgb, #ffffff 82%, transparent);
  --wash: color-mix(in srgb, #18181b 6%, transparent);
  --shadow-ink: color-mix(in srgb, #18181b 40%, transparent);
  --danger-soft: color-mix(in srgb, #b91c1c 10%, var(--page));
  --stage-top: color-mix(in srgb, #c24e00 9%, var(--page));
  --stage-glow: color-mix(in srgb, #c24e00 26%, transparent);
  --shadow: 0 1px 0 #fff inset, 0 18px 44px -26px color-mix(in srgb, #18181b 45%, transparent);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }
}

@font-face {
  font-family: 'Bruno Ace';
  src: url('/assets/fonts/bruno-ace-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-text);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 3.6vw + 0.6rem, 3rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.45rem, 1.6vw + 0.9rem, 2rem);
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
  font-weight: 650;
}
h4 {
  font-size: 1.1rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-fill);
  color: var(--on-brand);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus {
  left: 0;
}

.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.9rem;
}
.anchor {
  display: block;
  height: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-text);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-fast),
    border-color var(--t-fast);
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-fill);
  color: var(--on-brand);
}
.btn-primary:hover {
  background: var(--brand-fill-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand-mark);
}
.btn-small {
  min-height: 2.4rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.95rem;
}

/* message strip */
.flash {
  margin: 0;
  padding: 0.8rem var(--gutter);
  text-align: center;
  background: var(--brand-soft);
  border-bottom: 1px solid var(--brand-soft-2);
}
.flash-bad {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}
.launch-banner {
  margin: 0;
  padding: 0.55rem var(--gutter);
  text-align: center;
  font-size: 0.92rem;
  background: var(--brand-fill);
  color: var(--on-brand);
}
.launch-banner a {
  color: var(--on-brand);
  font-weight: 650;
}

/* forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
}
.form-row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 40rem) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='date'],
input[type='url'],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  min-height: 2.9rem;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--brand-mark);
  outline-offset: 1px;
  border-color: var(--brand-mark);
}
.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--danger);
}
.field-note {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}
.field-error {
  color: var(--danger);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}
.check label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  accent-color: var(--brand-fill);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* The nav: a floating capsule with a border it never loses, as on the store.
 * Product, Compare and the phone's menu are popovers: a click elsewhere or
 * Escape closes them, with no script. Each sits under its button by anchor
 * positioning, or, in a browser without it, under the capsule's edge. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem var(--gutter) 0;
  pointer-events: none;
}
.capsule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--wrap);
  min-height: 3.6rem;
  margin: 0 auto;
  padding: 0.4rem 0.45rem 0.4rem 1.1rem;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 14px 34px -20px var(--shadow-ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  pointer-events: auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}
.logo img {
  display: block;
  height: 1.6rem;
  width: auto;
}
.logo-light {
  display: none !important;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .logo-dark {
    display: none !important;
  }
  :root:not([data-theme='dark']) .logo-light {
    display: block !important;
  }
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover,
.drop:has(:popover-open) > .nav-link {
  background: var(--wash);
}
.nav-link[aria-current='page'] {
  color: var(--brand-text);
}
.nav-drop::after {
  content: '';
  width: 0.5rem;
  height: 0.32rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.7;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}
.btn-nav {
  min-height: 2.6rem;
  padding: 0 1.15rem;
  font-size: 0.94rem;
  white-space: nowrap;
}

/* the drop-down panels, each tied to its own button (no inline styles: the
 * security policy allows none) */
[popovertarget='drop-product'] {
  anchor-name: --drop-product;
}
#drop-product {
  position-anchor: --drop-product;
}
[popovertarget='drop-compare'] {
  anchor-name: --drop-compare;
}
#drop-compare {
  position-anchor: --drop-compare;
}

.drop-panel,
.menu-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 48px -20px var(--shadow-ink);
}
.drop-panel {
  top: calc(anchor(bottom) + 0.6rem);
  left: anchor(left);
  width: 22rem;
}
.drop-panel:popover-open {
  display: grid;
  gap: 0.25rem;
}
.drop-panel ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drop-panel a {
  display: grid;
  gap: 0.05rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.drop-panel a:hover,
.drop-panel a[aria-current='page'] {
  background: var(--wash);
}
.drop-panel strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.drop-panel span {
  font-size: 0.84rem;
  color: var(--ink-2);
}
/* nine product pages: two columns */
#drop-product {
  width: min(42rem, calc(100vw - 2rem));
}
#drop-product ul {
  grid-template-columns: 1fr 1fr;
}
/* Early access: the one highlighted link while the Founding 50 runs */
.nav-early {
  border: 1px solid color-mix(in srgb, var(--brand-mark) 55%, transparent);
  color: var(--brand-text);
}
.nav-early:hover {
  background: color-mix(in srgb, var(--brand-mark) 14%, transparent);
}
.drop-panel .drop-all {
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 0.2rem;
  padding-top: 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-text);
}

/* phones and small laptops: everything folds into one menu */
.menu-button {
  display: none;
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  anchor-name: --menu;
}
.menu-panel {
  position-anchor: --menu;
  top: calc(anchor(bottom) + 0.6rem);
  right: anchor(right);
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 6rem);
  overflow: auto;
}
.menu-panel:popover-open {
  display: block;
}
.menu-head {
  margin: 0.5rem 0.75rem 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-3);
  font-family: var(--font-display);
}
.menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.menu-panel a:hover {
  background: var(--wash);
}
.menu-flat {
  margin-top: 0.5rem !important;
  padding-top: 0.5rem !important;
  border-top: 1px solid var(--line);
}

@supports not (anchor-name: --a) {
  .drop-panel,
  .menu-panel {
    top: 4.9rem;
  }
  .drop-panel {
    left: 50%;
    translate: -50% 0;
  }
  .menu-panel {
    right: var(--gutter);
  }
}

@media (max-width: 61.99rem) {
  .nav,
  .nav-account {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 26rem) {
  .btn-nav {
    display: none;
  }
}

/* the launch strip above the nav */
.launch-banner {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0.45rem var(--gutter);
  font-size: 0.85rem;
  background: var(--brand-fill);
  color: var(--on-brand);
}
.launch-banner a {
  color: var(--on-brand);
  font-weight: 650;
}

/* breadcrumbs */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-2);
}

/* the footer: links, the name, the currency */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
.foot-about {
  grid-column: 1 / -1;
}
@media (min-width: 56rem) {
  .foot-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
  .foot-about {
    grid-column: auto;
  }
}
.foot-about p {
  margin: 0.8rem 0 0;
  color: var(--ink-2);
}
.foot-about .logo {
  margin: 0;
}
.foot-grid h2 {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-3);
  margin-bottom: 0.8rem;
}
.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-grid li {
  margin-bottom: 0.4rem;
}
.foot-grid a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--ink);
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.85rem;
}
.foot-base p {
  margin: 0;
}
.currency {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.currency a {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.82rem;
}
.currency a[aria-current='true'] {
  background: var(--wash);
  color: var(--ink);
  font-weight: 600;
}

/* phones: links and buttons are at least 44px to tap */
@media (max-width: 47.99rem) {
  .foot-grid a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .currency a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }
  .more {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .seat-btn,
  .menu-button {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }
}

/* pages written in the CMS */
.doc-head {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-soft), transparent 90%);
}
.doc-head h1 {
  max-width: 24ch;
  margin-bottom: 0.4em;
}
.updated {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0;
}
.doc-body {
  padding-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 64rem) {
  .doc-body.with-toc {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 3.5rem;
  }
}
.toc {
  font-size: 0.92rem;
}
.toc h2 {
  font-size: 0.8rem;
  font-family: var(--font-display);
  color: var(--ink-2);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin-bottom: 0.4rem;
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--brand-text);
}
@media (min-width: 64rem) {
  .toc {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow: auto;
  }
}

.prose {
  max-width: var(--measure);
  min-width: 0;
}
.prose h2 {
  margin-top: 2.6rem;
}
.prose h3 {
  margin-top: 1.8rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li::marker {
  color: var(--brand-mark);
}
.prose strong {
  font-weight: 650;
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 3px solid var(--brand-mark);
  color: var(--ink-2);
}
.prose .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.prose > .links:first-child,
.prose .links a {
  font-weight: 600;
}

/* tables (the comparisons): scroll sideways, keep the first column in view */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  max-width: min(100%, 100vw - 2 * var(--gutter));
}
.table-wrap:focus-visible {
  outline-offset: -3px;
}
.prose table,
.doc table,
.band table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}
.doc th,
.doc td,
.band th,
.band td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.doc thead th,
.band thead th {
  font-weight: 650;
  background: color-mix(in srgb, var(--card) 80%, var(--page));
  position: sticky;
  top: 0;
}
.doc tbody th,
.band tbody th {
  font-weight: 600;
  position: sticky;
  left: 0;
  background: var(--card);
  min-width: 11rem;
}
.doc tr:last-child th,
.doc tr:last-child td,
.band tr:last-child th,
.band tr:last-child td {
  border-bottom: 0;
}
table .hl {
  background: var(--brand-soft);
}
.prose-wide {
  max-width: none;
}

/* lists that open with a bold label become cards */
.prose ul.cards,
.prose ol.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: none;
}
.prose ul.cards li,
.prose ol.steps li {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
}
.prose ol.steps {
  counter-reset: step;
}
.prose ol.steps li {
  counter-increment: step;
}
.prose ol.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: var(--brand-fill);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.prose ul.cards li > strong:first-child,
.prose ol.steps li > strong:first-child {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

/* screenshots: the matching theme, framed */
.shot {
  display: block;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-light {
  display: none !important;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .shot-dark {
    display: none !important;
  }
  :root:not([data-theme='dark']) .shot-light {
    display: block !important;
  }
}
/* a product video: dark by design in both themes, its poster for less motion */
.shot-video {
  background: #0f0f12;
  border-color: color-mix(in srgb, var(--brand-mark) 30%, transparent);
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.shot-video video,
.shot-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-video .shot-still {
  display: none;
}
.shot-wrap {
  display: block;
}
.shot-full {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-height: 2.75rem;
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .shot-video video {
    display: none;
  }
  .shot-video .shot-still {
    display: block;
  }
}
.figure {
  margin: 1.8rem 0;
  max-width: 52rem;
}
.shot-plain {
  border-radius: 8px;
}

/* centred single-purpose pages: sign in, checkout, account */
.panel {
  max-width: 44rem;
  margin: 3rem auto;
  padding: 0 var(--gutter);
}
.panel-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.panel h1 {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.6rem);
}
/* sign in, sign up, reset: one narrow column */
.panel-auth {
  max-width: 30rem;
}
.panel-auth .btn {
  width: 100%;
}
.form-links {
  margin: 0;
  font-size: 0.95rem;
}
.form-alt {
  margin: 1.6rem 0 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.keybox {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  background: var(--page);
  border: 1px dashed var(--brand-mark);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  word-break: break-all;
  user-select: all;
}
.rows {
  width: 100%;
  border-collapse: collapse;
}
.rows th,
.rows td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.rows .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}
.tag-paid {
  background: var(--brand-soft);
  border-color: var(--brand-soft-2);
}
.tag-bad {
  color: var(--danger);
  border-color: var(--danger);
}
.waitlist {
  margin-top: 2.5rem;
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form-inline {
  max-width: 34rem;
}

/* a page with tables (the comparisons) lets them run wide; its words keep the reading width */
.prose:has(> .table-wrap) {
  max-width: none;
}
.prose:has(> .table-wrap) > :is(p, h1, h2, h3, h4, ul:not(.cards), ol:not(.steps), blockquote, hr) {
  max-width: var(--measure);
}

.mt {
  margin-top: 1.2rem;
}
.al-center {
  text-align: center !important;
}
.al-right {
  text-align: right !important;
}
.al-left {
  text-align: left !important;
}
table .yes {
  color: var(--brand-text);
  font-weight: 700;
}
table .no {
  color: var(--ink-3);
}
table tr.hl-row > * {
  background: var(--brand-soft);
}

/* the home page */
.main-home {
  margin-top: -4.4rem; /* the hero runs up under the floating nav */
}
.hero {
  position: relative;
  padding: 7.5rem 0 3rem;
  background:
    radial-gradient(56rem 30rem at 80% -10%, var(--stage-glow), transparent 70%),
    linear-gradient(180deg, var(--stage-top), var(--page) 80%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 3.5rem;
  }
  .hero {
    padding: 9rem 0 4rem;
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: 0;
  margin-bottom: 1.1rem;
}
.hero .kicker {
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
}
.hero .lede {
  max-width: 34rem;
  margin-bottom: 1.8rem;
  color: var(--ink-2);
}
.hero .lede p {
  margin: 0 0 0.8rem;
}
/* the proof line under the hero's words */
.hero .lede p:last-child:not(:first-child) {
  font-size: 0.9rem;
  color: var(--ink-3);
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

/* the AI apps it works with */
.works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.works p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.works ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.works li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-2);
  white-space: nowrap;
}

/* the hero's recording */
.hero-shot .shot-video {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* a section with its screenshot: words on one side, the app on the other */
.feature {
  padding: 5rem 0;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 62rem) {
  .feature-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
  }
  .feature.flip .feature-copy {
    order: 2;
  }
}
.feature h2 {
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.4rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.feature-text p {
  font-size: 1.08rem;
  color: var(--ink-2);
  margin-bottom: 1.2rem;
}
.feature-text ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}
.feature-text li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}
.feature-text li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.75rem;
  height: 0.42rem;
  border-left: 2px solid var(--brand-mark);
  border-bottom: 2px solid var(--brand-mark);
  transform: rotate(-45deg);
}
.feature-text code {
  color: var(--brand-text);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.more::after {
  content: '\2192';
  transition: transform var(--t-fast) var(--ease);
}
.more:hover::after {
  transform: translateX(3px);
}

/* a section without a screenshot: a centred title, then cards */
.band {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}
.band-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.4rem);
  margin-bottom: 2.2rem;
}
.band-body > p {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.band-body > .band-buttons {
  justify-content: center;
  margin-top: 1.4rem;
}
.band-body ul.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.band-body ul.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  color: var(--ink-2);
  transition:
    border-color var(--t-fast),
    transform var(--t-fast) var(--ease);
}
.band-body ul.cards li:hover {
  border-color: var(--brand-soft-2);
  transform: translateY(-2px);
}
.band-body ul.cards li > strong:first-child {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.band-body ul.cards a {
  color: var(--ink-2);
  text-decoration: none;
}
.band-body ul.cards a::after {
  content: ' \2192';
  color: var(--brand-text);
}
.band-body ul.cards li:has(a) {
  position: relative;
}
.band-body ul.cards li:has(a) a::before {
  content: '';
  position: absolute;
  inset: 0;
}

/* the buy box */
.price-box {
  max-width: 28rem;
  margin: 0 auto;
}
.price-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.3rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1;
}
.price-once {
  color: var(--ink-2);
}
.price {
  flex-wrap: wrap;
}
.price-was {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.price-off {
  background: var(--brand-mark);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.65rem;
  align-self: center;
}
.price-early {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.was {
  color: var(--ink-3);
}
.price-note {
  color: var(--ink-3);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}
.price-main .buttons {
  margin-top: 1.4rem;
  flex-direction: column;
}
.btn-wide {
  width: 100%;
}
.price-team {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.75rem;
  height: 0.42rem;
  border-left: 2px solid var(--brand-mark);
  border-bottom: 2px solid var(--brand-mark);
  transform: rotate(-45deg);
}
.price-band {
  padding: 2.5rem 0 1rem;
}

/* Individual, Teams, Enterprise: three across, one column on a phone */
.plan-cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: stretch;
  text-align: left;
  max-width: 72rem;
  margin: 0 auto;
}
.plan-card {
  display: flex;
  flex-direction: column;
}
.plan-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
  color: var(--ink-2);
}
.plan-card .price-box {
  max-width: none;
  margin: 0;
  flex: 1;
  display: flex;
}
.plan-card .price-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan-card .price-main > .buttons {
  margin-top: auto;
}
.plan-team .price-main {
  border-color: color-mix(in srgb, var(--brand-mark) 45%, var(--line));
}
.price-quote {
  font-size: 2.4rem;
}
/* the user stepper: − [ 5 ] users + */
.seats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.6rem;
}
.seat-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
}
.seat-btn:hover:not(:disabled) {
  border-color: var(--brand-mark);
}
.seat-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.seat-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.seat-count input {
  width: 4.6rem;
  text-align: center;
  min-height: 2.6rem;
  padding: 0.3rem;
}
.seat-total {
  margin: 0 0 1rem;
  color: var(--ink-2);
}
.seat-total strong {
  color: var(--ink);
  font-size: 1.2rem;
}

/* marketing pages from the CMS: a hero with the page's first screenshot */
.page-hero {
  padding: 8rem 0 3.5rem;
  margin-top: -4.4rem;
  background:
    radial-gradient(50rem 24rem at 85% -10%, var(--stage-glow), transparent 70%),
    linear-gradient(180deg, var(--stage-top), var(--page) 85%);
}
.page-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 62rem) {
  .with-shot .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}
.page-hero h1 {
  font-size: clamp(2.1rem, 3.4vw + 0.6rem, 3.2rem);
  line-height: 1.08;
  max-width: 18ch;
}
.page-lede p {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 38rem;
}
.page-lede p:first-child,
.page-lede p:first-child strong {
  font-weight: 500;
  color: var(--ink);
  font-size: 1.12rem;
}
.page-hero .buttons {
  margin-top: 1.6rem;
}
.page-hero .updated {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* lists of cards inside a band run to the full width, three across */
.band-body ul.cards {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.band-body ul.cards li.run-on > strong:first-child {
  display: inline;
}
.band-body > ul:not(.cards) {
  max-width: 46rem;
  margin-inline: auto;
}

/* questions that open */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--brand-text);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--ink-2);
}
.faq-a p:last-child {
  margin-bottom: 0;
}

/* the band every product page ends with */
.closing {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(40rem 18rem at 50% 0%, var(--stage-glow), transparent 70%), var(--page);
  border-top: 1px solid var(--line);
}
.closing-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.closing h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  text-wrap: balance;
  max-width: 40rem;
}
.closing .lede {
  color: var(--ink-2);
  margin: 0;
}
.closing-founding {
  margin: 0;
  font-weight: 600;
}

/* the Founding 50 application */
.early-form {
  max-width: 44rem;
  margin-inline: auto;
}
.early-form textarea {
  min-height: 6rem;
}

/* the admin */
.admin {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 62rem) {
  .admin {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}
.admin-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
@media (min-width: 62rem) {
  .admin-nav ul {
    flex-direction: column;
    position: sticky;
    top: 5.5rem;
  }
}
.admin-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.admin-nav a:hover {
  background: var(--card);
}
.admin-nav a[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 650;
}
.admin-main {
  min-width: 0;
}
.admin-main h1 {
  font-size: 2rem;
}
.admin-main h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}
.form-wide {
  max-width: 52rem;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}
.group {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 1.1rem;
}
.group legend {
  font-weight: 650;
  padding: 0 0.5rem;
}
.switch {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 400 !important;
}
.switch input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--brand-fill);
}
.inline-form {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
}
.inline-form input[type='text'] {
  width: 14rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.6rem;
  margin-right: 0.4rem;
}
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 1.2rem 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.stat p {
  margin: 0;
}
.stat-label {
  color: var(--ink-2);
  font-size: 0.85rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.3;
}
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.checklist .ok span:first-child {
  color: var(--brand-mark);
  font-weight: 700;
}
.admin-table td,
.admin-table th {
  font-size: 0.9rem;
}
.pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-width: 40rem;
  margin: 0.5rem 0 0;
}
details > summary {
  cursor: pointer;
}

/*
 * Motion. Every rule is inside prefers-reduced-motion: no-preference, and the
 * page is drawn finished without it: every section is in place, and the videos
 * show their poster frames. Motion only plays things in from an earlier
 * state. Scroll-driven parts need animation-timeline and are skipped where it is
 * not supported. No script runs for any of it.
 */

.progress {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* the first screenful arrives */
  .hero-copy > * {
    animation: rise 0.8s var(--ease) both;
  }
  .hero-copy > :nth-child(1) {
    animation-delay: 0.05s;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.15s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.3s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.45s;
  }
  .hero-shot {
    animation: rise 1s 0.2s var(--ease) both;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  .btn-primary {
    position: relative;
    overflow: hidden;
  }
  .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 35%,
      color-mix(in srgb, #fff 28%, transparent) 50%,
      transparent 65%
    );
    transform: translateX(-120%);
  }
  .btn-primary:hover::after {
    transition: transform 0.7s var(--ease);
    transform: translateX(120%);
  }

  /* as the page scrolls */
  @supports (animation-timeline: view()) {
    .reveal,
    .band .prose,
    .figure,
    .price-main,
    .waitlist,
    .doc .table-wrap {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .show .shot {
      animation: tilt linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .band-grid > h2 {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(32px);
      }
    }
    @keyframes tilt {
      from {
        transform: perspective(1400px) rotateX(9deg) scale(0.94);
        opacity: 0.4;
      }
    }
    @keyframes slide-in {
      from {
        opacity: 0;
        transform: translateX(-24px);
      }
    }
  }
  @supports (animation-timeline: scroll()) {
    .progress {
      display: block;
      position: fixed;
      inset: 0 0 auto 0;
      height: 3px;
      z-index: 200;
      background: var(--brand-mark);
      transform-origin: 0 50%;
      animation: grow linear both;
      animation-timeline: scroll(root);
    }
    @keyframes grow {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }
  }
}
