:root {
  --ink: #111111;
  --brand-coral: #ff8559;
  --red: #ff8559;
  --red-dark: #cf5f3c;
  --soft-red: #ff8559;
  --paper: #ffffff;
  --muted: #6f6f6f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

.page-shell {
  width: min(574px, calc(100vw - 50px));
  margin: 0 auto;
  padding: 6px 0 0;
  background: var(--paper);
}

.hero-placeholder {
  position: relative;
  aspect-ratio: 1672 / 820;
  height: auto;
  margin: 0 auto 15px;
  padding-bottom: 0;
  overflow: hidden;
  background: #405a1e;
}

.hero-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.hero-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-placeholder picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-placeholder h1 {
  position: absolute;
  top: 24%;
  left: 50%;
  z-index: 4;
  width: calc(100% - 34px);
  margin: 0;
  transform: translate(-50%, -50%) rotate(-2deg);
  color: #f7f3ea;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.815rem, 4.29vw, 3.245rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    4px 4px 0 var(--brand-coral),
    6px 6px 0 rgba(63, 28, 34, 0.18);
}

.placeholder-label {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(224px, 0.88fr);
  align-items: start;
  gap: 21px;
}

.video-placeholder {
  position: relative;
  overflow: visible;
  background: transparent;
}

.video-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

.video-placeholder picture {
  display: block;
}

.form-panel {
  position: relative;
  display: flex;
  min-height: clamp(210px, 27vh, 238px);
  flex-direction: column;
  justify-content: center;
  padding: 7px 21px 13px 0;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
}

.form-panel h2 {
  margin: 0 0 10px;
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: clamp(0.8rem, 1.25vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.form-panel > p {
  margin: 0 0 11px;
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  line-height: 1.34;
  text-align: center;
}

.waitlist-form {
  display: grid;
  gap: 6px;
}

.waitlist-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.waitlist-form input,
.waitlist-form button {
  width: 100%;
  min-height: 36px;
  border: 2px solid var(--soft-red);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
}

.waitlist-form input {
  padding: 0 17px;
  color: #222222;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
}

.waitlist-form input::placeholder {
  color: #6d6d6d;
  opacity: 1;
}

.dog-name-field {
  position: relative;
}

.dog-name-field input {
  padding-right: 74px;
}

.dog-name-field span {
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  color: #6d6d6d;
  font-size: 0.5rem;
  font-weight: 500;
  pointer-events: none;
}

.waitlist-form button {
  color: var(--red);
  cursor: pointer;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.waitlist-form button:hover,
.waitlist-form button:focus-visible {
  background: var(--red);
  color: #ffffff;
}

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

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.4em;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.form-status.success {
  color: #117a43;
}

.form-status.error {
  color: var(--red-dark);
}

.safety-note {
  margin: 16px 0 18px;
  color: var(--muted);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .page-shell {
    width: calc(100vw - 22px);
    padding-top: 0;
  }

  .hero-placeholder {
    height: auto;
    margin-bottom: 15px;
  }

  .hero-placeholder h1 {
    top: 24%;
  }

  .signup-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .video-placeholder {
    grid-area: 1 / 1;
    z-index: 1;
  }

  .form-panel {
    grid-area: 1 / 1;
    z-index: 2;
  }

  .form-panel {
    min-height: 238px;
  }

  .form-panel {
    align-self: start;
    padding: 20px 17px 25px;
    background: transparent;
  }

}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    overflow-x: hidden;
    background: #9bcff0;
  }

  .hero-placeholder {
    aspect-ratio: 4 / 3;
    height: auto;
    margin-bottom: 0;
  }

  .hero-placeholder h1 {
    top: 24%;
    width: 100%;
    padding: 0 10px;
    font-size: clamp(1.95rem, 9.7vw, 3.4rem);
    text-shadow:
      2px 2px 0 var(--brand-coral),
      4px 4px 0 rgba(63, 28, 34, 0.18);
  }

  .video-placeholder {
    padding: 0;
  }

  .video-placeholder picture {
    aspect-ratio: 1122 / 1402;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .video-placeholder img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .form-panel {
    min-height: 238px;
    padding-top: 12px;
  }

  .form-panel h2 {
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 1.1rem;
    white-space: nowrap;
    text-shadow: 0 2px 16px rgba(12, 38, 54, 0.36);
  }

  .form-panel h2 br {
    display: none;
  }

  .form-panel > p {
    margin-bottom: 11px;
    color: #ffffff;
    font-size: 1.045rem;
    white-space: nowrap;
    text-shadow: 0 2px 16px rgba(12, 38, 54, 0.36);
  }

  .form-panel > p br {
    display: none;
  }

  .waitlist-form {
    width: calc(100% - 34px);
    margin: 0 auto;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #email,
  .dog-name-field,
  .waitlist-form button,
  .form-status {
    grid-column: 1 / -1;
  }

  .waitlist-form input,
  .waitlist-form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(228, 234, 236, 0.48);
    box-shadow:
      0 18px 38px rgba(21, 42, 55, 0.2),
      0 3px 12px rgba(255, 255, 255, 0.18),
      inset 0 1px 2px rgba(255, 255, 255, 0.32),
      inset 0 -1px 3px rgba(35, 52, 58, 0.12);
    backdrop-filter: blur(20px) saturate(1.18);
    -webkit-backdrop-filter: blur(20px) saturate(1.18);
  }

  .waitlist-form input {
    padding: 0 30px;
    color: rgba(48, 48, 48, 0.88);
    font-size: 1rem;
    font-weight: 500;
  }

  .waitlist-form input::placeholder {
    color: rgba(48, 48, 48, 0.62);
  }

  .dog-name-field input {
    padding-right: 88px;
  }

  .dog-name-field span {
    right: 30px;
    color: rgba(48, 48, 48, 0.62);
    font-size: 0.475rem;
  }

  .waitlist-form button {
    color: rgba(48, 48, 48, 0.9);
    font-size: 1.09rem;
    font-weight: 800;
    touch-action: manipulation;
  }

  .waitlist-form button:hover,
  .waitlist-form button:focus-visible {
    background: rgba(245, 245, 245, 0.5);
    color: rgba(48, 48, 48, 0.95);
  }

  .waitlist-form button:disabled {
    color: rgba(48, 48, 48, 0.9);
    opacity: 1;
  }

  .form-status.success {
    color: #ffffff;
  }

  .safety-note {
    display: none;
  }

}

@media (max-width: 380px) {
  .hero-placeholder {
    height: auto;
  }

  .form-panel {
    padding-inline: 13px;
  }
}
