/* Earthlight ----------------------------------------------------------------
   The product page. Builds on styles.css: same tokens, same type. Here Sodium
   marks the moment an agent needs a human: the page, the failure signatures,
   and the actions that ask for yours. */

.es {
  --paged: 33.5%;           /* 02:21 on the night chart, 10% per hour from 23:00 */
  --found: 96.67%;          /* 08:40 */
  --ink: #5d574e;           /* Dust, darkened for the light panel: 6.3:1 on Regolith */
  --error: #8a3d0e;         /* Sodium, darkened for text on Regolith: 6.6:1 */
}

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

.es-hero {
  padding-block: clamp(2rem, 6cqw, 5rem) clamp(2.5rem, 5cqw, 4rem);
}

.es-trail {
  margin: 0 0 clamp(1.5rem, 3cqw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-stretch: 100%;
  color: var(--dust);
}

.es-trail a {
  text-decoration: underline;
  text-decoration-color: rgb(166 158 145 / 0.5);
  text-underline-offset: 0.2em;
}

.es-trail a:hover {
  color: var(--regolith);
}

/* The product lockup: a moon lit on its dark side, which is what earthlight is. */
.es-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1.25rem, 2.5cqw, 2rem);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1cqw, 2rem);
  font-weight: 640;
  line-height: 1;
}

.es-mark {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.es-mark-dark {
  fill: var(--regolith);
  fill-opacity: 0.2;
  stroke: var(--regolith);
  stroke-opacity: 0.45;
  stroke-width: 1.25;
}

.es-mark-lit {
  fill: var(--regolith);
}

.es-signup .es-mark-dark {
  fill: var(--basalt);
  stroke: var(--basalt);
}

.es-signup .es-mark-lit {
  fill: var(--basalt);
}

.es-mark-large {
  width: 3.5rem;
  height: 3.5rem;
}

.es-small {
  margin: -1rem 0 0;
  font-size: 0.9375rem;
  color: var(--dust);
}

.es-headline {
  font-size: clamp(3rem, 0.6rem + 7.4cqw, 9rem);
  line-height: 0.92;
  text-wrap: balance;
}

.es-headline span {
  display: block;
}

.es-lede {
  display: grid;
  justify-items: start;
  gap: 2.25rem;
  margin-top: clamp(1.75rem, 3cqw, 2.75rem);
}

.es-lede .intro {
  margin: 0;
}

.es-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.button-line {
  background: none;
  color: var(--regolith);
  box-shadow: inset 0 0 0 1px rgb(236 229 216 / 0.4);
  transition: box-shadow 150ms ease, translate 150ms ease;
}

.button-line:hover {
  background: none;
  box-shadow: inset 0 0 0 1px var(--regolith);
}

/* The night chart ----------------------------------------------------------- */

.es-night {
  padding-bottom: clamp(4rem, 9cqw, 8rem);
}

.es-night-title {
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--dust);
}

.nc {
  margin: 0;
}

.nc-notes {
  display: grid;
  grid-template-columns: var(--paged) minmax(0, 1fr) minmax(0, 17rem) calc(100% - var(--found));
  align-items: end;
}

.nc-note {
  margin: 0;
  padding: 0 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--dust);
  text-wrap: pretty;
}

.nc-note strong {
  display: block;
  font-weight: 500;
  color: var(--regolith);
}

.nc-note-paged {
  grid-column: 2;
  max-width: 26rem;
  border-left: 1.5px solid var(--sodium);
}

.nc-note-paged strong {
  color: var(--sodium);
}

.nc-note-found {
  grid-column: 3;
  text-align: right;
  border-right: 1px dashed var(--dust);
}

.nc-plot {
  position: relative;
  height: clamp(250px, 26cqw, 380px);
}

.nc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The page marks sit above the lane tags: the flag is the nearest layer. */
.nc-svg-marks,
.nc-dot {
  z-index: 1;
}

