/* css/components/landing.css — Marketing landing page */

/* Shared brand mark on pre-auth screens (landing, login, sign up, welcome) */
.preauth-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.preauth-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #afafaf;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  flex-shrink: 0;
}

.preauth-back-btn:hover {
  color: #777;
  background: #f7f7f7;
}

.preauth-back-btn .material-symbols-outlined {
  font-size: 1.5rem;
}

.preauth-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.landing-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  overflow-y: auto;
}

body.landing-open {
  overflow: hidden;
}

body.landing-open #app {
  visibility: hidden;
}

.landing-header {
  display: flex;
  justify-content: flex-start;
  padding: 16px 20px;
  flex-shrink: 0;
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px 48px 64px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.landing-mascot-col {
  flex: 0 1 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-mascot {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

.landing-content-col {
  flex: 1 1 55%;
  max-width: 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.landing-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: #3c3c3c;
  line-height: 1.15;
  margin: 0 0 16px;
}

.landing-title-accent {
  color: #f47417;
}

.landing-cta-block {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  vertical-align: top;
}

.landing-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #777;
  margin: 0 0 36px;
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s, background 0.15s;
  box-sizing: border-box;
}

.landing-btn--primary {
  background: #f47417;
  color: #fff;
  border: none;
  box-shadow: 0 4px 0 #d45f0a;
}

.landing-btn--primary:hover {
  filter: brightness(1.05);
}

.landing-btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d45f0a;
}

.landing-btn--secondary {
  background: #fff;
  color: #f47417;
  border: 2px solid #f47417;
}

.landing-btn--secondary:hover {
  background: #fff8f3;
}

/* ── Mobile app-style landing (light theme, orange brand) ─────────────── */
@media (max-width: 768px) {
  html.landing-open,
  body.landing-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .landing-screen--mobile-app {
    background: #fff;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  .landing-screen--mobile-app .landing-main {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    max-width: 480px;
    padding: max(48px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
    min-height: 100%;
    min-height: 100dvh;
  }

  .landing-screen--mobile-app .landing-mascot-col {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    width: 100%;
  }

  .landing-screen--mobile-app .landing-mascot-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: min(72vw, 280px);
    margin: 0 auto 28px;
  }

  .landing-screen--mobile-app .landing-mascot-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    height: 18px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    filter: blur(2px);
  }

  .landing-screen--mobile-app .landing-mascot {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: min(42vh, 320px);
  }

  .landing-screen--mobile-app .landing-brand-logo {
    display: block;
    height: clamp(40px, 12vw, 52px);
    width: auto;
    margin: 0 auto 12px;
  }

  .landing-screen--mobile-app .landing-subtitle {
    max-width: 22rem;
    margin: 0 auto;
    font-size: clamp(1rem, 3.8vw, 1.125rem);
    font-weight: 500;
    line-height: 1.45;
    color: #777;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
  }

  .landing-screen--mobile-app .landing-actions {
    flex-shrink: 0;
    gap: 12px;
    margin-top: auto;
    padding-top: 32px;
  }

  .landing-screen--mobile-app .landing-btn {
    min-height: 52px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 16px;
  }

  .landing-screen--mobile-app .landing-btn--primary {
    color: #fff;
    box-shadow: 0 4px 0 #d45f0a;
  }

  .landing-screen--mobile-app .landing-btn--primary:active {
    box-shadow: 0 2px 0 #d45f0a;
  }

  .landing-screen--mobile-app .landing-btn--secondary {
    background: #fff;
    color: #f47417;
    border: 2px solid #f47417;
  }

  .landing-screen--mobile-app .landing-btn--secondary:hover {
    background: #fff8f3;
  }

  .landing-screen--mobile-app .landing-btn--secondary:active {
    transform: translateY(1px);
  }
}

@media (max-width: 380px) {
  .landing-screen--mobile-app .landing-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
