/*
  second in command (sic), landing page.
  Two materials from the newcommerce brand: the cream desk and the ink slab. Lime is a fill with
  ink text, or a signal on ink; it never sits as text on cream (under 3:1).
*/

:root {
  --cream: #f2efe0;
  --paper: #faf8ee;
  --ink: #0b0b0b;
  --ink-2: #161614;
  --lime: #c2ff4a;
  --lime-deep: #a6e82c;
  --mute: #6b6a60;
  --slab-copy: #a8a79c;
  --slab-dim: #8a897f;
  --hair: rgb(11 11 11 / 12%);
  --hair-strong: rgb(11 11 11 / 22%);
  --hair-ink: rgb(255 255 255 / 9%);
  --alert: #ff7a59;
  --error: #b42318;

  --sans: "Inter", var(--nc-font-sans, system-ui, sans-serif);
  --mono: "JetBrains Mono", var(--nc-font-mono, ui-monospace, monospace);

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 40px);
  --radius-slab: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-width: thin;
  scrollbar-color: rgb(11 11 11 / 25%) transparent;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}

::selection {
  background: rgb(11 11 11 / 15%);
  color: var(--ink);
}

.board ::selection,
.steps ::selection,
.close ::selection,
.plan--sic ::selection,
.trail ::selection,
.summary ::selection {
  background: rgb(194 255 74 / 35%);
  color: var(--ink);
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.board :focus-visible,
.steps :focus-visible,
.close :focus-visible,
.plan--sic :focus-visible,
.trail :focus-visible {
  outline-color: var(--lime);
}

.mono {
  font-family: var(--mono);
  font-feature-settings: normal;
}

.num {
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out,
    transform 160ms ease-out;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  height: 54px;
  padding: 0 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  background: var(--lime-deep);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

.btn--ink:hover {
  background: var(--lime);
  color: var(--ink);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.link-quiet {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.link-quiet:hover {
  text-decoration: underline;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.icon-btn:hover {
  background: rgb(255 255 255 / 16%);
}

.icon-btn--ink {
  background: rgb(11 11 11 / 6%);
  color: var(--ink);
}

.icon-btn--ink:hover {
  background: rgb(11 11 11 / 12%);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(242 239 224 / 92%);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out;
}

.top.is-scrolled {
  border-bottom-color: var(--hair);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  height: 68px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-left: -10px;
}

.top__product {
  padding-left: 14px;
  border-left: 1px solid var(--hair-strong);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.top__short {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--hair-strong);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.top__sic {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
}

.top__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.top__nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: rgb(11 11 11 / 78%);
  transition: color 160ms ease-out;
}

.top__nav a:hover {
  color: var(--ink);
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) var(--gut) clamp(32px, 4.5vh, 48px);
  display: grid;
}

.hero__copy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "title what"
    "title lead"
    "title actions"
    "title price";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero__title {
  grid-area: title;
  font-size: clamp(52px, 7.6vw, 96px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
  align-self: end;
}

.hero__what {
  grid-area: what;
  max-width: 22ch;
  margin-bottom: 14px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  grid-area: lead;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgb(11 11 11 / 82%);
}

.hero__actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: max-content;
  gap: 12px;
  margin-top: 24px;
}

.hero__price {
  grid-area: price;
  margin-top: 14px;
  font-size: 14px;
  color: var(--mute);
}

.hero__price .num {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- The control room ---------- */

.room {
  max-width: calc(var(--wrap) + 24px);
  margin: 0 auto;
  padding: 0 calc(var(--gut) - 12px);
}

.board {
  position: relative;
  padding: 18px 24px 16px;
  border-radius: var(--radius-slab);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 55% at 70% 35%, rgb(194 255 74 / 9%), transparent 70%),
    radial-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  background-position:
    0 0,
    12px 12px;
  color: #fff;
  overflow: hidden;
}

.board__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair-ink);
}

.board__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.board__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--slab-copy);
}

.tag {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--slab-copy);
}

.prompt {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
  width: 100%;
  justify-self: center;
  height: 46px;
  padding: 0 6px 0 16px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  background: rgb(255 255 255 / 5%);
  transition:
    border-color 200ms ease-out,
    background-color 200ms ease-out;
}

