/* The waitlist site in Dawn (design/brand/dawn/). The first half is the design's landing.css, kept in
   step with it; the waitlist's own parts follow. Only tokens.css values; dawn.css holds the shared
   components. The admin keeps its own look (waitlist.css). */

/* The site keeps its motion whatever the browser's reduced-motion setting says (founder,
   2026-10-28: "these are not real hardcore animations"). Dawn's tokens zero every duration
   there, so the site gives them back. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 120ms;
    --duration-base: 200ms;
    --duration-slow: 600ms;
    --duration-sunrise: 2600ms;
  }
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: var(--border) solid transparent;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}
.nav.scrolled,
html:not(.js) .nav {
  background:
    radial-gradient(
      52% 190% at 50% -90%,
      color-mix(in srgb, var(--sun-hot) 18%, transparent),
      transparent 74%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-canvas) 90%, transparent),
      color-mix(in srgb, var(--bg-canvas) 76%, transparent)
    );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
/* Once scrolled, the sunlight from the top: a warm hairline under the bar and the faintest glow
   below it. Kept low so it never competes with the sunrise itself. */
.nav::before,
.nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
.nav::before {
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, var(--accent-line) 50%, transparent 92%);
}
.nav::after {
  top: 100%;
  height: 28px;
  background: radial-gradient(46% 100% at 50% 0, var(--accent-tint), transparent 75%);
}
.nav.scrolled::before,
.nav.scrolled::after,
html:not(.js) .nav::before,
html:not(.js) .nav::after {
  opacity: 1;
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-1);
}
.nav-links a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  font-size: var(--size-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover {
  color: var(--text-strong);
}
.nav-end {
  margin-inline-start: auto;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-24));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-sun {
  position: absolute;
  z-index: -1;
  inset: var(--sun-top, 210px) 0 auto 0;
  height: var(--sun-height, 1140px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 18%);
  mask-image: linear-gradient(transparent, #000 18%);
}
.hero-sun img,
.hero-sun svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
/* The sunrise fades into the page below it. */
.hero-sun::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg-canvas));
}
.hero .announce {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.hero .announce .badge {
  height: 22px;
}
.hero h1 {
  margin-top: var(--space-6);
}
.hero .lead {
  max-width: 640px;
  margin: var(--space-6) auto 0;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero .fine-print {
  margin-top: var(--space-4);
}

/* The product window, rising from behind the horizon */
.product {
  position: relative;
  margin-top: var(--product-gap, 330px);
  text-align: start;
}
.product .window {
  font-size: var(--size-small);
  line-height: var(--leading-ui);
}
figure.product {
  margin-inline: 0;
  margin-bottom: 0;
}

/* The product window rises after the sun (once the script runs). */
.js .product[data-rise] {
  opacity: 0;
  transform: translateY(48px);
  animation: product-rise 1400ms var(--ease-rise) 900ms forwards;
}
@keyframes product-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Section heads */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: end;
  margin-bottom: var(--space-16);
}
.head h2 {
  margin-top: var(--space-5);
}
.head p {
  color: var(--text-muted);
}
.head.single {
  grid-template-columns: minmax(0, 760px);
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
}
.feature .icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: var(--border) solid var(--line);
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}
.feature p {
  color: var(--text-muted);
  font-size: 16px;
}
.under {
  margin-top: var(--space-6);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.plan .name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.plan .name b {
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  font-size: 18px;
}
.plan .name span {
  font-size: 13px;
  color: var(--text-subtle);
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.plan .price strong {
  font-size: 40px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
}
.plan .price span {
  color: var(--text-subtle);
  font-size: var(--size-small);
}
.plan .founding {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
  min-height: 18px;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: var(--border) solid var(--line);
  display: grid;
  gap: var(--space-2);
  font-size: var(--size-small);
  color: var(--text);
}
.plan li {
  display: flex;
  gap: var(--space-2);
}
.plan li .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex: none;
  margin-top: 2px;
}
.plan .btn {
  margin-top: auto;
}
/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--space-16);
}
.faq details {
  border-top: var(--border) solid var(--line);
  padding-block: var(--space-5);
}
.faq details:last-child {
  border-bottom: var(--border) solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--text-subtle);
  font-family: var(--font-mono);
  transition: transform var(--duration-base) var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: var(--space-3);
  color: var(--text-muted);
  max-width: 640px;
}