.nc-svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.nc-grid { stroke: var(--regolith); stroke-opacity: 0.06; stroke-width: 1px; }
.nc-base { stroke: var(--regolith); stroke-opacity: 0.12; stroke-width: 1px; }
.nc-process { stroke: var(--regolith); stroke-opacity: 0.85; stroke-width: 1.5px; }
.nc-beat { stroke: var(--regolith); stroke-opacity: 0.85; stroke-width: 1.25px; stroke-linejoin: round; }
.nc-bars { stroke: var(--regolith); stroke-opacity: 0.7; stroke-width: 3px; }
.nc-errors { stroke: var(--dust); stroke-width: 1px; }
.nc-svg .nc-gap { fill: url(#nc-hatch); }
.nc-hatch-line { stroke: var(--dust); stroke-opacity: 0.35; stroke-width: 1px; }
.nc-found { stroke: var(--dust); stroke-width: 1px; stroke-dasharray: 4 4; }
.nc-flag { stroke: var(--sodium); stroke-width: 1.5px; }

/* Lane labels sit on the lines, like tags on a chart recorder. */
.nc-lane {
  position: absolute;
  left: 0;
  margin: 0;
  padding: 0.125rem 0.625rem 0.125rem 0;
  background: var(--basalt);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-stretch: 100%;
  line-height: 1.3;
  color: var(--dust);
}

.nc-lane-process { top: calc(14.67% - 1.75rem); }
.nc-lane-beat { top: calc(34% - 1.75rem); }
.nc-lane-done { top: calc(61% - 1.75rem); }

.nc-gap-label {
  position: absolute;
  top: 66%;
  left: var(--paged);
  right: calc(100% - var(--found));
  display: flex;
  justify-content: center;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-stretch: 100%;
  line-height: 1.3;
  text-align: center;
}

.nc-gap-label span {
  padding: 0.375rem 0.75rem;
  background: var(--basalt);
  color: var(--regolith);
}

.nc-dot {
  position: absolute;
  top: 0;
  left: var(--paged);
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--sodium);
}

.nc-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--sodium);
  border-radius: 50%;
  opacity: 0;
}

.nc-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  margin-top: 0.625rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-stretch: 100%;
  color: var(--dust);
}

.nc-axis span:not(:first-child) {
  translate: -50% 0;
  justify-self: start;
}

.nc-axis span:last-child {
  position: absolute;
  right: 0;
  translate: none;
}

.nc figcaption {
  max-width: 62ch;
  margin-top: 1.75rem;
  color: var(--dust);
  text-wrap: pretty;
}

/* Sections ------------------------------------------------------------------ */

.es-section {
  padding-block: clamp(3.5rem, 8cqw, 7rem);
  border-top: 1px solid var(--hairline);
}

.es-section-head {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 5cqw, 4rem);
}

.es-section-head p {
  max-width: 52ch;
  margin: 0;
  font-size: 1.1875rem;
  color: var(--dust);
  text-wrap: pretty;
}

.es-h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 1rem + 3.2cqw, 3.75rem);
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.3;
}

/* Five states: one row each, the failure's signature on the left. */

.states {
  border-top: 1px solid var(--hairline);
}

.state {
  display: grid;
  grid-template-columns: 9rem minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  gap: 0.5rem clamp(1.5rem, 4cqw, 4rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--hairline);
}

.state-glyph {
  grid-row: 1 / 3;
  width: 100%;
  height: auto;
  overflow: visible;
}

.state-glyph path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-line { stroke: var(--regolith); stroke-width: 1.5px; }
.g-dim { stroke: var(--dust); stroke-width: 1.25px; }
.g-base { stroke: var(--regolith); stroke-opacity: 0.16; stroke-width: 1px; }
.g-thresh { stroke: var(--dust); stroke-opacity: 0.7; stroke-width: 1px; stroke-dasharray: 3 4; }
.g-hot { stroke: var(--sodium); stroke-width: 2px; }

.state h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.2cqw, 2rem);
  font-weight: 640;
  line-height: 1.05;
}

.state-what {
  grid-column: 2;
  margin: 0;
  max-width: 36ch;
  color: var(--regolith);
  text-wrap: pretty;
}