.prompt:focus-within {
  border-color: rgb(194 255 74 / 60%);
  background: rgb(255 255 255 / 7%);
}

.prompt.is-sent {
  animation: prompt-sent 500ms var(--ease-out);
}

@keyframes prompt-sent {
  30% {
    border-color: var(--lime);
    box-shadow: 0 0 0 4px rgb(194 255 74 / 16%);
  }
}

.prompt__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  caret-color: var(--lime);
}

.prompt__input::placeholder {
  color: var(--slab-dim);
}

.prompt__input:focus {
  outline: none;
}

.prompt__send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.prompt__send:hover {
  background: var(--lime-deep);
}

.prompt__send svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board__counts {
  display: flex;
  gap: 24px;
}

.board__counts div {
  display: grid;
  gap: 0;
  text-align: right;
}

.board__counts dt {
  font-size: 11px;
  color: var(--slab-copy);
  white-space: nowrap;
}

.board__counts dd {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.board__counts dd.is-bumped {
  animation: bump 700ms var(--ease-out);
}

@keyframes bump {
  0% {
    color: var(--lime);
    transform: translateY(-3px);
  }
  100% {
    color: #fff;
    transform: none;
  }
}

/* Grid: task column, the ten steps, the status column. */
.grid {
  --cols: minmax(210px, 1.3fr) minmax(0, 6.4fr) minmax(210px, 1.5fr);
}

.grid__head {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 20px;
  align-items: end;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--hair-ink);
}

.grid__cell {
  font-size: 11px;
  font-weight: 500;
  color: var(--slab-copy);
}

.grid__steps {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.grid__step {
  display: grid;
  gap: 1px;
  text-align: center;
  min-width: 0;
}

.grid__stepname {
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(255 255 255 / 88%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid__owner {
  font-size: 10px;
  color: var(--slab-dim);
  white-space: nowrap;
}

.grid__rows {
  transition: opacity 400ms ease-out;
}

.board.is-resetting .grid__rows {
  opacity: 0.35;
}

.row {
  border-bottom: 1px solid var(--hair-ink);
}

.row--new {
  animation: row-in 700ms var(--ease-out);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: rgb(194 255 74 / 10%);
  }
  to {
    opacity: 1;
    transform: none;
    background: transparent;
  }
}

.row__btn {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.row__btn:hover {
  background: rgb(255 255 255 / 4%);
}

.row__btn:focus-visible {
  outline-offset: -2px;
}

.row__task {
  display: grid;
  min-width: 0;
}

.row__id {
  font-size: 11px;
  color: var(--slab-dim);
}

.row__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.row__track {
  --step: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: center;
  height: 28px;
}

/* The rail under the dots, and its filled part up to the current step. */
.row__track::before,
.row__track::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: rgb(255 255 255 / 10%);
}

.row__track::after {
  background: rgb(255 255 255 / 45%);
  transform-origin: left center;
  transform: scaleX(calc(var(--step) / 9));
  transition: transform 900ms var(--ease-out);
}

.row__dot {
  justify-self: center;
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 24%);
  transition: background-color 400ms ease-out;
}

.row__dot.is-done {
  background: rgb(255 255 255 / 70%);
  box-shadow: none;
}

.row__puck {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 10%;
  height: 24px;
  padding: 0 3px;
  transform: translate(calc(var(--step) * 100%), -50%);
  transition: transform 900ms var(--ease-out);
}

.row--back .row__puck,
.row--back .row__track::after {
  transition-duration: 1400ms;
}

.row__label {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background-color 300ms ease-out,
    color 300ms ease-out,
    box-shadow 300ms ease-out;
}

.row[data-state="you"] .row__label {
  background: var(--ink);
  color: var(--lime);
  box-shadow: inset 0 0 0 1.5px var(--lime);
  overflow: visible;
}

.row[data-state="you"] .row__label::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px var(--lime);
  animation: ring 1800ms var(--ease-out) infinite;
}

@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.35, 1.6);
    opacity: 0;
  }
}

.row[data-state="fail"] .row__label,
.row[data-state="paused"] .row__label {
  background: var(--alert);
}

.row[data-state="rolled"] .row__label {
  background: var(--cream);
}

