@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Pulled from realbotanicals.com theme tokens */
  --red: #a11a1e;
  --red-hover: #67070a;
  --slate: #687e8c;
  --slate-hover: #3b596c;
  --cream: #f4f0e9;
  --cream-hi: #fffdf9;
  --ink: #000000;
  --text: #4d4d4d;
  --text3: #8b8b8b;
  /* Kava Karma packaging accents */
  --sun: #f0932b;
  --sky: #7ab6e0;
  --sky-soft: #cfe3f2;
  --radius: 18px;
  --display: "Archivo Black", system-ui, sans-serif;
  --ui: "Open Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 780ms;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--cream-hi);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.promo-strip {
  position: relative;
  z-index: 3;
  padding: 9px 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.gate {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 38px);
}

/* ---------- Media panel: product photo, left half ---------- */

.gate {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 38px);
}

.gate__media {
  background-color: var(--cream);
  background-image: url('kava-cover.webp');
  background-repeat: no-repeat;
  background-size: cover;
  /* The pack + bottle sit low in this portrait source; anchoring to the bottom
     keeps both whole in the panel's crop instead of clipping the ledge. */
  background-position: 50% 100%;
}

/* ---------- Gate panel ---------- */

.gate__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px);
  background: var(--cream-hi);
}

.gate__inner {
  width: 100%;
  max-width: 430px;
}

.gate__logo {
  display: block;
  width: min(210px, 56%);
  height: auto;
  margin-bottom: 30px;
}

.gate__eyebrow {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.gate__headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.gate__headline em {
  font-style: normal;
  color: var(--red);
}

.gate__question {
  margin: 16px 0 30px;
  max-width: 38ch;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  min-height: 54px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(161, 26, 30, 0.28);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(161, 26, 30, 0.34);
}

.btn-yes:active { transform: scale(0.985); }

.btn-yes svg { flex-shrink: 0; }

.link-no {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.18);
  transition: color var(--dur-fast) var(--ease-out);
}

.link-no:hover { color: var(--text); }

.gate__legal {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 44ch;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--text3);
}

/* ---------- Denied state ---------- */

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.gate__denied h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.gate__denied p {
  margin: 0;
  max-width: 36ch;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.btn-leave {
  appearance: none;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: transparent;
  padding: 0.78rem 1.5rem;
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn-leave:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.back-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link:hover { color: var(--ink); }

body.is-denied .gate__eyebrow,
body.is-denied .gate__headline,
body.is-denied .gate__question,
body.is-denied .gate__actions { display: none; }

body.is-denied .gate__denied { display: flex; }

/* ---------- Enter veil ---------- */

.enter-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(ellipse 75% 55% at 50% 18%, rgba(240, 147, 43, 0.45), transparent 60%),
    linear-gradient(180deg, var(--red) 0%, #67070a 100%);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.enter-veil.show {
  transform: translateY(0);
  pointer-events: auto;
}

.enter-veil__text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  text-shadow: 0 6px 26px rgba(60, 5, 8, 0.35);
}

.enter-veil__sub {
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 620ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 120ms; }
  .reveal.d3 { animation-delay: 200ms; }
  .reveal.d4 { animation-delay: 280ms; }
  .reveal.d5 { animation-delay: 360ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }


}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .gate {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gate__media {
    order: -1;
    height: 42vh;
    min-height: 250px;
    max-height: 420px;
    /* A short landscape band crops differently from the tall left half, so it
       needs its own focal point to keep the pack and bottle whole. */
    background-position: 50% 86%;
  }

  .gate__panel { padding: 34px 22px 44px; }

  .gate__inner { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .promo-strip {
    padding: 8px 14px;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .promo-strip { font-size: 0.62rem; letter-spacing: 0.02em; }
  .gate__logo { width: min(172px, 52%); margin-bottom: 24px; }
  .btn-yes { max-width: none; }
  .btn-leave { width: 100%; }
}
