/* New Auths homepage layout: warm canvas + page-level crowd-wave decor */

:root {
  --auths-page-bg: #f8f4f1;
  --join-card-max-width: 1120px;
  --join-card-radius: 23px;
  --join-card-border-color: #e8e4e0;
  --join-input-height: 58px;
  --join-input-radius: 14px;
  --join-button-height: 60px;
}

html,
body {
  background: var(--auths-page-bg);
  overflow-x: clip;
}

body {
  background: var(--auths-page-bg);
}

#site-header {
  background: rgba(248, 244, 241, 0.92);
  z-index: 40;
}

main,
footer {
  background: var(--auths-page-bg);
}

main {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  background: var(--auths-page-bg);
}

main > section {
  position: relative;
  z-index: 2;
  overflow: visible;
}

main > section > .mx-auto {
  position: relative;
  z-index: 3;
}

.crowd-wave-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

.crowd-wave {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Soft orange glow behind hero headline — human thought / attention */
.hero-headline-wrap {
  position: relative;
  isolation: isolate;
}

.attention-cloud {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: clamp(300px, 92vw, 1220px);
  height: clamp(280px, 62vw, 800px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(
      ellipse 52% 48% at 50% 50%,
      rgba(255, 92, 0, 0.34) 0%,
      rgba(255, 92, 0, 0.2) 22%,
      rgba(255, 92, 0, 0.1) 42%,
      rgba(255, 92, 0, 0.04) 58%,
      transparent 72%
    );
  filter: blur(100px);
}

.hero-headline-wrap h1 {
  position: relative;
  z-index: 1;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Story / middle section — mobile in-flow artwork + desktop copy slot */
#story.middle-section {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto;
  padding-bottom: clamp(104px, 7vw, 120px);
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.middle-section__copy-slot {
  grid-row: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* Preserve 75svh copy-slot vertical centering on mobile */
  padding-top: max(0px, calc((75svh - 388.5px) / 2));
}

.middle-section__copy-slot > .mx-auto {
  padding-bottom: 0;
}

.middle-section__copy {
  width: 100%;
}

.middle-section__people {
  grid-row: 2;
  width: 100%;
  min-width: 0;
  margin-top: clamp(16px, 1.75vw, 24px);
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

.middle-section__people-picture {
  display: block;
  min-width: 0;
}

.middle-section__people-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
  pointer-events: none;
  user-select: none;
}

#story p,
.middle-section__copy p {
  font-size: 1.25rem;
}

/* Production desktop crowd: absolutely positioned on main via .crowd-wave-layer */
.crowd-wave--story {
  width: clamp(1200px, 86.5vw, 1900px);
  left: 33.3vw;
  top: 105svh;
  transform: rotate(0deg);
  transform-origin: center;
}

@media (max-width: 1023px) {
  .crowd-wave--story {
    width: 145vw;
    left: 22vw;
    top: 138svh;
    transform: rotate(0deg);
  }
}

@media (min-width: 1024px) {
  .crowd-wave--story {
    width: clamp(1080px, 77.85vw, 1710px);
    top: calc(105svh + clamp(78px, 5svh, 64px));
  }
}

@media (min-width: 768px) {
  #story p,
  .middle-section__copy p {
    font-size: 1.5rem;
  }

  /* Desktop story height: production 75vh; copy position via copy-slot padding */
  #story.middle-section {
    display: grid;
    grid-template-rows: auto;
    min-height: 75vh;
    padding-bottom: 0;
  }

  .middle-section__copy-slot {
    padding-top: max(0px, calc((75vh - 346px) / 2));
  }

  /* Hide mobile in-flow artwork; desktop uses .crowd-wave-layer */
  .middle-section__people {
    display: none;
  }
}

@media (max-width: 767px) {
  .attention-cloud {
    display: none;
  }

  /* Mobile uses in-flow artwork, not the page-level decorative layer */
  .crowd-wave-layer .crowd-wave--story {
    display: none;
  }

  .middle-section__people {
    width: 100%;
  }

  .middle-section__people-picture {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .middle-section__people-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* Join: declaration-style signup card */
.join-section {
  position: relative;
  box-sizing: border-box;
  background: var(--auths-page-bg);
}

@media (max-width: 767px) {
  .join-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
  }
}

.join-section__container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--join-card-max-width) + 80px);
  margin-inline: auto;
  padding: 4rem 1.5rem;
}