.row__status {
  display: grid;
  min-width: 0;
}

.row__who {
  font-size: 10.5px;
  color: var(--slab-dim);
}

.row__text {
  font-size: 13px;
  line-height: 1.35;
  color: rgb(255 255 255 / 86%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row[data-state="you"] .row__text {
  color: var(--lime);
}

.row[data-state="fail"] .row__text,
.row[data-state="paused"] .row__text {
  color: var(--alert);
}

.row__stepname {
  display: none;
}

.board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 0;
  font-size: 12px;
  color: var(--slab-dim);
}

.board__pause {
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: transparent;
  color: var(--slab-copy);
  font-size: 12px;
  cursor: pointer;
}

.board__pause:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 30%);
}

/* ---------- Shared section type ---------- */

.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2--on-ink {
  color: #fff;
}

.section-lead {
  max-width: 60ch;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: rgb(11 11 11 / 76%);
  text-wrap: pretty;
}

.section-lead--on-ink {
  color: var(--slab-copy);
}

/* ---------- Why ---------- */

.why {
  padding: clamp(96px, 12vw, 160px) var(--gut) clamp(64px, 8vw, 104px);
}

.why__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 64px;
}

.why__body {
  display: grid;
  gap: 18px;
  max-width: 54ch;
  font-size: 18px;
  color: rgb(11 11 11 / 80%);
  text-wrap: pretty;
}

.why__body p:last-child {
  color: var(--ink);
  font-weight: 600;
}

.lanes {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.lane {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.lane__name {
  font-size: 13px;
  font-weight: 600;
}

.lane__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

.lane__track li {
  display: flex;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}

.lane__track li + li::before {
  content: "";
  width: clamp(16px, 3vw, 44px);
  height: 1px;
  margin: 0 10px;
  background: var(--hair-strong);
}

.lane--old .lane__name {
  color: var(--mute);
}

.lane--old li {
  color: var(--mute);
}

.lane--new li {
  font-weight: 600;
}

.lane--new .lane__track li + li::before {
  background: var(--ink);
}

.lane--old .lane__track,
.lane--new .lane__track {
  padding: 14px 18px;
  border-radius: 14px;
}

.lane--old .lane__track {
  border: 1px dashed var(--hair-strong);
}

.lane--new .lane__track {
  background: var(--lime);
}

/* ---------- Compare ---------- */

.compare {
  padding: clamp(40px, 6vw, 72px) var(--gut) clamp(96px, 12vw, 152px);
}

.compare__inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.flow {
  display: grid;
  gap: 18px;
  margin: 56px 0 48px;
  padding: 28px 32px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--paper);
}

.flow__row {
  display: grid;
  grid-template-columns: 170px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
}

.flow__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.flow__row--sic .flow__label {
  color: var(--ink);
}

.flow__node {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.flow__node--live {
  background: var(--ink);
  color: var(--cream);
}

.flow__line {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0 -1px;
}

.flow__line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--ink);
}

.flow__line--straight::after {
  content: "hope";
  position: relative;
  padding: 0 10px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}

.flow__line--gated i {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.flow.is-in .flow__line--gated i {
  animation: gate-on 500ms var(--ease-out) both;
}

.flow.is-in .flow__line--gated i:nth-child(1) { animation-delay: 100ms; }
.flow.is-in .flow__line--gated i:nth-child(2) { animation-delay: 220ms; }
.flow.is-in .flow__line--gated i:nth-child(3) { animation-delay: 340ms; }
.flow.is-in .flow__line--gated i:nth-child(4) { animation-delay: 460ms; }
.flow.is-in .flow__line--gated i:nth-child(5) { animation-delay: 580ms; }
.flow.is-in .flow__line--gated i:nth-child(6) { animation-delay: 700ms; }
.flow.is-in .flow__line--gated i:nth-child(7) { animation-delay: 820ms; }
.flow.is-in .flow__line--gated i:nth-child(8) { animation-delay: 940ms; }
.flow.is-in .flow__line--gated i:nth-child(9) { animation-delay: 1060ms; }
.flow.is-in .flow__line--gated i:nth-child(10) { animation-delay: 1180ms; }

@keyframes gate-on {
  from {
    background: var(--paper);
    transform: scale(0.6);
  }
  to {
    background: var(--lime);
    transform: scale(1);
  }
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.ledger thead th {
  padding: 0 20px 14px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1.5px solid var(--ink);
}

.ledger thead th:nth-child(2) {
  color: var(--mute);
}

.ledger tbody th {
  width: 22%;
  padding: 18px 20px 18px 0;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}

.ledger td {
  padding: 18px 24px 18px 0;
  vertical-align: top;
  line-height: 1.45;
  text-wrap: pretty;
}

.ledger td:nth-of-type(1) {
  width: 36%;
  color: var(--mute);
}

.ledger td:nth-of-type(2) {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}

.ledger td:nth-of-type(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%230B0B0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--lime);
}

.ledger tbody tr {
  border-bottom: 1px solid var(--hair);
}

/* ---------- Ten steps ---------- */

.steps {
  max-width: calc(var(--wrap) + 24px);
  margin: 0 auto;
  padding: 0 calc(var(--gut) - 12px);
}

.steps__inner {
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-slab);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgb(194 255 74 / 8%), transparent 70%),
    radial-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  background-position:
    0 0,
    12px 12px;
  color: #fff;
}

