/* ClearClash landing page
   One token system: colour, type scale, space scale. Nothing off-scale below this block. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Fallback tuned to Archivo's width so the swap does not reflow the page. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98.5%;
}

:root {
  /* colour: ink, white, one tint, grey text, one accent */
  --ink: #111111;
  --white: #ffffff;
  --tint: #f4f4f4;
  --grey: #6b6b6b;           /* text only on white or tint (5.3:1 and 4.8:1) */
  --yellow: #ffe600;         /* the clash / the key number / the primary button */
  --hairline: rgb(17 17 17 / 0.18);
  --on-ink-dim: rgb(255 255 255 / 0.74);
  --on-ink-line: rgb(255 255 255 / 0.55);

  /* type */
  --font-sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-code: 0.875rem;
  --fs-small: 0.875rem;
  --fs-ui: 1rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.9vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 1.1rem + 4.3vw, 4.75rem);
  --fs-price: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  --fs-num: clamp(3.5rem, 2rem + 5.6vw, 6rem);

  /* space: 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 9rem;
  --section-y: clamp(var(--s-8), 3rem + 6vw, var(--s-10));
  --gutter: clamp(var(--s-4), 0.5rem + 1.4vw, var(--s-5));
  --margin: clamp(var(--s-4), 0.25rem + 3.4vw, var(--s-8));
  --max: 90rem;

  /* sizes of controls and strokes */
  --header-h: 3.5rem;
  --control-h: 3rem;
  --control-sm: 2.5rem;
  --glyph-w: 0.8rem;
  --glyph-h: 0.9rem;
  --glyph-bar: 0.28rem;
  --caret-w: 0.7rem;
  --caret-h: 0.45rem;
  --time-w: 5.5rem;
  --btn-min-w: 7rem;
  --submit-min-w: 11rem;
  --dialog-max: 40rem;
  --dialog-foot-h: 5.5rem;
  --schematic-w: 10rem;
  --spec-label-w: 8.5rem;
  --chart-label-w: 11rem;
  --chart-value-w: 13rem;
  --table-min: 38rem;
  --table-min-sm: 32rem;
  --pipe-max: 32rem;
  --logo-h: 1.5rem;
  --portrait-s: 5.5rem;
  --portrait-m: 8rem;
  --portrait-l: 16rem;
  --line: 1px;
  --line-bold: 2px;

  /* motion */
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 900ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ink);
  caret-color: var(--ink);
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--white); }

h1, h2, h3 {
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  word-spacing: 0.1em;
  line-height: 1.04;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.028em; line-height: 1; }
.h2 { font-size: var(--fs-h2); }
.h3 {
  font-size: var(--fs-h3);
  font-stretch: 100%;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* Optical alignment: pull each display line left by the side bearing of its first letter,
   measured in the render, so the ink sits flush with the body text edge. */
h1 { margin-left: -0.005em; }
#problem-title { margin-left: -0.037em; }
#how-title, #pricing-title { margin-left: -0.07em; }
#team-title { margin-left: -0.055em; }
#benchmark-title { margin-left: -0.012em; }
#rules-title { margin-left: -0.005em; }
#roles-title, #join-title { margin-left: -0.01em; }

code {
  font-family: var(--font-mono);
  font-size: var(--fs-code);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.12em;
  margin: 0 -0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

:focus-visible { outline: var(--line-bold) solid var(--ink); outline-offset: var(--s-1); }
.section-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-2); z-index: 100;
  background: var(--ink); color: var(--white); padding: var(--s-2) var(--s-4);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; }

.section { padding-block: var(--section-y); }
.section-tint { background: var(--tint); }
.section-ink { background: var(--ink); color: var(--white); }
/* Two white sections in a row share one gap. */
.section:not(.section-tint):not(.section-ink) + .section:not(.section-tint):not(.section-ink),
.hero + .section { padding-top: 0; }

.col-head { max-width: 17em; margin-bottom: var(--s-7); }
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }
.footnote { font-size: var(--fs-small); color: var(--grey); margin-top: var(--s-5); }

