/* hlpd.uk: the one stylesheet for every page. 1960s futurism: neutral light and deep ink surfaces,
   geometric display type, capsules, orbit rings and starbursts, with sparing red, blue and yellow.
   Brand colours follow assets/art/PALETTE.md. */

:root {
  color-scheme: light dark;
  --paper: #f5f6f8;
  --ink: #14213d;
  --muted: #5c6378;
  --red: #e63b2e;
  --blue: #1f4fd8;
  --yellow: #f5c400;

  --surface: #ffffff;
  --raised: #ffffff;
  --ink-2: #2e3852;
  --rule: #d7dbe2;
  --hairline: #e4e7ec;
  --accent: #1f4fd8;
  --accent-ink: #1a3fae;
  --red-ink: #c42b1f;
  --gold: #7a5600;
  --red-soft: #fbe0da;
  --blue-soft: #e1e8fa;
  --yellow-soft: #fbedb8;
  --focus: #1f4fd8;
  --button-hover: #1f4fd8;
  --dot: rgb(20 33 61 / 0.12);
  --pattern: rgb(20 33 61 / 0.05);
  --line-soft: rgb(20 33 61 / 0.08);
  --mark-bg: var(--surface);
  --wash-red: rgb(230 59 46 / 0.09);
  --wash-blue: rgb(31 79 216 / 0.09);
  --wash-yellow: rgb(245 196 0 / 0.17);
  --hero-wash:
    radial-gradient(30% 44% at 80% 40%, var(--wash-blue), transparent),
    radial-gradient(22% 24% at 66% 74%, var(--wash-red), transparent),
    radial-gradient(34% 42% at 10% 44%, var(--wash-yellow), transparent);
  --plans-wash:
    radial-gradient(32% 40% at 50% 50%, var(--wash-yellow), transparent),
    radial-gradient(16% 30% at 18% 68%, var(--wash-blue), transparent),
    radial-gradient(16% 28% at 82% 30%, var(--wash-red), transparent);
  --cta-wash:
    radial-gradient(30% 42% at 82% 50%, var(--wash-yellow), transparent),
    radial-gradient(22% 40% at 14% 52%, var(--wash-red), transparent);
  --band-glow:
    radial-gradient(60% 90% at 100% 0, rgb(31 79 216 / 0.42), transparent),
    radial-gradient(52% 90% at 0 100%, rgb(230 59 46 / 0.18), transparent);
  --code-bg: #14213d;
  --code-border: #14213d;
  --code-ink: #f6f1e7;
  --code-muted: #9aa3bd;
  --code-string: #ffd86a;
  --code-keyword: #9db7ff;
  --band-bg: #14213d;
  --band-ink: #f6f1e7;
  --band-muted: #c5cad8;
  --shadow: 0 1px 2px rgb(20 33 61 / 0.05), 0 18px 40px -20px rgb(20 33 61 / 0.28);
  --lift: 0 2px 4px rgb(20 33 61 / 0.05), 0 22px 44px -22px rgb(20 33 61 / 0.36);
  --display: Futura, "Futura PT", "Century Gothic", "URW Gothic", "TeX Gyre Adventor", "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --sans: "Avenir Next", Avenir, Seravek, "Segoe UI", "Helvetica Neue", Ubuntu, Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1b33;
    --ink: #f6f1e7;
    --muted: #a9b1c6;
    --red: #ff5a4c;
    --blue: #4c7bff;
    --yellow: #ffd53d;

    --surface: #14223e;
    --raised: #1a2a4a;
    --ink-2: #d2d5e0;
    --rule: #2e3d5e;
    --hairline: #22314f;
    --accent: #8faeff;
    --accent-ink: #b3c7ff;
    --red-ink: #ff8478;
    --gold: #ffd86a;
    --red-soft: #3b1e2a;
    --blue-soft: #1c2f63;
    --yellow-soft: #3a3217;
    --focus: #ffd53d;
    --button-hover: #ffd53d;
    --dot: rgb(246 241 231 / 0.09);
    --pattern: rgb(246 241 231 / 0.05);
    --line-soft: rgb(246 241 231 / 0.08);
    --mark-bg: #f6f1e7;
    --wash-red: rgb(255 90 76 / 0.13);
    --wash-blue: rgb(76 123 255 / 0.17);
    --wash-yellow: rgb(255 213 61 / 0.07);
    --hero-wash:
      radial-gradient(38% 46% at 72% 50%, var(--wash-blue), transparent),
      radial-gradient(18% 26% at 88% 24%, var(--wash-red), transparent),
      radial-gradient(24% 30% at 18% 70%, var(--wash-red), transparent);
    --plans-wash:
      radial-gradient(34% 42% at 50% 50%, var(--wash-blue), transparent),
      radial-gradient(15% 28% at 84% 70%, var(--wash-red), transparent),
      radial-gradient(14% 26% at 16% 28%, var(--wash-red), transparent);
    --cta-wash:
      radial-gradient(30% 42% at 18% 48%, var(--wash-blue), transparent),
      radial-gradient(22% 40% at 86% 54%, var(--wash-red), transparent);
    --band-glow:
      radial-gradient(60% 90% at 100% 0, rgb(76 123 255 / 0.32), transparent),
      radial-gradient(52% 90% at 0 100%, rgb(255 90 76 / 0.2), transparent);
    --code-bg: #0a1326;
    --code-border: #22314f;
    --band-bg: #1d3a94;
    --band-ink: #f6f1e7;
    --band-muted: #c5cde6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -20px rgb(0 0 0 / 0.7);
    --lift: 0 2px 4px rgb(0 0 0 / 0.3), 0 22px 44px -20px rgb(0 0 0 / 0.8);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
}