.steps__head {
  margin-bottom: 48px;
}

.steplist {
  counter-reset: none;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.25fr) 110px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--hair-ink);
}

.step:last-child {
  border-bottom: 1px solid var(--hair-ink);
}

.step__n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
}

.step__name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.step__detail {
  max-width: 56ch;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--slab-copy);
}

.step__owner {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 16%);
  font-size: 11.5px;
  color: var(--slab-copy);
  white-space: nowrap;
}

.step:nth-child(2) .step__owner,
.step:nth-child(8) .step__owner,
.step:nth-child(10) .step__owner {
  border-color: var(--lime);
  color: var(--lime);
}

.step__sample {
  align-self: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
  font-size: 12px;
  line-height: 1.5;
  color: rgb(255 255 255 / 80%);
}

/* ---------- Agents ---------- */

.agents {
  padding: clamp(96px, 12vw, 152px) var(--gut) clamp(64px, 8vw, 104px);
}

.agents__inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: 56px;
}

.fact {
  padding: 26px 0 30px;
  border-top: 1.5px solid var(--ink);
}

.fact dt {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.fact dd {
  max-width: 48ch;
  margin-top: 8px;
  font-size: 16px;
  color: rgb(11 11 11 / 76%);
}

/* ---------- Pricing ---------- */

.pricing {
  padding: clamp(64px, 8vw, 104px) var(--gut);
}

.pricing__inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
  margin-top: 48px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-slab);
}

.plan--sic {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgb(194 255 74 / 13%), transparent 70%),
    radial-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  color: #fff;
}

.plan--addon {
  background: var(--paper);
  border: 1px solid var(--hair);
}

.plan__name {
  font-size: 16px;
  font-weight: 600;
}

.plan__price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.plan__price .num {
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan--addon .plan__price .num {
  font-size: clamp(40px, 4.4vw, 56px);
}

.plan__per {
  font-size: 16px;
  color: var(--slab-copy);
}

.plan--addon .plan__per {
  color: var(--mute);
}

.plan__line {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

.plan--addon .plan__line {
  font-weight: 500;
  font-size: 16px;
  color: rgb(11 11 11 / 76%);
}

.plan__list {
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.plan__list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%230B0B0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    var(--lime);
}

.plan--sic .plan__list {
  color: rgb(255 255 255 / 88%);
}

.plan--addon .plan__list li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23F2EFE0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    var(--ink);
}

.plan__trial {
  margin-top: auto;
  text-wrap: pretty;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slab-copy);
}

.plan__trial strong {
  color: #fff;
  font-weight: 600;
}

.plan__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--mute);
}

.plan__free {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--lime);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.plan__free strong {
  font-weight: 700;
}

/* ---------- Growth recipe ---------- */

.recipe {
  padding: clamp(64px, 8vw, 104px) var(--gut) clamp(96px, 12vw, 152px);
}

.recipe__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.recipe__copy .section-lead + .section-lead {
  margin-top: 12px;
}

.analysis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 12px;
  margin-top: 32px;
}

.analysis .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.field legend {
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease-out;
}