/* ---------- buttons and links ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control-h); padding: 0 var(--s-5);
  border: var(--line) solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: var(--fs-ui); font-weight: 600; line-height: 1; text-decoration: none;
  cursor: pointer; overflow: hidden;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.btn-primary { background: var(--yellow); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.section-ink .btn-primary { border-color: var(--yellow); }
.section-ink .btn-primary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--white); color: var(--ink); }
.btn:disabled:hover { background: var(--ink); color: var(--white); }
.btn-ink:disabled:hover { background: var(--white); color: var(--ink); }
.section-ink .btn-primary:disabled:hover { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn:disabled { cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-header { min-height: var(--control-sm); padding: 0 var(--s-4); background: transparent; }
.btn-header:hover { background: var(--ink); color: var(--white); }

/* Loading line: one idiom for every wait on the page. */
.btn-line { position: absolute; left: 0; right: 0; bottom: 0; display: none; overflow: hidden; height: var(--s-1); }
.btn-line::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: currentColor;
  animation: sweep 1100ms var(--ease) infinite;
}
.btn[aria-busy="true"] .btn-line { display: block; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.text-link {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: var(--line); text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-thickness: var(--line-bold); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 var(--line) 0 var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: var(--logo-h); width: auto; }
.site-nav ul { display: flex; gap: var(--s-6); }
.site-nav { margin-right: var(--s-3); }
.site-nav a {
  display: inline-block; padding: var(--s-2) 0;
  font-size: var(--fs-ui); font-weight: 500; text-decoration: none;
  border-bottom: var(--line-bold) solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.menu-toggle {
  display: none; align-items: center; min-height: var(--control-sm); padding: 0 var(--s-3);
  background: transparent; border: 0; color: var(--ink);
  font: inherit; font-size: var(--fs-ui); font-weight: 600; cursor: pointer;
}
@media (max-width: 55.99rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--white);
    padding: var(--s-2) var(--margin) var(--s-5);
    box-shadow: 0 var(--line) 0 var(--hairline);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: var(--s-3) 0; font-size: var(--fs-lead); border-bottom: 0; }
  .site-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
}

/* ---------- hero ---------- */
.hero { padding-top: var(--s-6); padding-bottom: var(--section-y); }
.hero-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.hero-side { display: grid; gap: var(--s-5); align-content: start; }
.hero-side .lead { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.proof { font-size: var(--fs-small); font-weight: 600; }
@media (min-width: 64rem) {
  .hero { padding-top: var(--s-7); }
  .hero-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .hero-head h1 { grid-column: 1 / span 8; }
  .hero-side { grid-column: 9 / span 4; }
}

/* ---------- demo video ---------- */
.demo-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1920 / 1012;             /* the recording, with the top 68 px (title bar, tab row) cropped */
  background: var(--ink); border: var(--line) solid var(--ink);
}
.demo video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.demo-start {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: var(--control-h); padding: 0 var(--s-4);
  background: var(--ink); color: var(--white); border: 0; border-radius: 0;
  font: inherit; font-size: var(--fs-ui); font-weight: 600; cursor: pointer;
}
.demo-start:hover { background: var(--white); color: var(--ink); }
.demo-start:focus-visible { outline-color: var(--white); outline-offset: calc(-1 * var(--s-2)); }
.demo:not([data-state="idle"]) .demo-start { display: none; }
@media (max-width: 39.99rem) {
  /* Small screens: the play square alone, so it does not cover the recording. */
  .demo-start { width: var(--control-h); padding: 0; justify-content: center; }
  .demo-start span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 48rem) { .demo-start { left: var(--s-5); bottom: var(--s-5); min-height: 3.5rem; padding: 0 var(--s-5); } }

.glyph { display: inline-block; width: var(--glyph-w); height: var(--glyph-h); flex: none; }
.glyph-play { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.glyph-pause { border-inline: var(--glyph-bar) solid currentColor; background: transparent; clip-path: none; }

.demo-line { position: absolute; left: 0; right: 0; bottom: 0; height: var(--s-1); display: none; overflow: hidden; background: var(--tint); }
.demo-line span { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--ink); animation: sweep 1300ms var(--ease) infinite; }
.demo[data-state="loading"] .demo-line { display: block; }