code {
  font: 0.86em/1.4 var(--mono);
}

.sr-only,
.copy-buffer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  transition: transform 0.5s var(--ease);
}

.brand-word {
  flex: none;
  width: 68px;
  height: 34px;
}

.brand:hover .brand-mark {
  transform: rotate(-14deg);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font: 500 15.5px/1.4 var(--sans);
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: auto;
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 12px;
    min-height: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 22px;
    padding: 6px 0 8px;
    overflow-x: auto;
  }

  .site-nav a {
    font-size: 15px;
    white-space: nowrap;
  }
}

/* Buttons: capsules that lift on hover and press in on click */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 16px/1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  border-color: var(--ink);
  background: var(--raised);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.button:active {
  box-shadow: none;
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.06s;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
  color: var(--paper);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.arrow-link {
  font-weight: 600;
  text-decoration: none;
}

.arrow-link span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.arrow-link:hover span {
  transform: translateX(4px);
}

/* Shared section furniture */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--muted);
  font: 500 12.5px/1.3 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  flex: none;
  width: 30px;
  height: 8px;
  background:
    radial-gradient(circle closest-side, var(--red) 94%, transparent) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle closest-side, var(--blue) 94%, transparent) 11px 0 / 8px 8px no-repeat,
    radial-gradient(circle closest-side, var(--yellow) 94%, transparent) 22px 0 / 8px 8px no-repeat;
}

.kicker-star::before {
  display: none;
}

.kicker .star {
  flex: none;
  width: 28px;
  height: 28px;
  margin: -8px 0;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(18px, 1vw + 13px, 21px);
  line-height: 1.65;
}

.section {
  padding: clamp(96px, 13.5vw, 180px) 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(60px, 7.5vw, 96px);
}

/* Canvas: a faint geometric tile from assets/art/patterns over the section, fading at its edges */

.canvas {
  position: relative;
  isolation: isolate;
}

.canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pattern);
  -webkit-mask-image: var(--tile), linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-size: var(--tile-size), 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--tile), linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-size: var(--tile-size), 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}

.canvas-orbits {
  --tile: url(/assets/art/patterns/orbits.svg?v=ce2d97b7d9);
  --tile-size: 120px 120px;
}

.canvas-rings {
  --tile: url(/assets/art/patterns/rings.svg?v=763251c442);
  --tile-size: 96px 96px;
}

.canvas-stars {
  --tile: url(/assets/art/patterns/stars.svg?v=488923fae0);
  --tile-size: 96px 96px;
}

