/* =========================================================
   Hyro Waitlist — cinematic teaser hero + Typeform-style flow
   ========================================================= */
@font-face {
  font-family: "Lemon";
  src: url("https://drinkhyro.com/cdn/shop/t/5/assets/Lemon-Bold.woff2?v=158743598727545153351705899060") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #ffffff;
  --fg-cream: #fff4ec;
  --fg-dim: #b8b8b8;
  --fg-mute: #7a7a7a;
  --line: #2a2a2a;
  --line-strong: #4a4a4a;
  --red: #FB0D1B;
  --red-hover: #e00b18;
  --chip-bg: #d4eef9;
  --chip-fg: #1a90c7;
  --radius: 10px;
  --radius-btn: 8px;
  --pad-x: 26px;
  --max: 540px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, Arial, sans-serif;
  --font-display: "Lemon", "Trebuchet MS", "Impact", Helvetica, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }
html, body { height: 100%; min-height: 100dvh; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overscroll-behavior-y: contain; }

#app { position: relative; min-height: 100dvh; }

/* =================== SCREENS =================== */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) var(--pad-x) max(24px, env(safe-area-inset-bottom));
  min-height: 100dvh;
}
.screen.is-active { display: flex; }

/* =================== HERO — CINEMATIC TEASER =================== */
.screen--hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Full-bleed background using the cinematic pouch image (pouch + glow only;
   image is anchored to the bottom and sized to ~60% viewport height so the
   top half is clean black for the typography overlay). */
.hero__bg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62dvh;
  background-image: url("/hero.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #000;
}
/* Soft fade from the cinematic image into pure black at its top edge so the
   typography area never shows a hard horizon line. */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* Subtle vignette / smoke amplifier on top of the photo */
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 50% 78%, rgba(120, 60, 0, 0.18) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.45) 100%);
}

/* Stack the three content rows inside the hero with absolute positioning
   so they overlay the background without disturbing image scaling. */
.hero__top,
.hero__mid,
.hero__bot {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.hero__top {
  flex: 0 0 auto;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: 10px;
}

.hero__logo {
  display: block;
  width: clamp(82px, 24vw, 120px);
  height: auto;
  filter: drop-shadow(0 1px 12px rgba(0,0,0,0.6));
}

.hero__mid {
  flex: 1 1 auto;
  justify-content: flex-start;
  padding-top: 4dvh;
  gap: 0;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 12.5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: var(--fg-cream);
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: var(--red);
  display: inline-block;
  text-shadow: 0 0 18px rgba(251, 13, 27, 0.35), 0 2px 24px rgba(0,0,0,0.6);
}

.hero__bot {
  flex: 0 0 auto;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  padding-top: 16px;
  gap: 14px;
}

.hero__bot .btn {
  box-shadow: 0 8px 28px rgba(251, 13, 27, 0.35), 0 2px 10px rgba(0,0,0,0.5);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 0 auto;
  color: #bdbdbd;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.meta__icon { opacity: 0.85; }

/* =================== FORM =================== */
.screen--form {
  justify-content: center;
  align-items: center;
}
.screen--form .form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 140px;
}
.form__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: #fff;
}
.form__desc {
  margin: 0;
  font-size: 15px;
  color: var(--fg-mute);
  font-style: italic;
  font-weight: 400;
}
.req { color: var(--fg); font-weight: 700; margin-left: 1px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 18px;
  font-weight: 600;
  padding: 2px 10px 2px 12px;
  border-radius: 4px;
  vertical-align: 2px;
  font-style: normal;
}
.chip::after { content: "×"; font-size: 14px; font-weight: 600; opacity: 0.75; margin-left: 4px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.005em;
}
.field__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 17px;
  padding: 10px 0 8px;
  border-radius: 0;
  outline: none;
  transition: border-color 160ms ease;
}
.field__input::placeholder { color: #5e5e5e; font-weight: 400; }
.field__input:focus { border-bottom-color: #fff; }
.field__input:focus::placeholder { color: #4a4a4a; }
.field__input--lg { font-size: 19px; padding: 14px 0 10px; }

.field__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
}
.field__phone:focus-within { border-bottom-color: #fff; }
.field__input--phone {
  flex: 1 1 auto;
  border-bottom: 0;
  padding-left: 4px;
}
.phone__country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px 4px 8px 0;
  color: #fff;
  cursor: pointer;
}
.phone__flag {
  display: inline-flex;
  width: 26px; height: 18px;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
}
.phone__chev { color: #cfcfcf; }

.field__error {
  min-height: 18px;
  margin: -6px 0 0;
  color: #ff5560;
  font-size: 13px;
  font-weight: 500;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 22px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease, transform 120ms ease;
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn--shop { text-transform: none; letter-spacing: 0; max-width: 220px; padding: 14px 26px; }

/* =================== FOOT NAV =================== */
.footnav {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 14px var(--pad-x) max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 35%, #000 90%);
  pointer-events: none;
}
.footnav[hidden] { display: none; }
.footnav > * { pointer-events: auto; }
.progress { display: flex; gap: 8px; }
.progress__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a3a3a;
  transition: background-color 200ms ease, transform 200ms ease;
}
.progress__dot.is-on { background: var(--red); transform: scale(1.15); }
.btn--next { max-width: 360px; }

/* =================== SUCCESS =================== */
.screen--success {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.success {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding-bottom: 8dvh;
}
.success__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.005em;
}
.success__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* =================== UTIL =================== */
.is-loading .btn[data-action="next"] { pointer-events: none; opacity: 0.55; }

/* Tablet+ */
@media (min-width: 720px) {
  :root { --pad-x: 40px; }
  .hero__title { font-size: clamp(56px, 8vw, 84px); }
  .hero__logo { width: clamp(110px, 12vw, 150px); }
  .form__title { font-size: 26px; }
}

/* Short viewports — tighten spacing so pouch doesn't get cropped weird */
@media (max-height: 720px) {
  .hero__mid { padding-top: 2dvh; }
  .hero__title { font-size: clamp(34px, 11vw, 56px); }
  .hero__top { padding-top: 18px; padding-bottom: 4px; }
  .hero__bot { padding-bottom: 22px; gap: 10px; }
}