.demo-controls { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.demo-play {
  display: grid; place-items: center; flex: none;
  width: var(--control-h); height: var(--control-h);
  background: var(--ink); color: var(--white); border: var(--line) solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.demo-play:hover { background: var(--white); color: var(--ink); }
.scrub { position: relative; flex: 1; height: var(--control-h); }
.scrub-line {
  position: absolute; left: 0; right: 0; top: 50%; height: var(--line-bold);
  background: var(--hairline); transform: translateY(-50%);
}
.scrub-fill { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--ink); }
.scrub-thumb {
  position: absolute; top: 50%; left: calc(var(--p) * 100%);
  width: var(--s-3); height: var(--s-3); background: var(--ink);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity var(--dur-1) ease;
}
.scrub:hover .scrub-thumb, .scrub:focus-within .scrub-thumb { opacity: 1; }
.scrub-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scrub:has(.scrub-input:focus-visible) { outline: var(--line-bold) solid var(--ink); outline-offset: var(--s-1); }
.demo-time { flex: none; min-width: var(--time-w); text-align: right; font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.demo-cap {
  display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3);
  font-size: var(--fs-small); color: var(--grey);
}

/* ---------- problem ---------- */
.figures { display: grid; gap: var(--s-6); }
.figure-row { display: grid; gap: var(--s-2); }
.figure-row dt {
  font-size: var(--fs-num); font-weight: 700; line-height: 0.9; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}
.figure-row:nth-child(1) dt { margin-left: -0.09em; }
.figure-row:nth-child(2) dt { margin-left: -0.05em; }
.figure-row:nth-child(3) dt { margin-left: -0.035em; }
.figure-row dd { max-width: 34ch; }
.pipe { margin-top: var(--s-7); max-width: var(--pipe-max); }
.pipe img { width: 100%; }
.pipe figcaption, .award figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--grey); }
.closing { margin-top: var(--s-7); font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; max-width: 34ch; text-wrap: balance; }
@media (min-width: 48rem) {
  .figure-row { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); align-items: center; column-gap: var(--gutter); }
}
@media (min-width: 64rem) {
  #problem .col-head { grid-column: 1 / span 9; }
  .figures { grid-column: 1 / span 7; grid-row: 2; }
  .pipe { grid-column: 9 / span 4; grid-row: 2 / span 2; margin-top: 0; max-width: none; }
  .closing { grid-column: 1 / span 7; grid-row: 3; }
}

/* ---------- how it works ---------- */
.steps { display: grid; gap: var(--s-8) var(--gutter); margin-top: var(--s-7); }
.step img { width: 100%; background: var(--white); border: var(--line) solid var(--hairline); margin-bottom: var(--s-4); }
.step .h3 { margin-bottom: var(--s-2); }
.step > p, .step-fix-copy > p { max-width: 36ch; }
.step-fix { display: grid; gap: var(--s-8) var(--gutter); }
.inside { margin-top: var(--s-8); font-size: var(--fs-lead); font-weight: 600; }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-fix { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- resolve demo (replica of the product dialog) ---------- */
.resolver { container-type: inline-size; max-width: var(--dialog-max); }
@media (min-width: 64rem) { .resolver { max-width: none; } }
.resolver-label { font-size: var(--fs-small); font-weight: 500; color: var(--grey); margin-bottom: var(--s-3); }
.dialog { background: var(--white); border: var(--line) solid var(--ink); }
.dialog-bar { background: var(--ink); color: var(--white); padding: var(--s-3) var(--s-4); font-size: var(--fs-small); font-weight: 600; }
.dialog-body { display: grid; gap: var(--s-5); padding: var(--s-5) var(--s-4); }
.spec { display: grid; gap: var(--s-3); }
.spec > div { display: grid; gap: var(--s-1); }
.spec dt { font-size: var(--fs-small); font-weight: 500; color: var(--grey); }
.spec dd { font-size: var(--fs-ui); }
.schematic { width: 100%; max-width: var(--schematic-w); height: auto; overflow: visible; }
.schematic .sq { fill: var(--ink); }
.schematic .sq-label { fill: var(--white); font-family: var(--font-sans); font-size: 10px; font-weight: 600; }
.schematic .overlap { fill: var(--yellow); }
.schematic .move { transition: transform var(--dur-3) var(--ease); }
.resolver[data-state="resolved"] .schematic .move { transform: translateY(-34px); }
.dialog-foot { display: flex; align-items: center; min-height: var(--dialog-foot-h); padding: var(--s-4); border-top: var(--line) solid var(--hairline); }
.dialog-actions { display: flex; gap: var(--s-3); }
.dialog-actions .btn { min-width: var(--btn-min-w); }
.dialog-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); width: 100%; }
.dialog-result[hidden], .dialog-actions[hidden] { display: none; }
.result-text { font-weight: 600; }
@container (min-width: 30rem) {
  .dialog-body { grid-template-columns: minmax(0, 1fr) var(--schematic-w); align-items: start; padding: var(--s-5); }
  .spec > div { grid-template-columns: var(--spec-label-w) minmax(0, 1fr); align-items: baseline; column-gap: var(--s-3); }
  .dialog-foot { padding: var(--s-4) var(--s-5); }
}