/* Final call */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-top: var(--space-32);
  padding-bottom: 300px;
  border-top: var(--border) solid var(--line);
}
.final-sun {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 620px;
  -webkit-mask-image: linear-gradient(transparent, #000 22%);
  mask-image: linear-gradient(transparent, #000 22%);
}
.final-sun img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.final .lead {
  margin: var(--space-5) auto var(--space-8);
  max-width: 560px;
}

/* Footer */
.footer {
  padding-block: var(--space-12);
  border-top: var(--border) solid var(--line);
  background: var(--sun-night);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
}
.footer nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--size-small);
}
.footer nav a:hover {
  color: var(--text-strong);
}
.footer small {
  width: 100%;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ------------------------------------------------------------------ */
/* The waitlist: everything the design's landing page doesn't have.   */
/* ------------------------------------------------------------------ */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.row.end {
  justify-content: flex-end;
}
.noscript {
  position: relative;
  z-index: 60;
  padding: var(--space-3) var(--gutter);
  background: var(--surface-2);
  border-bottom: var(--border) solid var(--line);
  font-size: var(--size-small);
  text-align: center;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.badge .icon {
  width: 14px;
  height: 14px;
}
.dot-accent {
  color: var(--accent);
}

/* Nav: the phase badge and the phone menu (a details element, so it works without JavaScript) */
.nav .container {
  gap: var(--space-4);
}
/* The trademark, small and high beside the wordmark. */
.brand .tm {
  margin-inline-start: 1px;
  font-size: var(--size-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  line-height: 0;
  vertical-align: 0.6em;
  color: var(--text-muted);
}
.nav-links {
  margin-inline-start: var(--space-4);
}
.nav-phase {
  color: var(--text-muted);
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: fixed;
  inset: var(--nav-height) 0 auto 0;
  z-index: 49;
  display: grid;
  padding: var(--space-2) var(--gutter) var(--space-6);
  background: var(--bg-canvas);
  border-bottom: var(--border) solid var(--line);
}
.menu-panel a {
  padding: var(--space-3) 0;
  color: var(--text-strong);
  text-decoration: none;
  font-size: 18px;
  border-bottom: var(--border) solid var(--line);
}

/* Hero: the phase line, the form, where the visitor stands */
.hero .announce {
  margin: 0;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  color: var(--text);
}
.hero .announce .dot {
  color: var(--accent);
}
.refb,
.floor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: 620px;
  margin: 0 auto var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: var(--size-small);
  text-align: start;
}
.floor {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.refb .av {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: var(--weight-semibold);
}
.stage {
  max-width: 560px;
  margin: var(--space-8) auto 0;
}
.join {
  display: grid;
  gap: var(--space-3);
}
.join-field {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  border: var(--border) solid var(--line-strong);
  border-radius: calc(var(--radius-control) + var(--space-2));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
.join-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.join-field.bad {
  border-color: var(--danger);
}
.join-field .input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  font-size: 16px;
}
.join-field .input:focus {
  box-shadow: none;
}
.join .err {
  min-height: 0;
  color: var(--danger);
  font-size: var(--size-small);
}
.join .err:empty {
  display: none;
}
.join .micro,
.join .consent {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-subtle);
}
.join .consent a {
  color: var(--text);
}
.checking {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--size-small);
  color: var(--text-muted);
}
.checking.on {
  display: flex;
}
.spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cf-turnstile {
  display: flex;
  justify-content: center;
}
.stage-card {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  text-align: start;
  padding: var(--space-6);
}
.stage-card h3 {
  font-size: var(--size-h4);
}
.stage-pos {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.pos {
  font-size: 48px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  line-height: 1;
}
.stage-card b,
.jump b {
  color: var(--accent-text);
  font-weight: var(--weight-semibold);
}
.status {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.status .label {
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--size-label);
}
.status b {
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
/* Section heads in this page carry the eyebrow and the headline together */
.head .eyebrow + h2,
.faq .eyebrow + h2 {
  margin-top: var(--space-5);
}

/* Pricing: the two plans the page shows, and a note for the rest */
.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.plan-more {
  background: transparent;
  border-style: dashed;
}
.plan-more p {
  color: var(--text-muted);
  font-size: var(--size-small);
}

/* The line */
.line-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.line-steps .card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
}
.line-steps .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-text);
}
.line-steps p {
  color: var(--text-muted);
  font-size: 16px;
}
.fine-print b {
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

/* Your spot */
.spotgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.spotc {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
}
.acct {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--size-small);
  color: var(--text-muted);
}
.acct form.who {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  flex-wrap: wrap;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
}
.spotc .pos {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 64px;
}
.spotc .pos small {
  font-size: var(--size-ui);
  letter-spacing: var(--tracking-body);
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}
.quip {
  font-size: var(--size-lead);
  color: var(--text-strong);
}
.jump {
  color: var(--text-muted);
}
.miles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.miles .badge {
  height: 28px;
  padding: 0 var(--space-3);
}
.lbl {
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.linkf {
  display: flex;
  gap: var(--space-2);
}
.linkf .input {
  flex: 1;
  min-width: 0;
  font-size: var(--size-small);
}
.spot-code {
  font-size: var(--size-small);
  color: var(--text-muted);
}
.spot-code b {
  font-family: var(--font-mono);
  color: var(--accent-text);
  font-weight: var(--weight-medium);
}
.shares {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.shares .btn {
  --btn-h: var(--target);
}
.og {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border) solid var(--line);
  border-radius: var(--radius-card);
}
.ogcap {
  margin: var(--space-2) 0 var(--space-6);
  font-size: 13px;
  color: var(--text-subtle);
}
.prof {
  display: grid;
  gap: var(--space-4);
}
.prof label:not(.cb) {
  display: grid;
  gap: var(--space-2);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.prof .cb {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-height: var(--target);
  font-size: var(--size-small);
}
.prof .cb input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.roles-f {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.roles-f legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.roles label {
  position: relative;
  display: inline-flex;
}
.roles input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.roles span {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: var(--text);
  cursor: pointer;
}
.roles input:checked + span {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-text);
}
.roles input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.saved {
  font-size: var(--size-small);
  color: var(--ok);
}

/* The leaderboard and the wall */
.boardg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-16);
  align-items: start;
}
.boardg h2 {
  margin-top: var(--space-5);
}
.boardg .lead {
  margin-top: var(--space-5);
}
.board {
  padding: 0;
  overflow: hidden;
}
.board .r {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: 0 var(--space-5);
  border-top: var(--border) solid var(--line);
}
.board .r:first-child {
  border-top: 0;
}
.board .rk {
  font-family: var(--font-mono);
  color: var(--text-subtle);
}
.board .r.top .rk {
  color: var(--accent-text);
}
.board .nm {
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board .nm.anon {
  color: var(--text-muted);
  font-weight: var(--weight-regular);
}
.board .fr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.board .r.me {
  background: var(--accent-tint);
}
.board .gap {
  padding: var(--space-2) var(--space-5);
  color: var(--text-subtle);
  border-top: var(--border) solid var(--line);
}
.board .empty {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-8) var(--space-6);
  color: var(--text-strong);
}
.board .empty small {
  font-size: var(--size-small);
  color: var(--text-muted);
}
.wall {
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-4);
}
.wall b {
  color: var(--text-strong);
  font-weight: var(--weight-medium);
}
.wall .names {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.wall .names span {
  padding: var(--space-1) var(--space-3);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--size-small);
  color: var(--text);
}
.wall .none {
  color: var(--text-muted);
  font-size: var(--size-small);
}