.field input::placeholder {
  color: #8a897f;
}

.field input:hover {
  border-color: rgb(11 11 11 / 40%);
}

.field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230B0B0B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      right 14px center / 16px no-repeat,
    var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  appearance: none;
  cursor: pointer;
}

.field select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out;
}

.choice:hover span {
  border-color: rgb(11 11 11 / 45%);
}

.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field__help {
  font-size: 13px;
  color: var(--mute);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.form-error {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--error);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--mute);
}

.analysis-done {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--lime);
  font-size: 15px;
}

.analysis-done:focus {
  outline: none;
}

.analysis-done__title {
  font-weight: 700;
  font-size: 17px;
}

.report {
  padding: 26px 28px 20px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow:
    0 1px 2px rgb(11 11 11 / 5%),
    0 24px 48px -24px rgb(11 11 11 / 22%);
  transform: rotate(0.6deg);
}

.report__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
}

.report__title {
  font-size: 15px;
  font-weight: 700;
}

.report__store {
  font-size: 12px;
  color: var(--mute);
}

.measure {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}

.measure__rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.measure--locked .measure__rank {
  background: var(--lime);
  border-color: var(--lime);
}

.measure__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.measure__why {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: rgb(11 11 11 / 74%);
}

.measure--locked .measure__name,
.measure--locked .measure__why {
  filter: blur(5px);
  user-select: none;
  opacity: 0.7;
}

.measure__lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 10px 5px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 500;
}

.measure__lock svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.measure__task {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mute);
}

.report__cap {
  padding-top: 14px;
  font-size: 12px;
  color: var(--mute);
}

/* ---------- FAQ ---------- */

.faq {
  padding: 0 var(--gut) clamp(96px, 12vw, 152px);
}

.faq__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
}

.faq__list {
  border-top: 1.5px solid var(--ink);
}

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

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.75px;
  background: var(--ink);
  transition: transform 240ms var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  max-width: 62ch;
  padding: 0 0 22px;
  font-size: 16px;
  color: rgb(11 11 11 / 78%);
}

/* ---------- Close ---------- */

.close {
  max-width: calc(var(--wrap) + 24px);
  margin: 0 auto;
  padding: 0 calc(var(--gut) - 12px) 12px;
}

.close__inner {
  display: grid;
  gap: 32px;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-slab);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 55% 70% at 50% 110%, rgb(194 255 74 / 16%), transparent 70%),
    radial-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  background-position:
    0 0,
    12px 12px;
  color: #fff;
}

.close__title {
  max-width: 14ch;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.close-prompt {
  display: flex;
  align-items: center;
  max-width: 720px;
  height: 64px;
  padding: 0 8px 0 22px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  background: rgb(255 255 255 / 6%);
  transition: border-color 200ms ease-out;
}

.close-prompt:focus-within {
  border-color: rgb(194 255 74 / 60%);
}

.close-prompt input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;
  caret-color: var(--lime);
}

.close-prompt input::placeholder {
  color: var(--slab-dim);
}

.close-prompt input:focus {
  outline: none;
}

