/*
 * abrezo.app landing. Values come from the Claude Design file
 * `Abrezo - Landing.dc.html` (direction A).
 *
 * Scroll-driven motion lives only in the block at the bottom, gated on
 * `html.js` and `prefers-reduced-motion: no-preference`. Everything above it is
 * the still page: what people without JS or with reduced motion get.
 */
:root {
  --ink: #14140f;
  --lime: #e8ff5a;
  --rose: #ff5fa2;
  --sky: #8fd3ff;
  --orange: #ffb454;
  --coral: #ff6b57;
  --cream: #f2f0e6;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --text: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
  --gutter: clamp(20px, 6vw, 90px);
}

html, body { margin: 0; background: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
h1, h2, p { margin: 0; }

.root { position: relative; overflow-x: clip; color: var(--ink); }

/* ---------- shared pieces ---------- */
.polaroid { position: absolute; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); }
.photo { position: relative; overflow: hidden; }
.slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tape { position: absolute; top: -10px; left: 30%; width: 40%; height: 20px; }
.reaction { position: absolute; z-index: 2; width: 34%; height: auto; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .22)); }
.reaction.on-top-right { right: -14%; top: -12%; transform: rotate(12deg); }
.reaction.on-top-left { left: -14%; top: -12%; transform: rotate(-12deg); }
.reaction.on-bottom-left { width: 30%; left: -10%; bottom: -8%; transform: rotate(-8deg); }
.reaction.on-bottom-right { width: 30%; right: -10%; bottom: -8%; transform: rotate(8deg); }
.grid { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 60px; align-items: center; }
.copy { display: flex; flex-direction: column; gap: 22px; }
.kicker { font-size: clamp(13px, 1.2vw, 16px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.big-title { font-family: var(--display); font-size: clamp(46px, 7vw, 104px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; font-weight: 400; }
.body { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 460px; text-wrap: pretty; }

.stores-wrap { display: flex; flex-direction: column; gap: 10px; }
.stores-wrap.center { align-items: center; }
.stores-wrap.start { align-items: flex-start; }
.soon { background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; transform: rotate(-2deg); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store-btn { display: block; line-height: 0; cursor: default; }
a.store-btn { cursor: pointer; }
.badge { height: 48px; width: auto; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 14px; right: 14px; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: -.01em; padding: 10px 14px; }
.nav-right { display: flex; gap: 8px; align-items: center; }
.langs { display: flex; background: var(--ink); padding: 4px; gap: 2px; }
.langs a { padding: 7px 10px; font-size: 12px; font-weight: 700; color: #bdbaa9; }
.langs a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 700; padding: 11px 16px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; background: var(--lime); display: grid; place-items: center; overflow: hidden; padding: 110px 20px 80px; box-sizing: border-box; }
.sticker { position: absolute; z-index: 1; transform: rotate(var(--r)); color: var(--ink); font-family: var(--display); font-size: clamp(13px, 1.3vw, 17px); text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; max-width: 820px; }
/* The H1 holds the descriptive kicker and the brand word, so search engines
   read what the page is about; visually they stay two separate lines. */
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 22px; font-weight: 400; }
.hero-word { font-family: var(--display); font-size: clamp(76px, 17vw, 250px); line-height: .82; letter-spacing: -.05em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.45; max-width: 520px; text-wrap: pretty; }

/* ---------- marquee (from direction B) ---------- */
.marquee { position: relative; z-index: 4; background: var(--ink); padding: 18px 0; margin: -24px -5% -24px; transform: rotate(-2deg); overflow: hidden; }
.marquee-text { white-space: nowrap; font-family: var(--display); font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; color: var(--lime); letter-spacing: -.01em; transform: translateX(-20%); }

/* ---------- widget ---------- */
.widget-section { position: relative; min-height: 100vh; background: var(--rose); display: flex; align-items: center; padding: 100px var(--gutter); box-sizing: border-box; overflow: hidden; }
.phone-wrap { display: grid; place-items: center; }
.phone-tilt { transform: rotate(3deg); }
/* iPhone 13 mini frame (1480×2740) over a screen cut to its transparent hole:
   1080×2340 at (200, 200), ~100 px corners. Percentages are of the frame box. */
.phone { position: relative; width: clamp(280px, 28vw, 380px); aspect-ratio: 1480 / 2740; }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* The screen bleeds 10 px under the bezel on every side: sized to the hole
   exactly, the hole's anti-aliased edge let the section colour through. */
.phone-screen { position: absolute; left: 12.84%; top: 6.93%; width: 74.32%; height: 86.13%; border-radius: 10% / 4.66%; object-fit: cover; display: block; background: #000; }

/* ---------- how it works ---------- */
.how { position: relative; background: var(--cream); }
.how-inner { min-height: 100vh; display: flex; align-items: center; padding: 90px var(--gutter) 40px; box-sizing: border-box; overflow: hidden; }
.how .grid { gap: clamp(30px, 5vw, 70px); }
.steps { display: flex; flex-direction: column; gap: clamp(16px, 3vh, 30px); }
.steps .kicker { font-size: 13px; font-weight: 700; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-n { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; -webkit-text-stroke: 2px var(--ink); }
.step-text { display: flex; flex-direction: column; gap: 6px; }
.step-title { margin: 0; font-weight: 400; font-family: var(--display); font-size: clamp(26px, 3.4vw, 46px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.step-body { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.45; color: #4a4a3e; max-width: 400px; }
.step-photos { position: relative; height: clamp(300px, 56vh, 520px); }
.step-photo { width: 62%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .28)); }
.step-photo .tape { top: -11px; left: 32%; width: 36%; height: 22px; }

/* ---------- dedicatorias ---------- */
.dedic { position: relative; min-height: 115vh; background: var(--sky); display: flex; align-items: center; padding: 100px var(--gutter); box-sizing: border-box; overflow: hidden; }
.card-wrap { display: grid; place-items: center; }
.card { position: relative; width: clamp(250px, 28vw, 360px); aspect-ratio: 4 / 5; filter: drop-shadow(0 26px 30px rgba(10, 40, 70, .35)); }
.card-3d { position: absolute; inset: 0; perspective: 1200px; }
/* Still page: the card already shows its back, so the note is readable. */
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(-3deg) rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-sizing: border-box; }
.front { background: var(--cream); padding: 12px 12px 48px; }
.front .photo { width: 100%; height: 100%; }
.back { transform: rotateY(180deg); background: linear-gradient(160deg, #efe9d8, #dcd4be); padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%); }
.back-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8a8370; }
.note { font-family: var(--hand); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: #1e2a6e; text-wrap: pretty; }
.signature { font-family: var(--hand); font-size: 28px; font-weight: 700; color: #1e2a6e; }
.ded-hint { display: none; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- solo tu círculo ---------- */
.circle { position: relative; min-height: 100vh; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: 60px; padding: 110px 0; box-sizing: border-box; overflow: hidden; }
.circle-head { padding: 0 var(--gutter); max-width: 1200px; width: 100%; margin: 0 auto; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-end; }
.circle-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 9vw, 140px); line-height: .86; letter-spacing: -.045em; text-transform: uppercase; color: var(--lime); }
.circle-head p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 400px; color: #d6d3c4; text-wrap: pretty; }
/* Still page: the six polaroids wrap in place instead of sliding past. */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; padding: 20px var(--gutter); }
.circle-photo { position: relative; width: clamp(140px, 19vw, 260px); flex: none; filter: none; }
.circle-photo .paper { padding: 9px 9px 34px; }
.circle-photo .tape { left: 32%; width: 36%; }

/* ---------- preguntas frecuentes ---------- */
.faq { background: var(--cream); padding: 110px var(--gutter); }
.faq h2 { max-width: 1200px; margin: 0 auto 50px; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7vw, 104px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.faq-list { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 36px 60px; }
.faq-item { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.faq-item h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.faq-item p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: #3a3a31; text-wrap: pretty; }

/* ---------- footer ---------- */
.footer { background: var(--lime); padding: 100px var(--gutter) 36px; display: flex; flex-direction: column; gap: 60px; }
.foot-main { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.foot-title { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; max-width: 540px; }
.foot-word { font-family: var(--display); font-size: clamp(80px, 21vw, 330px); line-height: .8; letter-spacing: -.06em; text-transform: uppercase; }
.foot-bar { max-width: 1200px; width: 100%; margin: 0 auto; border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; font-size: 14px; font-weight: 600; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .nav-cta { display: none; }
  /* Photos sit fully inside the screen, two above the copy and two below it,
     each bottom one with its sticker on top; the padding keeps the copy clear. */
  .hero { padding: 250px 16px 250px; }
  .hero-photo { width: 104px !important; }
  .hero-photo:nth-of-type(1) { left: 16px !important; top: 76px !important; }
  .hero-photo:nth-of-type(2) { left: 18px !important; bottom: 26px !important; }
  .hero-photo:nth-of-type(3) { right: 16px !important; top: 82px !important; }
  .hero-photo:nth-of-type(4) { width: 150px !important; right: 16px !important; bottom: 30px !important; }
  .sticker { font-size: 11px; padding: 6px 11px; }
  .sticker-1 { left: 22px !important; top: auto !important; bottom: 186px; }
  /* No hero parallax here: with this little room it slid photos onto the copy. */
  .hero .par { --k: 0 !important; }
  .sticker-2 { right: 20px !important; bottom: 184px !important; }
}

/* ---------- scroll-driven motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Reaction stickers bob gently. `translate` and `rotate` are separate from
     `transform`, so the float adds to each sticker's tilt instead of replacing
     it; the different lengths and offsets keep them from moving in step. */
  .reaction { animation: float 3.6s ease-in-out infinite; }
  .reaction.on-top-left { animation-duration: 4.1s; animation-delay: -1.3s; }
  .reaction.on-bottom-left { animation-duration: 3.8s; animation-delay: -2.4s; }
  .reaction.on-bottom-right { animation-duration: 4.4s; animation-delay: -0.7s; }
  .hero-photo:nth-of-type(2) .reaction { animation-delay: -1.9s; }

  html.js .par { transform: translateY(calc(var(--c, 0) * var(--k, 0) * 1px)) rotate(var(--r, 0deg)); }
  html.js .marquee-text { transform: translateX(calc(var(--c, 0) * .9px - 20%)); }
  html.js .reveal {
    opacity: clamp(0, calc(var(--p, 1) * 3.5 - .5), 1);
    transform: translateY(calc((1 - clamp(0, calc(var(--p, 1) * 3.5 - .5), 1)) * 50px));
  }
  html.js .phone-tilt { transform: translateY(calc(var(--c, 0) * .14px)) rotate(calc(var(--c, 0) * .012deg + 3deg)); }

  html.js .how { height: 320vh; }
  html.js .how-inner { position: sticky; top: 0; height: 100vh; }
  html.js .step { opacity: var(--o); transition: opacity .2s linear; }
  html.js .drop { transform: translateY(calc((1 - clamp(0, calc((var(--s, 0) - var(--at)) * 6), 1)) * 110vh)) rotate(var(--r)); }

  html.js .flip { transform: rotate(-3deg) rotateY(calc(clamp(0, calc((var(--p, 0) - .36) * 4), 1) * 180deg)); }
  html.js .ded-hint { display: inline; opacity: clamp(0, calc(1 - (var(--p, 0) - .4) * 5), 1); }

  html.js .strip { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 20px 0; transform: translateX(calc(var(--c, 0) * .55px - 12%)); }
}

@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -9px; rotate: 4deg; }
}