.state dl {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 2rem;
  margin: 0;
  align-content: start;
}

.state dt {
  grid-row: 1;
  margin-bottom: 0.375rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-stretch: 100%;
  color: var(--dust);
}

.state dd {
  grid-row: 2;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--dust);
  text-wrap: pretty;
}

.state dd:first-of-type {
  color: var(--regolith);
}

/* How it works. The steps really are a sequence, so they're numbered. */

.how {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6cqw, 6rem);
  align-items: start;
}

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

.how-steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 1.5px solid var(--regolith);
}

.how-steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-stretch: 100%;
  color: var(--dust);
}

.how-steps p,
.never p {
  margin: 0.625rem 0 0;
  color: var(--dust);
  text-wrap: pretty;
}

.never {
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px dashed rgb(166 158 145 / 0.6);
  border-radius: 20px;
}

.never ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.never li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.75rem;
  border-bottom: 1px solid var(--hairline);
}

/* A struck-through port: the thing it never opens. */
.never li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 1.1rem;
  width: 0.875rem;
  height: 1.5px;
  background: var(--dust);
  rotate: -45deg;
}

.never li::after {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: calc(1.1rem - 0.4375rem + 0.75px);
  width: 0.875rem;
  height: 0.875rem;
  border: 1.5px solid var(--dust);
  border-radius: 50%;
  box-sizing: border-box;
}

/* Example messages ------------------------------------------------------- */

.slips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3cqw, 2.5rem);
  max-width: 64rem;
}

.slip {
  padding: 1.5rem 1.625rem 1.75rem;
  border: 1px solid var(--hairline);
  border-radius: 22px 22px 22px 6px;
  background: #221f1c;
}

.slip-alert {
  border-color: rgb(217 138 67 / 0.55);
  box-shadow: inset 3px 0 0 var(--sodium);
}

.slip p {
  margin: 0;
  color: var(--dust);
  text-wrap: pretty;
}

.slip-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem !important;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-stretch: 100%;
}

.slip-alert .slip-meta span {
  color: var(--sodium);
}

.slip .slip-title {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--regolith);
}

.slip code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-stretch: 100%;
  color: var(--regolith);
}

/* Signup: the one light panel on the site, so the ask can't be missed. ---- */

.es-signup {
  padding-block: clamp(4rem, 9cqw, 8rem);
  background: var(--regolith);
  color: var(--basalt);
  scroll-margin-top: 0;
}

.es-signup ::selection {
  background: var(--basalt);
  color: var(--regolith);
}

.es-signup :focus-visible {
  outline-color: var(--basalt);
}

.es-signup-head {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
}

.es-signup-head p {
  max-width: 48ch;
  margin: 0;
  font-size: 1.1875rem;
  color: var(--ink);
  text-wrap: pretty;
}

.signup fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Monthly or yearly: a two-way switch that reprices the plans below. */
.billing {
  display: inline-flex !important;
  margin-top: clamp(2rem, 4cqw, 3rem) !important;
  padding: 4px !important;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(27 26 24 / 0.3);
}

.billing label {
  position: relative;
  cursor: pointer;
}

.billing input,
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.billing span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.125rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.billing input:checked + span {
  background: var(--basalt);
  color: var(--regolith);
}

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

/* Three plans. Plus is the one we'd pick for you: set in the page's own dark,
   raised above its neighbours, and chosen before anyone touches the form. */

.tiers {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(0.75rem, 1.5cqw, 1.25rem);
  margin-top: 1.5rem !important;
  scroll-margin-top: 2rem;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem clamp(1.25rem, 2cqw, 1.75rem) 2rem;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgb(27 26 24 / 0.18);
  transition: box-shadow 150ms ease;
}

.tier:hover {
  box-shadow: inset 0 0 0 1px rgb(27 26 24 / 0.5);
}

.tier:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--basalt);
}

.tier:has(input:focus-visible) {
  outline: 2px solid var(--basalt);
  outline-offset: 3px;
}