.close-prompt .prompt__send {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.close-prompt .prompt__send:hover {
  background: rgb(255 255 255 / 22%);
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.close__price {
  font-size: 15px;
  color: var(--slab-copy);
}

.close__price .num {
  color: #fff;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.foot {
  padding: 36px var(--gut) 48px;
}

.foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  font-size: 13px;
  color: var(--mute);
}

.foot .nc-logo {
  padding: 0;
  cursor: default;
}

.foot__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.foot__nav a {
  color: var(--ink);
  text-decoration: none;
}

.foot__nav a:hover {
  text-decoration: underline;
}

/* ---------- Dialogs ---------- */

dialog {
  padding: 0;
  border: 0;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgb(11 11 11 / 62%);
  backdrop-filter: blur(3px);
}

dialog[open] {
  animation: dialog-in 320ms var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.trail {
  width: min(600px, calc(100vw - 32px));
  padding: 26px 28px 22px;
  border-radius: var(--radius-slab);
  background: var(--ink-2);
  color: #fff;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 60%);
  scrollbar-color: rgb(255 255 255 / 20%) transparent;
}

.trail__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.trail__id {
  font-size: 12px;
  color: var(--slab-dim);
}

.trail__title {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trail__now {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgb(194 255 74 / 10%);
  font-size: 14px;
  color: var(--lime);
}

.trail[data-state="fail"] .trail__now,
.trail[data-state="paused"] .trail__now {
  background: rgb(255 122 89 / 12%);
  color: var(--alert);
}

.trail[data-state="rolled"] .trail__now {
  background: rgb(242 239 224 / 10%);
  color: var(--cream);
}

.trail__steps {
  margin-top: 18px;
}

.tstep {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
}

.tstep:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 1.5px;
  background: rgb(255 255 255 / 12%);
}

.tstep.is-done:not(:last-child)::before {
  background: rgb(255 255 255 / 45%);
}

.tstep__mark {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 22%);
  background: var(--ink-2);
}

.tstep.is-done .tstep__mark {
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%230B0B0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    rgb(255 255 255 / 80%);
}

.tstep.is-current .tstep__mark {
  box-shadow: none;
  background: var(--lime);
  outline: 4px solid rgb(194 255 74 / 18%);
}

.tstep.is-current[data-state="fail"] .tstep__mark,
.tstep.is-current[data-state="paused"] .tstep__mark {
  background: var(--alert);
  outline-color: rgb(255 122 89 / 20%);
}

.tstep[data-mark="alert"] .tstep__mark {
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.5v5.5M10 14.2v.3' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--alert);
}

.tstep[data-mark="undo"] .tstep__mark {
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.5 7.5H12a3 3 0 0 1 0 6H8.5M7.5 7.5 9.8 5.2M7.5 7.5l2.3 2.3' fill='none' stroke='%230B0B0B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--cream);
}

.tstep[data-mark="retry"] .tstep__detail {
  color: rgb(255 255 255 / 80%);
}

.tstep__name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.tstep:not(.is-done):not(.is-current) .tstep__name {
  color: rgb(255 255 255 / 55%);
}

.tstep__owner {
  font-size: 11px;
  font-weight: 400;
  color: var(--slab-dim);
}

.tstep__detail {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slab-copy);
}

.tstep:not(.is-done):not(.is-current) .tstep__detail {
  color: var(--slab-dim);
}

.trail__note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--slab-dim);
}

/* Checkout */

.checkout {
  width: min(940px, calc(100vw - 32px));
  border-radius: var(--radius-slab);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 50%);
}

.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.checkout__form {
  display: grid;
  gap: 16px;
  padding: 30px 32px 28px;
}

.checkout__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.checkout__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.payment {
  min-height: 48px;
  padding: 0 14px;
  border: 1px dashed var(--hair-strong);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
}

.payment:has(iframe) {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.payment__placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mute);
}

.payment__placeholder svg {
  width: 22px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 160ms ease-out;
}

.check:hover {
  border-color: rgb(11 11 11 / 45%);
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check__box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background-color 160ms ease-out;
}

.check input:checked + .check__box {
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23C2FF4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--ink);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.check__text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
}

.check__price {
  color: var(--mute);
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px;
  background-color: var(--ink);
  background-image: radial-gradient(ellipse 80% 50% at 100% 0%, rgb(194 255 74 / 14%), transparent 70%);
  color: #fff;
}

.summary__plan {
  font-size: 15px;
  font-weight: 600;
}

.summary__rows {
  display: grid;
  gap: 0;
}

.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-ink);
  font-size: 14px;
}

.summary__rows dt {
  color: var(--slab-copy);
}

.summary__rows dd {
  text-align: right;
  font-weight: 600;
}

.summary__list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--slab-copy);
}

.summary__list li {
  position: relative;
  padding-left: 18px;
}

.summary__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.checkout:has(.checkout__done:not([hidden])) {
  width: min(560px, calc(100vw - 32px));
}

.checkout__done {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 44px 40px 40px;
  max-width: 560px;
}

.checkout__done:focus {
  outline: none;
}

.checkout__done .nc-logo {
  padding: 0;
  cursor: default;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .top__nav {
    gap: 18px;
  }
  .top__product {
    display: none;
  }
  .top__short {
    display: inline;
  }
  .board__counts dt {
    font-size: 10.5px;
  }
  .grid {
    --cols: minmax(180px, 1.2fr) minmax(0, 6fr) minmax(170px, 1.3fr);
  }
}