/* The final call keeps the waitlist's own button */
.final h2 {
  margin-inline: auto;
}
.final .btn {
  margin-top: var(--space-2);
}

/* The last button: solid yellow, with a spark of sunlight running around a ring just outside it
   and a soft glow that follows the spark. */
@property --run {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.btn-glow {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 0 1px var(--accent-line),
    0 10px 36px color-mix(in srgb, var(--accent) 22%, transparent);
}
.btn-glow::before,
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-control) + 6px);
  background:
    conic-gradient(
      from var(--run),
      transparent 0deg 170deg,
      color-mix(in srgb, var(--sun-amber) 60%, transparent) 250deg,
      var(--sun-hot) 315deg,
      var(--sun-core) 348deg,
      #fff 356deg,
      transparent 360deg
    ),
    linear-gradient(var(--accent-line), var(--accent-line));
  animation: run 3.2s linear infinite;
  pointer-events: none;
}
/* the ring: only a 2 px band of the gradient shows */
.btn-glow::before {
  z-index: -1;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* the glow: the same light, blurred, behind the ring */
.btn-glow::after {
  z-index: -2;
  filter: blur(18px);
  opacity: 0.85;
}
.btn-glow:hover::before,
.btn-glow:hover::after {
  animation-duration: 1.8s;
}
@keyframes run {
  to {
    --run: 360deg;
  }
}

/* Footer: the brand, the page, the legal links */
.footer .container {
  align-items: center;
}
.footer nav + nav {
  margin-inline-start: auto;
}
/* The last line: the copyright, and the ape asleep (one of its moments). */
/* The ape lies on the page's floor: no space under it. Its two lines sit level with it, the
   second on the copyright's line. */
.footer {
  padding-bottom: 0;
}
.foot-end {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4) var(--space-8);
  flex-wrap: wrap;
}
.foot-end small {
  width: auto;
  padding-bottom: var(--space-2);
}
.nap {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  margin-inline-start: auto;
}
.nap span {
  padding-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-muted);
  text-align: end;
}
.nap img {
  width: 100px;
  height: auto;
  flex: none;
}