.section-head h2 {
  font-size: clamp(32px, 2.4vw + 18px, 50px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 18.5px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.checks li::after {
  content: "";
  position: absolute;
  top: calc(0.2em + 6px);
  left: 6px;
  width: 8px;
  height: 4.5px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 12vw, 156px) 0 clamp(84px, 12vw, 168px);
  overflow: hidden;
  background: var(--hero-wash);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dot);
  -webkit-mask-image: url(/assets/art/illustrations/divider-dots.svg?v=41d3c508ce), radial-gradient(ellipse 58% 72% at 76% 46%, #000 0%, transparent 74%);
  -webkit-mask-size: 24px 24px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: url(/assets/art/illustrations/divider-dots.svg?v=41d3c508ce), radial-gradient(ellipse 58% 72% at 76% 46%, #000 0%, transparent 74%);
  mask-size: 24px 24px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(60px, 7.5vw, 108px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 4.4vw + 16px, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero .lead {
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14.5px;
}

.platforms svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.art-hero,
.art-feature,
.art-404 {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero::before {
    -webkit-mask-image: url(/assets/art/illustrations/divider-dots.svg?v=41d3c508ce), radial-gradient(ellipse 80% 34% at 50% 78%, #000 0%, transparent 74%);
    mask-image: url(/assets/art/illustrations/divider-dots.svg?v=41d3c508ce), radial-gradient(ellipse 80% 34% at 50% 78%, #000 0%, transparent 74%);
  }

  .hero-art {
    width: min(100%, 540px);
    margin-inline: auto;
  }
}

/* How it works: numbered rings joined by a dotted track */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  --ring: var(--red);
  position: relative;
  counter-increment: step;
}

.steps li:nth-child(4n + 2) {
  --ring: var(--blue);
}

.steps li:nth-child(4n + 3) {
  --ring: var(--yellow);
}

.steps li:nth-child(4n + 4) {
  --ring: var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 2.5px solid var(--ring);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 700 16px/1 var(--display);
  letter-spacing: 0.02em;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 68px;
  right: -32px;
  height: 2px;
  background-image: radial-gradient(circle closest-side, var(--rule) 90%, transparent);
  background-size: 8px 2px;
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 66px;
  }

  .steps li::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Feature rows */

.feature {
  --tone: var(--blue);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
}

.feature:nth-child(3n) {
  --tone: var(--red);
}

.feature:nth-child(3n + 1) {
  --tone: var(--yellow);
}

.feature + .feature {
  margin-top: clamp(108px, 13.5vw, 180px);
}

.feature:nth-child(even) .feature-art {
  order: -1;
}

.feature .kicker::before {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: var(--tone);
}

.feature-copy h3 {
  font-size: clamp(28px, 1.4vw + 20px, 38px);
  letter-spacing: -0.025em;
}

.feature-copy > p:not(.kicker) {
  color: var(--ink-2);
  font-size: 18px;
}

.feature-copy > .arrow-link {
  display: inline-block;
  margin-top: 18px;
}

.feature-art {
  --art-paper: var(--surface);
  padding: clamp(24px, 4.5vw, 56px);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.feature-art:hover {
  box-shadow: var(--lift);
  transform: translateY(-3px);
}

#agents .feature-art {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.feature-art > .code {
  width: 100%;
  margin: 0;
  text-align: left;
}

.feature-art > .code pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-child(even) .feature-art {
    order: 0;
  }
}

/* Cards */

.subhead {
  margin: clamp(120px, 13.5vw, 180px) 0 40px;
  font-size: clamp(26px, 1vw + 20px, 32px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  border-color: var(--rule);
  box-shadow: var(--lift);
  transform: translateY(-4px);
}

.card-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  padding: 11px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--accent-ink);
  transition: transform 0.4s var(--ease);
}

.cards > li:nth-child(3n + 1) .card-icon {
  background: var(--red-soft);
  color: var(--red-ink);
}

.cards > li:nth-child(3n) .card-icon {
  background: var(--yellow-soft);
  color: var(--gold);
}

.card:hover .card-icon {
  transform: rotate(-8deg) scale(1.06);
}

.card h3,
.card h4 {
  margin: 0 0 6px;
  font: 700 18px/1.3 var(--display);
  letter-spacing: -0.005em;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}

.card code {
  color: var(--ink);
}

.platform-card {
  display: flex;
  flex-direction: column;
}

.platform-card h3 {
  font: 700 26px/1.2 var(--display);
  letter-spacing: -0.02em;
}

.platform-card .meta {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.platform-card .arrow-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
}

/* Plans */

.plans {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plans::before {
  content: "";
  position: absolute;
  inset: -120px 0;
  z-index: -1;
  background: var(--plans-wash);
  pointer-events: none;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.plan:hover {
  box-shadow: var(--lift);
  transform: translateY(-4px);
}

.plan-featured {
  border-color: var(--band-bg);
  background: var(--band-bg);
  color: var(--band-ink);
  box-shadow: var(--shadow);
}

.plan-featured::before {
  content: "";
  position: absolute;
  top: -16px;
  right: 22px;
  width: 50px;
  height: 50px;
  background: var(--red);
  clip-path: polygon(50% 0%, 59.8% 13.3%, 75% 6.7%, 76.9% 23.1%, 93.3% 25%, 86.7% 40.2%, 100% 50%, 86.7% 59.8%, 93.3% 75%, 76.9% 76.9%, 75% 93.3%, 59.8% 86.7%, 50% 100%, 40.2% 86.7%, 25% 93.3%, 23.1% 76.9%, 6.7% 75%, 13.3% 59.8%, 0% 50%, 13.3% 40.2%, 6.7% 25%, 23.1% 23.1%, 25% 6.7%, 40.2% 13.3%);
}

.plan h2,
.plan h3 {
  margin-bottom: 4px;
  font-size: 28px;
}

.plan-blurb {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

@media (min-width: 861px) {
  .plan-blurb {
    min-height: 3.4em;
  }
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 22px 0 4px;
}

.price-amount {
  font: 700 56px/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-period {
  color: var(--muted);
  font-size: 16px;
}

.plan .checks {
  margin: 22px 0 30px;
  font-size: 15.5px;
}

.plan .button {
  margin-top: auto;
}

.plan-featured .plan-blurb {
  color: var(--band-muted);
}

.plan-featured .price-period {
  color: var(--band-muted);
}

.plan-featured .checks li::before {
  background: color-mix(in srgb, var(--band-ink) 14%, transparent);
}

.plan-featured .checks li::after {
  border-color: var(--yellow);
}

.plan-featured .button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #14213d;
}

.plan-featured .button-primary:hover {
  border-color: var(--band-ink);
  background: var(--band-ink);
  color: #14213d;
}

.plan-featured :focus-visible {
  outline-color: var(--yellow);
}

.plans-foot {
  margin: 44px 0 0;
}

@media (max-width: 860px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

/* Comparison table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.compare th,
.compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-bottom-color: var(--rule);
  font: 700 20px/1.2 var(--display);
  letter-spacing: -0.01em;
}

.compare tbody th {
  width: 40%;
  color: var(--ink-2);
  font-weight: 400;
}

.compare td {
  font-variant-numeric: tabular-nums;
}

.compare .group th {
  padding-top: 24px;
  background: var(--paper);
  color: var(--muted);
  font: 500 12px/1.3 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

.tick {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  vertical-align: middle;
}

.tick::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 6.5px;
  width: 8px;
  height: 4.5px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

@media (max-width: 560px) {
  .compare th,
  .compare td {
    padding: 12px 10px;
  }

  .compare {
    font-size: 14.5px;
  }

  .compare thead th {
    font-size: 17px;
  }
}

/* FAQ */

.faq {
  max-width: 780px;
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 22px 56px 22px 0;
  font: 500 20px/1.35 var(--display);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  font: 400 22px/1 var(--sans);
  transition: transform 0.3s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq summary:hover::after {
  border-color: var(--ink);
}

.faq details[open] summary::after {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}

.faq details p {
  max-width: 680px;
  margin: 0;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* Call to action: a wash around the band; inside, a soft glow, the starburst ornament and a dot grid in one corner */

.cta {
  background: var(--cta-wash);
}

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: center;
  padding: clamp(44px, 8vw, 104px);
  border-radius: 32px;
  background: var(--band-bg);
  color: var(--band-ink);
}

.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--band-glow);
}

.band::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: color-mix(in srgb, var(--band-ink) 22%, transparent);
  -webkit-mask-image: url(/assets/art/illustrations/divider-dots.svg?v=41d3c508ce), radial-gradient(circle at 100% 0, #000 0, transparent 62%);
  -webkit-mask-size: 20px 20px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: url(/assets/art/illustrations/divider-dots.svg?v=41d3c508ce), radial-gradient(circle at 100% 0, #000 0, transparent 62%);
  mask-size: 20px 20px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}

.band-star {
  position: absolute;
  z-index: -1;
  top: -64px;
  right: -64px;
  width: 200px;
  height: 200px;
}

.band h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 2vw + 18px, 46px);
  letter-spacing: -0.03em;
}

.band p {
  margin: 0;
  color: var(--band-muted);
  font-size: 18px;
}

.band .actions {
  margin: 0;
}

.band .button {
  border-color: color-mix(in srgb, var(--band-ink) 40%, transparent);
  color: var(--band-ink);
}

.band .button:hover {
  border-color: var(--band-ink);
  background: color-mix(in srgb, var(--band-ink) 10%, transparent);
  box-shadow: none;
}

.band .button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #14213d;
}

.band .button-primary:hover {
  border-color: var(--band-ink);
  background: var(--band-ink);
  color: #14213d;
}

.band :focus-visible {
  outline-color: var(--yellow);
}

@media (max-width: 760px) {
  .band {
    grid-template-columns: minmax(0, 1fr);
  }

  .band {
    padding-top: 84px;
  }

  .band-star {
    top: -46px;
    right: -46px;
    width: 108px;
    height: 108px;
  }
}

/* Footer */

.site-footer {
  padding: 84px 0 56px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 15.5px;
}

.site-footer > .wrap::before {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  margin-bottom: 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--blue) 33.3% 66.6%, var(--yellow) 66.6%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 300px;
  margin: 16px 0 0;
}

.footer-title {
  margin: 0 0 14px;
  color: var(--muted);
  font: 500 12px/1.3 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.footer-parent {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-parent img {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 50%;
  background: var(--mark-bg);
}

.footer-parent a {
  color: var(--ink-2);
  font-weight: 600;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14.5px;
}

.footer-meta p {
  margin: 0;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Page heads for pricing and 404; pricing carries the starburst on wide screens */

.page-head {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10.5vw, 138px) 0 clamp(48px, 6vw, 78px);
}

.page-head h1 {
  max-width: 760px;
  font-size: clamp(40px, 3.4vw + 20px, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page-head .lead {
  max-width: 600px;
  margin: 0;
}

.head-star {
  display: none;
}

@media (min-width: 900px) {
  .head-star {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: 8%;
    display: block;
    width: 144px;
    height: 144px;
    margin-top: -72px;
  }
}

.page-body {
  padding-bottom: clamp(96px, 13.5vw, 180px);
}

.notfound {
  display: grid;
  gap: 0 56px;
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.notfound-art {
  width: min(100%, 520px);
  justify-self: center;
}

@media (min-width: 900px) {
  .notfound {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 60vh;
  }
}

.legal {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 120px);
}

/* Docs */

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 104px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  font-size: 15px;
}

.docs-group + .docs-group {
  margin-top: 24px;
}

.docs-group-title {
  margin: 0 0 8px 12px;
  color: var(--muted);
  font: 500 11.5px/1.3 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.docs-nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
}

.docs-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.docs-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.docs-nav .toc {
  margin: 6px 0 10px 14px;
  padding-left: 8px;
  border-left: 1.5px solid var(--rule);
}

.docs-nav .toc a {
  padding: 4px 10px;
  color: var(--muted);
  font-size: 14px;
}

.docs-nav .toc a:hover {
  color: var(--ink);
}

.docs-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.docs-pager a {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 14px 24px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 18px/1.3 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.docs-pager a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.docs-pager span {
  color: var(--muted);
  font: 500 11px/1.4 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.docs-pager .next {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 24px;
  }

  .docs-nav {
    position: static;
    max-height: none;
    padding: 16px 10px;
    border: 1px solid var(--hairline);
    border-radius: 24px;
    background: var(--surface);
  }

  .docs-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .docs-group + .docs-group {
    margin-top: 0;
  }

  .docs-nav .toc {
    display: none;
  }
}

/* Long-form text: docs and legal pages */

.prose {
  max-width: 760px;
  min-width: 0;
}

.prose h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 2vw + 24px, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.prose > .lead {
  margin-bottom: 32px;
}

.prose h2 {
  margin: 56px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
  font-size: 28px;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.prose h3 {
  margin: 32px 0 10px;
  font: 600 18px/1.35 var(--sans);
  letter-spacing: 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--muted);
}

.prose ul > li::marker {
  color: var(--red);
}

.prose :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  overflow-wrap: break-word;
}

.prose .table-scroll {
  margin: 20px 0 28px;
  border-radius: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.prose th,
.prose td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.prose th {
  border-bottom-color: var(--rule);
  color: var(--muted);
  font: 500 11.5px/1.4 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  border-radius: 4px 18px 18px 4px;
  background: var(--blue-soft);
}

.callout p:last-child {
  margin: 0;
}

.draft-banner {
  margin: 0 0 36px;
  padding: 18px 22px;
  border-left: 4px solid var(--yellow);
  border-radius: 4px 18px 18px 4px;
  background: var(--yellow-soft);
  color: var(--ink);
}

.draft-banner p {
  margin: 0;
}

.draft-banner strong {
  color: var(--gold);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.prose .link-cards li {
  margin: 0;
}

.link-cards a {
  display: block;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.link-cards a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.link-cards strong {
  display: block;
  margin-bottom: 4px;
  font: 700 21px/1.2 var(--display);
  letter-spacing: -0.015em;
}

.link-cards span {
  color: var(--ink-2);
  font-size: 15px;
}

/* Code blocks */

.code {
  margin: 20px 0 28px;
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: 18px;
  background: var(--code-bg);
  color: var(--code-ink);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: var(--code-muted);
  font: 500 11.5px/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.code-head::before {
  content: "";
  flex: none;
  width: 30px;
  height: 8px;
  background:
    radial-gradient(circle closest-side, #ff5a4c 94%, transparent) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle closest-side, #4c7bff 94%, transparent) 11px 0 / 8px 8px no-repeat,
    radial-gradient(circle closest-side, #ffd53d 94%, transparent) 22px 0 / 8px 8px no-repeat;
}

.code pre {
  margin: 0;
  padding: 16px 20px 20px;
  overflow-x: auto;
  font: 13.5px/1.65 var(--mono);
  tab-size: 4;
}

.code pre code {
  font: inherit;
}

.code pre:focus-visible {
  outline-color: var(--code-string);
  outline-offset: -3px;
}

.copy {
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--code-ink);
  font: 500 12.5px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s var(--ease);
}

.copy:hover {
  background: rgb(255 255 255 / 0.1);
}

.copy:active {
  transform: scale(0.95);
}

.copy:focus-visible {
  outline-color: var(--code-string);
}

.tok-c {
  color: var(--code-muted);
  font-style: italic;
}

.tok-s {
  color: var(--code-string);
}

.tok-k {
  color: var(--code-keyword);
}

/* Art from assets/art, inlined by build.py: ink is currentColor, accents come from these classes,
   which set color only because outlined shapes carry them too */

.art-red {
  color: var(--red);
}

.art-blue {
  color: var(--blue);
}

.art-yellow {
  color: var(--yellow);
}

.art-paper {
  color: var(--art-paper, var(--paper));
}

.art-muted {
  color: var(--muted);
}

/* Motion: entrances and reveals added by site.js; the art's own SMIL loops are held by site.js for reduced motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-copy > *,
  .page-head > * {
    animation: rise 0.7s var(--ease) both;
  }

  .hero-copy > :nth-child(2),
  .page-head > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3),
  .page-head > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(n + 4),
  .page-head > :nth-child(n + 4) {
    animation-delay: 0.18s;
  }

  .hero-art {
    animation: settle 0.9s var(--ease) 0.12s both;
  }

  .page-head > .head-star,
  .notfound-art {
    animation: settle 1s var(--ease) 0.2s both;
  }

  .plan-featured::before {
    animation: spin 40s linear infinite;
  }

  .reveal {
    opacity: 0;
    transform: translateY(22px);
  }

  .reveal.is-shown {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }

  .steps > li:nth-child(2),
  .cards > li:nth-child(3n + 2),
  .plans > .plan:nth-child(2) {
    --reveal-delay: 0.08s;
  }

  .steps > li:nth-child(3),
  .cards > li:nth-child(3n),
  .plans > .plan:nth-child(3) {
    --reveal-delay: 0.16s;
  }

  .steps > li:nth-child(4) {
    --reveal-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    transform: translateY(18px);
  }
}

@keyframes settle {
  from {
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .section-head p:last-child,
  .feature-copy > p:not(.kicker) {
    font-size: 17px;
  }
}

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