/* The private beta's pieces on the home and product pages: the email box (the hero's and the last
   call's), the demo's heading, sentence and three facts, the beta's three promises and four steps,
   the community band, the pricing note, and the product page's top. Only tokens.css values. */

/* The email box: a label you can read, then the field and the button on one line (two on a
   phone). The page's one main action, so it carries the yellow. */
.join-email {
  width: min(100%, 560px);
  margin: var(--space-10) auto 0;
  text-align: start;
}
.join-email label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: var(--text);
  text-shadow: var(--over-glow);
}
.join-row {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-window);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-overlay);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.join-row:focus-within {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-overlay), var(--glow-accent);
}
.join-row .input {
  flex: 1;
  min-width: 0;
  min-height: var(--target);
  border: 0;
  background: transparent;
  font-size: var(--size-lead);
  color: var(--text-strong);
}
.join-row .input::placeholder {
  color: var(--text-muted);
}
.join-row .input:focus {
  outline: 0;
  box-shadow: none;
}
.join-row .input[hidden] {
  display: none;
}
.join-row .btn {
  flex: none;
}
/* Signed in, the box is only the way back to the spot. */
.join-row:has(.input[hidden]) {
  justify-content: center;
  border-color: transparent;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.small-join {
  margin-top: var(--space-8);
}

/* The demo: its heading sits under the sunrise's rim, on the dark below it. */
.demo-head h2 {
  margin-top: var(--space-4);
  font-size: var(--size-h3);
}
.stage-wrap .picker {
  margin-top: var(--space-6);
}
.picker:not(.all) .appicon.extra {
  display: none;
}
.ic-more {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: var(--border) solid var(--line-strong);
  color: var(--text-strong);
}
/* The sentence the example starts from: a quote, not a box to type in. */
.say {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  width: min(100%, 620px);
  margin: var(--space-6) auto 0;
  padding: var(--space-3) var(--space-5);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-size: var(--size-body);
  color: var(--text-strong);
}
.say .icon {
  flex: none;
  color: var(--accent-text);
}
.say #say.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-inline-start: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
}
.stage-wrap .stage {
  margin-top: var(--space-12);
}

/* What BuffApe supplies, what stays yours, what you run: three short facts under the demo. */
.supply {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-16);
  text-align: start;
}
.supply article {
  padding-top: var(--space-5);
  border-top: var(--border) solid var(--line-strong);
}
.supply h3 {
  font-size: var(--size-h4);
}
.supply p {
  margin-top: var(--space-3);
  color: var(--text-muted);
}
.demo-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-8);
  margin-top: var(--space-10);
}
.demo-more a,
.final-discord a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
  text-decoration: none;
}
.demo-more a:hover,
.final-discord a:hover {
  color: var(--accent-text);
}

/* The beta: three promises, then the four steps from the waitlist to a first launch. */
.beta-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-16);
}
.beta-cols article {
  padding: var(--space-8) var(--space-6);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.beta-cols .icon {
  width: 24px;
  height: 24px;
  color: var(--accent-text);
}
.beta-cols h3 {
  margin-top: var(--space-4);
  font-size: var(--size-h4);
}
.beta-cols p {
  margin-top: var(--space-3);
  color: var(--text-muted);
}
.beta-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding: 0;
  list-style: none;
}
.beta-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.beta-steps span {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* The community: the words, and one way in. */
.community {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}
.community h2 {
  margin-top: var(--space-5);
}
.community .lead {
  margin-top: var(--space-6);
}
.community-act {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

/* The pricing note: what a cohort place adds, and what it doesn't. */
.pricing-beta {
  max-width: 620px;
  margin: var(--space-4) auto 0;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.final-discord {
  margin-top: var(--space-6);
}

/* The product page's top: under the header, no sunrise (that's the home page's). */
.product-top {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-16);
  /* How it works' stage sits in it, and on a phone its phones stand past the window's edge */
  overflow-x: clip;
}
/* How it works' size: the stage under it is the page's picture, not the headline */
.product-top h1 {
  margin-top: var(--space-5);
  font-size: clamp(40px, 5vw, 64px);
}

@media (max-width: 900px) {
  .supply,
  .beta-cols,
  .community {
    grid-template-columns: minmax(0, 1fr);
  }
  .beta-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .join-row {
    flex-direction: column;
  }
  .join-row .btn {
    width: 100%;
  }
  .beta-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .say {
    border-radius: var(--radius-card);
    font-size: 15px;
  }
  .product-top {
    padding-top: calc(var(--nav-height) + var(--space-12));
  }
}

/* The perks line: three short promises, a dot between them on one line; on a phone they wrap
   whole, without a dot left hanging at a line's end. */
.hero .perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) 0;
}
.hero .perks span {
  white-space: nowrap;
}
.hero .perks span + span::before {
  content: "·";
  margin-inline: var(--space-2);
}
@media (max-width: 720px) {
  .hero .perks {
    gap: var(--space-1) var(--space-4);
  }
  .hero .perks span + span::before {
    content: none;
  }
}
