:root {
  --red: #eb1a1f;
  --red-deep: #c00000;
  --red-hot: #ff0000;
  --yellow: #f5c518;
  --purple: #6b3fa0;
  --teal: #2bb3b1;
  --lime: #8bc53f;
  --ink: #111111;
  --muted: #5c5c5c;
  --paper: #f3f3f3;
  --paper-2: #ffffff;
  --band: #e6e6e6;
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.1);
  --radius: 22px;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-2);
  overflow-x: hidden;
}

.bg-ridges,
.bg-glow {
  display: none;
}

.topnav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: #fff;
  border-bottom: 1px solid var(--band);
}

.topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.topnav__brand img {
  height: 88px;
  width: auto;
  display: block;
}

.topnav__logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topnav__logos img {
  height: 72px;
  width: auto;
  display: block;
}

.topnav__logos img.logo-marias {
  height: 64px;
}

.topnav__brand span:first-child {
  color: var(--red);
}

.topnav__links {
  display: flex;
  gap: 0.5rem;
}

.topnav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.topnav__links a.is-active,
.topnav__links a:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40px);
  }
}

.hero,
.shell,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1.25rem 1rem 1.5rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.92)),
    url("./brand/bg-cereal.png") center 30% / cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 88px;
  background: rgba(230, 230, 230, 0.72);
  transform: translateY(-50%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__date {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.92rem;
}

.hero__badge {
  width: min(260px, 58vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
}

.hero__brands {
  display: none;
}

.hero__title {
  display: none;
}

.hero__lead {
  margin: 0;
  max-width: 34ch;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.hero__cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 0 var(--red-deep);
}

.hero__cta:hover {
  transform: translateY(-2px);
}

.hero__cta:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--red-deep);
}

.hero__tube {
  display: none;
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(18deg) translateY(0);
  }
  50% {
    transform: rotate(16deg) translateY(-14px);
  }
}

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

.shell {
  padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
  margin-top: -2.5rem;
}

.shell--login {
  min-height: calc(100svh - 6rem);
  display: grid;
  align-content: center;
  margin-top: 0;
}

.form--login {
  width: min(460px, 100%);
}

.login__lead {
  margin: 0;
  color: #7a5560;
}

.form {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--band);
  backdrop-filter: blur(8px);
}

.form__head {
  margin-bottom: 1.5rem;
}

.form__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.progress__step {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0e4e7;
  color: #7a5560;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.progress__step.is-active,
.progress__step.is-done {
  background: var(--red);
  color: white;
  transform: scale(1.05);
}

.progress__line {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: #efd5db;
}

.panel {
  display: grid;
  gap: 1.1rem;
  animation: rise 0.45s ease both;
}

.panel[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 0.45rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.field__label {
  font-weight: 650;
  font-size: 0.95rem;
}

.field__input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border: 2px solid #efd0d6;
  border-radius: 14px;
  background: var(--paper-2);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.12);
}

.field__input--narrow {
  max-width: 10rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  border: 2px solid #efd0d6;
  background: white;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.chip input:checked + span,
.chip:hover span {
  border-color: var(--red);
  color: var(--red);
}

.chip input:checked + span {
  background: rgba(228, 0, 43, 0.08);
  transform: translateY(-1px);
}

.dropzone {
  display: grid;
  justify-items: stretch;
  padding: 1.15rem 1rem 1.2rem;
  border-radius: 18px;
  border: 2px dashed #e7a9b4;
  background:
    linear-gradient(180deg, rgba(255, 204, 0, 0.08), transparent 55%),
    #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone.is-dragover {
  border-color: var(--red);
  background: rgba(228, 0, 43, 0.06);
}

.dropzone__idle,
.dropzone__preview {
  display: grid;
  justify-items: stretch;
  gap: 0.85rem;
  width: 100%;
}

.dropzone__idle[hidden],
.dropzone__preview[hidden] {
  display: none !important;
}

.dropzone__idle {
  text-align: center;
  color: #6d4a52;
  font-size: 0.92rem;
}

.dropzone__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}

.dropzone__actions .btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  box-shadow: none;
}

.dropzone__actions .btn--primary {
  box-shadow: 0 3px 0 var(--red-deep);
}

.dropzone__preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--yellow);
  background: #fff;
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: white;
  box-shadow: 0 8px 0 var(--red-deep);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--red-hot);
}

.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--red-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--red-deep);
  border: 2px solid #efd0d6;
}

.btn--ghost:hover {
  border-color: var(--red);
  background: rgba(228, 0, 43, 0.05);
}

.btn--small {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.form__note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.22);
  color: var(--ink);
  font-weight: 600;
}

.form__note--error {
  background: rgba(228, 0, 43, 0.12);
  color: var(--red-deep);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.footer {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 0 0 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  background: #111;
}

.footer img {
  width: 100%;
  max-height: 72px;
  object-fit: cover;
  object-position: left center;
}

.footer span {
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer--brands {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 1rem 2rem;
  background: #fff;
}

.footer--brands img {
  width: auto;
  height: 84px;
  max-height: 84px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .hero__tube {
    width: 150px;
    right: -30px;
    bottom: 4vh;
    opacity: 0.55;
  }

  .panel__actions {
    justify-content: stretch;
  }

  .panel__actions .btn {
    flex: 1;
  }

  .dropzone__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