@media (max-width: 1023px) {
  .top__nav {
    display: none;
  }
  .top__actions {
    margin-left: auto;
  }
  .hero__copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "what"
      "lead"
      "actions"
      "price";
  }
  .hero__what {
    margin-top: 24px;
  }
  .hero__lead {
    font-size: 16px;
  }

  /* Under 1024px the board stops being a grid of ten columns: each task is a stacked row
     with its own ten-segment bar and the step named in words. */
  .board {
    padding: 16px 16px 14px;
  }
  .board__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "store counts"
      "prompt prompt";
    gap: 14px 16px;
  }
  .board__store {
    grid-area: store;
  }
  .board__counts {
    grid-area: counts;
    gap: 16px;
  }
  .prompt {
    grid-area: prompt;
    max-width: none;
  }
  .grid__head {
    display: none;
  }
  .row__btn {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "task"
      "track"
      "step"
      "status";
    gap: 6px;
    padding: 14px 4px;
  }
  .row__task {
    grid-area: task;
  }
  .row__title {
    white-space: normal;
  }
  .row__track {
    grid-area: track;
    height: 16px;
    margin: 4px 0 2px;
  }
  .row__track::before,
  .row__track::after {
    left: 0;
    right: 0;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
  }
  .row__track::after {
    transform: scaleX(calc(var(--step) / 10));
  }
  .row__dot {
    display: none;
  }
  .row__puck {
    height: 10px;
    padding: 0 1px;
  }
  .row__label {
    font-size: 0;
  }
  .row__stepname {
    grid-area: step;
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgb(255 255 255 / 88%);
  }
  .row__status {
    grid-area: status;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    align-items: baseline;
  }
  .board__foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 4px 0;
  }

  .why__inner,
  .recipe__inner,
  .faq__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .why__inner {
    row-gap: 24px;
  }
  .lanes {
    margin-top: 32px;
  }
  .flow__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .flow__label {
    grid-column: 1 / -1;
  }
  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "n main"
      ". owner"
      ". sample";
    gap: 10px 16px;
  }
  .step__n {
    grid-area: n;
  }
  .step__main {
    grid-area: main;
  }
  .step__owner {
    grid-area: owner;
  }
  .step__sample {
    grid-area: sample;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .top__inner {
    height: 60px;
    gap: 12px;
  }
  .top__actions .link-quiet {
    display: none;
  }
  .hero__actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .lane__track {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .lane__track li {
    flex-direction: column;
    align-items: flex-start;
  }
  .lane__track li + li::before {
    width: 1px;
    height: 14px;
    margin: 4px 0 4px 6px;
  }
  .board__counts div:first-child {
    display: none;
  }
  .flow {
    padding: 20px 16px;
  }
  .flow__node {
    padding: 0 10px;
    font-size: 12px;
  }
  .flow__line--gated i {
    width: 9px;
    height: 9px;
  }

  /* The ledger becomes one block per topic. */
  .ledger thead {
    display: none;
  }
  .ledger,
  .ledger tbody,
  .ledger tr,
  .ledger th,
  .ledger td {
    display: block;
    width: auto !important;
  }
  .ledger tbody tr {
    padding: 18px 0;
  }
  .ledger tbody th {
    padding: 0 0 8px;
  }
  .ledger td {
    padding: 0;
  }
  .ledger td:nth-of-type(1) {
    padding-bottom: 10px;
    font-size: 15px;
  }
  .ledger td:nth-of-type(1)::before {
    content: "On your own: ";
    font-weight: 600;
  }
  .ledger td:nth-of-type(2) {
    padding-left: 32px;
  }
  .ledger td:nth-of-type(2)::before {
    top: 1px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .analysis,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .analysis .btn {
    width: 100%;
  }
  .report {
    transform: none;
    padding: 20px 18px 16px;
  }
  .foot__nav {
    margin-left: 0;
  }
  .checkout {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }
  .checkout__form {
    padding: 24px 20px;
  }
  .summary {
    padding: 24px 20px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .row[data-state="you"] .row__label::after {
    display: none;
  }
}
