/* Landing composition — compact invitation within the field.
   Sizes are rem so they match the px targets at 16px root and scale with text size. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--sans, "Sora", sans-serif);
  font-size: 100%;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

em,
i {
  font-style: normal;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

.card {
  width: min(38.75rem, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  margin: 0;
  font-family: var(--sans, "Sora", sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(246, 243, 238, 0.78);
}

.headline {
  margin: 1.75rem 0 0;
  max-width: 38.75rem;
  font-family: var(--display, "Fraunces", serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  line-height: 2.875rem;
  letter-spacing: -0.01em;
  color: #f6f3ee;
}

.lede {
  margin: 1.125rem 0 0;
  max-width: 27.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: rgba(246, 243, 238, 0.88);
}

.sms-optin {
  margin-top: 1.5rem;
  width: min(100%, 20rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.age-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.1rem;
  color: rgba(246, 243, 238, 0.6);
}

.sms-fineprint {
  margin: 0.7rem 0 0;
  padding: 0;
  max-width: 17rem;
  font-family: var(--sans, "Sora", sans-serif);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1rem;
  text-align: center;
  color: rgba(246, 243, 238, 0.5);
}

.top-brand {
  position: absolute;
  top: max(1.75rem, env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
}

.share-link {
  position: absolute;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  left: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--sans, "Sora", sans-serif);
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(246, 243, 238, 0.72);
  text-decoration: none;
}

.share-link:hover {
  color: #f6f3ee;
}

.share-link svg {
  flex: none;
}

.sms-fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.08rem;
  white-space: nowrap;
}

.sms-alt {
  margin: 0.7rem 0 0;
  max-width: 18rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: rgba(246, 243, 238, 0.78);
}

.sms-alt strong {
  font-weight: 500;
}

.sms-fallback {
  margin: 0.7rem 0 0;
  max-width: 18rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.2rem;
  color: rgba(246, 243, 238, 0.88);
  background: rgba(7, 10, 24, 0.45);
  border: 1px solid rgba(243, 239, 230, 0.2);
  border-radius: 0.5rem;
}

.sms-copy {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: #f3efe6;
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.08rem;
  cursor: pointer;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14.375rem;
  min-height: 2.875rem;
  margin-top: 0;
  padding: 0 1.125rem;
  font-family: var(--sans, "Sora", sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-dark .cta {
  background: #f3efe6;
  color: #0f1a2e;
}

.theme-dark .cta:not(.is-disabled):hover {
  transform: translateY(-1px);
  background: #faf7f0;
}

.cta:focus-visible {
  outline: 2px solid #f3efe6;
  outline-offset: 3px;
}

.theme-dark .cta.is-disabled,
.cta.is-disabled {
  background: #f3efe6;
  color: #0f1a2e;
  opacity: 1;
  cursor: pointer;
}

.theme-light {
  color: #2a2430;
}

.theme-light .cta {
  background: #2a2430;
  color: #f7f2ea;
}

.theme-soft {
  color: #3a2f3a;
}

.theme-soft .cta {
  background: rgba(58, 47, 58, 0.92);
  color: #fff8f2;
}

.legal-links {
  margin: 1.35rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.turnstile {
  margin-top: 1rem;
  min-height: 4rem;
}

@media (max-width: 640px) {
  .headline {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .page {
    padding: 1.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta:not(.is-disabled):hover {
    transform: none;
  }

  .sms-consent.is-nudging {
    animation: none;
  }
}