.join-declaration-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--join-card-max-width);
  margin-inline: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--join-card-border-color);
  border-radius: var(--join-card-radius);
  box-shadow: 0 8px 32px -12px rgba(35, 28, 24, 0.12);
  overflow: hidden;
}

.join-declaration-card__message {
  min-width: 0;
  margin-bottom: 28px;
}

.join-declaration-card__title {
  font-size: clamp(2.5rem, 8.5vw, 3rem);
  line-height: 1.12;
}

.join-declaration-card__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #171717;
}

.join-declaration-card__form {
  min-width: 0;
}

.join-declaration-form {
  display: flex;
  flex-direction: column;
}

.join-declaration-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.join-declaration-form__field + .join-declaration-form__field {
  margin-top: 22px;
}

.join-declaration-form__label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: #404040;
}

.join-declaration-form__input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: var(--join-input-height);
  padding: 0 1rem;
  border: 1px solid #ddd8d3;
  border-radius: var(--join-input-radius);
  background: #fff;
  font-size: 1rem;
  line-height: 1.25;
  color: #171717;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.join-declaration-form__input[type='text'],
.join-declaration-form__input[type='email'] {
  border-radius: var(--join-input-radius);
}

.join-declaration-form__input::placeholder {
  color: #a3a3a3;
}

.join-declaration-form__input:focus {
  outline: none;
  border-color: #e6007a;
  box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.14);
}

.join-declaration-form__input:focus-visible {
  outline: none;
  border-color: #e6007a;
  box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.14);
}

.join-declaration-form__error {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #dc2626;
}

.join-declaration-card__statement {
  margin-top: 23px;
  padding: 0.875rem 1rem;
  border-radius: var(--join-input-radius);
  background: rgba(248, 244, 241, 0.92);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #262626;
}

.join-declaration-form__submit {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--join-button-height);
  height: var(--join-button-height);
  margin-top: 21px;
  padding: 0 1.5rem;
  border: none;
  border-radius: var(--join-input-radius);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.join-declaration-form__submit:hover:not(:disabled) {
  opacity: 0.94;
  filter: brightness(1.03);
}

.join-declaration-form__submit:active:not(:disabled) {
  transform: scale(0.995);
}

.join-declaration-form__submit:focus-visible {
  outline: 2px solid #9411f2;
  outline-offset: 3px;
}

.join-declaration-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.join-declaration-form__status {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.join-declaration-form__status.text-red-600 {
  color: #dc2626;
}

.join-declaration-form__status.text-emerald-700 {
  color: #047857;
}

@media (min-width: 768px) {
  #join.join-section {
    margin-top: clamp(180px, 14vw, 300px);
  }

  .join-section {
    isolation: isolate;
    z-index: 3;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(96px, 10vh, 140px) 24px;
  }

  .join-section__container {
    padding: 0;
  }

  .join-declaration-card {
    display: grid;
    grid-template-columns: 43% 57%;
    padding: 0;
  }

  .join-declaration-card__message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 3.2vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0;
  }

  .join-declaration-card__title {
    font-size: clamp(2.75rem, 4.2vw, 3.5rem);
  }

  .join-declaration-card__lead {
    margin-top: 1.5rem;
    font-size: 1.125rem;
  }

  .join-declaration-card__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 3.2vw, 2.75rem) clamp(1.75rem, 3.2vw, 2.75rem);
  }
}

@media (min-width: 1024px) {
  .join-declaration-card__lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 359px) {
  .middle-section__copy-slot {
    padding-top: 0;
  }
}

