/* PasaCebra landing — from Figma "PasaCenbra-App", page Website, frame Desktop - 1 (125:2530).
   Measurements below are the frame's at 1440 × 1024 and scale down on narrow screens. */

@font-face {
  font-family: 'Fugaz One';
  src: url('assets/fonts/fugaz-one-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --yellow: #ffae02;
  --placeholder: #7b7b7b;
  --fallback-top: #f9a957;
  --fallback-bottom: #bc7b3f;
  --font-display: 'Fugaz One', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 24px;
}

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

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

body {
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Hero frame -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0 var(--gutter) max(70px, env(safe-area-inset-bottom));
}

/* 125:2533 is the orange gradient under the art; it shows while the image loads. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--fallback-top) 0%, var(--fallback-bottom) 100%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The art is 1440 × 1461 anchored to the top of a 1024-tall frame, so its bottom is what
     gets cropped. On portrait screens keep the cast centred. */
  object-position: 50% 0%;
  display: block;
}

.shade {
  position: absolute;
  left: 0;
  right: 0;
  height: 288px;
  z-index: -1;
  pointer-events: none;
}
.shade-top {
  top: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}
.shade-bottom {
  bottom: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

/* --- Top bar: logo 125:2661, link 125:2796 ----------------------------------------- */

.topbar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 31px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo img {
  display: block;
  width: 69.95px;
  height: 72px;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.topbar-link {
  font-size: 14px;
  line-height: normal;
  text-decoration: none;
}
.topbar-link.lang-switch {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topbar-link:hover,
.topbar-link:focus-visible {
  text-decoration: underline;
}

/* --- Title 125:2684 ---------------------------------------------------------------- */

.title {
  margin: 116px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.46);
}

/* --- Pitch, form, consent: 125:2697, 125:2701, 125:2779 ----------------------------- */

.pitch {
  margin-top: auto;
  width: 100%;
  max-width: 972px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pitch-text {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.68);
  overflow-wrap: break-word;
}

.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.waitlist-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.waitlist input[type='email'] {
  width: 229px;
  height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 22px;
}
.waitlist input[type='email']::placeholder {
  color: var(--placeholder);
  font-style: italic;
  opacity: 1;
}
.waitlist input[type='email']:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.waitlist input[aria-invalid='true'] {
  outline: 2px solid #ff5a4f;
  outline-offset: 2px;
}

/* 125:2690 "Button Yellow": white 3px ring inside a dark 2px hairline, soft-light shading. */
.btn-yellow {
  position: relative;
  /* Grows with its label: a fixed 205px cut the text on some browsers and in English. */
  width: auto;
  min-width: 205px;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 22px;
  border: 2px solid rgba(10, 10, 10, 0.35);
  border-radius: 24px;
  background: var(--yellow);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 3px #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.14)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.12))
    drop-shadow(0 1px 2.5px rgba(0, 0, 0, 0.2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(136, 13, 13, 0.2), 0 3px 4px rgba(123, 12, 12, 0.12),
    0 2px 4px rgba(91, 26, 26, 0.14);
  cursor: pointer;
  overflow: hidden;
  transition: transform 120ms ease;
}
.btn-yellow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.btn-yellow:hover {
  transform: translateY(-1px);
}
.btn-yellow:active {
  transform: translateY(1px);
}
.btn-yellow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.btn-yellow[disabled] {
  cursor: progress;
  opacity: 0.8;
}

.consent {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: normal;
  cursor: pointer;
}
/* 24px hit area holding a 16px box with a 2px white border. */
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 4px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.consent input::after {
  content: '';
  width: 8px;
  height: 4px;
  border: solid #000;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 100ms ease;
}
.consent input:checked {
  background: #fff;
}
.consent input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}
.consent input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.consent input[aria-invalid='true'] {
  border-color: #ff5a4f;
}
.consent a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.status[data-kind='error'] {
  color: #ffd0cc;
}
.status[data-kind='ok'] {
  font-family: var(--font-display);
  font-size: 18px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Narrow screens ---------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .topbar {
    top: 16px;
    left: 16px;
    right: 16px;
  }
  .logo img {
    width: 52px;
    height: 53.5px;
  }
  .title {
    margin-top: 96px;
    font-size: 36px;
  }
  .hero {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
  .pitch-text {
    font-size: 17px;
    line-height: 22px;
    margin-bottom: 20px;
  }
  .waitlist-row {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }
  .waitlist input[type='email'],
  .btn-yellow {
    width: 100%;
    height: 44px;
  }
  .shade-bottom {
    height: 60%;
  }
}

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

/* /privacidad (its rules lived in the page; the Content-Security-Policy allows no inline style) */
body.legal-page { background: #111; }
.legal { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; line-height: 1.6; font-size: 16px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.2; }
.legal h2 { font-size: 18px; margin-top: 32px; }
.legal .back { font-size: 14px; }
.legal .todo { background: #ffae02; color: #000; padding: 0 4px; border-radius: 3px; }
