/* join.dander.fit — mobile hero (matches www.dander.fit homepage) */

:root {
  --home-bg: #000000;
  --home-ink: #ffffff;
  --home-muted: #9e9e9e;
  --home-accent: #c7e68c;
  --home-border: rgba(255, 255, 255, 0.12);
  --font-display: "Nunito", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --ink: #2b2a26;
  --lime: #c7e68c;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--home-bg);
}

body.page-join {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 600;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 42%, transparent 68%),
    var(--home-bg);
  color: var(--home-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.page-join .join-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-join {
  --join-chip-size: 44px;
}

.page-join .join-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--join-chip-size);
  padding:
    max(0.65rem, env(safe-area-inset-top, 0px))
    1rem
    0.25rem;
}

.page-join .join-brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.page-join .join-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--home-ink);
}

.page-join .join-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.page-join .text-accent {
  color: var(--home-accent);
}

.page-join .detach-hero {
  overflow: visible;
  padding: 0 0 0.5rem;
  flex-shrink: 0;
  width: 100%;
}

.page-join .detach-hero__layout {
  display: grid;
  grid-template-areas: "stage";
  align-content: start;
}

.page-join .detach-hero__copy {
  display: contents;
}

.page-join .detach-hero__visual {
  grid-area: stage;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: min(40vh, 270px);
  padding: 0 0.5rem 0 0;
  z-index: 0;
}

.page-join .detach-hero__headline-stack {
  grid-area: stage;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: start;
  gap: 0.55rem;
  width: auto;
  max-width: 58%;
  margin: 0 -1.25rem 0 0;
  padding: 0 0 0 0.85rem;
  pointer-events: none;
}

.page-join .detach-hero h1 {
  width: auto;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 8.8vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-align: left;
  color: var(--home-ink);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 22px rgba(0, 0, 0, 0.75);
}

.page-join .detach-hero h1 .hero-title-line {
  display: block;
}

.page-join .hero-stat {
  margin: 0;
  padding-left: 0.65rem;
  border-left: 2px solid var(--home-accent);
  overflow: visible;
}

.page-join .hero-stat__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.page-join .hero-stat__value {
  --hero-stat-size: clamp(1.5rem, 5.5vw, 1.9rem);
  width: 11ch;
  max-width: 100%;
  height: 1.05em;
  margin: 0.2rem 0 0;
  padding-left: 0.05rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--hero-stat-size);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--home-accent);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.page-join .hero-stat__value [data-hero-steps-num] {
  display: inline-block;
  transform-origin: left bottom;
  white-space: nowrap;
}

.page-join .detach-hero__phone {
  position: relative;
  z-index: 1;
  width: min(46vw, 185px);
  margin: 0 0 0 -1.75rem;
  overflow: visible;
}

.page-join .detach-hero__phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: hero-phone-float 6.5s ease-in-out infinite;
}

@keyframes hero-phone-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-join .detach-hero__phone img {
    animation: none;
  }
}

.page-join .detach-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(199, 230, 140, 0.36),
    rgba(199, 230, 140, 0.12) 58%,
    transparent 100%
  );
  z-index: 0;
}

.page-join .detach-blob--hero {
  width: 108%;
  aspect-ratio: 1;
  top: 52%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}

/* Download + social */
.page-join .join-actions {
  width: min(100% - 2rem, 420px);
  margin: 0.25rem auto 0;
  padding: 0;
  flex-shrink: 0;
}

.page-join .store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.page-join .store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: #252525;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(43, 42, 38, 0.35);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.page-join .store-link__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.page-join .store-link--apple {
  background: var(--lime);
  color: var(--ink);
}

.page-join .store-link.store-badge--dim {
  opacity: 0.42;
}

.page-join .store-open-tip {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.page-join .store-open-tip[hidden] {
  display: none !important;
}

.page-join .join-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 0.5rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
}

.page-join .join-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.page-join .join-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--join-chip-size);
  height: var(--join-chip-size);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.page-join .join-social__link svg {
  width: 20px;
  height: 20px;
}

.page-join .join-social__link:hover,
.page-join .join-social__link:focus-visible {
  border-color: rgba(199, 230, 140, 0.4);
  color: var(--lime);
}

@media (min-width: 600px) {
  .page-join .join-body {
    align-items: center;
    gap: 0.65rem;
  }

  .page-join .detach-hero {
    width: min(100% - 2rem, 420px);
    padding-bottom: 0;
  }

  .page-join .join-actions {
    margin: 0;
  }

  .page-join .detach-hero__visual {
    min-height: auto;
    padding: 0;
  }

  .page-join .detach-hero__phone {
    width: 185px;
    margin-left: -1.75rem;
  }

  .page-join .detach-hero h1 {
    font-size: 2.35rem;
  }

  .page-join .hero-stat__value {
    --hero-stat-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .page-join .detach-hero__visual {
    min-height: min(36vh, 240px);
  }

  .page-join .detach-hero__headline-stack {
    max-width: 60%;
    margin-right: -1rem;
    padding-left: 0.65rem;
    gap: 0.45rem;
  }

  .page-join .detach-hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.35rem);
  }

  .page-join .detach-hero__phone {
    width: min(42vw, 168px);
    margin-left: -1.5rem;
  }

  .page-join .detach-blob--hero {
    width: 106%;
  }

  .page-join .hero-stat__value {
    --hero-stat-size: clamp(2rem, 8vw, 2.4rem);
  }
}
