/* ============================================================
   Base reset & global
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--pk-font);
  font-size: 17px;
  font-weight: 400;
  color: var(--pk-cream);
  background: var(--pk-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* ---------- Background layer ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Fallback image — always rendered; video layers on top */
.hero__fallback {
  display: block;
  position: absolute;
  inset: 0;
}

.hero__fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
}

/* Video — layers above the fallback image */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
}

/* Animated solid tint — opacity driven by JS via --tint-alpha */
.hero__tint {
  position: absolute;
  inset: 0;
  background: rgb(15, 10, 8);
  opacity: var(--tint-alpha, 0.25);
  pointer-events: none;
}

/* Dark gradient overlay for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(15, 10, 8, 0.58) 0%,
      rgba(15, 10, 8, 0.28) 55%,
      rgba(15, 10, 8, 0.05) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 10, 8, 0.08) 0%,
      rgba(15, 10, 8, 0.20) 100%
    );
}

/* ---------- Content layer ---------- */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 64px 48px 64px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Icon mark */
.hero__mark {
  display: inline-flex;
  margin-bottom: 48px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.hero__mark:hover { opacity: 1; }
.hero__mark:focus-visible {
  outline: 2px solid var(--pk-coral);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Headline */
.hero__headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--pk-cream);
  margin-bottom: 20px;
  text-shadow: 0 1px 12px rgba(10, 6, 4, 0.55), 0 2px 4px rgba(10, 6, 4, 0.35);
}

.highlight {
  font-style: normal;
  color: var(--pk-coral);
}

/* Decorative accent line */
.hero__accent-line {
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: var(--pk-coral);
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* Subhead */
.hero__subhead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--pk-cream);
  opacity: 0.9;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(10, 6, 4, 0.6), 0 2px 3px rgba(10, 6, 4, 0.4);
}

/* Body */
.hero__body {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--pk-cream);
  opacity: 0.78;
  margin-bottom: 40px;
  text-shadow: 0 1px 8px rgba(10, 6, 4, 0.6), 0 2px 3px rgba(10, 6, 4, 0.4);
}

/* Responsive <br> — show only on desktop */
.br-desktop { display: none; }
@media (min-width: 600px) {
  .br-desktop { display: block; }
}

/* ============================================================
   Sign-up form
   ============================================================ */
.signup {
  width: 100%;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.signup__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 18px;
  font-family: var(--pk-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--pk-ink);
  background: var(--pk-blush);
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  appearance: none;
}

.signup__input::placeholder {
  color: #9e7e76;
  font-weight: 400;
}

.signup__input:focus {
  border-color: var(--pk-coral);
  background: var(--pk-cream);
}

.signup__input:focus-visible {
  border-color: var(--pk-coral);
  background: var(--pk-cream);
}

/* Error state */
.signup__input.is-invalid {
  border-color: var(--pk-coral);
  background: #fde8e2;
}

.signup__btn {
  flex: 0 0 auto;
  padding: 14px 26px;
  font-family: var(--pk-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-cream);
  background: var(--pk-coral);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.signup__btn:hover {
  background: #e85f45;
  box-shadow: 0 4px 18px rgba(245, 116, 92, 0.45);
}

.signup__btn:active {
  transform: scale(0.97);
}

.signup__btn:focus-visible {
  outline: 2px solid var(--pk-cream);
  outline-offset: 3px;
}

.signup__hint {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pk-cream);
  opacity: 0.6;
}

/* ============================================================
   Success state
   ============================================================ */
.signup-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(253, 247, 239, 0.12);
  border: 1px solid rgba(253, 247, 239, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.signup-success[hidden] { display: none; }

.signup-success__icon {
  font-size: 1.25rem;
  color: var(--pk-coral);
  flex-shrink: 0;
}

.signup-success__msg {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pk-cream);
}

/* ============================================================
   Reduced-motion: hide video, always show fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet-ish: tighten horizontal padding */
@media (max-width: 768px) {
  .hero__content {
    padding: 48px 32px 48px 36px;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero__content {
    padding: 36px 24px 40px 24px;
  }

  .hero__mark {
    margin-bottom: 36px;
  }

  .hero__subhead {
    font-size: 1.0625rem;
  }

  .hero__body {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .signup__row {
    flex-direction: column;
  }

  .signup__input {
    flex: 0 0 auto;
    width: 100%;
  }

  .signup__btn {
    width: 100%;
    text-align: center;
  }
}
