/* ==========================================================================
   Home hero: the app's sign-in screen (onlyweb3 frontOnly/src/theme/landing.css,
   with the base pieces it uses from base.css and layout.css). Loaded by home.html only.
   Keep both copies in step when the sign-in screen changes.
   ========================================================================== */

.home-sign-in {
  position: relative;
}

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 1320px;
  margin: 0 auto;
  /* Below the fixed site navigation (76px high, 64px on phones). */
  padding: 100px 40px 0;
  /* The app's text size, so the block reads exactly as on /login. */
  font-size: 15px;
  line-height: 1.5;
}

.landing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 440px);
  grid-template-areas:
    'intro auth'
    'deck  auth'
    'perks auth';
  align-content: center;
  align-items: start;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 34px;
  flex: 1;
  padding: 12px 0 40px;
}

.landing__intro {
  grid-area: intro;
  display: grid;
  gap: 18px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.display em {
  font-style: italic;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(255, 61, 113, 0.6);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 113, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 61, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 113, 0); }
}

.landing__title {
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.landing__lead {
  max-width: 520px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

/* Fanned creator cards */
.landing__deck {
  grid-area: deck;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 10px 0 0 6px;
}

/* The card holds its place in the fan (rotate/translate, which the entrance animates) and only
   its face lifts and straightens on hover, so the card never shakes under a resting pointer. */
.deck-card {
  --rot: calc((var(--i) - 1.5) * 4deg);
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 196px);
  aspect-ratio: 3 / 4.2;
  margin-right: -26px;
  rotate: var(--rot);
  translate: 0 calc(var(--i) * -8px);
  animation: deck-in 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms);
}

.deck-card:hover {
  z-index: 3;
}

.deck-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 220, 230, 0.18);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.deck-card:hover .deck-card__face {
  transform: translateY(-14px) rotate(calc(var(--rot) * -1)) scale(1.04);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 61, 113, 0.25);
}

@keyframes deck-in {
  from { opacity: 0; rotate: 0deg; translate: 0 40px; }
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-card__veil {
  position: absolute;
  inset: 0;
  background: var(--grad-veil);
}

.deck-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(6, 4, 7, 0.55);
  border: 1px solid rgba(233, 169, 130, 0.4);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.deck-card__tag svg {
  width: 12px;
  height: 12px;
}

.deck-card__name {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.landing__perks {
  grid-area: perks;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  max-width: 620px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing__perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.landing__perk-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(233, 169, 130, 0.28);
  background: rgba(233, 169, 130, 0.08);
  color: var(--gold);
}

.landing__perk-icon svg {
  width: 20px;
  height: 20px;
}

.landing__perks strong {
  display: block;
  font-size: 14.5px;
}

.landing__perks small {
  display: block;
  color: var(--text-3);
  font-size: 13px;
}

/* Auth card */
.landing-auth {
  grid-area: auth;
  position: relative;
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(34, 23, 35, 0.82), rgba(14, 9, 15, 0.9));
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.landing-auth::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--hairline-gold);
}

.landing-auth__head {
  display: grid;
  gap: 6px;
}

.landing-auth__head h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.landing-auth__head p {
  color: var(--text-3);
  font-size: 14.5px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(8, 5, 9, 0.55);
}

.segmented > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.25s var(--ease);
}

.segmented > button.is-active {
  color: #fff;
  background: var(--grad-rose);
  box-shadow: 0 6px 18px rgba(255, 61, 113, 0.28);
}

.landing-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.landing-auth__form {
  display: grid;
  gap: 12px;
}

.landing-auth__form [hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(8, 5, 9, 0.6);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input::placeholder {
  color: var(--text-4);
}

.input:focus {
  border-color: rgba(233, 169, 130, 0.6);
  background: rgba(14, 9, 15, 0.85);
  box-shadow: 0 0 0 4px rgba(233, 169, 130, 0.12);
}

.input--error {
  border-color: rgba(255, 90, 95, 0.7) !important;
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 54px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 10px;
  color: var(--text-3);
}

.password-field__toggle:hover {
  color: var(--text);
}

.password-field__toggle svg {
  width: 19px;
  height: 19px;
}

.field-error {
  color: #ffadb0;
  font-size: 13px;
}

/* The app shows these messages in a toast; here they sit right above the button. */
.landing-auth__status {
  padding: 10px 14px;
  border: 1px solid rgba(255, 90, 95, 0.35);
  border-radius: var(--r-sm);
  background: rgba(255, 90, 95, 0.1);
  color: #ffc9cb;
  font-size: 13.5px;
}

.check-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  margin: 4px 0 6px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.check-row input {
  appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--line-3);
  border-radius: 7px;
  background: rgba(8, 5, 9, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.check-row input:checked {
  border-color: transparent;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 4px rgba(255, 61, 113, 0.15);
}

.btn--block {
  width: 100%;
}

.landing-auth .btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.auth-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.auth-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
}

.auth-btn--google {
  background: #f8eef0;
  color: #1a1016;
  border-color: transparent;
}

.auth-btn--google:hover:not(:disabled) {
  background: #fff;
}

.auth-btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.landing-auth__terms {
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

.landing-auth__terms a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(233, 169, 130, 0.35);
  text-underline-offset: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
  .landing {
    padding: 100px 24px 0;
  }

  .landing__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'deck'
      'auth'
      'perks';
    justify-items: center;
    text-align: center;
  }

  .landing__intro {
    justify-items: center;
  }

  .landing__deck {
    justify-content: center;
    min-height: 0;
  }

  .landing-auth {
    width: 100%;
    max-width: 480px;
    text-align: left;
  }

  .landing__perks {
    text-align: left;
  }
}

/* Phone */
@media (max-width: 640px) {
  .landing {
    padding: 80px 16px 0;
  }

  .landing__grid {
    row-gap: 24px;
    padding-bottom: 28px;
  }

  .landing__title {
    /* Screen width minus the side padding, over the width of the title's longest line in font sizes: two lines, always. */
    font-size: min(56px, calc((100vw - 32px) / 7.6));
  }

  .landing__lead {
    font-size: 15.5px;
  }

  .landing__deck {
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 18px 16px 8px 22px;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .landing__deck::-webkit-scrollbar {
    display: none;
  }

  .deck-card {
    width: 138px;
    margin-right: -14px;
    scroll-snap-align: center;
  }

  .deck-card__name {
    font-size: 22px;
  }

  .landing-auth {
    padding: 24px 18px;
    border-radius: var(--r-lg);
  }

  .landing-auth__head h2 {
    font-size: 32px;
  }

  .landing__perks {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}
