:root {
  --color-coral: #ff4f40;
  --color-coral-border: #ffd1cc;
  --color-text: #323232;
  --color-muted: #666666;
  --color-placeholder: #aaaaaa;
  --color-stroke: #e4e4e4;
  --color-sheet-shadow: rgba(45, 25, 97, 0.07);
  --font-sans: Matter, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.main__content {
  position: relative;
  z-index: 8;
  display: flex;
  margin-top: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
}

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

.page {
  min-height: 100dvh;
  overflow: auto;
}

.login-float {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 9;
  border: 1px solid rgba(255, 79, 64, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px 8px 14px;
  color: #ffffff;
  background: #323232;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(50, 50, 50, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-float__arrow {
  position: relative;
  border-radius: 50%;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: #323232;
  background: #ffffff;
}

.login-float__arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.8px solid #323232;
  border-right: 1.8px solid #323232;
  transform: translateX(-1px) rotate(45deg);
}

.login-float__arrow::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1.8px;
  background: #323232;
  transform: translateX(-2px);
}

.login-float:hover {
  background: #242424;
  box-shadow: 0 18px 40px rgba(50, 50, 50, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.login-float:active {
  transform: translateY(0);
}

.login-float:focus-visible {
  outline: 1px solid #CCC5A8;
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 19.2%, #e8d7bd 95.68%);
}

.hero-art {
  user-select: none;
  height: 100svh;
  background: url("assets/hero-web.webp") center bottom / cover no-repeat;
}

.hero-art--desktop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-art--mobile {
  display: none;
}

.hero-fade {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  /* height: min(476px, 72vh); */
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 44%, rgba(255, 255, 255, 0) 100%);
}

.brand {
  z-index: 3;
  margin-bottom: 6%;
}


.brand__logo {
  display: block;
  width: 230px;
  height: 125px;
}

.brand__tagline {
  align-self: flex-end;
  margin: -25px 30px 0 0;
  color: #4f4f4f;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
}

.hero__content {
  z-index: 3;
  display: flex;
  width: min(780px, calc(100% - 32px));
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.headline {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: 0;
  white-space: nowrap;
}

.headline span {
  display: inline;
}

.button {
  min-height: 44px;
  border: 0.4px solid var(--color-coral-border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 650;
  line-height: 20px;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button--primary {
  color: #f5f5f5;
  background: var(--color-coral);
}

.button--primary:hover {
  background: #f24638;
  box-shadow: 0 10px 24px rgba(255, 79, 64, 0.2);
}

.button--primary:active {
  transform: translateY(1px);
}

.button--primary:disabled {
  cursor: default;
  opacity: 0.85;
}

.button__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(245, 245, 245, 0.4);
  border-top-color: #f5f5f5;
  border-radius: 50%;
  animation: button-spin 700ms linear infinite;
}

.button.is-loading .button__label {
  display: none;
}

.button.is-loading .button__spinner {
  display: inline-block;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.button:focus-visible,
.waitlist-input:focus-visible {
  outline: 1px solid #CCC5A8;
  /* outline-offset: 3px; */
}

.waitlist-input:hover {
  outline: 1px solid #CCC5A8;
  background: #FFFEFB;
  /* outline-offset: 3px; */
}

.cta {
  margin-top: 24px;
}

.waitlist-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.waitlist-input {
  width: 280px;
  min-height: 46px;
  border: 1px solid var(--color-stroke);
  border-radius: 12px;
  padding: 11px 16px;
  color: #666 !important;
  background: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0;
  box-shadow: none;
}

.waitlist-input::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

/* Override browser autofill styles */
.waitlist-input:-webkit-autofill,
.waitlist-input:-webkit-autofill:hover,
.waitlist-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #666;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.waitlist-input[aria-invalid="true"] {
  border-color: var(--color-coral);
}

.notify-button {
  flex: 0 0 auto;
  min-width: 128px;
}

.success-message {
  width: min(780px, 100%);
  text-align: center;
}

.page[data-view="success"] .landing-copy,
.page[data-view="error"] .landing-copy {
  display: none;
}

.success-message lottie-player {
  /* margin-bottom: -10px; */
  display: block;
}

.success-message h2 {
  margin: 10px 0 20px 0;
  color: var(--color-text);
  font-size: 32px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.success-message p {
  margin: 0 0 0 0;
  color: var(--color-muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
}

.error-message {
  width: min(780px, 100%);
  text-align: center;
}

.error-message .error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--color-coral-border);
  position: relative;
}

.error-message h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 28px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: 0;
}

.error-message p {
  margin: 8px 0 0 0;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.retry-button {
  margin-top: 24px;
}

.sheet-backdrop,
.waitlist-sheet {
  display: none;
}

.congratulation-lottie {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero {
    min-height: max(760px, 100svh);
    background: linear-gradient(180deg, #ffffff 43.03%, #e8d7bd 95.68%);
  }

  .hero-art {
    background: url("assets/hero-mobile.webp") center bottom / cover no-repeat;
  }

  .hero-fade {
    height: 60svh;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #ffffff 31%,
        rgba(255, 244, 231, 0.8) 48%,
        rgba(255, 222, 182, 0) 100%);
  }

  .brand {
    margin-bottom: 20%;
  }

  .brand__logo {
    width: 110px;
    height: 55px;
  }

  .brand__tagline {
    margin: -15px 25px 0 0;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
  }

  .hero__content {
    top: 205px;
    width: calc(100% - 48px);
  }

  .headline {
    width: min(300px, 100%);
    font-size: 28px;
    line-height: 36px;
    white-space: normal;
  }

  .headline span {
    display: block;
  }

  .button {
    min-height: 44px;
    font-size: 16px;
    line-height: 20px;
  }

  .login-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    min-height: 36px;
    padding: 8px 11px 8px 13px;
    font-size: 14px;
    transform: none;
  }

  .login-float:hover,
  .login-float:active {
    transform: none;
  }

  .cta {
    margin-top: 24px;
  }

  .waitlist-form--desktop {
    display: none !important;
  }

  .success-message h2,
  .error-message h2 {
    margin: 0 0 0 0;
    font-size: 22px;
    line-height: 36px;
  }

  .page[data-view="success"] .hero__content,
  .page[data-view="error"] .hero__content {
    top: 200px;
  }

  .success-message {
    margin-top: -20px
  }

  .success-message .congratulation-lottie {
    margin-bottom: 10px
  }

  .success-message p,
  .error-message p {
    margin: 0 0 0 0;
    font-size: 14px;
    line-height: 20px;
  }

  .sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9;
    display: block;
    background: rgba(36, 36, 36, 0.18);
  }

  .waitlist-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: block;
    border-radius: 16px 16px 0 0;
    padding: 28px 32px calc(28px + env(safe-area-inset-bottom));
    background: #ffffff;
    box-shadow: 0 -1px 10px var(--color-sheet-shadow);
  }

  .sheet-form {
    display: flex;
    flex-direction: column;
  }

  .sheet-form h2 {
    margin: 0 0 22px;
    color: #242424;
    font-size: 18px;
    font-weight: 650;
    line-height: 20px;
    letter-spacing: 0;
  }

  .sheet-form .waitlist-input {
    width: 100%;
    min-height: 54px;
    color: var(--color-text);
    font-weight: 500;
  }

  .sheet-form .notify-button {
    width: 100%;
    margin-top: 24px;
    font-size: 16px;
  }

  .error-message .error-icon {
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
  }

}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #152611;
  width: 100%;
}

.footer-inner {
  margin: 0 auto;
  padding: 16px 64px 8px;
  display: flex;
  flex-direction: column;
}

/* Brand line */
.footer-brand {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Two-column row */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 10px 0 16px;
  opacity: 0.5;
}

.footer-col, .footer-col a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: #ffffff;
  text-decoration: none;
}

.footer-col--address {
  min-width: 0;
}

/* Divider */
.footer-divider {
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
  margin: 0;
}

/* Disclaimer */
.footer-disclaimer {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  padding-bottom: 16px;
}

/* Support line */
.footer-support {
  padding: 16px 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  width: 100%;
}

.footer-support a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-support a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-inner {
    padding: 20px 24px 8px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    padding: 20px 20px calc(8px + env(safe-area-inset-bottom));
  }

  .footer-support {
    text-align: left;
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