.tier-plus {
  margin-block: -1rem;
  padding-top: 2.75rem;
  padding-bottom: 3rem;
  background: var(--basalt);
  color: var(--regolith);
  box-shadow: none;
}

.tier-plus:hover {
  box-shadow: inset 0 0 0 1px rgb(236 229 216 / 0.3);
}

.tier-plus:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--sodium);
}

.tier input {
  appearance: none;
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.tier-plus input {
  top: 2.75rem;
}

.tier input:checked {
  border-color: var(--sodium);
  background: radial-gradient(circle, var(--basalt) 0 4px, var(--sodium) 4.5px);
  opacity: 1;
}

/* The plan name is the label; stretched over the card, so the whole card picks it. */
.tier-name {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 640;
  line-height: 1;
  cursor: pointer;
}

.tier-name::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tier-tag {
  position: absolute;
  top: -0.875rem;
  left: clamp(1.25rem, 2cqw, 1.75rem);
  margin: 0;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: var(--sodium);
  color: var(--basalt);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.tier-price {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  color: var(--ink);
}

.tier-plus .tier-price,
.tier-plus .tier-for,
.tier.tier-plus li {
  color: var(--dust);
}

.tier-price .amount {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--basalt);
}

.tier-plus .tier-price .amount {
  color: var(--regolith);
}

.tier-note {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
}

.per-month {
  display: none;
}

.signup:has(input[name="billing"][value="monthly"]:checked) .per-month {
  display: inline;
}

.signup:has(input[name="billing"][value="monthly"]:checked) .per-year {
  display: none;
}

.tier-for {
  margin: 1rem 0 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(27 26 24 / 0.14);
  color: var(--ink);
  text-wrap: pretty;
}

.tier-plus .tier-for {
  border-bottom-color: var(--hairline);
}

.tier ul {
  display: grid;
  gap: 0.625rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.tier li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  text-wrap: pretty;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.4em;
  width: 0.6875rem;
  height: 0.375rem;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: -45deg;
}

.tier-plus li::before {
  border-color: var(--sodium);
}

.tier li.tier-inherit,
.tier.tier-plus li.tier-inherit {
  padding-left: 0;
  font-weight: 500;
  color: inherit;
}

.tier li.tier-inherit::before {
  content: none;
}

/* Runtimes and the email address. */

.signup-details {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem clamp(2rem, 5cqw, 5rem);
  margin-top: clamp(3rem, 6cqw, 4.5rem);
  padding-top: 2rem;
  border-top: 1.5px solid var(--basalt);
}

.runtimes legend,
.account-label {
  display: block;
  margin-bottom: 1rem;
  padding: 0;
  font-weight: 500;
  font-size: 1.1875rem;
}

.runtimes legend span {
  margin-left: 0.5rem;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

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

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.125rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(27 26 24 / 0.3);
  font-size: 1rem;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.chip span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.chip:hover span {
  box-shadow: inset 0 0 0 1px var(--basalt);
}

.chip input:checked + span {
  background: var(--basalt);
  color: var(--regolith);
}

.chip input:checked + span::before {
  background: var(--sodium);
  box-shadow: none;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--basalt);
  outline-offset: 3px;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 52px;
  padding: 0 1.375rem;
  border: 1.5px solid var(--basalt);
  border-radius: 999px;
  background: #f6f2ea;
  color: var(--basalt);
  font: inherit;
  font-size: 1.0625rem;
}

.account-input::placeholder {
  color: #8a8377;
}

.account-input:focus-visible {
  outline: 2px solid var(--basalt);
  outline-offset: 3px;
}

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

.account-row .button {
  flex: 0 0 auto;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.account-row .button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.signup-status {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--error);
}

.signup-fine {
  max-width: 52ch;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink);
  text-wrap: pretty;
}

.signup-fine a {
  color: inherit;
  text-underline-offset: 0.2em;
}

