/* ==========================================================================
   Shomy waitlist — Figma 00-waitlist (4440:823), 1440 × 1024.
   Values are Figma's. Where a Figma stroke doesn't take layout space it's
   drawn as an inset box-shadow, so sizes match the frame exactly.
   ========================================================================== */

@import url("assets/holo/holo-card.20260926170849.css"); /* Holo Studio, fallback renderer */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-Regular.85b6761a.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-Medium.d5d7b37d.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "PP Fraktion Mono";
  src: url("assets/fonts/PPFraktionMono-Regular.778ef24a.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.c008db4e.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Figma variables */
  --neutral-base: #000;
  --neutral-50: #0a0a0a;
  --neutral-200: #262626;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #8a8a8a;
  --text-disabled: #373737;
  --text-inverse: #000;
  --accent: #d0f50b;
  --glass: rgba(14, 14, 14, 0.72);

  --font-sans: "PP Neue Montreal", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "PP Fraktion Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* The headline face. Only these four lines change if it moves off
     Instrument Serif — add the new @font-face above and adjust. */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --display-size: 64px;
  --display-leading: 1;
  --display-tracking: -0.02em; /* −1.28px at 64 */

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--neutral-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: none;
}

::selection {
  background: rgba(208, 245, 11, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Figma trims text boxes to cap height ("text-box-trim: both, cap /
   alphabetic"). Not every browser does that yet, so it's done with margins
   from the font's own metrics: with line-height 1, PP Neue Montreal's cap
   top sits 0.143em down and its baseline 0.142em up from the box edges. */
.trim {
  display: block;
  line-height: 1;
  margin-block: -0.143em -0.142em;
  white-space: nowrap;
}

/* ---- page ---------------------------------------------------------------- */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.site-header {
  display: flex;
  padding: 24px 32px 0;
}
.logo {
  display: block;
  border-radius: 4px;
}
.logo img {
  width: 77.08px;
  height: 25.03px;
}

/* Figma leaves 59px above the card and 115px under the caption on a
   1024-tall frame. The two spacers keep that 59:115 split at any height. */
.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 16px;
}
.hero::before,
.hero::after {
  content: "";
}
.hero::before {
  flex: 59 1 0;
  min-height: 20px;
}
.hero::after {
  flex: 115 1 0;
  min-height: 32px;
}

/* ---- stage (the card) ---------------------------------------------------- */

.stage-wrap {
  --k: 1; /* set by main.js */
  position: relative;
  flex: none;
  width: calc(388px * var(--k));
  height: calc(433px * var(--k));
  /* Figma centres the cover, not the group: the widgets overhang 10px more
     on the right, so the group sits 10px right of centre. */
  margin-left: calc(20px * var(--k));
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 388px;
  height: 433px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  opacity: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* Long-press on the card steers it (motion.js), so iOS mustn't pop its
     "Save to Photos" menu for the images inside. */
  -webkit-touch-callout: none;
}
.stage img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.stage.is-ready {
  opacity: 1;
}

.layer {
  position: absolute;
  will-change: transform;
}
.layer__in {
  height: 100%;
}

/* cover — Figma card-cover-img (4526:939) */
.cover {
  position: relative;
  width: 248px;
  height: 342px;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  transform-origin: 50% 50%;
  will-change: transform;
  background: #1a120c;
}
/* Holo Studio sets its own box on .holo-embed; the cover keeps Figma's. */
.cover.holo-embed {
  display: block;
  width: 248px;
  height: 342px;
}
.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Figma's gradient fills over the photo — per guide, set inline (guides.js) */
.cover__shade {
  position: absolute;
  inset: 0;
}
/* The hologram only adds light: black canvas, screen-blended. */
.holo-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  /* Safari doesn't clip a composited canvas to its parent's rounded corners
     (overflow: hidden + border-radius), so the canvas rounds itself. */
  border-radius: inherit;
  clip-path: inset(0 round 14px);
}
.cover .foil-light {
  border-radius: inherit;
  clip-path: inset(0 round 14px);
}

/* location pill — Figma card-location (6176:1260), 16px into the cover,
   under the hologram like the rest of the picture */
.pill-location {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 13px 8px 9px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 12px rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
  white-space: nowrap;
}
.pill-location img {
  width: 16px;
  height: 16px;
}

/* type steps used on the card, all PP Neue Montreal */
.t-10m {
  font: 500 10px/1 var(--font-sans);
  letter-spacing: 0.1px;
}
.t-12m {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.12px;
}
.t-14m {
  font: 500 14px/1 var(--font-sans);
  letter-spacing: 0.14px;
}
.t-15m {
  font: 500 15px/normal var(--font-sans);
}
.t-15r {
  font: 400 15px/normal var(--font-sans);
}
.t-17m {
  font: 500 17px/1 var(--font-sans);
  color: #fff;
}
.trim.t-15m {
  line-height: 1;
}

/* usertag — Figma components/Molecules/usertag (4467:1055) */
.usertag {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  white-space: nowrap;
}
.usertag__avatar {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
}
.usertag__avatar > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
/* components/Atom/Avatar/AddButton (4039:3186): 20pt, offset shadow */
.usertag__add {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #f7f7f7,
    -1px 1px 6px rgba(0, 0, 0, 0.08);
}
.usertag__add img {
  width: 11px;
  height: 11px;
}
.usertag__info {
  display: flex;
  flex-direction: column;
}
.usertag__handle {
  padding-top: 1px;
  font: 500 16px/normal var(--font-sans);
  letter-spacing: -0.4px;
  color: #fff;
}
.usertag__meta {
  font: 500 14px/normal var(--font-sans);
  letter-spacing: -0.5px;
  color: var(--text-tertiary);
}

/* floating widgets — 134 × 134 glass cards */
.widget {
  position: relative;
  width: 134px;
  height: 134px;
  border-radius: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  color: var(--text-primary);
}
.widget > * {
  position: absolute;
}
.widget__row {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  white-space: nowrap;
}
.icon-img,
.icon-img img {
  flex: none;
  width: 20px;
  height: 20px;
}
.widget__note {
  color: var(--text-tertiary);
}

/* Figma: Spots counter (4911:206) */
.spots-count {
  left: 65px;
  top: 12px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(208, 245, 11, 0.2);
  color: var(--accent);
}

/* Figma: Route destination card (4518:666). The map only shows through a
   radial mask weighted to the lower right, like the Figma mask layer. */
.route-map {
  inset: 0;
  -webkit-mask: url("assets/icons/map-mask.51ca543f.svg") 0 0 / 134px 134px no-repeat;
  mask: url("assets/icons/map-mask.51ca543f.svg") 0 0 / 134px 134px no-repeat;
}
.route-map img {
  position: absolute;
  left: -50px;
  top: -236px;
  width: 319px;
  height: 538px;
}
.route-label {
  left: 0;
  width: 134px;
  top: 14px;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.route-dest {
  left: -0.5px;
  width: 134px;
  top: 29px;
  text-align: center;
}
.route-dist {
  left: 21px;
  top: 57px;
  letter-spacing: 0;
}
/* .route-turn: position and size come from the guide (the icon changes) */
.route-beam {
  left: 84.5px;
  top: 51px;
  width: 15px;
  height: 59.5px;
}
.route-arrow {
  left: 75px;
  top: 87px;
  width: 34px;
  height: 34px;
}

/* Figma 01-waitlist: running stats pill — glass, floats above the card */
.widget-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px 10px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  white-space: nowrap;
}
.widget-pill__group {
  display: flex;
  align-items: center;
  gap: 3px;
}
.widget-pill img {
  width: 16px;
  height: 16px;
}

/* ---- medal: a coin ------------------------------------------------------
   Face size and rotation per guide (--coin-w/-h/-rotate, from Figma). Behind
   it, a stack of metal discs 1px apart forms the rim, which only shows as the
   coin tilts; the back repeats the medal. */
.medal {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 520px;
  cursor: pointer;
}
.medal__shadow,
.coin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--coin-w, 95px);
  height: var(--coin-h, 95px);
  margin: calc(var(--coin-h, 95px) / -2) 0 0 calc(var(--coin-w, 95px) / -2);
  border-radius: 50%;
}
.medal__shadow {
  box-shadow:
    5px 24px 16px rgba(0, 0, 0, 0.06),
    5px 24px 32px rgba(0, 0, 0, 0.24);
  transform: translate(var(--shadow-x, 0px), var(--shadow-y, 0px));
}
.coin {
  transform-style: preserve-3d;
  transform: rotateZ(var(--coin-rotate, 0deg));
}
.coin__spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.coin__spin > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.coin__rim {
  --shade: calc(var(--i) * 0.045);
  transform: translateZ(calc(var(--i) * -1px));
  background:
    linear-gradient(rgba(0, 0, 0, var(--shade)), rgba(0, 0, 0, var(--shade))),
    linear-gradient(135deg, var(--rim-light), var(--rim-mid) 45%, var(--rim-dark));
  box-shadow: inset 0 0 0 0.6px rgba(60, 40, 12, 0.35);
}
.coin__face {
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0.5px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coin__face img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.coin__spec {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent calc(var(--spec, 50%) - 26%),
    rgba(255, 250, 235, 0.55) var(--spec, 50%),
    transparent calc(var(--spec, 50%) + 26%)
  );
  mix-blend-mode: soft-light;
}
.coin__bevel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.45),
    inset 0 -2px 2px rgba(0, 0, 0, 0.35),
    inset 0 0 0 0.75px rgba(0, 0, 0, 0.25);
}
.coin__back {
  overflow: hidden;
  transform: translateZ(calc(var(--rim-n) * -1px - 0.5px)) rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coin__back img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- copy ---------------------------------------------------------------- */

/* Figma: Waitlist badge (4524:2313). Every few seconds a glint crosses it
   left to right — fill and border together, like sun on a moving surface. */
@property --shine {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 37px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(208, 245, 11, 0.032) 0%, rgba(208, 245, 11, 0) 29.808%),
    var(--neutral-50);
  box-shadow: inset 0 0 0 1px rgba(208, 245, 11, 0.06);
  font: 400 13px/1 var(--font-mono);
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: badge-shine 6.5s cubic-bezier(0.45, 0.05, 0.3, 1) 1.8s infinite;
}
.badge img {
  width: 14px;
  height: 14px;
}
.badge .trim {
  /* PP Fraktion Mono metrics */
  margin-block: -0.224em -0.094em;
}
.badge::before,
.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-size: 300% 100%;
  background-position: var(--shine) 0;
  background-repeat: no-repeat;
}
.badge::after {
  background-image: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 240, 0.035) 46%,
    rgba(255, 255, 240, 0.08) 50%,
    rgba(255, 255, 240, 0.035) 54%,
    transparent 60%
  );
}
.badge::before {
  padding: 1px;
  background-image: linear-gradient(100deg, transparent 42%, rgba(226, 255, 120, 0.26) 50%, transparent 58%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
@keyframes badge-shine {
  0% {
    --shine: 100%;
  }
  20%,
  100% {
    --shine: 0%;
  }
}

.headline {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-size);
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
}

/* Figma 4440:827: two sentences, one per line, 2px apart */
.lede {
  max-width: 508px;
  margin-top: 12px;
  font: 400 16px/22px var(--font-sans);
  color: var(--text-tertiary);
  text-align: center;
  text-wrap: pretty;
}
.lede span {
  display: block;
}
.lede span + span {
  margin-top: 2px;
}

/* ---- form — Figma Email input (4526:56) + Join waitlist button (4526:867) */

.waitlist {
  position: relative;
  display: flex;
  align-items: center;
  width: 442px;
  max-width: 100%;
  height: 51px;
  margin-top: 30px;
  border-radius: 999px;
  background: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-200);
  transition: box-shadow 0.2s ease;
}
.waitlist:focus-within {
  box-shadow:
    inset 0 0 0 1px #3a3a3a,
    0 0 0 4px rgba(208, 245, 11, 0.06);
}
.waitlist[data-state="invalid"],
.waitlist[data-state="error"] {
  box-shadow: inset 0 0 0 1px #5c2b24;
}
.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 13px 12px 16px 24px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: transparent;
  font: 400 16px/22px var(--font-sans);
  color: var(--text-primary);
}
.waitlist input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}
.waitlist input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary);
  box-shadow: 0 0 0 40px var(--neutral-50) inset;
  caret-color: var(--text-primary);
}
.waitlist button {
  flex: none;
  height: 45px;
  margin-right: 3px;
  padding: 11px 24px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  font: 500 16px/22px var(--font-sans);
  color: var(--text-inverse);
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.2s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}
.waitlist button:hover:not(:disabled) {
  filter: brightness(1.06);
}
.waitlist button:active:not(:disabled) {
  transform: scale(0.97);
}
.waitlist[data-state="sending"] button {
  cursor: progress;
  opacity: 0.75;
}
.waitlist[data-state="done"] button {
  background: rgba(208, 245, 11, 0.12);
  color: var(--accent);
  cursor: default;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist-status {
  margin-top: 12px;
  font: 400 14px/22px var(--font-sans);
  color: var(--text-disabled);
  text-align: center;
  transition: color 0.3s ease;
}
.waitlist-status[data-tone="success"] {
  color: var(--accent);
}
.waitlist-status[data-tone="error"] {
  color: #e0806f;
}
/* "¿Quisiste decir nombre@gmail.com?" — the address is the button */
.waitlist-status .suggest {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-position: from-font;
  cursor: pointer;
}

/* ---- footer -------------------------------------------------------------- */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px 32px;
  font: 400 14px/22px var(--font-sans);
}
.footer-copy {
  color: var(--text-disabled);
}
.footer-creators {
  color: var(--text-tertiary);
  text-align: center;
}
.footer-creators a {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  border-radius: 2px;
}
.footer-links {
  color: var(--text-disabled);
  text-align: right;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-creators a:hover {
  color: var(--text-secondary);
}
[data-manifesto] {
  cursor: default;
}

/* ---- responsive -----------------------------------------------------------
   No mobile frame in Figma yet; this keeps the same pieces and order,
   sized for a phone. Breakpoints: 800 (headline wraps), 640 (phone). */

@media (max-width: 800px) {
  .headline {
    --display-size: clamp(44px, 8vw, 64px);
    max-width: 14ch;
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 640px) {
  .site-header {
    justify-content: center;
    padding: 16px 16px 0;
  }
  .logo img {
    width: 69px;
    height: 22.4px;
  }
  .hero::before {
    flex: 0 0 28px;
    min-height: 0;
  }
  .hero::after {
    flex: 0 0 56px;
    min-height: 0;
  }
  .badge {
    margin-top: 28px;
    font-size: 12px;
  }
  .headline {
    --display-size: clamp(40px, 11.6vw, 52px);
    margin-top: 14px;
  }
  .lede {
    max-width: 36ch;
    font-size: 15px;
    line-height: 21px;
  }
  .waitlist {
    width: 100%;
    margin-top: 24px;
  }
  .waitlist input[type="email"] {
    padding-left: 20px;
  }
  .waitlist button {
    padding-inline: 18px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .footer-creators {
    order: -1;
    margin-bottom: 6px;
  }
  /* "Únete como creador" always on its own second line */
  .footer-creators a {
    display: block;
    width: fit-content;
    margin: 2px auto 0;
  }
  .footer-links,
  .footer-copy {
    text-align: center;
  }
}

/* Very narrow phones: the button drops under the field. */
@media (max-width: 359px) {
  .waitlist {
    flex-direction: column;
    height: auto;
    padding: 3px;
    border-radius: 26px;
    gap: 3px;
  }
  .waitlist input[type="email"] {
    width: 100%;
    height: 45px;
    padding: 11px 16px 12px;
  }
  .waitlist button {
    width: 100%;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge {
    animation: none;
  }
  .badge::before,
  .badge::after {
    display: none;
  }
  .waitlist button {
    transition: none;
  }
}
