/* color tokens derived from the screenshot for easy tweaking */
:root {
  --maroon-dark: #561012;
  --maroon: #8d1419;
  --maroon-light: #a92528;
  --peach: #f6e2d9;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --radius: 1rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

*::selection {
  background: rgba(255, 255, 255, 0.25);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--maroon-dark);
  color: var(--white);
}

main {
  width: 100%;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero {
  display: flex;
  min-height: 100svh;
  background: var(--maroon);
  overflow: hidden;
}

.hero__left,
.hero__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__left {
  flex: 0 0 52%;
  padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem) clamp(2.5rem, 9vh, 6rem);
  gap: 2.5rem;
  background-color: var(--maroon);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  align-items: flex-start;
}

.hero__logo {
  width: clamp(96px, 12vw, 140px);
}

.hero__content {
  max-width: 32rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.notify {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.notify__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.radio-group {
  display: flex;
  gap: 1.75rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
}

.radio input {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio input:checked {
  background-color: var(--white);
  border-color: var(--white);
}

.radio input:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}


.notify__cta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.notify__cta input {
  flex: 1;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  padding: 0 1.25rem;
  min-height: 3.5rem;
  transition: border-color 0.2s ease;
}

.notify__cta input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.notify__cta input:focus {
  outline: none;
  border-color: var(--white);
}

.notify__cta button {
  border: none;
  padding: 0.85rem 2.25rem;
  border-radius: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon);
  background-color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 3.25rem;
  flex-shrink: 0;
  align-self: flex-start;
}

.notify__cta button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.partner-link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.partner-link:hover svg {
  transform: translateX(4px);
}

.store {
  margin-top: auto;
  width: 100%;
}

.store p {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.store__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store__badges a {
  display: inline-flex;
}

.store__badges img {
  height: 52px;
}

.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #651e14;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 20;
  position: fixed;
  overflow: hidden;
}

.chat-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(240, 93, 35, 0.25) 0%,
    rgba(255, 255, 255, 0.8) 45%,
    rgba(240, 93, 35, 0.25) 60%
  );
  transform: translateX(-100%);
  animation: fab-shine 3.5s linear infinite;
  mix-blend-mode: screen;
}

@keyframes fab-shine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

.chat-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: min(420px, calc(100% - 3rem));
  max-height: 80vh;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 25;
}

.chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-panel.is-full {
  width: 100%;
  height: 100%;
  max-height: none;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  border-radius: 0;
}

.chat-panel__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #6a4b3c;
  font-size: 0.95rem;
}

.chat-panel__actions {
  display: flex;
  gap: 0.35rem;
}

.chat-panel__close {
  border: none;
  background: transparent;
  color: #471a12;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.chat-panel__body {
  flex: 1;
  overflow: hidden;
}
.chat-panel .chat-widget {
  border-radius: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.chat-panel .chat-widget__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-panel .chat-widget__messages {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Hide the widget's internal header */
.chat-panel .chat-widget__header {
  display: none;
}

/* Make input field take full width and adjust form layout */
.chat-panel .chat-widget__form {
  gap: 0.5rem;
  padding: 1rem;
}

.chat-panel .chat-widget__form textarea {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
  max-height: 120px;
}

/* Style buttons as icons */
.chat-panel .chat-widget__form button {
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chat-panel .chat-widget__attach {
  background: transparent;
  border: 1px solid #e9dbcf;
  color: #6a4b3c;
}

/* Hide button text, we'll add icons via JS */
.chat-panel .chat-widget__form button span {
  display: none;
}

@media (max-width: 640px) {
  .chat-fab {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
  }

  .chat-panel {
    width: calc(100% - 2rem);
    right: 1rem;
    left: 1rem;
    bottom: 4.5rem;
    max-height: 85vh;
  }

  .chat-panel.is-full {
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
  }
}

.hero__right {
  position: relative;
  background: linear-gradient(135deg, #f8c29c, #c24a2a 60%, #5c090f 100%);
  overflow: hidden;
  min-height: 100%;
  align-items: stretch;
  justify-content: flex-start;
}

.hero__badge {
  width: clamp(120px, 15vw, 180px);
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  animation: spin 18s linear infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.hero__art {
  width: 120%;
  height: 120%;
  position: absolute;
  top: -8%;
  bottom: -12%;
  right: -8%;
  left: 0;
  object-fit: cover;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero {
    flex-direction: column;
    min-height: 100vh;
  }

  .hero__right {
    order: -1;
    min-height: 60vh;
  }

  .hero__left {
    padding: clamp(1.5rem, 6vw, 3rem);
  }
}

@media (max-width: 640px) {
  .hero__left {
    gap: 2rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero__badge {
    width: 120px;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .notify__label {
    letter-spacing: 0.08em;
  }

  .store__badges img {
    height: 46px;
  }
}

@media (max-width: 420px) {
  .hero__left {
    padding: max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .notify__cta input,
  .notify__cta button {
    min-height: 3.2rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