/* The field bots fill in and people never see. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-done {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  max-width: 44rem;
  margin-top: clamp(2.5rem, 5cqw, 4rem);
}

.signup-done[hidden] {
  display: none;
}

.signup-done p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink);
  text-wrap: pretty;
}

.signup-done strong {
  font-weight: 500;
  color: var(--basalt);
  overflow-wrap: anywhere;
}

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

/* Smaller screens --------------------------------------------------------- */

@media (max-width: 1023px) {
  .how,
  .signup-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiers {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    gap: 1.25rem;
  }

  .tier-plus {
    order: -1;
    margin-block: 1rem 0;
  }

  .state {
    grid-template-columns: 7rem minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .state-glyph {
    grid-row: 1 / 3;
  }

  .state dl {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 1rem;
  }

}

@media (max-width: 719px) {
  .nc-notes {
    grid-template-columns: var(--paged) minmax(0, 1fr) calc(100% - var(--found));
  }

  .nc-note-found {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 1rem;
  }

  .nc-note-paged {
    grid-column: 2;
    grid-row: 2;
    border-right: 1px dashed var(--dust);
  }

  .nc-gap-label {
    left: calc(var(--paged) + 0.5rem);
    right: calc(100% - var(--found) + 0.5rem);
    top: 64%;
  }

  .nc-axis span:nth-child(even) {
    visibility: hidden;
  }

  .how-steps {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .state-glyph {
    grid-row: auto;
    width: 7.5rem;
    margin-bottom: 0.5rem;
  }

  .state-what {
    grid-column: 1;
  }

  .state dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .state dt,
  .state dd {
    grid-row: auto;
  }

  .state dd {
    margin-bottom: 1rem;
  }

  .es-lede {
    justify-items: stretch;
  }

  .es-actions .button,
  .account-row .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* The product lockup: a moon lit on its dark side, which is what earthlight is. */
.es-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1.25rem, 2.5cqw, 2rem);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1cqw, 2rem);
  font-weight: 640;
  line-height: 1;
}

.es-mark {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.es-mark-dark {
  fill: var(--regolith);
  fill-opacity: 0.2;
  stroke: var(--regolith);
  stroke-opacity: 0.45;
  stroke-width: 1.25;
}

.es-mark-lit {
  fill: var(--regolith);
}

.es-signup .es-mark-dark {
  fill: var(--basalt);
  stroke: var(--basalt);
}

.es-signup .es-mark-lit {
  fill: var(--basalt);
}

.es-mark-large {
  width: 3.5rem;
  height: 3.5rem;
}

.es-small {
  margin: -1rem 0 0;
  font-size: 0.9375rem;
  color: var(--dust);
}

.es-headline {
    font-stretch: 88%;
    font-size: clamp(2.75rem, 1rem + 9cqw, 3.5rem);
  }
}

/* Motion: the night plays out once. The trace records left to right, the page
   lights as the pen passes 02:21, and the unseen hours shade in last. */

@media (prefers-reduced-motion: no-preference) {
  .nc-svg-trace {
    animation: nc-record 2.8s linear 300ms both;
  }

  .nc-flag,
  .nc-dot {
    animation: nc-fade 300ms ease 1.24s both;
  }

  .nc-dot::after {
    animation: nc-ping 2.4s var(--ease) 1.6s infinite;
  }

  .nc-after {
    animation: nc-fade 900ms ease 3.1s both;
  }
}

@keyframes nc-record {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes nc-fade {
  from { opacity: 0; }
}

@keyframes nc-ping {
  from { opacity: 0.9; scale: 0.6; }
  to { opacity: 0; scale: 1.6; }
}

@media (forced-colors: active) {
  .nc-svg path, .state-glyph path { stroke: CanvasText; }
  .nc-flag, .g-hot { stroke: Highlight; }
  .nc-dot, .status-dot { background: Highlight; }
  .chip input:checked + span,
  .billing input:checked + span { background: Highlight; color: HighlightText; }
  .tier, .tier-plus { border: 1px solid CanvasText; }
  .tier:has(input:checked) { border: 3px solid Highlight; }
  .es-mark-dark, .es-mark-lit { fill: CanvasText; }
}