/* ---------- benchmark ---------- */
.chart + .chart { margin-top: var(--s-8); }
.chart-title { margin-bottom: var(--s-5); }
.bars { display: grid; gap: var(--s-5); }
.bar-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label value" "track track";
  align-items: baseline; gap: var(--s-2) var(--s-4);
}
.bar-label { grid-area: label; font-weight: 600; }
.bar-track { grid-area: track; position: relative; height: var(--s-6); background: var(--tint); }
.bar { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); }
.bar-grey { background: var(--grey); }
.bar-ink { background: var(--ink); }
.bar-value { grid-area: value; font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; text-align: right; }
.bar-count { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--grey); line-height: 1.3; }
.dim {
  position: absolute; top: 50%; left: calc(var(--v) * 100%);
  width: calc((var(--ref) - var(--v)) * 100%); height: 0;
  border-top: var(--line) solid var(--ink);
}
.dim::before, .dim::after { content: ""; position: absolute; top: calc(-1 * var(--s-2)); height: var(--s-4); width: var(--line); background: var(--ink); }
.dim::before { left: 0; }
.dim::after { right: 0; }
.dim-text {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--tint); padding: 0 var(--s-2); font-size: var(--fs-small); font-weight: 600; line-height: 1.3;
}
@media (min-width: 48rem) {
  .bar-row {
    grid-template-columns: var(--chart-label-w) minmax(0, 1fr) var(--chart-value-w);
    grid-template-areas: "label track value";
    align-items: center; column-gap: var(--s-5);
  }
  .bar-value { text-align: left; }
  /* extension line from the end of the dimension up to the Navisworks bar */
  .dim::after { top: calc(-1 * (var(--s-5) + var(--s-6) / 2)); height: calc(var(--s-5) + var(--s-6) / 2 + var(--s-2)); }
}
.js .bar { transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-3) var(--ease); }
.js .bar-row:nth-child(2) .bar { transition-delay: 90ms; }
.js .bar-row:nth-child(3) .bar { transition-delay: 180ms; }
.js .dim { opacity: 0; transition: opacity var(--dur-2) ease 900ms; }
.js .chart.is-in .bar { transform: none; }
.js .chart.is-in .dim { opacity: 1; }

/* ---------- local rules ---------- */
.points { display: grid; gap: var(--s-5) var(--gutter); }
.points li { font-size: var(--fs-lead); line-height: 1.4; max-width: 24ch; text-wrap: balance; }
.points strong { display: block; font-weight: 700; }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.table-title { margin-top: var(--s-8); margin-bottom: var(--s-4); }
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink) var(--tint); }
.rules { width: 100%; min-width: var(--table-min); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rules th {
  text-align: left; font-size: var(--fs-small); font-weight: 600;
  padding: var(--s-2) var(--s-4) var(--s-2) 0; border-bottom: var(--line-bold) solid var(--ink);
}
.rules td { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: var(--line) solid var(--hairline); vertical-align: baseline; }
.rules td:first-child { white-space: nowrap; }
@media (max-width: 39.99rem) {
  /* Let the Type column wrap so the third column peeks in and shows the table scrolls. */
  .rules td:first-child { white-space: normal; }
  .rules th:first-child, .rules td:first-child { width: var(--portrait-s); }
  .rules { min-width: var(--table-min-sm); }
}

/* ---------- roles ---------- */
.roles { display: grid; gap: var(--s-8) var(--gutter); }
.role dl { display: grid; gap: var(--s-5); margin-top: var(--s-4); }
.role dt { font-size: var(--fs-small); font-weight: 700; margin-bottom: var(--s-1); }
.role dd { max-width: 40ch; }
.role dl > div:first-child dd { color: var(--grey); }
@media (min-width: 48rem) { .role dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); } }
@media (min-width: 64rem) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role dl { grid-template-columns: 1fr; }
}