/* Dialogs open with a link to their id (CSS :target) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: var(--space-4);
}
.modal:target {
  display: grid;
}
.modal .scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal .dlg {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 2 * var(--space-4));
  overflow: auto;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-window);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
}
.modal .dlg > .row:first-child,
.signin > .row:first-child {
  justify-content: space-between;
  flex-wrap: nowrap;
}
.modal h3 {
  font-size: var(--size-h4);
}
.modal ul {
  margin: 0;
  padding-inline-start: var(--space-5);
  display: grid;
  gap: var(--space-3);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--text);
}
.signin {
  display: grid;
  gap: var(--space-4);
}
.signin .link {
  justify-self: start;
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

/* Toasts */
.toasts {
  position: fixed;
  inset: auto var(--space-4) var(--space-4) auto;
  z-index: 90;
  display: grid;
  gap: var(--space-2);
}
.toast {
  padding: var(--space-3) var(--space-4);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--text-strong);
  font-size: var(--size-small);
  box-shadow: var(--shadow-overlay);
}

/* The invite page */
.stub {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-12) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.stub-sun {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 60vh;
  -webkit-mask-image: linear-gradient(transparent, #000 30%);
  mask-image: linear-gradient(transparent, #000 30%);
}
.stub-sun img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.stub .card {
  width: min(520px, 100%);
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-overlay);
}
.stub .ape {
  width: 132px;
  height: auto;
}
.stub h1 {
  font-size: var(--size-h3);
  letter-spacing: var(--tracking-heading);
}
.stub p {
  color: var(--text-muted);
}
.stub code {
  font-family: var(--font-mono);
  color: var(--accent-text);
}

/* Tablet */
@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .line-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
  .menu {
    display: block;
  }
  .spotgrid,
  .boardg {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
}

/* Phone */
@media (max-width: 720px) {
  .nav-end .hide-sm,
  .nav-phase {
    display: none;
  }
  .hero {
    --sun-top: 520px;
    --sun-height: 760px;
    --product-gap: 228px;
    padding-top: calc(var(--nav-height) + var(--space-12));
  }
  .hero .lead {
    font-size: 17px;
  }
  .join-field {
    flex-direction: column;
  }
  .join-field .btn {
    width: 100%;
  }
  .head,
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .head {
    margin-bottom: var(--space-10);
  }
  .features,
  .plans,
  .line-steps {
    grid-template-columns: 1fr;
  }
  .spotc {
    padding: var(--space-6);
  }
  .modal .dlg {
    padding: var(--space-6);
  }
  .footer nav + nav {
    margin-inline-start: 0;
  }
  .foot-end small {
    padding-bottom: 0;
  }
  .nap {
    width: 100%;
    justify-content: space-between;
  }
  .nap span {
    text-align: start;
  }
  .nap img {
    width: 75px;
  }
  .spotc .pos {
    font-size: 48px;
  }
  .linkf {
    flex-direction: column;
  }
  .board .r {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 0 var(--space-4);
  }
  .board .r > :last-child {
    display: none;
  }
  .final {
    padding-top: var(--space-20);
    padding-bottom: 220px;
  }
  .final-sun {
    height: 420px;
  }
}