/* ---------- pricing ---------- */
.tiers { display: grid; gap: var(--gutter); }
.tier { font-variant-numeric: tabular-nums; display: grid; align-content: start; gap: var(--s-1); padding: var(--s-5); background: var(--white); border: var(--line) solid var(--ink); }
.tier-users { color: var(--grey); }
.tier-price { display: grid; gap: var(--s-2); margin-top: var(--s-7); }
.price { font-size: var(--fs-price); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.per { font-size: var(--fs-small); color: var(--grey); }
.pricing-close { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); margin-top: var(--s-7); }
@media (min-width: 40rem) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- team ---------- */
.award { max-width: 34rem; }
.award-link { display: block; border: var(--line) solid var(--ink); }
.award-link:hover { border-color: var(--ink); box-shadow: 0 0 0 var(--line) var(--ink); }
.award img { display: block; width: 100%; height: auto; }
.people { display: grid; gap: var(--s-6) var(--gutter); margin-top: var(--s-8); }
.person { display: grid; grid-template-columns: var(--portrait-s) minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.person img { max-width: 100%; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person-role { margin-top: var(--s-1); }
.person-field { color: var(--grey); }
@media (min-width: 48rem) {
  .person { grid-template-columns: var(--portrait-m) minmax(0, 1fr); gap: var(--s-5); }
}
@media (min-width: 64rem) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person { grid-template-columns: 1fr; align-items: start; gap: var(--s-4); }
  .person img { max-width: var(--portrait-l); }
}

/* ---------- join the beta ---------- */
.join { display: grid; gap: var(--s-7); }
.join-copy .lead { margin-top: var(--s-5); color: var(--on-ink-dim); }
form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
label { font-size: var(--fs-small); font-weight: 600; }
input, select {
  width: 100%; height: var(--control-h); padding: 0 var(--s-4);
  background: transparent; color: var(--white);
  border: var(--line) solid var(--on-ink-line); border-radius: 0;
  font: inherit; font-size: var(--fs-ui);
}
input:focus-visible, select:focus-visible { outline: var(--line-bold) solid var(--white); outline-offset: var(--s-1); border-color: var(--white); }
input[aria-invalid="true"] { border-color: var(--white); box-shadow: inset 0 0 0 var(--line) var(--white); }
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 100px var(--ink) inset;
  caret-color: var(--white);
}
.section-ink { caret-color: var(--white); }
.section-ink ::selection { background: var(--white); color: var(--ink); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: var(--s-7); cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: var(--s-4); top: 50%; width: var(--caret-w); height: var(--caret-h);
  background: var(--white); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateY(-50%); pointer-events: none;
}
option { background: var(--white); color: var(--ink); }
.error, .form-message {
  background: var(--white); color: var(--ink);
  padding: var(--s-2) var(--s-3); font-size: var(--fs-small); font-weight: 600; justify-self: start;
}
.error[hidden], .form-message[hidden], .success[hidden], form[hidden] { display: none; }
.btn-submit { justify-self: start; min-width: var(--submit-min-w); border-color: var(--yellow); }
.success { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; max-width: 28ch; overflow-wrap: anywhere; }
@media (min-width: 64rem) {
  .join { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .join-copy { grid-column: 1 / span 6; }
  .join-form { grid-column: 8 / span 5; }
}
@media (max-width: 39.99rem) { .btn-submit { justify-self: stretch; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-bottom: var(--s-8); }
.footer-inner { display: grid; gap: var(--s-6); align-items: center; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.footer-inner nav a { font-size: var(--fs-ui); color: var(--on-ink-dim); text-decoration: none; }
.footer-inner nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.3em; }
.copyright { font-size: var(--fs-small); color: var(--on-ink-dim); }
@media (min-width: 64rem) {
  .footer-inner { grid-template-columns: auto 1fr auto; column-gap: var(--s-8); }
  .footer-inner .brand { margin-right: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .btn-line::after, .demo-line span { animation: none; width: 100%; }
  .js .bar { transform: none; }
  .js .dim { opacity: 1; }
}
